Add reusable React terminal component

This commit is contained in:
Nathan Flurry 2026-03-07 16:50:24 -08:00
parent 1241fdec4c
commit 9cca6e3e87
15 changed files with 338 additions and 122 deletions

View file

@ -29,6 +29,12 @@ The TypeScript SDK is centered on `sandbox-agent` and its `SandboxAgent` class.
npm install @sandbox-agent/persist-indexeddb@0.2.x @sandbox-agent/persist-sqlite@0.2.x @sandbox-agent/persist-postgres@0.2.x
```
## Optional React components
```bash
npm install @sandbox-agent/react@0.2.x
```
## Create a client
```ts
@ -206,4 +212,3 @@ Parameters:
- `fetch` (optional): Custom fetch implementation used by SDK HTTP and ACP calls
- `waitForHealth` (optional, defaults to enabled): waits for `/v1/health` before HTTP helpers and ACP session setup proceed; pass `false` to disable or `{ timeoutMs }` to bound the wait
- `signal` (optional): aborts the startup `/v1/health` wait used by `connect()`