@tangle-network/sandbox 0.60.69 → 0.60.77-develop.20261016230332.7f22d61

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 (47) hide show
  1. package/README.md +46 -0
  2. package/dist/agent/index.d.ts +4 -4
  3. package/dist/agent/index.js +4 -4
  4. package/dist/agent/preview.d.ts +1 -1
  5. package/dist/{agent-run-outcome-BBk2-5vp.d.ts → agent-run-outcome-CTEpjCEZ.d.ts} +1 -1
  6. package/dist/auth/index.d.ts +1 -1
  7. package/dist/auth/index.js +1 -1
  8. package/dist/backend-types-D6bYbvMB.js +42 -0
  9. package/dist/{browser-interactive-control-controller-JUW3gOGH.d.ts → browser-interactive-control-controller-rpTbyvAS.d.ts} +1 -1
  10. package/dist/{chunked-upload-BklCn3Li.js → chunked-upload-DtIvkKNo.js} +1 -1
  11. package/dist/{chunked-upload-file-Cp-iWsWN.js → chunked-upload-file-DnsHEjg0.js} +1 -1
  12. package/dist/{cli-auth-bundle-D61iX68d.js → cli-auth-bundle-cSJjPeFF.js} +2 -2
  13. package/dist/{client-DUDqUYDG.js → client-CRkHfByN.js} +21 -9
  14. package/dist/{client-DVouBFPR.d.ts → client-Lhxo82x1.d.ts} +10 -6
  15. package/dist/collaboration/index.d.ts +1 -1
  16. package/dist/collaboration/index.js +1 -1
  17. package/dist/{collaboration-B2g1j2ey.js → collaboration-DaJU5O0E.js} +1 -1
  18. package/dist/core.d.ts +6 -6
  19. package/dist/core.js +3 -3
  20. package/dist/{errors-iWIsey1D.js → errors-DSJBKmGZ.js} +60 -1
  21. package/dist/{errors-5j_Hlkm-.d.ts → errors-mPL-qvgF.d.ts} +79 -2
  22. package/dist/{index-DaJrtipt.d.ts → index-DRto9Ijb.d.ts} +2 -2
  23. package/dist/index.d.ts +19 -17
  24. package/dist/index.js +9 -9
  25. package/dist/intelligence/index.js +1 -1
  26. package/dist/interactive-control.d.ts +1 -1
  27. package/dist/{interactive-controller-DaYmUCO_.js → interactive-controller-CJ24g8Va.js} +237 -25
  28. package/dist/{lines-D07bn-mu.d.ts → lines-DodQslsf.d.ts} +1 -1
  29. package/dist/lines.d.ts +1 -1
  30. package/dist/lines.js +1 -1
  31. package/dist/{local-cli-auth-t8KUbrfI.js → local-cli-auth-CBV7Vjk5.js} +1 -1
  32. package/dist/{managed-process-RMyVq_du.d.ts → managed-process-B7WfqKmi.d.ts} +1 -1
  33. package/dist/{preview-dIOd13_U.d.ts → preview-wpGGk0bu.d.ts} +3 -3
  34. package/dist/runtime.d.ts +5 -6
  35. package/dist/runtime.js +3 -3
  36. package/dist/{sandbox-C7wOeFZB.d.ts → sandbox-CoIGxzm_.d.ts} +78 -24
  37. package/dist/{sandbox-Dg0WI1ZF.js → sandbox-DzSEprto.js} +732 -79
  38. package/dist/tangle/index.d.ts +1 -1
  39. package/dist/tangle/index.js +1 -1
  40. package/dist/{tangle-CaY9_VGA.js → tangle-DHFKq9sn.js} +2 -2
  41. package/dist/{terminal-stream-CV1pMSKC.d.ts → terminal-stream-jdYomM1m.d.ts} +123 -4
  42. package/dist/{types-BLCY5T4s.d.ts → types-B_QF-iHm.d.ts} +242 -28
  43. package/package.json +5 -5
  44. package/dist/backend-types-C7b_Gpa0.js +0 -59
  45. package/dist/interactive-controller-DNbLzamS.d.ts +0 -40
  46. /package/dist/{index-BgmgfYZZ.d.ts → index-DO7GVpk_.d.ts} +0 -0
  47. /package/dist/{index-DHuHjNie.d.ts → index-DZ27pdB8.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.60.69",
3
+ "version": "0.60.77-develop.20261016230332.7f22d61",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -155,11 +155,11 @@
155
155
  "ws": "^8.20.0",
156
156
  "yjs": "13.6.30",
157
157
  "@products/sandbox-test-utils": "0.0.0",
158
- "@tangle-network/agent-profile-materialize": "0.25.4",
159
- "@tangle-network/cli-agent-registry": "0.9.1",
160
158
  "@repo/shared": "0.0.0",
161
- "@tangle-network/runtime-contracts": "0.18.0",
162
- "@tangle-network/sdk": "4.0.13",
159
+ "@tangle-network/agent-profile-materialize": "0.26.0",
160
+ "@tangle-network/cli-agent-registry": "0.10.2",
161
+ "@tangle-network/runtime-contracts": "0.19.0",
162
+ "@tangle-network/sdk": "4.0.16",
163
163
  "@tangle-network/sse-core": "0.0.0"
164
164
  },
165
165
  "scripts": {
@@ -1,59 +0,0 @@
1
- import { harnessTypeSchema } from "@tangle-network/agent-interface";
2
- import { z } from "zod";
3
- //#region ../../../packages/runtime-contracts/dist/backend-types.js
4
- /**
5
- * Canonical harnesses this repo ships no provider adapter for.
6
- *
7
- * `gemini` reaches a workspace only as an openclaw/acp sub-agent CLI and through
8
- * `agent-profile-materialize`; there is no `packages/sdk-provider-gemini`, so naming it as a
9
- * backend must keep failing closed rather than dispatching to a runner that cannot start.
10
- */
11
- const NON_BACKEND_HARNESSES = ["gemini"];
12
- const BACKEND_TYPE = {
13
- OPENCODE: "opencode",
14
- CLAUDE_CODE: "claude-code",
15
- KIMI_CODE: "kimi-code",
16
- CODEX: "codex",
17
- AMP: "amp",
18
- FACTORY_DROIDS: "factory-droids",
19
- PI: "pi",
20
- PRIME: "prime",
21
- HERMES: "hermes",
22
- FORGE: "forge",
23
- OPENCLAW: "openclaw",
24
- NANOCLAW: "nanoclaw",
25
- ACP: "acp",
26
- CURSOR: "cursor",
27
- CLI_BASE: "cli-base"
28
- };
29
- const nonBackendHarnesses = new Set(NON_BACKEND_HARNESSES);
30
- /**
31
- * Order mirrors `CLI_AGENT_SPECS` — a backend without a spec has no install/launch definition and
32
- * cannot run, so the registry's order is the contract (`packages/cli-agent-registry`), not an
33
- * arbitrary list.
34
- */
35
- const ALL_BACKEND_TYPES = Object.values(BACKEND_TYPE);
36
- /**
37
- * Bind the enum to `harnessTypeSchema` in both directions at import time, so the canonical set
38
- * stays the authority on membership while the spec registry keeps owning order. A harness added
39
- * upstream, or a backend here that no longer exists upstream, fails loud instead of leaving request
40
- * validation and the harness taxonomy quietly disagreeing.
41
- */
42
- const canonicalBackendHarnesses = harnessTypeSchema.options.filter((harness) => !nonBackendHarnesses.has(harness));
43
- const declaredBackendTypes = new Set(ALL_BACKEND_TYPES);
44
- const canonicalBackendHarnessSet = new Set(canonicalBackendHarnesses);
45
- const undeclaredCanonicalHarnesses = canonicalBackendHarnesses.filter((harness) => !declaredBackendTypes.has(harness));
46
- if (undeclaredCanonicalHarnesses.length > 0) throw new Error(`BACKEND_TYPE is missing canonical harnesses: ${undeclaredCanonicalHarnesses.join(", ")}. Add the named constant plus its CLI_AGENT_SPECS entry, or list it in NON_BACKEND_HARNESSES with a reason.`);
47
- const unrecognizedBackendTypes = ALL_BACKEND_TYPES.filter((backend) => !canonicalBackendHarnessSet.has(backend));
48
- if (unrecognizedBackendTypes.length > 0) throw new Error(`BACKEND_TYPE declares runners the canonical harness enum does not define: ${unrecognizedBackendTypes.join(", ")}. Reconcile them into @tangle-network/agent-interface.`);
49
- const backendTypeSchema = z.enum(ALL_BACKEND_TYPES);
50
- const BACKEND_TYPE_SET = new Set(ALL_BACKEND_TYPES);
51
- function isBackendType(value) {
52
- return BACKEND_TYPE_SET.has(value);
53
- }
54
- function parseBackendType(value) {
55
- if (!isBackendType(value)) throw new Error(`Unknown backend type "${value}". Expected one of: ${ALL_BACKEND_TYPES.join(", ")}`);
56
- return value;
57
- }
58
- //#endregion
59
- export { parseBackendType as i, BACKEND_TYPE as n, backendTypeSchema as r, ALL_BACKEND_TYPES as t };
@@ -1,40 +0,0 @@
1
- import { a as TerminalStreamReconnectAuthority, l as ScopedToken, t as TerminalStream } from "./terminal-stream-CV1pMSKC.js";
2
- import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, h as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-JUW3gOGH.js";
3
- import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
4
-
5
- //#region src/interactive-controller.d.ts
6
- /** The request fields supplied by an attach caller before control is claimed. */
7
- type InteractiveAttachRequest = Omit<InteractiveAttachOptions, "control">;
8
- /** Transport used by the status → claim → WebSocket controller. */
9
- interface InteractiveSessionControllerTransport extends InteractiveSessionControlTransport {
10
- attach(sessionId: string, ref: AgentInteractiveSessionRef, request: InteractiveAttachOptions, options?: InteractiveRequestOptions, reconnectAuthority?: TerminalStreamReconnectAuthority): Promise<TerminalStream>;
11
- }
12
- interface InteractiveSessionControllerOptions extends InteractiveSessionControlControllerOptions {}
13
- /**
14
- * Attach-capable controller for one exact interactive process.
15
- *
16
- * Control ownership lives in the dependency-light base controller. This layer
17
- * adds only the terminal attach operation after that ownership is resolved.
18
- */
19
- declare class InteractiveSessionController extends InteractiveSessionControlController {
20
- private readonly attachTransport;
21
- private attachInFlight?;
22
- constructor(attachTransport: InteractiveSessionControllerTransport, options: InteractiveSessionControllerOptions);
23
- attach(request: InteractiveAttachRequest, requestOptions?: InteractiveRequestOptions): Promise<TerminalStream>;
24
- /**
25
- * Open a stream for a claim returned by this controller's `resolve()`.
26
- * The controller releases that claim when the stream cannot be opened.
27
- */
28
- attachWithIdentity(identity: InteractiveSessionIdentity, request: InteractiveAttachRequest, requestOptions?: InteractiveRequestOptions): Promise<TerminalStream>;
29
- }
30
- /** Browser transport options for the attach-capable controller. */
31
- interface BrowserInteractiveSessionControllerOptions extends InteractiveSessionControllerOptions, BrowserInteractiveSessionControlControllerOptions {
32
- /** Mint a future session-runtime token for every browser terminal dial. */
33
- terminalTokenProvider?: (signal?: AbortSignal) => Promise<ScopedToken>;
34
- }
35
- /** Concrete controller for browser deep links and terminal attachment. */
36
- declare class BrowserInteractiveSessionController extends InteractiveSessionController {
37
- constructor(options: BrowserInteractiveSessionControllerOptions);
38
- }
39
- //#endregion
40
- export { InteractiveSessionControllerOptions as a, InteractiveSessionController as i, BrowserInteractiveSessionControllerOptions as n, InteractiveSessionControllerTransport as o, InteractiveAttachRequest as r, BrowserInteractiveSessionController as t };