@tangle-network/sandbox 0.60.25-develop.20261008094859.aaa33fe → 0.60.26-develop.20261008100338.fdb71c8

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 (31) hide show
  1. package/README.md +28 -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-DgQPyF7j.d.ts → agent-run-outcome-D5VVd5Ei.d.ts} +1 -1
  6. package/dist/{client-DWvFva4_.js → client-B4ehn1iw.js} +3 -3
  7. package/dist/{client-Cw1BDXF6.d.ts → client-DqA0N91W.d.ts} +4 -4
  8. package/dist/collaboration/index.js +1 -1
  9. package/dist/{collaboration-CFe2H--1.js → collaboration-D15xoinI.js} +1 -1
  10. package/dist/core.d.ts +5 -5
  11. package/dist/core.js +3 -3
  12. package/dist/{errors-DS32ViPj.d.ts → errors-BXMXbVFO.d.ts} +32 -1
  13. package/dist/{errors-C1c3Q6Bj.js → errors-DMxVFCS6.js} +34 -1
  14. package/dist/{index-D7Zlm_Wd.d.ts → index-Dv77g3s5.d.ts} +2 -2
  15. package/dist/index.d.ts +18 -8
  16. package/dist/index.js +8 -7
  17. package/dist/intelligence/index.js +1 -1
  18. package/dist/{interactive-controller-D37MXlzk.js → interactive-controller-4Fo9aDih.js} +1 -1
  19. package/dist/{lines-CMuNKH1G.d.ts → lines-d9AEcbCd.d.ts} +20 -6
  20. package/dist/lines.d.ts +1 -1
  21. package/dist/lines.js +8 -5
  22. package/dist/{preview-BUlJ5sev.d.ts → preview-CCAwjkRr.d.ts} +3 -3
  23. package/dist/runtime.d.ts +3 -3
  24. package/dist/runtime.js +2 -2
  25. package/dist/{sandbox-DMEC3bW3.js → sandbox-C42UAlFT.js} +218 -56
  26. package/dist/{sandbox-ChOvAiKL.d.ts → sandbox-CSFajXr_.d.ts} +7 -6
  27. package/dist/tangle/index.d.ts +1 -1
  28. package/dist/tangle/index.js +1 -1
  29. package/dist/{tangle-DSfA8z6z.js → tangle-9TwNLIs5.js} +2 -2
  30. package/dist/{types-BY5gTf9n.d.ts → types-Di0cLhOV.d.ts} +24 -8
  31. package/package.json +4 -4
@@ -3097,16 +3097,32 @@ interface PromptOptions {
3097
3097
  */
3098
3098
  turnId?: string;
3099
3099
  /**
3100
- * Detach the run from this stream's lifetime. When true, dropping the
3101
- * SSE connection (closing the generator, an isolate restart, a network
3102
- * blip) does NOT cancel the run: the platform keeps executing it and
3103
- * buffers its events so a later reconnect can replay. Use for batch or
3104
- * queue workloads where a long quiet run (repo clone + test suite) must
3105
- * survive transient stream drops. Omit for interactive chat where
3106
- * closing the tab should stop burning tokens. `dispatchPrompt` always
3107
- * sets this so fire-and-detach is safe by construction.
3100
+ * Detach the run from this stream's lifetime. When true, the run never
3101
+ * ends because a reader went away: closing the generator does not cancel
3102
+ * it, and the platform keeps executing it and buffering its events so a
3103
+ * later reconnect can replay. Use for batch or queue workloads.
3104
+ *
3105
+ * Without it, ending the stream early (breaking out of the loop, aborting
3106
+ * `signal`, or letting `timeoutMs` elapse) cancels the run. A dropped
3107
+ * connection does not: the platform keeps an interactive run through a
3108
+ * disconnect grace window so this stream can rejoin it.
3109
+ * `dispatchPrompt` always sets this so fire-and-detach is safe by
3110
+ * construction.
3108
3111
  */
3109
3112
  detach?: boolean;
3113
+ /**
3114
+ * How long the SDK keeps rejoining this execution while it is unreachable,
3115
+ * in milliseconds. A dropped stream is a transport event, not an outcome:
3116
+ * the SDK reconnects with capped exponential backoff (1s doubling to 30s)
3117
+ * and resumes after the last delivered event, without duplicates. Each
3118
+ * replay connection that reaches the execution restarts the window, so a
3119
+ * long run survives any number of platform deploys. When the window
3120
+ * elapses, or the sandbox stops, the stream ends with an `error` event
3121
+ * whose `code` is `STREAM_INTERRUPTED` and `outcome` is `unknown`, and no
3122
+ * `done`: rejoin later with `executionId` + `lastEventId`.
3123
+ * Default six hours; 0 disables reconnection.
3124
+ */
3125
+ reconnectWindowMs?: number;
3110
3126
  }
3111
3127
  /**
3112
3128
  * SSE event from sandbox streaming.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sandbox",
3
- "version": "0.60.25-develop.20261008094859.aaa33fe",
3
+ "version": "0.60.26-develop.20261008100338.fdb71c8",
4
4
  "description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -149,13 +149,13 @@
149
149
  "vitest": "^4.1.11",
150
150
  "ws": "^8.20.0",
151
151
  "yjs": "13.6.30",
152
+ "@tangle-network/agent-profile-materialize": "0.22.0",
152
153
  "@tangle-network/cli-agent-registry": "0.6.2",
153
154
  "@tangle-network/runtime-contracts": "0.16.0",
155
+ "@repo/shared": "0.0.0",
154
156
  "@tangle-network/sdk": "4.0.3",
155
157
  "@products/sandbox-test-utils": "0.0.0",
156
- "@tangle-network/sse-core": "0.0.0",
157
- "@repo/shared": "0.0.0",
158
- "@tangle-network/agent-profile-materialize": "0.22.0"
158
+ "@tangle-network/sse-core": "0.0.0"
159
159
  },
160
160
  "scripts": {
161
161
  "build": "node scripts/build-dist.mjs",