Skip to content
Source
Sign inSign up
TanStack/ai

feat(ai-sandbox-tangle): add Tangle sandbox provider #2122

Closeddrewstone(GitHub profile, opens in a new tab)wants to merge 10 commits intomain fromrefs/pull/2122/headopened View on GitHub

Showing 17 changed files with 42 additions and 1 deletion (loading 13).

x
0 of 17 viewed, 17 left
1 addition and 0 deletions.agent/domain-map.jsonModified
View file
@@ -93,6 +93,7 @@
"packages/ai-sandbox-local-process",
"packages/ai-sandbox-railway",
"packages/ai-sandbox-sprites",
+ "packages/ai-sandbox-tangle",
"packages/ai-sandbox-upstash-box",
"packages/ai-sandbox-vercel"
],
16 additions and 0 deletions.changeset/add-ai-sandbox-tangle.mdAdded
View file
@@ -0,0 +1,16 @@
+---
+'@tanstack/ai-sandbox-tangle': minor
+---
+​
+Add `@tanstack/ai-sandbox-tangle`, a sandbox provider backed by Tangle cloud
+sandboxes through `@tangle-network/sandbox`. It implements the
+`SandboxProvider` / `SandboxHandle` contract: file reads and writes through the
+sandbox file API, commands with separate stdout and stderr and real exit codes,
+background processes with streamed output, public preview URLs through
+`ports.connect`, `env` injection, and resume by id across stop.
+​
+`snapshot()` captures the workspace and `restoreSnapshot()` creates a new
+sandbox from it. `fork()` branches the running sandbox into a new one.
+`kill()` signals the process tree inside the sandbox, and an aborted `exec`
+kills its process; both are measured against production. A
+`network: 'deny'` policy creates the sandbox with egress blocked.
25 additions and 1 deletiondocs/sandbox/providers-advanced.mdModified
View file