@tangle-network/sandbox 0.58.8 → 0.60.0

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 (42) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +4 -4
  3. package/dist/agent/preview.d.ts +2 -2
  4. package/dist/agent/preview.js +54 -4
  5. package/dist/{agent-run-outcome-1MxGwnx3.d.ts → agent-run-outcome-CBaBwtEo.d.ts} +1 -1
  6. package/dist/auth/index.js +1 -1
  7. package/dist/{browser-interactive-control-controller-DRBQ-jf0.js → browser-interactive-control-controller-BJf0P_J4.js} +40 -3
  8. package/dist/{browser-interactive-control-controller-BzR8sFjo.d.ts → browser-interactive-control-controller-C2qVGzQz.d.ts} +7 -2
  9. package/dist/{cli-auth-bundle-CzmAaefZ.js → cli-auth-bundle-ChOdvrjd.js} +1 -1
  10. package/dist/{client-DA3Pwd3t.js → client-8U6wuUY9.js} +6 -27
  11. package/dist/{client-xDfwI4yj.d.ts → client-DixtsEVX.d.ts} +4 -12
  12. package/dist/collaboration/index.js +1 -1
  13. package/dist/core.d.ts +5 -5
  14. package/dist/core.js +3 -3
  15. package/dist/{index-DFXcrGG6.d.ts → index-Cma6Iz3v.d.ts} +2 -2
  16. package/dist/index.d.ts +10 -9
  17. package/dist/index.js +8 -8
  18. package/dist/interactive-control.d.ts +2 -2
  19. package/dist/interactive-control.js +2 -2
  20. package/dist/{runtime-api-BZhd0M3Z.js → interactive-controller-CZpuKFMa.js} +837 -3
  21. package/dist/interactive-controller-Dghv9yMk.d.ts +40 -0
  22. package/dist/{lines-DuPzlFrJ.d.ts → lines-CqurEIaM.d.ts} +41 -2
  23. package/dist/lines.d.ts +2 -2
  24. package/dist/lines.js +21 -0
  25. package/dist/{local-cli-auth-ChDP5zu4.js → local-cli-auth-CdIM0B6p.js} +1 -1
  26. package/dist/{mcp-local-DY1CnWBn.js → mcp-local-BSvH4yAU.js} +1 -1
  27. package/dist/{preview-l8HsyZzA.d.ts → preview-BQOsoAEx.d.ts} +19 -6
  28. package/dist/runtime.d.ts +6 -3
  29. package/dist/runtime.js +3 -3
  30. package/dist/{sandbox-fTLRps4I.d.ts → sandbox-CJt1v5Cj.d.ts} +9 -40
  31. package/dist/{sandbox-D8HtCO-L.js → sandbox-DSP2E-3S.js} +88 -865
  32. package/dist/tangle/index.d.ts +1 -1
  33. package/dist/tangle/index.js +1 -1
  34. package/dist/{tangle-CYGQg5Bf.js → tangle-DgmZElaI.js} +1 -1
  35. package/dist/{types-B_rwXChV.d.ts → types-C8OQ8bzc.d.ts} +7 -2
  36. package/package.json +2 -2
  37. package/dist/abort-signal-BpYYr4JT.js +0 -31
  38. /package/dist/{collaboration-d8Xcvel7.js → collaboration-C1JAl5kE.js} +0 -0
  39. /package/dist/{line-application-9k30rhb2.js → line-application-DJYY1v8U.js} +0 -0
  40. /package/dist/{preview-operations-CbTiBE-a.js → preview-operations-BLsclF88.js} +0 -0
  41. /package/dist/{specs-CnqSWFNT-CHd9ACzP.js → specs-CnqSWFNT-i2wJxPoD.js} +0 -0
  42. /package/dist/{terminal-stream-CB2DF-qq.d.ts → terminal-stream-C9jxoB07.d.ts} +0 -0
@@ -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-DFXcrGG6.js";
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-Cma6Iz3v.js";
2
2
  export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig };
@@ -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-CYGQg5Bf.js";
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-DgmZElaI.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-CKl_BSlD.js";
2
- import { n as createSandboxInstanceFromResponse } from "./sandbox-D8HtCO-L.js";
2
+ import { n as createSandboxInstanceFromResponse } from "./sandbox-DSP2E-3S.js";
3
3
  //#region src/tangle/abi.ts
4
4
  /**
5
5
  * Tangle Contract ABI Definitions
@@ -1,4 +1,4 @@
1
- import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-CB2DF-qq.js";
1
+ import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-C9jxoB07.js";
2
2
  import { t as CliAuthReference } from "./cli-auth-bundle-gs7xEnA1.js";
3
3
  import * as _$_tangle_network_agent_interface0 from "@tangle-network/agent-interface";
4
4
  import { AgentExactRunControlRef, AgentProfile, AgentProfileCapabilities, AgentProfileConfidential, AgentProfileValidationResult, AgentRuntimeAttachments, HarnessType, ReasoningEffort, SandboxSizePreset } from "@tangle-network/agent-interface";
@@ -3229,7 +3229,8 @@ interface SandboxRuntimeCapabilities {
3229
3229
  sendPrompt: boolean; /** Send terminal input to the existing TUI. */
3230
3230
  input: boolean; /** Resize the existing TUI. */
3231
3231
  resize: boolean; /** Stop the exact TUI session. */
3232
- stop: boolean;
3232
+ stop: boolean; /** Start Claude Code with the CLI's subscription login in its private HOME. */
3233
+ claudeSubscription?: boolean;
3233
3234
  };
3234
3235
  }
3235
3236
  /**
@@ -3397,6 +3398,8 @@ interface SendSessionMessageRequest {
3397
3398
  backend?: Partial<BackendConfig>;
3398
3399
  /** Router quote for a warm OpenCode turn with a total output ceiling. */
3399
3400
  managedQuoteVersion?: string;
3401
+ /** Use the sandbox's managed model credential for this turn only. */
3402
+ managedModelCredential?: true;
3400
3403
  /** Exact caller-owned execution identity for canonical cancellation. */
3401
3404
  runControlRef?: AgentExactRunControlRef;
3402
3405
  parts: SessionMessageInputPart[];
@@ -3655,6 +3658,8 @@ interface ConversationTurnOptions {
3655
3658
  turnId: string;
3656
3659
  /** Router quote included in the durable admission request. */
3657
3660
  managedQuoteVersion?: string;
3661
+ /** Use the sandbox's managed model credential for this turn only. */
3662
+ managedModelCredential?: true;
3658
3663
  /** Per-turn backend, profile, runtime attachments, and interaction settings. */
3659
3664
  backend?: Partial<BackendConfig>;
3660
3665
  /** Model shorthand; conflicts with backend.model.model are rejected. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.58.8",
3
+ "version": "0.60.0",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -106,7 +106,7 @@
106
106
  },
107
107
  "dependencies": {
108
108
  "@tangle-network/agent-core": "^0.10.2",
109
- "@tangle-network/agent-interface": "^2.15.0",
109
+ "@tangle-network/agent-interface": "^2.16.0",
110
110
  "zod": "4.6.5"
111
111
  },
112
112
  "peerDependencies": {
@@ -1,31 +0,0 @@
1
- //#region src/lib/abort-signal.ts
2
- function combineAbortSignals(signals) {
3
- return AbortSignal.any(signals);
4
- }
5
- function awaitWithAbort(work, signal) {
6
- if (!signal) return work;
7
- signal.throwIfAborted();
8
- return new Promise((resolve, reject) => {
9
- let settled = false;
10
- const onAbort = () => {
11
- if (settled) return;
12
- settled = true;
13
- signal.removeEventListener("abort", onAbort);
14
- reject(signal.reason ?? new DOMException("The request was aborted", "AbortError"));
15
- };
16
- signal.addEventListener("abort", onAbort, { once: true });
17
- work.then((value) => {
18
- if (settled) return;
19
- settled = true;
20
- signal.removeEventListener("abort", onAbort);
21
- resolve(value);
22
- }, (cause) => {
23
- if (settled) return;
24
- settled = true;
25
- signal.removeEventListener("abort", onAbort);
26
- reject(cause);
27
- });
28
- });
29
- }
30
- //#endregion
31
- export { combineAbortSignals as n, awaitWithAbort as t };