@tangle-network/sandbox 0.55.3 → 0.57.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 (44) hide show
  1. package/README.md +20 -2
  2. package/dist/agent/index.d.ts +59 -19
  3. package/dist/agent/index.js +26 -306
  4. package/dist/agent/preview.d.ts +2 -0
  5. package/dist/agent/preview.js +74 -0
  6. package/dist/{agent-run-outcome-CWo6e5lW.d.ts → agent-run-outcome-B8PjRMLE.d.ts} +1 -1
  7. package/dist/auth/index.d.ts +1 -1
  8. package/dist/auth/index.js +1 -1
  9. package/dist/{browser-interactive-control-controller-Dv0gbFMu.js → browser-interactive-control-controller-CVGqjPgs.js} +1 -1
  10. package/dist/{browser-interactive-control-controller-BELrFH4f.d.ts → browser-interactive-control-controller-knjCl8Zp.d.ts} +1 -1
  11. package/dist/{client-B-LZQQ51.d.ts → client-BHGieo06.d.ts} +10 -4
  12. package/dist/{client-B6Jo-v5w.js → client-CdbHGWiu.js} +20 -6
  13. package/dist/collaboration/index.d.ts +1 -1
  14. package/dist/collaboration/index.js +1 -1
  15. package/dist/{collaboration-DLPFc9-W.js → collaboration-CSHswAOI.js} +1 -1
  16. package/dist/core.d.ts +5 -5
  17. package/dist/core.js +3 -3
  18. package/dist/{index-ATSSTK2A.d.ts → index-C1sVorE5.d.ts} +2 -2
  19. package/dist/index.d.ts +11 -11
  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-control.js +1 -1
  24. package/dist/{local-cli-auth-BAJuMBZU.js → local-cli-auth-DfuFJCcs.js} +1 -1
  25. package/dist/mcp-local-DUT2U_y8.js +429 -0
  26. package/dist/preview-operations-Dgbi46FH.js +212 -0
  27. package/dist/preview-wJJxG42-.d.ts +72 -0
  28. package/dist/{runtime-api-DoZsOiOR.js → runtime-api-BZg34WGd.js} +10 -5
  29. package/dist/runtime.d.ts +6 -4
  30. package/dist/runtime.js +3 -3
  31. package/dist/{sandbox-DzSE1u7d.js → sandbox-C9VLoJAb.js} +107 -8
  32. package/dist/{sandbox-C7KqjY6Y.d.ts → sandbox-DWDqWnsJ.d.ts} +139 -10
  33. package/dist/tangle/index.d.ts +1 -1
  34. package/dist/tangle/index.js +1 -1
  35. package/dist/{tangle-CmpR_07-.js → tangle-Bm6H-xIM.js} +2 -2
  36. package/dist/{types-UOIM3RS6.d.ts → types-CFmeauzy.d.ts} +12 -2
  37. package/package.json +10 -5
  38. /package/dist/{abort-signal-si1WMfJb.js → abort-signal-CgFhjY_v.js} +0 -0
  39. /package/dist/{cli-auth-bundle-DUsK57rK.js → cli-auth-bundle-bRJOyaJO.js} +0 -0
  40. /package/dist/{errors-CmYPVl-k.js → errors-BkhlSDW-.js} +0 -0
  41. /package/dist/{errors-Cz23YNu2.d.ts → errors-CNsmhCen.d.ts} +0 -0
  42. /package/dist/{index-BWiG3Vcw.d.ts → index-BN7zNEUB.d.ts} +0 -0
  43. /package/dist/{index-BfVsF6yU.d.ts → index-X4EEZlMi.d.ts} +0 -0
  44. /package/dist/{terminal-stream-CcaBTVg3.d.ts → terminal-stream-BW4veIsI.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-CcaBTVg3.js";
1
+ import { r as TerminalStreamHandlers, t as TerminalStream } from "./terminal-stream-BW4veIsI.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";
@@ -3134,6 +3134,9 @@ interface SandboxRuntimeCapabilities {
3134
3134
  eventReplay: boolean;
3135
3135
  };
3136
3136
  interactions: {
3137
+ /** This sidecar image contains the OpenCode native before-tool approval
3138
+ * hook. Require OpenCode and permission interactions before using it. */
3139
+ exactBeforeToolApproval?: boolean;
3137
3140
  /** Every acknowledged interaction resolution is recorded: repeating a
3138
3141
  * response replays the recorded resolution, and a different answer for
3139
3142
  * a recorded resolution raises a 409 `StateError`. The deployment
@@ -3317,6 +3320,8 @@ interface SendSessionMessageRequest {
3317
3320
  messageId?: string;
3318
3321
  /** Per-turn overrides within the session's native backend. */
3319
3322
  backend?: Partial<BackendConfig>;
3323
+ /** Router quote for a warm OpenCode turn with a total output ceiling. */
3324
+ managedQuoteVersion?: string;
3320
3325
  /** Exact caller-owned execution identity for canonical cancellation. */
3321
3326
  runControlRef?: AgentExactRunControlRef;
3322
3327
  parts: SessionMessageInputPart[];
@@ -3573,6 +3578,8 @@ interface DispatchedSession {
3573
3578
  interface ConversationTurnOptions {
3574
3579
  sessionId: string;
3575
3580
  turnId: string;
3581
+ /** Router quote included in the durable admission request. */
3582
+ managedQuoteVersion?: string;
3576
3583
  /** Per-turn backend, profile, runtime attachments, and interaction settings. */
3577
3584
  backend?: Partial<BackendConfig>;
3578
3585
  /** Model shorthand; conflicts with backend.model.model are rejected. */
@@ -5603,6 +5610,7 @@ interface PreviewLinkManager {
5603
5610
  * Create a preview link for a port.
5604
5611
  * Returns the preview link with its public URL.
5605
5612
  * If a link already exists for this port, returns the existing one.
5613
+ * `created` reports the host's atomic create decision for this request.
5606
5614
  *
5607
5615
  * @param port - Port number to expose (1-65535)
5608
5616
  * @param options - Optional protocol and metadata
@@ -5610,7 +5618,9 @@ interface PreviewLinkManager {
5610
5618
  create(port: number, options?: {
5611
5619
  protocol?: "tcp" | "udp";
5612
5620
  metadata?: Record<string, unknown>;
5613
- }): Promise<PreviewLinkInfo>;
5621
+ }): Promise<PreviewLinkInfo & {
5622
+ created: boolean;
5623
+ }>;
5614
5624
  /**
5615
5625
  * Refresh one link's public delivery status.
5616
5626
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.55.3",
3
+ "version": "0.57.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": [
@@ -63,6 +63,11 @@
63
63
  "import": "./dist/intelligence/index.js",
64
64
  "types": "./dist/intelligence/index.d.ts",
65
65
  "default": "./dist/intelligence/index.js"
66
+ },
67
+ "./preview": {
68
+ "import": "./dist/agent/preview.js",
69
+ "types": "./dist/agent/preview.d.ts",
70
+ "default": "./dist/agent/preview.js"
66
71
  }
67
72
  },
68
73
  "files": [
@@ -137,11 +142,11 @@
137
142
  "vitest": "^4.1.5",
138
143
  "ws": "^8.20.0",
139
144
  "yjs": "13.6.30",
140
- "@tangle-network/agent-profile-materialize": "0.20.3",
141
- "@tangle-network/runtime-contracts": "0.8.2",
145
+ "@repo/shared": "0.0.0",
146
+ "@tangle-network/cli-agent-registry": "0.4.12",
147
+ "@tangle-network/runtime-contracts": "0.9.0",
142
148
  "@tangle-network/sse-core": "0.0.0",
143
- "@tangle-network/cli-agent-registry": "0.4.10",
144
- "@repo/shared": "0.0.0"
149
+ "@tangle-network/agent-profile-materialize": "0.20.4"
145
150
  },
146
151
  "scripts": {
147
152
  "build": "node scripts/build-dist.mjs",
File without changes