@tangle-network/sandbox 0.60.2 → 0.60.6

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.
Files changed (52) hide show
  1. package/README.md +2 -0
  2. package/dist/agent/index.d.ts +4 -4
  3. package/dist/agent/index.js +5 -5
  4. package/dist/agent/preview.d.ts +1 -1
  5. package/dist/agent/preview.js +2 -2
  6. package/dist/{agent-run-outcome-BDxby7zK.d.ts → agent-run-outcome-B7w8HpoL.d.ts} +1 -1
  7. package/dist/auth/index.d.ts +2 -2
  8. package/dist/auth/index.js +1 -1
  9. package/dist/{browser-interactive-control-controller-C2qVGzQz.d.ts → browser-interactive-control-controller-C-3MDol8.d.ts} +1 -1
  10. package/dist/{client-BFilDKO8.d.ts → client-AXO7ykS7.d.ts} +5 -5
  11. package/dist/{client-p2T45dAv.js → client-qSyPPokh.js} +84 -355
  12. package/dist/collaboration/index.d.ts +1 -1
  13. package/dist/collaboration/index.js +1 -1
  14. package/dist/{collaboration-C1JAl5kE.js → collaboration-B7QeBrFQ.js} +1 -1
  15. package/dist/core.d.ts +6 -6
  16. package/dist/core.js +4 -4
  17. package/dist/{errors-CKl_BSlD.js → errors-D1JIX7Jm.js} +13 -1
  18. package/dist/{index-DGuTeptP.d.ts → index-BPt77jdR.d.ts} +88 -3
  19. package/dist/index.d.ts +13 -13
  20. package/dist/index.js +7 -7
  21. package/dist/intelligence/index.js +1 -1
  22. package/dist/interactive-control.d.ts +1 -1
  23. package/dist/{interactive-controller-DV1HT3NR.js → interactive-controller-f_ePJqoh.js} +14 -8
  24. package/dist/{interactive-controller-Dghv9yMk.d.ts → interactive-controller-iYddZt8b.d.ts} +2 -2
  25. package/dist/{line-application-DJYY1v8U.js → line-application-C2SuT1zK.js} +24 -0
  26. package/dist/{lines-T2D6xHHx.d.ts → lines-ggdLY7xy.d.ts} +37 -12
  27. package/dist/lines.d.ts +2 -2
  28. package/dist/lines.js +4 -5
  29. package/dist/{local-cli-auth-CdIM0B6p.js → local-cli-auth-D4T4wi9r.js} +1 -1
  30. package/dist/{mcp-local-BSvH4yAU.js → mcp-local-DjryqUiY.js} +1 -1
  31. package/dist/{preview-ZaYvOOXz.d.ts → preview-CAiSrOuZ.d.ts} +3 -3
  32. package/dist/runtime.d.ts +6 -6
  33. package/dist/runtime.js +2 -2
  34. package/dist/{sandbox-DeE2MDx9.js → sandbox-DF2Z1lqW.js} +128 -558
  35. package/dist/{sandbox-LRvBzGGm.d.ts → sandbox-DsJ3ZJdA.d.ts} +5 -5
  36. package/dist/secp256k1-CyKOxB5J.js +2619 -0
  37. package/dist/session-gateway/index.d.ts +31 -25
  38. package/dist/session-gateway/index.js +75 -79
  39. package/dist/tangle/index.d.ts +2 -2
  40. package/dist/tangle/index.js +2 -2
  41. package/dist/tangle-CDtwGZtf.js +2847 -0
  42. package/dist/{types-C9w6MdZB.d.ts → types-BbgO-4f8.d.ts} +6 -2
  43. package/dist/utils-ChcSLv53.js +170 -0
  44. package/package.json +8 -7
  45. package/dist/tangle-SNShua9T.js +0 -1146
  46. /package/dist/{cli-auth-bundle-gs7xEnA1.d.ts → cli-auth-bundle-CTia4WWs.d.ts} +0 -0
  47. /package/dist/{cli-auth-bundle-ChOdvrjd.js → cli-auth-bundle-DzbqR2nA.js} +0 -0
  48. /package/dist/{errors-C6dll8Qf.d.ts → errors-DS32ViPj.d.ts} +0 -0
  49. /package/dist/{index-BKhRnV0i.d.ts → index-BXcL8P-U.d.ts} +0 -0
  50. /package/dist/{index-BSCz2Q0v.d.ts → index-BoQeoNOD.d.ts} +0 -0
  51. /package/dist/{preview-operations-BLsclF88.js → preview-operations-DqSo-IBm.js} +0 -0
  52. /package/dist/{terminal-stream-C9jxoB07.d.ts → terminal-stream-BUMu8Oae.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { B as CreateSandboxOptions, d as BackendConfig } from "./types-C9w6MdZB.js";
1
+ import { B as CreateSandboxOptions, d as BackendConfig } from "./types-BbgO-4f8.js";
2
2
 
3
3
  //#region src/line-application.d.ts
4
4
  /** Bounded callback request bytes after canonicalization, including JSON framing. */
@@ -26,6 +26,14 @@ interface LineApplicationRequest {
26
26
  memberId: string;
27
27
  lineThreadId: string;
28
28
  ownerUserId: string;
29
+ /** Owner-authored customer identity from the current declared Hub member. */
30
+ subjectId?: string;
31
+ /** Hub member authority revision. A later consent or STOP invalidates this callback. */
32
+ memberRevision?: string;
33
+ /** Unique Hub lease attempt for one callback admission. */
34
+ dispatchFence?: string;
35
+ /** Latest UTC time at which the application may admit new work. */
36
+ dispatchDeadline?: string;
29
37
  /** Native transport framing is not an application user identity. */
30
38
  sender: {
31
39
  address: string;
@@ -103,8 +111,9 @@ interface LineMemberSpec {
103
111
  /** A role name from the attachment's `roles`. */
104
112
  role: string;
105
113
  label?: string;
106
- /** Opaque, owner-verified customer/enrollment identity, not a phone number.
107
- * With member instances it keys the private home across addresses. A new
114
+ /** Opaque, owner-authored customer identity, not a phone number.
115
+ * With member instances it keys the private home across addresses. A shared
116
+ * application line passes it to the authorized callback. A new
108
117
  * customer at a recycled address must receive a new subjectId. */
109
118
  subjectId?: string;
110
119
  /** This member's allowance subject; requires limits.allowance.perMember.
@@ -269,8 +278,8 @@ interface LineAttachOptions {
269
278
  /**
270
279
  * Default: owner and member share context and act; guest is own-context and chat-only.
271
280
  * One sandbox serves every member, and `act` tools can read every member's session in it.
272
- * A shared attachment that uses an `own`-context role is refused unless every role in use is `chat`,
273
- * or each member runs in their own sandbox (`client.lines.attach()` with `instance`).
281
+ * An `own`-context role cannot use `act` in a shared sandbox.
282
+ * Member instances or a targetless application provide separate execution.
274
283
  */
275
284
  roles?: Record<string, LineRole>;
276
285
  respond?: LineRespondAgent;
@@ -297,6 +306,21 @@ interface LineMemberInstance {
297
306
  type LineInstanceAttachOptions = LineAttachOptions & {
298
307
  instance: LineMemberInstance;
299
308
  };
309
+ /** One callback carries each declared member's customer subject to the application. */
310
+ type LineApplicationAttachOptions = Omit<LineAttachOptions, "mode" | "members" | "unknownSenders" | "roles" | "respond" | "limits"> & {
311
+ mode: "shared";
312
+ members: Array<LineMemberSpec & {
313
+ subjectId: string;
314
+ }>;
315
+ unknownSenders: "reject";
316
+ roles: Record<string, LineRole & {
317
+ context: "own";
318
+ }>;
319
+ respond: Omit<LineRespondAgent, "backend" | "profileId" | "rolePolicy"> & {
320
+ application: LineApplication;
321
+ };
322
+ limits?: Omit<Partial<LineLimits>, "allowance">;
323
+ };
300
324
  /**
301
325
  * The instance key that serves one member: `keyPrefix` plus the first 32 hex
302
326
  * characters of the SHA-256 of the member's address as Hub stores it (E.164,
@@ -371,13 +395,15 @@ interface LineMember {
371
395
  /** `invited` until the member's first message, which is their consent. */
372
396
  status: "invited" | "active" | "stopped" | "removed";
373
397
  createdAt: string;
398
+ /** Hub authority revision. Compare it with the callback's memberRevision. */
399
+ updatedAt: string;
374
400
  }
375
401
  interface LineAttachment {
376
402
  id: string;
377
403
  lineId: string;
378
404
  /** Execution key ID. Pass the observed value when reauthorizing this attachment. */
379
405
  runAsKeyId: string;
380
- /** Native execution sandbox or initial application enrollment anchor; empty for member instances. */
406
+ /** Native execution sandbox; empty for member instances and shared application lines. */
381
407
  sandboxId: string;
382
408
  /** Present when each member runs in their own sandbox. */
383
409
  instance?: {
@@ -510,12 +536,11 @@ declare class LinesClient {
510
536
  /** Read proof state with the same owner API key that started the test. */
511
537
  getSenderVerification(number: string, testId: string): Promise<LineSenderVerification>;
512
538
  /**
513
- * Attach a line so each member runs in their own sandbox. Hub checks that
514
- * your API key can run sandboxes, and each turn runs as a short-lived child
515
- * of that key. Attaching again with the same options returns the same
516
- * attachment. To attach a line to one sandbox, use `box.lines.attach()`.
539
+ * Attach a line to member sandboxes or one application callback. Hub checks
540
+ * the owner key and keeps one active attachment. The callback must resolve
541
+ * each declared customer's subject to its own authorized private target.
517
542
  */
518
- attach(options: LineInstanceAttachOptions): Promise<LineAttachment>;
543
+ attach(options: LineInstanceAttachOptions | LineApplicationAttachOptions): Promise<LineAttachment>;
519
544
  /** Bind the current API key to this same attachment after app key rotation.
520
545
  * Hub checks the observed attachment and old key, app key lineage, owner,
521
546
  * workspace and sandbox. A race leaves the existing binding unchanged.
@@ -592,4 +617,4 @@ declare class SandboxLines {
592
617
  detach(number: string): Promise<void>;
593
618
  }
594
619
  //#endregion
595
- export { LineTransport as A, LineApplication as B, LineRespondView as C, LineSenderVerification as D, LineSendReceipt as E, SandboxLines as F, parseLineApplicationRequest as G, LineApplicationResult as H, lineInstanceKey as I, parseLineApplicationResult as K, profileChannelReference as L, LineVoiceOptions as M, LinesClient as N, LineSenderVerificationStart as O, LinesHttpClient as P, LINE_APPLICATION_REPLY_MAX_CHARS as R, LineRespondAgent as S, LineSendInput as T, LineApplicationState as U, LineApplicationRequest as V, LineApplicationView as W, LineMessage as _, LineAttachOptions as a, LineReminderPreferences as b, LineExecutionKey as c, LineInstanceCreate as d, LineLimits as f, LineMemberSpec as g, LineMemberPatch as h, LineAllowanceSubject as i, LineVoice as j, LineThread as k, LineFromConnectionInput as l, LineMemberInstance as m, LineAgentRolePolicy as n, LineAttachment as o, LineMember as p, LineAllowance as r, LineAttachmentReauthorization as s, Line as t, LineInstanceAttachOptions as u, LineNumberInventory as v, LineRole as w, LineReplyGate as x, LineProvider as y, LINE_APPLICATION_REQUEST_MAX_BYTES as z };
620
+ export { LineThread as A, LINE_APPLICATION_REQUEST_MAX_BYTES as B, LineRespondAgent as C, LineSendReceipt as D, LineSendInput as E, LinesHttpClient as F, LineApplicationView as G, LineApplicationRequest as H, SandboxLines as I, parseLineApplicationRequest as K, lineInstanceKey as L, LineVoice as M, LineVoiceOptions as N, LineSenderVerification as O, LinesClient as P, profileChannelReference as R, LineReplyGate as S, LineRole as T, LineApplicationResult as U, LineApplication as V, LineApplicationState as W, LineMemberSpec as _, LineApplicationAttachOptions as a, LineProvider as b, LineAttachmentReauthorization as c, LineInstanceAttachOptions as d, LineInstanceCreate as f, LineMemberPatch as g, LineMemberInstance as h, LineAllowanceSubject as i, LineTransport as j, LineSenderVerificationStart as k, LineExecutionKey as l, LineMember as m, LineAgentRolePolicy as n, LineAttachOptions as o, LineLimits as p, parseLineApplicationResult as q, LineAllowance as r, LineAttachment as s, Line as t, LineFromConnectionInput as u, LineMessage as v, LineRespondView as w, LineReminderPreferences as x, LineNumberInventory as y, LINE_APPLICATION_REPLY_MAX_CHARS as z };
package/dist/lines.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as LineTransport, C as LineRespondView, D as LineSenderVerification, E as LineSendReceipt, F as SandboxLines, I as lineInstanceKey, L as profileChannelReference, M as LineVoiceOptions, N as LinesClient, O as LineSenderVerificationStart, P as LinesHttpClient, S as LineRespondAgent, T as LineSendInput, _ as LineMessage, a as LineAttachOptions, b as LineReminderPreferences, c as LineExecutionKey, d as LineInstanceCreate, f as LineLimits, g as LineMemberSpec, h as LineMemberPatch, i as LineAllowanceSubject, j as LineVoice, k as LineThread, l as LineFromConnectionInput, m as LineMemberInstance, n as LineAgentRolePolicy, o as LineAttachment, p as LineMember, r as LineAllowance, s as LineAttachmentReauthorization, t as Line, u as LineInstanceAttachOptions, v as LineNumberInventory, w as LineRole, x as LineReplyGate, y as LineProvider } from "./lines-T2D6xHHx.js";
2
- export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
1
+ import { A as LineThread, C as LineRespondAgent, D as LineSendReceipt, E as LineSendInput, F as LinesHttpClient, I as SandboxLines, L as lineInstanceKey, M as LineVoice, N as LineVoiceOptions, O as LineSenderVerification, P as LinesClient, R as profileChannelReference, S as LineReplyGate, T as LineRole, _ as LineMemberSpec, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, g as LineMemberPatch, h as LineMemberInstance, i as LineAllowanceSubject, j as LineTransport, k as LineSenderVerificationStart, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineLimits, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMessage, w as LineRespondView, x as LineReminderPreferences, y as LineNumberInventory } from "./lines-ggdLY7xy.js";
2
+ export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
package/dist/lines.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as parseErrorResponse, g as ValidationError } from "./errors-CKl_BSlD.js";
1
+ import { _ as parseErrorResponse, g as ValidationError } from "./errors-D1JIX7Jm.js";
2
2
  //#region src/lines.ts
3
3
  /**
4
4
  * Lines: give a sandbox a phone number or messaging address.
@@ -133,10 +133,9 @@ var LinesClient = class {
133
133
  return hubData(await this.http.fetch(`/v1/lines/${encodeURIComponent(lineId)}/sender-verifications/${encodeURIComponent(testId)}`));
134
134
  }
135
135
  /**
136
- * Attach a line so each member runs in their own sandbox. Hub checks that
137
- * your API key can run sandboxes, and each turn runs as a short-lived child
138
- * of that key. Attaching again with the same options returns the same
139
- * attachment. To attach a line to one sandbox, use `box.lines.attach()`.
136
+ * Attach a line to member sandboxes or one application callback. Hub checks
137
+ * the owner key and keeps one active attachment. The callback must resolve
138
+ * each declared customer's subject to its own authorized private target.
140
139
  */
141
140
  async attach(options) {
142
141
  const lineId = await this.resolve(options.number);
@@ -1,4 +1,4 @@
1
- import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-ChOdvrjd.js";
1
+ import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-DzbqR2nA.js";
2
2
  import { existsSync, readFileSync } from "node:fs";
3
3
  import { homedir } from "node:os";
4
4
  import { join } from "node:path";
@@ -1,4 +1,4 @@
1
- import { a as listAgentPreviews, i as getAgentPreview, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "./preview-operations-BLsclF88.js";
1
+ import { a as listAgentPreviews, i as getAgentPreview, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "./preview-operations-DqSo-IBm.js";
2
2
  import { createRequire } from "node:module";
3
3
  //#region \0rolldown/runtime.js
4
4
  var __defProp = Object.defineProperty;
@@ -1,6 +1,6 @@
1
- import { r as SandboxInstance } from "./sandbox-LRvBzGGm.js";
2
- import { Fn as PreviewLinkInfo, ht as EnsureDevServerOptions } from "./types-C9w6MdZB.js";
3
- import { i as Sandbox } from "./client-BFilDKO8.js";
1
+ import { r as SandboxInstance } from "./sandbox-DsJ3ZJdA.js";
2
+ import { Fn as PreviewLinkInfo, ht as EnsureDevServerOptions } from "./types-BbgO-4f8.js";
3
+ import { i as Sandbox } from "./client-AXO7ykS7.js";
4
4
 
5
5
  //#region src/agent/preview-operations.d.ts
6
6
  type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
package/dist/runtime.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { l as ScopedToken, t as TerminalStream } from "./terminal-stream-C9jxoB07.js";
2
- import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-C2qVGzQz.js";
3
- import { t as BrowserInteractiveSessionController } from "./interactive-controller-Dghv9yMk.js";
4
- import { A as CommitTaskSessionOptions, Aa as WriteFileOptions, At as FileUsageOptions, Bi as SessionEventStreamOptions, Ci as SandboxTerminalInfo, Cn as ListMessagesOptions, Dr as SandboxEvent, Gi as SessionInfo, H as CreateTaskSessionOptions, Hi as SessionExecutionStatus, Ii as SendSessionMessageOptions, Ji as SessionMessage, Li as SendSessionMessageRequest, Mt as FileWriteResult, Ot as FileTreeOptions, Ri as SentSessionMessage, Si as SandboxTerminalCreateOptions, St as FileReadBatchResult, T as ChunkedUploadResult, Ta as UploadProgress, Ti as SandboxTerminalRequestOptions, Tt as FileRenameResult, V as CreateSessionOptions, Vi as SessionExecutionInfo, Yi as SessionMessageAdmission, da as TaskSessionCommitResult, gi as SandboxRuntimeHealth, jt as FileUsageResult, kt as FileTreeResult, pa as TaskSessionInfo, sr as RenameOptions, ua as TaskSessionChanges, ui as SandboxPortBinding, w as ChunkedUploadOptions, wi as SandboxTerminalManager, xt as FileReadBatchOptions } from "./types-C9w6MdZB.js";
5
- import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-C6dll8Qf.js";
6
- import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-BDxby7zK.js";
1
+ import { l as ScopedToken, t as TerminalStream } from "./terminal-stream-BUMu8Oae.js";
2
+ import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-C-3MDol8.js";
3
+ import { t as BrowserInteractiveSessionController } from "./interactive-controller-iYddZt8b.js";
4
+ import { A as CommitTaskSessionOptions, Aa as WriteFileOptions, At as FileUsageOptions, Bi as SessionEventStreamOptions, Ci as SandboxTerminalInfo, Cn as ListMessagesOptions, Dr as SandboxEvent, Gi as SessionInfo, H as CreateTaskSessionOptions, Hi as SessionExecutionStatus, Ii as SendSessionMessageOptions, Ji as SessionMessage, Li as SendSessionMessageRequest, Mt as FileWriteResult, Ot as FileTreeOptions, Ri as SentSessionMessage, Si as SandboxTerminalCreateOptions, St as FileReadBatchResult, T as ChunkedUploadResult, Ta as UploadProgress, Ti as SandboxTerminalRequestOptions, Tt as FileRenameResult, V as CreateSessionOptions, Vi as SessionExecutionInfo, Yi as SessionMessageAdmission, da as TaskSessionCommitResult, gi as SandboxRuntimeHealth, jt as FileUsageResult, kt as FileTreeResult, pa as TaskSessionInfo, sr as RenameOptions, ua as TaskSessionChanges, ui as SandboxPortBinding, w as ChunkedUploadOptions, wi as SandboxTerminalManager, xt as FileReadBatchOptions } from "./types-BbgO-4f8.js";
5
+ import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-DS32ViPj.js";
6
+ import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-B7w8HpoL.js";
7
7
 
8
8
  //#region src/lib/chunked-upload.d.ts
9
9
  /** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}
package/dist/runtime.js CHANGED
@@ -1,5 +1,5 @@
1
- import { M as createAgentRunOutcomeTracker, N as deriveAgentResultOutcome, P as deriveAgentRunOutcome, b as uploadChunked, l as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-DV1HT3NR.js";
2
- import { a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, l as PartialFailureError, m as StateError, n as CapabilityError, p as ServerError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-CKl_BSlD.js";
1
+ import { M as createAgentRunOutcomeTracker, N as deriveAgentResultOutcome, P as deriveAgentRunOutcome, b as uploadChunked, l as SandboxRuntimeApi, t as BrowserInteractiveSessionController } from "./interactive-controller-f_ePJqoh.js";
2
+ import { a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, l as PartialFailureError, m as StateError, n as CapabilityError, p as ServerError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-D1JIX7Jm.js";
3
3
  import { f as combineAbortSignals, n as browserInteractiveControlHolderId, s as InteractiveSessionNotRunningError } from "./browser-interactive-control-controller-BJf0P_J4.js";
4
4
  //#region src/runtime-client.ts
5
5
  const DEFAULT_RUNTIME_TIMEOUT_MS = 3e4;