@tangle-network/sandbox 0.58.0 → 0.58.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +3 -3
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/{agent-run-outcome-DV-9cNsk.d.ts → agent-run-outcome-CJP18Ip8.d.ts} +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-knjCl8Zp.d.ts → browser-interactive-control-controller-1m7jgLeg.d.ts} +1 -1
- package/dist/{client-BMdV_CeM.js → client-BHItHEg0.js} +9 -4
- package/dist/{client-B1I66sl_.d.ts → client-BI0_ZUUS.d.ts} +6 -4
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/core.d.ts +6 -5
- package/dist/core.js +5 -3
- package/dist/{index-CGnI-q1g.d.ts → index-BitiSmBp.d.ts} +2 -2
- package/dist/index.d.ts +12 -11
- package/dist/index.js +6 -4
- package/dist/interactive-control.d.ts +1 -1
- package/dist/line-application-DOg7jrnA.js +100 -0
- package/dist/lines-DLIo-NTB.d.ts +556 -0
- package/dist/lines.d.ts +2 -0
- package/dist/lines.js +273 -0
- package/dist/{local-cli-auth-DfuFJCcs.js → local-cli-auth-N1IYywxf.js} +1 -1
- package/dist/{mcp-local-DXO-9rtB.js → mcp-local-BWsftreI.js} +1 -1
- package/dist/{preview-Bz7TXYSf.d.ts → preview-CVrjEPgk.d.ts} +3 -3
- package/dist/runtime.d.ts +3 -3
- package/dist/{sandbox-DyrDBnjp.js → sandbox-B2kuUBn6.js} +61 -226
- package/dist/{sandbox-BMSWYvdP.d.ts → sandbox-DyPRgt1M.d.ts} +5 -411
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-BtQkJqfz.js → tangle-DCjIsZI0.js} +1 -1
- package/dist/{types-DRyvWIJf.d.ts → types-_Gn4d93t.d.ts} +60 -2
- package/package.json +10 -5
- /package/dist/{cli-auth-bundle-bRJOyaJO.js → cli-auth-bundle-0VjPAtKt.js} +0 -0
- /package/dist/{errors-CNsmhCen.d.ts → errors-AVpynVrG.d.ts} +0 -0
- /package/dist/{index-BN7zNEUB.d.ts → index-C48z7K4r.d.ts} +0 -0
- /package/dist/{index-X4EEZlMi.d.ts → index-D4u-vv87.d.ts} +0 -0
- /package/dist/{preview-operations-Dgbi46FH.js → preview-operations-BhQ4_CF7.js} +0 -0
- /package/dist/{terminal-stream-BW4veIsI.d.ts → terminal-stream-Bf2stNDX.d.ts} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { a as TerminalStreamReconnectAuthority, c as MintScopedTokenOptions, h as TerminalReadyInfo, l as ScopedToken, r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-
|
|
2
|
-
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as InteractiveAttachOptions, f as InteractiveControlClaimAcknowledgement, h as InteractiveSessionStatus, m as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-
|
|
3
|
-
import {
|
|
1
|
+
import { a as TerminalStreamReconnectAuthority, c as MintScopedTokenOptions, h as TerminalReadyInfo, l as ScopedToken, r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-Bf2stNDX.js";
|
|
2
|
+
import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, d as InteractiveAttachOptions, f as InteractiveControlClaimAcknowledgement, h as InteractiveSessionStatus, m as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, p as InteractiveControlClaimOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-1m7jgLeg.js";
|
|
3
|
+
import { M as SandboxLines } from "./lines-DLIo-NTB.js";
|
|
4
|
+
import { A as CommitTaskSessionOptions, Aa as WriteManyFile, An as NetworkManager, Bi as SessionExecutionInfo, C as BranchOptions, Cr as SandboxDeleteOptions, D as CodeExecutionResult, Da as WaitForRolloutOptions, E as CodeExecutionOptions, Ea as WaitForOptions, Ei as SandboxTraceBundle, Er as SandboxEvent, Fi as SendSessionMessageOptions, Fn as PreviewLinkManager, Gi as SessionInterruptOptions, Gn as PromptInputPart, H as CreateTaskSessionOptions, Ii as SendSessionMessageRequest, Ji as SessionMessageAdmission, Jn as ProvisionEvent, Ki as SessionListOptions, Kn as PromptOptions, Li as SentSessionMessage, M as ConversationTurnOptions, Mi as SearchOptions, N as ConversationTurnResult, Nn as PermissionsManager, O as CodeLanguage, Oa as WorkspaceOperationLookup, Q as DispatchedSession, Qi as SnapshotDeleteAcknowledgement, Sn as ListMessagesOptions, Sr as SandboxDeleteAcknowledgement, Ti as SandboxTerminals, Tt as FileSystem, Ui as SessionForkOptions, V as CreateSessionOptions, Vn as ProcessManager, Wi as SessionInfo, Xi as SessionResultOptions, Xt as ForkIdempotency, Yn as ProvisionResult, Yt as ForkCounts, Z as DispatchPromptOptions, Zr as SandboxFleetTraceBundle, Zt as ForkLookupOptions, _n as IntelligenceReportBudget, _r as SSHCredentials, _t as ExecOptions, aa as StartupDiagnostics, an as GpuLease, at as DurablePlan, bi as SandboxTerminalAttachOptions, bn as IntelligenceReportWindow, cr as ResumeOptions, d as BackendConfig, dr as RolloutOptions, en as GitBranch, fa as TaskSessionInfo, fi as SandboxResourceUsage, ft as EgressManager, ga as TeeAttestationResponse, gi as SandboxShape, gn as IntelligenceReport, gr as SSHCommandDescriptor, hi as SandboxRuntimeHealth, hn as InstalledTool, ht as EventStreamOptions, in as GitStatus, j as CompletedTurnResult, ja as WriteManyOptions, ji as SearchMatch, jt as FileWriteResult, ka as WriteFileOptions, ki as SandboxTraceOptions, la as TaskSessionChanges, li as SandboxPortBinding, lr as Rollout, ma as TeeAttestationOptions, mi as SandboxRuntimeCapabilities, na as SnapshotOptions, ot as DurablePlanDecisionResult, p as BackendManager, pr as RolloutStartResult, qi as SessionMessage, qn as PromptResult, ra as SnapshotResult, rn as GitDiff, rt as DriverInfo, si as SandboxInfo, sr as RestoreSnapshotOptions, ta as SnapshotInfo, tn as GitCommit, tt as DriveTurnOptions, ua as TaskSessionCommitResult, un as GpuLeaseManager, va as TeePublicKeyResponse, vn as IntelligenceReportCompareTo, vt as ExecResult, xa as TurnDriveResult, xn as JsonValue, xr as SandboxCreateReceipt, yi as SandboxStatus, yr as SandboxConnection, zi as SessionEventStreamOptions } from "./types-_Gn4d93t.js";
|
|
4
5
|
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";
|
|
5
6
|
import { z } from "zod";
|
|
6
7
|
|
|
@@ -402,413 +403,6 @@ declare class InteractiveSessionHandle {
|
|
|
402
403
|
stopLifecycle(options?: InteractiveRequestOptions): Promise<AgentInteractiveSessionStopAcknowledgement>;
|
|
403
404
|
}
|
|
404
405
|
//#endregion
|
|
405
|
-
//#region src/lines.d.ts
|
|
406
|
-
/** The transport a line carries. */
|
|
407
|
-
type LineTransport = "imessage" | "sms" | "whatsapp" | "email";
|
|
408
|
-
/** What a role's members share and may do in the attached sandbox. */
|
|
409
|
-
interface LineRole {
|
|
410
|
-
/** `shared`: the member's turns see other shared members' recent exchanges. `own`: they see none, and nobody sees theirs. */
|
|
411
|
-
context: "own" | "shared";
|
|
412
|
-
/** `chat`: the member's session has no shell, cannot read, search or change files, starts no subagents, and gets none of the backend's MCP servers, connections or hooks. */
|
|
413
|
-
tools: "act" | "chat";
|
|
414
|
-
}
|
|
415
|
-
/**
|
|
416
|
-
* An opt-in, fail-closed role boundary for a general hosted agent. Hub resolves
|
|
417
|
-
* roles from its authenticated member record, never from message text.
|
|
418
|
-
*
|
|
419
|
-
* General access is reserved for owner and manager. Every other role names
|
|
420
|
-
* only its product MCP servers and needs an explicit member backend. Product
|
|
421
|
-
* servers still authorize the enrolled actor; an MCP name grants no authority.
|
|
422
|
-
*/
|
|
423
|
-
interface LineAgentRolePolicy {
|
|
424
|
-
version: 1;
|
|
425
|
-
roles: Record<string, {
|
|
426
|
-
kind: "general";
|
|
427
|
-
} | {
|
|
428
|
-
kind: "scoped";
|
|
429
|
-
mcpServers: string[];
|
|
430
|
-
}>;
|
|
431
|
-
/** Normalized member address -> actor-scoped backend; no shared fallback. */
|
|
432
|
-
members: Record<string, {
|
|
433
|
-
backend: Partial<BackendConfig>;
|
|
434
|
-
}>;
|
|
435
|
-
}
|
|
436
|
-
/** A sender an attachment admits. */
|
|
437
|
-
interface LineMemberSpec {
|
|
438
|
-
/** E.164 number, or the email / Apple ID the sender texts from. */
|
|
439
|
-
address: string;
|
|
440
|
-
/** A role name from the attachment's `roles`. */
|
|
441
|
-
role: string;
|
|
442
|
-
label?: string;
|
|
443
|
-
}
|
|
444
|
-
/** Per-attachment bounds. */
|
|
445
|
-
interface LineLimits {
|
|
446
|
-
turnsPerMemberPerDay: number;
|
|
447
|
-
noticesPerSenderPerDay: number;
|
|
448
|
-
noticesPerLinePerDay: number;
|
|
449
|
-
/**
|
|
450
|
-
* Admit every member turn, text or voice, through this allowance meter
|
|
451
|
-
* (`hub.allowances`) before it runs. A refused turn never runs, and the
|
|
452
|
-
* member gets one notice. When the meter's plan counts dollars on a key
|
|
453
|
-
* resource (`spendResourceType`), Hub runs the turn on a key bound to the
|
|
454
|
-
* payer, so the turn's spend counts toward that payer. A member's box keeps
|
|
455
|
-
* the attribution of the key that created it, so name the meter when an
|
|
456
|
-
* instance line is first attached, or give it a new `keyPrefix`.
|
|
457
|
-
*/
|
|
458
|
-
allowance?: LineAllowance;
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* The allowance subject of a line's members. A shared line counts each
|
|
462
|
-
* member by a hash of their address (`addr:<32 hex>`); a personal line may
|
|
463
|
-
* name its one member instead.
|
|
464
|
-
*/
|
|
465
|
-
interface LineAllowance {
|
|
466
|
-
meter: string;
|
|
467
|
-
/** Personal line only: the allowance member every turn counts for. */
|
|
468
|
-
member?: string;
|
|
469
|
-
/** Whose keys pay for the turn. Default: the member. */
|
|
470
|
-
payer?: string;
|
|
471
|
-
/** Personal line only. Default `member`; the line role never implies `owner`. */
|
|
472
|
-
role?: "owner" | "member";
|
|
473
|
-
/** The payer's tier, which sets the dollar cap. Needs `payer`; default `member`. */
|
|
474
|
-
payerRole?: "owner" | "member";
|
|
475
|
-
/** Sent when a payment would lift the limit, for example with a pay link. */
|
|
476
|
-
paywallNotice?: string;
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
* An HTTPS endpoint that checks each agent answer before Hub sends it.
|
|
480
|
-
*
|
|
481
|
-
* Hub posts `{ ...context, candidate }` with `Authorization: Bearer <secret>`,
|
|
482
|
-
* where `candidate` is the agent's final text. A 2xx JSON response with an
|
|
483
|
-
* `answer` string is the exact body Hub stores and sends, unchanged. A 4xx
|
|
484
|
-
* refuses the answer; a 408, 429, 5xx or timeout is retried. Hub never sends
|
|
485
|
-
* the agent's own text on a gated line, and refuses an answer over 4,000
|
|
486
|
-
* characters instead of cutting it.
|
|
487
|
-
*
|
|
488
|
-
* A gated attachment must reject unknown senders, so no self-enrolled sender
|
|
489
|
-
* can reach a gated answer.
|
|
490
|
-
*/
|
|
491
|
-
interface LineReplyGate {
|
|
492
|
-
url: string;
|
|
493
|
-
/** Sent as a bearer token; write-only, kept in the Hub vault. */
|
|
494
|
-
secret: string;
|
|
495
|
-
/** Up to 8 fixed string fields sent with every candidate. */
|
|
496
|
-
context?: Record<string, string>;
|
|
497
|
-
/** `owner`: answer only declared members with the owner role. Default `members`. */
|
|
498
|
-
audience?: "owner" | "members";
|
|
499
|
-
}
|
|
500
|
-
/** How Hub answers an admitted message. */
|
|
501
|
-
interface LineRespondAgent {
|
|
502
|
-
kind: "agent";
|
|
503
|
-
/** Backend for member sessions. Omit to use the sandbox's default. */
|
|
504
|
-
backend?: Partial<BackendConfig>;
|
|
505
|
-
rolePolicy?: LineAgentRolePolicy;
|
|
506
|
-
gate?: LineReplyGate;
|
|
507
|
-
/** Default true. Set false to disable tapbacks and typing. */
|
|
508
|
-
acknowledgement?: boolean;
|
|
509
|
-
}
|
|
510
|
-
/** The stored respond config; the gate's secret is never returned. */
|
|
511
|
-
interface LineRespondView {
|
|
512
|
-
kind: "agent";
|
|
513
|
-
backend?: Partial<BackendConfig>;
|
|
514
|
-
rolePolicy?: LineAgentRolePolicy;
|
|
515
|
-
gate?: Omit<LineReplyGate, "secret"> & {
|
|
516
|
-
audience: "owner" | "members";
|
|
517
|
-
};
|
|
518
|
-
acknowledgement: boolean;
|
|
519
|
-
}
|
|
520
|
-
interface LineAttachOptions {
|
|
521
|
-
/** A line id (`ln_...`) or an address of one of your lines. */
|
|
522
|
-
number: string;
|
|
523
|
-
/** `personal`: one owner member. `shared`: many members, one thread each. */
|
|
524
|
-
mode: "personal" | "shared";
|
|
525
|
-
members: LineMemberSpec[];
|
|
526
|
-
/** Default `reject`. `guest` (shared mode) admits unknown senders with the own-context `guest` role, so every role in use must be chat-only unless each member has their own sandbox. */
|
|
527
|
-
unknownSenders?: "reject" | "guest";
|
|
528
|
-
/**
|
|
529
|
-
* Default: owner and member share context and act; guest is own-context and chat-only.
|
|
530
|
-
* One sandbox serves every member, and `act` tools can read every member's session in it.
|
|
531
|
-
* A shared attachment that uses an `own`-context role is refused unless every role in use is `chat`,
|
|
532
|
-
* or each member runs in their own sandbox (`client.lines.attach()` with `instance`).
|
|
533
|
-
*/
|
|
534
|
-
roles?: Record<string, LineRole>;
|
|
535
|
-
respond?: LineRespondAgent;
|
|
536
|
-
limits?: Partial<LineLimits>;
|
|
537
|
-
clientReference?: string;
|
|
538
|
-
}
|
|
539
|
-
/** The sandbox options a member's own sandbox is created with. */
|
|
540
|
-
type LineInstanceCreate = Pick<CreateSandboxOptions, "name" | "environment" | "ownerContext" | "capabilities" | "resources" | "egressPolicy" | "idleTimeoutSeconds" | "maxLifetimeSeconds" | "deleteAfterStoppedSeconds"> & {
|
|
541
|
-
metadata?: Record<string, string>;
|
|
542
|
-
};
|
|
543
|
-
/**
|
|
544
|
-
* Each member runs in their own sandbox: your named instance
|
|
545
|
-
* (`client.instances`) under {@link lineInstanceKey}. Hub creates it on the
|
|
546
|
-
* member's first message, resumes it when stopped and replaces it when
|
|
547
|
-
* deleted. It holds none of your secrets and no SSH access.
|
|
548
|
-
*/
|
|
549
|
-
interface LineMemberInstance {
|
|
550
|
-
/** 1-100 letters, digits and `. _ : @ -`; the member's key appends 32 hex characters. */
|
|
551
|
-
keyPrefix: string;
|
|
552
|
-
create?: LineInstanceCreate;
|
|
553
|
-
}
|
|
554
|
-
/** `client.lines.attach()` input: every member in their own sandbox. */
|
|
555
|
-
type LineInstanceAttachOptions = LineAttachOptions & {
|
|
556
|
-
instance: LineMemberInstance;
|
|
557
|
-
};
|
|
558
|
-
/**
|
|
559
|
-
* The instance key that serves one member: `keyPrefix` plus the first 32 hex
|
|
560
|
-
* characters of the SHA-256 of the member's address as Hub stores it (E.164,
|
|
561
|
-
* or a lowercased email). It depends only on the prefix and the address, so a
|
|
562
|
-
* person keeps their box across re-attaches, and your own code can reach it
|
|
563
|
-
* with `client.instances.ensure({ key })`.
|
|
564
|
-
*/
|
|
565
|
-
declare function lineInstanceKey(keyPrefix: string, address: string): Promise<string>;
|
|
566
|
-
/** Fields shared by line creation from an owned Hub connection. */
|
|
567
|
-
interface LineFromConnectionCommon {
|
|
568
|
-
connectionId: string;
|
|
569
|
-
label?: string;
|
|
570
|
-
/** Your idempotency reference: the same value returns the same line. */
|
|
571
|
-
clientReference?: string;
|
|
572
|
-
}
|
|
573
|
-
/** Input to `client.lines.fromConnection()`. Phone connections select an owned number. */
|
|
574
|
-
type LineFromConnectionInput = LineFromConnectionCommon & ({
|
|
575
|
-
transport: "imessage" /** Required for a numbered provider; omit for Inkbox identity. */;
|
|
576
|
-
phoneNumberId?: string;
|
|
577
|
-
} /** Inkbox discovers its mailbox; Resend requires an address on a verified domain. */ | {
|
|
578
|
-
transport: "email";
|
|
579
|
-
address?: string;
|
|
580
|
-
phoneNumberId?: never;
|
|
581
|
-
} | {
|
|
582
|
-
transport: "sms";
|
|
583
|
-
phoneNumberId: string;
|
|
584
|
-
} | {
|
|
585
|
-
transport: "whatsapp";
|
|
586
|
-
phoneNumberId: string;
|
|
587
|
-
});
|
|
588
|
-
/** Fields a member update may change. */
|
|
589
|
-
interface LineSendInput {
|
|
590
|
-
memberId: string;
|
|
591
|
-
text: string;
|
|
592
|
-
idempotencyKey: string;
|
|
593
|
-
/** Optional ISO instant less than seven days away. Workflows own schedules. */
|
|
594
|
-
notBefore?: string;
|
|
595
|
-
}
|
|
596
|
-
interface LineSendReceipt {
|
|
597
|
-
message: LineMessage;
|
|
598
|
-
eligibleAt: string | null;
|
|
599
|
-
expiresAt: string;
|
|
600
|
-
}
|
|
601
|
-
interface LineReminderPreferences {
|
|
602
|
-
enabled: boolean;
|
|
603
|
-
timezone: string | null;
|
|
604
|
-
quietStart: string | null;
|
|
605
|
-
quietEnd: string | null;
|
|
606
|
-
consentMessageId: string | null;
|
|
607
|
-
updatedAt: string | null;
|
|
608
|
-
}
|
|
609
|
-
interface LineMemberPatch {
|
|
610
|
-
role?: string;
|
|
611
|
-
label?: string;
|
|
612
|
-
}
|
|
613
|
-
interface LineMember {
|
|
614
|
-
id: string;
|
|
615
|
-
lineId: string;
|
|
616
|
-
attachmentId: string;
|
|
617
|
-
address: string;
|
|
618
|
-
role: string;
|
|
619
|
-
label: string | null;
|
|
620
|
-
source: "declared" | "guest" | "onboarded";
|
|
621
|
-
/** `invited` until the member's first message, which is their consent. */
|
|
622
|
-
status: "invited" | "active" | "stopped" | "removed";
|
|
623
|
-
createdAt: string;
|
|
624
|
-
}
|
|
625
|
-
interface LineAttachment {
|
|
626
|
-
id: string;
|
|
627
|
-
lineId: string;
|
|
628
|
-
/** The sandbox every member runs in; empty when each member has their own (`instance`). */
|
|
629
|
-
sandboxId: string;
|
|
630
|
-
/** Present when each member runs in their own sandbox. */
|
|
631
|
-
instance?: {
|
|
632
|
-
keyPrefix: string;
|
|
633
|
-
create: LineInstanceCreate;
|
|
634
|
-
};
|
|
635
|
-
mode: "personal" | "shared";
|
|
636
|
-
unknownSenders: "reject" | "guest" | "onboard";
|
|
637
|
-
roles: Record<string, LineRole>;
|
|
638
|
-
respond: LineRespondView;
|
|
639
|
-
limits: LineLimits;
|
|
640
|
-
status: "active" | "suspended" | "detached";
|
|
641
|
-
clientReference: string | null;
|
|
642
|
-
createdAt: string;
|
|
643
|
-
updatedAt: string;
|
|
644
|
-
/** Present on the attach response. */
|
|
645
|
-
members?: LineMember[];
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* Voice on a line. A member calls the line, a ph0ny agent answers, and each
|
|
649
|
-
* question the agent asks with its `ask_workspace` tool runs in the caller's
|
|
650
|
-
* own thread session in the attached sandbox. Hub admits only the
|
|
651
|
-
* attachment's members; voice never onboards a caller.
|
|
652
|
-
*/
|
|
653
|
-
interface LineVoice {
|
|
654
|
-
enabled: boolean;
|
|
655
|
-
/** `enabling` until ph0ny and the provider are both configured. */
|
|
656
|
-
state: "enabling" | "enabled" | "disabled";
|
|
657
|
-
ph0nyConnectionId: string;
|
|
658
|
-
ph0nyAgentId: string;
|
|
659
|
-
updatedAt: string;
|
|
660
|
-
}
|
|
661
|
-
/** Input to `client.lines.enableVoice()`. */
|
|
662
|
-
interface LineVoiceOptions {
|
|
663
|
-
/** Your ph0ny Hub connection (provider `phony`). */
|
|
664
|
-
ph0nyConnectionId: string;
|
|
665
|
-
/** The ph0ny agent that voices the calls; Hub adds its `ask_workspace` tool. */
|
|
666
|
-
ph0nyAgentId: string;
|
|
667
|
-
}
|
|
668
|
-
interface Line {
|
|
669
|
-
id: string;
|
|
670
|
-
transport: LineTransport;
|
|
671
|
-
/** E.164 number, or `@handle` for an identity on Inkbox's shared iMessage router. */
|
|
672
|
-
address: string;
|
|
673
|
-
/** For a shared-router line, the text a person sends to `routerAddress` to reach this line. */
|
|
674
|
-
connect: string | null;
|
|
675
|
-
routerAddress: string | null;
|
|
676
|
-
connectionId: string;
|
|
677
|
-
/** The provider's phone number id, or null for a line without a pinned number. */
|
|
678
|
-
providerNumberId: string | null;
|
|
679
|
-
/** Null means Hub has no verified workspace binding for this line. */
|
|
680
|
-
workspace: {
|
|
681
|
-
resourceType: "workspace";
|
|
682
|
-
resourceId: string;
|
|
683
|
-
} | null;
|
|
684
|
-
label: string | null;
|
|
685
|
-
clientReference: string | null;
|
|
686
|
-
status: "active" | "suspended" | "released";
|
|
687
|
-
voice: LineVoice | null;
|
|
688
|
-
attachment: LineAttachment | null;
|
|
689
|
-
createdAt: string;
|
|
690
|
-
updatedAt: string;
|
|
691
|
-
}
|
|
692
|
-
interface LineThread {
|
|
693
|
-
id: string;
|
|
694
|
-
lineId: string;
|
|
695
|
-
memberId: string;
|
|
696
|
-
sandboxId: string;
|
|
697
|
-
/** The agent session this member's turns run in. */
|
|
698
|
-
sessionId: string;
|
|
699
|
-
lastMessageAt: string | null;
|
|
700
|
-
status: "active" | "closed";
|
|
701
|
-
createdAt: string;
|
|
702
|
-
}
|
|
703
|
-
interface LineMessage {
|
|
704
|
-
id: string;
|
|
705
|
-
threadId: string | null;
|
|
706
|
-
memberId: string | null;
|
|
707
|
-
direction: "in" | "out";
|
|
708
|
-
kind: "agent" | "notice" | "send";
|
|
709
|
-
/** Stable Hub dedupe key for this inbound or outbound event. */
|
|
710
|
-
deliveryKey: string;
|
|
711
|
-
/** The inbound message this outbound row answers. */
|
|
712
|
-
replyToId: string | null;
|
|
713
|
-
/** The sandbox turn receipt, when an inbound row reached a turn. */
|
|
714
|
-
turnId: string | null;
|
|
715
|
-
text: string | null;
|
|
716
|
-
status: string;
|
|
717
|
-
errorCode: string | null;
|
|
718
|
-
/** Latency marks in milliseconds after the message arrived. */
|
|
719
|
-
timeline: Record<string, number | string> | null;
|
|
720
|
-
createdAt: string;
|
|
721
|
-
}
|
|
722
|
-
/** The part of the SDK's HTTP client lines use. */
|
|
723
|
-
interface LinesHttpClient {
|
|
724
|
-
fetch(path: string, options?: RequestInit): Promise<Response>;
|
|
725
|
-
}
|
|
726
|
-
/** `client.lines`: your lines, their members and their threads. */
|
|
727
|
-
declare class LinesClient {
|
|
728
|
-
private readonly http;
|
|
729
|
-
constructor(http: LinesHttpClient);
|
|
730
|
-
/**
|
|
731
|
-
* Create a line from an owned Inkbox or Linq connection, or return the line
|
|
732
|
-
* already pinned to that provider identity. Hub owns inbound routing and
|
|
733
|
-
* never re-keys the connection.
|
|
734
|
-
*/
|
|
735
|
-
fromConnection(input: LineFromConnectionInput): Promise<Line>;
|
|
736
|
-
/** Your lines. `sandboxId` narrows to lines attached to that sandbox. */
|
|
737
|
-
list(options?: {
|
|
738
|
-
sandboxId?: string;
|
|
739
|
-
}): Promise<Line[]>;
|
|
740
|
-
get(lineId: string): Promise<Line>;
|
|
741
|
-
/** A line id for a line id or one of your lines' addresses. */
|
|
742
|
-
resolve(number: string): Promise<string>;
|
|
743
|
-
/**
|
|
744
|
-
* Attach a line so each member runs in their own sandbox. Hub checks that
|
|
745
|
-
* your API key can run sandboxes, and each turn runs as a short-lived child
|
|
746
|
-
* of that key. Attaching again with the same options returns the same
|
|
747
|
-
* attachment. To attach a line to one sandbox, use `box.lines.attach()`.
|
|
748
|
-
*/
|
|
749
|
-
attach(options: LineInstanceAttachOptions): Promise<LineAttachment>;
|
|
750
|
-
/**
|
|
751
|
-
* Detach a line (by id or address), whatever it is attached to. This is
|
|
752
|
-
* the way to detach a line attached with `instance`, which names no
|
|
753
|
-
* sandbox. Each member's own sandbox stays under its instance key. Returns
|
|
754
|
-
* false when the line was not attached.
|
|
755
|
-
*/
|
|
756
|
-
detach(number: string): Promise<boolean>;
|
|
757
|
-
/**
|
|
758
|
-
* Retire a detached line's Hub routing and free its workspace transport slot.
|
|
759
|
-
* Hub refuses an attached or voice-enabled line. A retry by line id returns
|
|
760
|
-
* false; the provider connection and message history remain.
|
|
761
|
-
*/
|
|
762
|
-
release(number: string): Promise<boolean>;
|
|
763
|
-
/**
|
|
764
|
-
* Take calls on a line (Inkbox iMessage lines). Hub points the identity's
|
|
765
|
-
* incoming calls at itself, binds the ph0ny agent to the line and adds the
|
|
766
|
-
* agent's `ask_workspace` tool. Enabling again replaces every credential.
|
|
767
|
-
*/
|
|
768
|
-
enableVoice(lineId: string, options: LineVoiceOptions): Promise<Line>;
|
|
769
|
-
/** Stop taking calls on a line: Hub refuses them and Inkbox rejects them. */
|
|
770
|
-
disableVoice(lineId: string): Promise<Line>;
|
|
771
|
-
/**
|
|
772
|
-
* Queue a proactive message to an active, consenting member. Hub reuses the
|
|
773
|
-
* member's authenticated provider conversation, rechecks STOP immediately
|
|
774
|
-
* before delivery, and defers delivery during the recipient's saved quiet hours.
|
|
775
|
-
*/
|
|
776
|
-
send(lineId: string, input: LineSendInput): Promise<LineSendReceipt>;
|
|
777
|
-
/** Read the native outbox receipt. Queued is not a delivery confirmation. */
|
|
778
|
-
sentMessage(lineId: string, messageId: string): Promise<LineSendReceipt>;
|
|
779
|
-
/** Only the recipient's proven message can enable reminders or choose quiet hours. */
|
|
780
|
-
reminders(lineId: string, memberId: string): Promise<LineReminderPreferences>;
|
|
781
|
-
/** Members of the line's active attachment. */
|
|
782
|
-
members(lineId: string): {
|
|
783
|
-
list(): Promise<LineMember[]>;
|
|
784
|
-
add(spec: LineMemberSpec): Promise<LineMember>;
|
|
785
|
-
update(memberId: string, patch: LineMemberPatch): Promise<LineMember>;
|
|
786
|
-
remove(memberId: string): Promise<void>;
|
|
787
|
-
};
|
|
788
|
-
/** Threads of a line (one per member) and their messages, newest first. */
|
|
789
|
-
threads(lineId: string): {
|
|
790
|
-
list(): Promise<LineThread[]>;
|
|
791
|
-
messages(threadId: string): Promise<LineMessage[]>;
|
|
792
|
-
};
|
|
793
|
-
}
|
|
794
|
-
/** `sandbox.lines`: attach lines to this sandbox. */
|
|
795
|
-
declare class SandboxLines {
|
|
796
|
-
private readonly http;
|
|
797
|
-
private readonly sandboxId;
|
|
798
|
-
private readonly lines;
|
|
799
|
-
constructor(http: LinesHttpClient, sandboxId: string);
|
|
800
|
-
/**
|
|
801
|
-
* Attach a line to this sandbox. Hub checks that your API key can run this
|
|
802
|
-
* sandbox, and each turn runs as a short-lived child of that key. Attaching
|
|
803
|
-
* again with the same options returns the same attachment.
|
|
804
|
-
*/
|
|
805
|
-
attach(options: LineAttachOptions): Promise<LineAttachment>;
|
|
806
|
-
/** Lines attached to this sandbox. */
|
|
807
|
-
list(): Promise<Line[]>;
|
|
808
|
-
/** Detach a line (by id or address) from this sandbox. */
|
|
809
|
-
detach(number: string): Promise<void>;
|
|
810
|
-
}
|
|
811
|
-
//#endregion
|
|
812
406
|
//#region src/session.d.ts
|
|
813
407
|
type RawEvidenceExport = {
|
|
814
408
|
status: "captured";
|
|
@@ -2594,4 +2188,4 @@ declare class SandboxInstance {
|
|
|
2594
2188
|
}): Promise<DurablePlanDecisionResult>;
|
|
2595
2189
|
}
|
|
2596
2190
|
//#endregion
|
|
2597
|
-
export {
|
|
2191
|
+
export { SANDBOX_MCP_SERVER_NAME as $, InteractiveSessionStartResult as A, BrowserInteractiveSessionController as B, InteractiveSessionHandle as C, InteractiveSessionInfo as D, InteractiveSessionIncarnationId as E, InteractiveTerminalCapture as F, InteractiveSessionControllerTransport as G, InteractiveAttachRequest as H, InteractiveTerminalFrameLog as I, SandboxInteractionResolution as J, SandboxInteractionCommandResult as K, InteractiveTerminalMetadata as L, InterruptResult as M, RespondToPermissionOptions as N, InteractiveSessionRef as O, agentInteractiveSessionPromptRequestDigest as P, CONTROL_PLANE_MCP_SERVER_NAME as Q, createInteractiveTerminalCapture as R, InteractiveSessionControlClaim as S, InteractiveSessionHost as T, InteractiveSessionController as U, BrowserInteractiveSessionControllerOptions as V, InteractiveSessionControllerOptions as W, BuildControlPlaneMcpConfigOptions as X, SandboxInteractionResult as Y, BuildSandboxMcpConfigOptions as Z, RawEvidenceExport as _, WorkspaceImagePublishRequestOptions as a, InteractiveControlClaimRequest as b, TraceExportFormat as c, buildTraceExportPayload as d, SandboxMcpConfig as et, exportTraceBundle as f, NativeRolloutExport as g, SandboxTaskSession as h, WorkspaceImagePublishInput as i, buildSandboxMcpConfig as it, InteractiveStopCommand as j, InteractiveSessionStartOptions as k, TraceExportResult as l, toOtelJson as m, HttpClient as n, SandboxMcpServerEntry as nt, WorkspaceImagePublishResult as o, otelTraceIdForTangleTrace as p, SandboxInteractionConflict as q, SandboxInstance as r, buildControlPlaneMcpConfig as rt, WorkspaceImages as s, ForkAcknowledgement as t, SandboxMcpEndpoint as tt, TraceExportSink as u, SandboxSession as v, InteractiveSessionHandleOptions as w, InteractivePromptCommand as x, AgentInteractiveTerminalSession$1 as y, createInteractiveTerminalSession as z };
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as ITangleJobsAbi, d as SandboxCreateResponseParamTypes, f as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as JsonResponseParamTypes, n as JOB_SANDBOX_CREATE, o as TangleSandboxClientConfig, r as JOB_SANDBOX_DELETE, s as AgentSandboxBlueprintAbi, t as TangleSandboxClient, u as SandboxCreateParamTypes } from "../index-BitiSmBp.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-
|
|
1
|
+
import { a as TANGLE_JOBS_CONTRACT, c as JsonResponseParamTypes, d as SandboxIdParamTypes, i as TANGLE_CHAIN_ID, l as SandboxCreateParamTypes, n as JOB_SANDBOX_CREATE, o as AgentSandboxBlueprintAbi, r as JOB_SANDBOX_DELETE, s as ITangleJobsAbi, t as TangleSandboxClient, u as SandboxCreateResponseParamTypes } from "../tangle-DCjIsZI0.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as parseErrorResponse } from "./errors-BkhlSDW-.js";
|
|
2
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
2
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-B2kuUBn6.js";
|
|
3
3
|
//#region src/tangle/abi.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tangle Contract ABI Definitions
|
|
@@ -1,8 +1,64 @@
|
|
|
1
|
-
import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-
|
|
1
|
+
import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-Bf2stNDX.js";
|
|
2
2
|
import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
|
|
3
3
|
import { AgentExactRunControlRef, AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, AgentRuntimeAttachments, HarnessType, ReasoningEffort, SandboxSizePreset } from "@tangle-network/agent-interface";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
|
+
//#region src/managed-process.d.ts
|
|
7
|
+
interface ManagedProcessSpec {
|
|
8
|
+
id: string;
|
|
9
|
+
executable: string;
|
|
10
|
+
args: string[];
|
|
11
|
+
cwd: string;
|
|
12
|
+
/** Names in the sandbox's public environment; secret values are never recorded here. */
|
|
13
|
+
envKeys: string[];
|
|
14
|
+
/** Absolute deadline for all attempts together. Reconnecting never extends it. */
|
|
15
|
+
deadlineAt: number;
|
|
16
|
+
restart: {
|
|
17
|
+
maxAttempts: number;
|
|
18
|
+
initialBackoffMs: number;
|
|
19
|
+
maxBackoffMs: number;
|
|
20
|
+
exitCodes: number[]; /** The command must reconcile its own external effects before doing more work. */
|
|
21
|
+
afterInterruption: boolean;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
type ManagedProcessState = "queued" | "running" | "retrying" | "stopping" | "succeeded" | "failed" | "cancelled" | "expired";
|
|
25
|
+
interface ManagedProcessRecord {
|
|
26
|
+
schema: 1;
|
|
27
|
+
environmentId: string;
|
|
28
|
+
workspaceRoot: string;
|
|
29
|
+
spec: ManagedProcessSpec;
|
|
30
|
+
digest: string;
|
|
31
|
+
state: ManagedProcessState;
|
|
32
|
+
attempt: number;
|
|
33
|
+
acceptedAt: number;
|
|
34
|
+
updatedAt: number;
|
|
35
|
+
nextAttemptAt?: number;
|
|
36
|
+
pid?: number;
|
|
37
|
+
lastExitCode?: number;
|
|
38
|
+
interrupted?: boolean;
|
|
39
|
+
stopReason?: "cancelled" | "expired" | "failed";
|
|
40
|
+
failureCode?: "interrupted" | "attempts_exhausted" | "process_exit" | "launch_failed";
|
|
41
|
+
}
|
|
42
|
+
interface ManagedProcessOptions {
|
|
43
|
+
sessionId?: string;
|
|
44
|
+
}
|
|
45
|
+
interface ManagedProcessJobs {
|
|
46
|
+
/** Returns after durable admission. No caller process or open stream owns execution. */
|
|
47
|
+
submit(spec: ManagedProcessSpec, options?: ManagedProcessOptions): Promise<ManagedProcessRecord>;
|
|
48
|
+
get(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
49
|
+
/** `stopping` means cancellation is recorded but physical termination is not yet confirmed. */
|
|
50
|
+
cancel(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
51
|
+
}
|
|
52
|
+
declare class ManagedProcessClient implements ManagedProcessJobs {
|
|
53
|
+
private readonly request;
|
|
54
|
+
private readonly environmentId;
|
|
55
|
+
constructor(request: (path: string, init: RequestInit) => Promise<Response>, environmentId: string);
|
|
56
|
+
private call;
|
|
57
|
+
submit(spec: ManagedProcessSpec, options?: ManagedProcessOptions): Promise<ManagedProcessRecord>;
|
|
58
|
+
get(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
59
|
+
cancel(id: string, options?: ManagedProcessOptions): Promise<ManagedProcessRecord | null>;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
6
62
|
//#region ../../../packages/runtime-contracts/dist/backend-types.d.ts
|
|
7
63
|
/**
|
|
8
64
|
* Canonical harnesses this repo ships no provider adapter for.
|
|
@@ -6055,6 +6111,8 @@ interface Process {
|
|
|
6055
6111
|
* ```
|
|
6056
6112
|
*/
|
|
6057
6113
|
interface ProcessManager {
|
|
6114
|
+
/** Persistent, restartable processes within this sandbox. Commands have at-least-once semantics. */
|
|
6115
|
+
readonly jobs: ManagedProcessJobs;
|
|
6058
6116
|
/**
|
|
6059
6117
|
* Detect the workspace project and idempotently start its development server.
|
|
6060
6118
|
* The runtime owns installation, process tracking, port assignment, and
|
|
@@ -6865,4 +6923,4 @@ interface CodeExecutionOptions {
|
|
|
6865
6923
|
idempotencyKey?: string;
|
|
6866
6924
|
}
|
|
6867
6925
|
//#endregion
|
|
6868
|
-
export { DownloadOptions as $, SnapshotDeleteOutcome as $i, PublicTemplateVersionInfo as $n, SandboxFleetTraceExport as $r, GitAuth as $t, CommitTaskSessionOptions as A, WriteManyFile as Aa, SandboxUser as Ai, NetworkManager as An, SandboxFleetArtifactSpec as Ar, FileUsageResult as At, CreateSandboxOptions as B, parseBackendType as Ba, SessionExecutionInfo as Bi, ProcessLogEntry as Bn, SandboxFleetMachineRecord as Br, FleetDriveTurnOutcome as Bt, BranchOptions as C, UploadOptions as Ca, SandboxTerminalManager as Ci, ListOptions as Cn, SandboxDeleteOptions as Cr, FileReadResult as Ct, CodeExecutionResult as D, WaitForRolloutOptions as Da, SandboxTraceEvent as Di, McpServerConfig as Dn, SandboxFleetAgent as Dr, FileTreeOptions as Dt, CodeExecutionOptions as E, WaitForOptions as Ea, SandboxTraceBundle as Ei, MAX_EGRESS_DENIALS_LIMIT as En, SandboxEvent as Er, FileTreeFile as Et, CreateIntelligenceReportOptions as F, BatchSidecarGroup as Fa, SendSessionMessageOptions as Fi, PreviewLinkManager as Fn, SandboxFleetDriverTimings as Fr, FleetAgentRunStatus as Ft, DeleteMatchingSandboxesFilter as G, SessionInterruptOptions as Gi, PromptInputPart as Gn, SandboxFleetParent as Gr, FleetPromptDispatchOptions as Gt, CreateTaskSessionOptions as H, SessionFailureReason as Hi, ProcessSignal as Hn, SandboxFleetManifest as Hr, FleetExecDispatchOptions as Ht, CreateRequestOptions as I, BatchTaskUsage as Ia, SendSessionMessageRequest as Ii, PreviewLinkWaitOptions as In, SandboxFleetInfo as Ir, FleetDispatchCancelResult as It, DeleteOptions as J, SessionMessageAdmission as Ji, ProvisionEvent as Jn, SandboxFleetProfileRef as Jr, FleetRunOptions as Jt, DeleteMatchingSandboxesOptions as K, SessionListOptions as Ki, PromptOptions as Kn, SandboxFleetPlacement as Kr, FleetPromptDispatchResult as Kt, CreateSandboxFleetOptions as L, PublicBatchRunRequest as La, SentSessionMessage as Li, Process as Ln, SandboxFleetIntelligenceEnvelope as Lr, FleetDispatchResultBuffer as Lt, ConversationTurnOptions as M, BatchBackendStats as Ma, SearchOptions as Mi, PermissionLevel as Mn, SandboxFleetDispatchFailureClass as Mr, FleetAgentId as Mt, ConversationTurnResult as N, BatchEvent as Na, SecretInfo as Ni, PermissionsManager as Nn, SandboxFleetDispatchResponse as Nr, FleetAgentPlacement as Nt, CodeLanguage as O, WorkspaceOperationLookup as Oa, SandboxTraceExport as Oi, MkdirOptions as On, SandboxFleetAgentSpec as Or, FileTreeResult as Ot, CreateGpuLeaseOptions as P, BatchEventDataMap as Pa, SecretsManager as Pi, PreviewLinkInfo as Pn, SandboxFleetDriverCapability as Pr, FleetAgentResult as Pt, DispatchedSession as Q, SnapshotDeleteAcknowledgement as Qi, PublicTemplateInfo as Qn, SandboxFleetTraceEvent as Qr, GPU_LEASE_PROVIDER_NAMES as Qt, CreateSandboxFleetTokenOptions as R, ALL_BACKEND_TYPES as Ra, SessionBackendCredentials as Ri, ProcessInfo as Rn, SandboxFleetMachine as Rr, FleetDispatchResultBufferOptions as Rt, BatchTaskResult as S, UpdateUserOptions as Sa, SandboxTerminalInfo as Si, ListMessagesOptions as Sn, SandboxDeleteAcknowledgement as Sr, FileReadError as St, ChunkedUploadResult as T, UsageInfo as Ta, SandboxTerminals as Ti, ListSandboxOptions as Tn, SandboxEnvironment as Tr, FileSystem as Tt, DeleteMatchingSandboxOutcome as U, SessionForkOptions as Ui, ProcessSpawnOptions as Un, SandboxFleetManifestMachine as Ur, FleetExecDispatchResult as Ut, CreateSessionOptions as V, SessionExecutionStatus as Vi, ProcessManager as Vn, SandboxFleetMachineSpec as Vr, FleetDriveTurnRequest as Vt, DeleteMatchingSandboxResult as W, SessionInfo as Wi, ProcessStatus as Wn, SandboxFleetOperationsSummary as Wr, FleetMachineId as Wt, DirectoryPermission as X, SessionResultOptions as Xi, ProvisionStatus as Xn, SandboxFleetToken as Xr, ForkIdempotency as Xt, DevServerInfo as Y, SessionMessageInputPart as Yi, ProvisionResult as Yn, SandboxFleetSpend as Yr, ForkCounts as Yt, DispatchPromptOptions as Z, SessionStatus as Zi, ProvisionStep as Zn, SandboxFleetTraceBundle as Zr, ForkLookupOptions as Zt, BatchBackend as _, TeePublicKey as _a, SandboxShapePreset as _i, IntelligenceReportBudget as _n, SSHCredentials as _r, ExecOptions as _t, AgentQuestionRequest as a, StartupDiagnostics as aa, SandboxFleetWorkspaceSnapshotResult as ai, GpuLease as an, ReconcileSandboxFleetsResult as ar, DurablePlan as at, BatchRunRequest as b, TokenUsage as ba, SandboxTerminalAttachOptions as bi, IntelligenceReportWindow as bn, SandboxCreateOutcome as br, FileReadBatchOptions as bt, AttachGpuLeaseOptions as c, SubscriptionInfo as ca, SandboxIntelligenceEnvelope as ci, GpuLeaseExecOptions as cn, ResumeOptions as cr, EffectiveBackend as ct, BackendConfig as d, TaskSessionFileChange as da, SandboxRemovalState as di, GpuLeaseProviderName as dn, RolloutOptions as dr, EgressDenial as dt, SnapshotIdempotency as ea, SandboxFleetTraceOptions as ei, GitBranch as en, PublishPublicTemplateOptions as er, DownloadProgress as et, BackendInfo as f, TaskSessionInfo as fa, SandboxResourceUsage as fi, GpuLeaseStatus as fn, RolloutScorer as fr, EgressManager as ft, BackendStatus as g, TeeAttestationResponse as ga, SandboxShape as gi, IntelligenceReport as gn, SSHCommandDescriptor as gr, ExactProcessSpawnOptions as gt, BackendRuntimeConfigUpdate as h, TeeAttestationReport as ha, SandboxRuntimeHealth as hi, InstalledTool as hn, RolloutTurnPart as hr, EventStreamOptions as ht, AgentApprovalRequirement as i, SshKeysManager as ia, SandboxFleetWorkspaceRestoreResult as ii, GitStatus as in, ReconcileSandboxFleetsOptions as ir, DriverType as it, CompletedTurnResult as j, WriteManyOptions as ja, SearchMatch as ji, NonHostAgentDriverConfig as jn, SandboxFleetCostEstimate as jr, FileWriteResult as jt, CodeResultPart as k, WriteFileOptions as ka, SandboxTraceOptions as ki, NetworkConfig as kn, SandboxFleetArtifact as kr, FileUsageOptions as kt, AttachSandboxFleetMachineOptions as l, TaskSessionChanges as la, SandboxPortBinding as li, GpuLeaseExecResult as ln, Rollout as lr, EffectiveBackendProfile as lt, BackendMcpServerStatus as m, TeeAttestationOptions as ma, SandboxRuntimeCapabilities as mi, HostAgentRuntimeBackend as mn, RolloutStatus as mr, EnsureDevServerOptions as mt, AccessPolicyRule as n, SnapshotOptions as na, SandboxFleetWorkspace as ni, GitConfig as nn, ReapExpiredSandboxFleetsOptions as nr, DriverConfig as nt, AgentRunStatus as o, StartupOperation as oa, SandboxIdentity as oi, GpuLeaseBilling as on, RenameOptions as or, DurablePlanDecisionResult as ot, BackendManager as p, TaskSessionProfile as pa, SandboxResources as pi, HostAgentDriverConfig as pn, RolloutStartResult as pr, EgressPolicy as pt, DeleteMatchingSandboxesResult as q, SessionMessage as qi, PromptResult as qn, SandboxFleetPolicy as qr, FleetRunEvent as qt, AddUserOptions as r, SnapshotResult as ra, SandboxFleetWorkspaceReconcileResult as ri, GitDiff as rn, ReapExpiredSandboxFleetsResult as rr, DriverInfo as rt, AgentToolInvocation as s, StorageConfig as sa, SandboxInfo as si, GpuLeaseCommandResult as sn, RestoreSnapshotOptions as sr, DurablePlanSnapshot as st, AcceleratorKind as t, SnapshotInfo as ta, SandboxFleetUsage as ti, GitCommit as tn, PublishPublicTemplateVersionOptions as tr, DriveTurnOptions as tt, BackendCapabilities as u, TaskSessionCommitResult as ua, SandboxPortPreviewLink as ui, GpuLeaseManager as un, RolloutChildResult as ur, EffectiveBackendSource as ut, BatchResult as v, TeePublicKeyResponse as va, SandboxShapesInfo as vi, IntelligenceReportCompareTo as vn, SandboxConfig as vr, ExecResult as vt, ChunkedUploadOptions as w, UploadProgress as wa, SandboxTerminalRequestOptions as wi, ListSandboxFleetOptions as wn, SandboxDeleteOutcome as wr, FileRenameResult as wt, BatchTask as x, TurnDriveResult as xa, SandboxTerminalCreateOptions as xi, JsonValue as xn, SandboxCreateReceipt as xr, FileReadBatchResult as xt, BatchRunOptions as y, TokenRefreshHandler as ya, SandboxStatus as yi, IntelligenceReportSubjectType as yn, SandboxConnection as yr, FileInfo as yt, CreateSandboxFleetWithCoordinatorOptions as z, BackendType as za, SessionEventStreamOptions as zi, ProcessListOptions as zn, SandboxFleetMachineMeteredUsage as zr, FleetDispatchStreamOptions as zt };
|
|
6926
|
+
export { DownloadOptions as $, SnapshotDeleteOutcome as $i, PublicTemplateVersionInfo as $n, SandboxFleetTraceExport as $r, GitAuth as $t, CommitTaskSessionOptions as A, WriteManyFile as Aa, SandboxUser as Ai, NetworkManager as An, SandboxFleetArtifactSpec as Ar, FileUsageResult as At, CreateSandboxOptions as B, parseBackendType as Ba, SessionExecutionInfo as Bi, ProcessLogEntry as Bn, SandboxFleetMachineRecord as Br, FleetDriveTurnOutcome as Bt, BranchOptions as C, UploadOptions as Ca, SandboxTerminalManager as Ci, ListOptions as Cn, SandboxDeleteOptions as Cr, FileReadResult as Ct, CodeExecutionResult as D, WaitForRolloutOptions as Da, SandboxTraceEvent as Di, McpServerConfig as Dn, SandboxFleetAgent as Dr, FileTreeOptions as Dt, CodeExecutionOptions as E, WaitForOptions as Ea, SandboxTraceBundle as Ei, MAX_EGRESS_DENIALS_LIMIT as En, SandboxEvent as Er, FileTreeFile as Et, CreateIntelligenceReportOptions as F, BatchSidecarGroup as Fa, SendSessionMessageOptions as Fi, PreviewLinkManager as Fn, SandboxFleetDriverTimings as Fr, FleetAgentRunStatus as Ft, DeleteMatchingSandboxesFilter as G, ManagedProcessSpec as Ga, SessionInterruptOptions as Gi, PromptInputPart as Gn, SandboxFleetParent as Gr, FleetPromptDispatchOptions as Gt, CreateTaskSessionOptions as H, ManagedProcessJobs as Ha, SessionFailureReason as Hi, ProcessSignal as Hn, SandboxFleetManifest as Hr, FleetExecDispatchOptions as Ht, CreateRequestOptions as I, BatchTaskUsage as Ia, SendSessionMessageRequest as Ii, PreviewLinkWaitOptions as In, SandboxFleetInfo as Ir, FleetDispatchCancelResult as It, DeleteOptions as J, SessionMessageAdmission as Ji, ProvisionEvent as Jn, SandboxFleetProfileRef as Jr, FleetRunOptions as Jt, DeleteMatchingSandboxesOptions as K, ManagedProcessState as Ka, SessionListOptions as Ki, PromptOptions as Kn, SandboxFleetPlacement as Kr, FleetPromptDispatchResult as Kt, CreateSandboxFleetOptions as L, PublicBatchRunRequest as La, SentSessionMessage as Li, Process as Ln, SandboxFleetIntelligenceEnvelope as Lr, FleetDispatchResultBuffer as Lt, ConversationTurnOptions as M, BatchBackendStats as Ma, SearchOptions as Mi, PermissionLevel as Mn, SandboxFleetDispatchFailureClass as Mr, FleetAgentId as Mt, ConversationTurnResult as N, BatchEvent as Na, SecretInfo as Ni, PermissionsManager as Nn, SandboxFleetDispatchResponse as Nr, FleetAgentPlacement as Nt, CodeLanguage as O, WorkspaceOperationLookup as Oa, SandboxTraceExport as Oi, MkdirOptions as On, SandboxFleetAgentSpec as Or, FileTreeResult as Ot, CreateGpuLeaseOptions as P, BatchEventDataMap as Pa, SecretsManager as Pi, PreviewLinkInfo as Pn, SandboxFleetDriverCapability as Pr, FleetAgentResult as Pt, DispatchedSession as Q, SnapshotDeleteAcknowledgement as Qi, PublicTemplateInfo as Qn, SandboxFleetTraceEvent as Qr, GPU_LEASE_PROVIDER_NAMES as Qt, CreateSandboxFleetTokenOptions as R, ALL_BACKEND_TYPES as Ra, SessionBackendCredentials as Ri, ProcessInfo as Rn, SandboxFleetMachine as Rr, FleetDispatchResultBufferOptions as Rt, BatchTaskResult as S, UpdateUserOptions as Sa, SandboxTerminalInfo as Si, ListMessagesOptions as Sn, SandboxDeleteAcknowledgement as Sr, FileReadError as St, ChunkedUploadResult as T, UsageInfo as Ta, SandboxTerminals as Ti, ListSandboxOptions as Tn, SandboxEnvironment as Tr, FileSystem as Tt, DeleteMatchingSandboxOutcome as U, ManagedProcessOptions as Ua, SessionForkOptions as Ui, ProcessSpawnOptions as Un, SandboxFleetManifestMachine as Ur, FleetExecDispatchResult as Ut, CreateSessionOptions as V, ManagedProcessClient as Va, SessionExecutionStatus as Vi, ProcessManager as Vn, SandboxFleetMachineSpec as Vr, FleetDriveTurnRequest as Vt, DeleteMatchingSandboxResult as W, ManagedProcessRecord as Wa, SessionInfo as Wi, ProcessStatus as Wn, SandboxFleetOperationsSummary as Wr, FleetMachineId as Wt, DirectoryPermission as X, SessionResultOptions as Xi, ProvisionStatus as Xn, SandboxFleetToken as Xr, ForkIdempotency as Xt, DevServerInfo as Y, SessionMessageInputPart as Yi, ProvisionResult as Yn, SandboxFleetSpend as Yr, ForkCounts as Yt, DispatchPromptOptions as Z, SessionStatus as Zi, ProvisionStep as Zn, SandboxFleetTraceBundle as Zr, ForkLookupOptions as Zt, BatchBackend as _, TeePublicKey as _a, SandboxShapePreset as _i, IntelligenceReportBudget as _n, SSHCredentials as _r, ExecOptions as _t, AgentQuestionRequest as a, StartupDiagnostics as aa, SandboxFleetWorkspaceSnapshotResult as ai, GpuLease as an, ReconcileSandboxFleetsResult as ar, DurablePlan as at, BatchRunRequest as b, TokenUsage as ba, SandboxTerminalAttachOptions as bi, IntelligenceReportWindow as bn, SandboxCreateOutcome as br, FileReadBatchOptions as bt, AttachGpuLeaseOptions as c, SubscriptionInfo as ca, SandboxIntelligenceEnvelope as ci, GpuLeaseExecOptions as cn, ResumeOptions as cr, EffectiveBackend as ct, BackendConfig as d, TaskSessionFileChange as da, SandboxRemovalState as di, GpuLeaseProviderName as dn, RolloutOptions as dr, EgressDenial as dt, SnapshotIdempotency as ea, SandboxFleetTraceOptions as ei, GitBranch as en, PublishPublicTemplateOptions as er, DownloadProgress as et, BackendInfo as f, TaskSessionInfo as fa, SandboxResourceUsage as fi, GpuLeaseStatus as fn, RolloutScorer as fr, EgressManager as ft, BackendStatus as g, TeeAttestationResponse as ga, SandboxShape as gi, IntelligenceReport as gn, SSHCommandDescriptor as gr, ExactProcessSpawnOptions as gt, BackendRuntimeConfigUpdate as h, TeeAttestationReport as ha, SandboxRuntimeHealth as hi, InstalledTool as hn, RolloutTurnPart as hr, EventStreamOptions as ht, AgentApprovalRequirement as i, SshKeysManager as ia, SandboxFleetWorkspaceRestoreResult as ii, GitStatus as in, ReconcileSandboxFleetsOptions as ir, DriverType as it, CompletedTurnResult as j, WriteManyOptions as ja, SearchMatch as ji, NonHostAgentDriverConfig as jn, SandboxFleetCostEstimate as jr, FileWriteResult as jt, CodeResultPart as k, WriteFileOptions as ka, SandboxTraceOptions as ki, NetworkConfig as kn, SandboxFleetArtifact as kr, FileUsageOptions as kt, AttachSandboxFleetMachineOptions as l, TaskSessionChanges as la, SandboxPortBinding as li, GpuLeaseExecResult as ln, Rollout as lr, EffectiveBackendProfile as lt, BackendMcpServerStatus as m, TeeAttestationOptions as ma, SandboxRuntimeCapabilities as mi, HostAgentRuntimeBackend as mn, RolloutStatus as mr, EnsureDevServerOptions as mt, AccessPolicyRule as n, SnapshotOptions as na, SandboxFleetWorkspace as ni, GitConfig as nn, ReapExpiredSandboxFleetsOptions as nr, DriverConfig as nt, AgentRunStatus as o, StartupOperation as oa, SandboxIdentity as oi, GpuLeaseBilling as on, RenameOptions as or, DurablePlanDecisionResult as ot, BackendManager as p, TaskSessionProfile as pa, SandboxResources as pi, HostAgentDriverConfig as pn, RolloutStartResult as pr, EgressPolicy as pt, DeleteMatchingSandboxesResult as q, SessionMessage as qi, PromptResult as qn, SandboxFleetPolicy as qr, FleetRunEvent as qt, AddUserOptions as r, SnapshotResult as ra, SandboxFleetWorkspaceReconcileResult as ri, GitDiff as rn, ReapExpiredSandboxFleetsResult as rr, DriverInfo as rt, AgentToolInvocation as s, StorageConfig as sa, SandboxInfo as si, GpuLeaseCommandResult as sn, RestoreSnapshotOptions as sr, DurablePlanSnapshot as st, AcceleratorKind as t, SnapshotInfo as ta, SandboxFleetUsage as ti, GitCommit as tn, PublishPublicTemplateVersionOptions as tr, DriveTurnOptions as tt, BackendCapabilities as u, TaskSessionCommitResult as ua, SandboxPortPreviewLink as ui, GpuLeaseManager as un, RolloutChildResult as ur, EffectiveBackendSource as ut, BatchResult as v, TeePublicKeyResponse as va, SandboxShapesInfo as vi, IntelligenceReportCompareTo as vn, SandboxConfig as vr, ExecResult as vt, ChunkedUploadOptions as w, UploadProgress as wa, SandboxTerminalRequestOptions as wi, ListSandboxFleetOptions as wn, SandboxDeleteOutcome as wr, FileRenameResult as wt, BatchTask as x, TurnDriveResult as xa, SandboxTerminalCreateOptions as xi, JsonValue as xn, SandboxCreateReceipt as xr, FileReadBatchResult as xt, BatchRunOptions as y, TokenRefreshHandler as ya, SandboxStatus as yi, IntelligenceReportSubjectType as yn, SandboxConnection as yr, FileInfo as yt, CreateSandboxFleetWithCoordinatorOptions as z, BackendType as za, SessionEventStreamOptions as zi, ProcessListOptions as zn, SandboxFleetMachineMeteredUsage as zr, FleetDispatchStreamOptions as zt };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.3",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -68,6 +68,11 @@
|
|
|
68
68
|
"import": "./dist/agent/preview.js",
|
|
69
69
|
"types": "./dist/agent/preview.d.ts",
|
|
70
70
|
"default": "./dist/agent/preview.js"
|
|
71
|
+
},
|
|
72
|
+
"./lines": {
|
|
73
|
+
"import": "./dist/lines.js",
|
|
74
|
+
"types": "./dist/lines.d.ts",
|
|
75
|
+
"default": "./dist/lines.js"
|
|
71
76
|
}
|
|
72
77
|
},
|
|
73
78
|
"files": [
|
|
@@ -102,7 +107,7 @@
|
|
|
102
107
|
"dependencies": {
|
|
103
108
|
"@tangle-network/agent-core": "^0.9.6",
|
|
104
109
|
"@tangle-network/agent-interface": "^2.13.0",
|
|
105
|
-
"zod": "4.5
|
|
110
|
+
"zod": "4.6.5"
|
|
106
111
|
},
|
|
107
112
|
"peerDependencies": {
|
|
108
113
|
"@mastra/core": "^1.36.0",
|
|
@@ -143,9 +148,9 @@
|
|
|
143
148
|
"ws": "^8.20.0",
|
|
144
149
|
"yjs": "13.6.30",
|
|
145
150
|
"@repo/shared": "0.0.0",
|
|
146
|
-
"@tangle-network/agent-profile-materialize": "0.20.
|
|
147
|
-
"@tangle-network/cli-agent-registry": "0.4.
|
|
148
|
-
"@tangle-network/runtime-contracts": "0.10.
|
|
151
|
+
"@tangle-network/agent-profile-materialize": "0.20.5",
|
|
152
|
+
"@tangle-network/cli-agent-registry": "0.4.14",
|
|
153
|
+
"@tangle-network/runtime-contracts": "0.10.1",
|
|
149
154
|
"@tangle-network/sse-core": "0.0.0"
|
|
150
155
|
},
|
|
151
156
|
"scripts": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|