@insforge/instabox-sdk 0.10.0 → 0.11.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insforge/instabox-sdk",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "TypeScript SDK for instabox: create sandboxes on Firecracker dev machines, run commands, move files, pause, resume, resize, snapshot, publish ports and SSH in.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -54,7 +54,7 @@ A new sandbox pauses itself after 30 idle minutes and resumes on the next comman
54
54
 
55
55
  Connection options `{ apiKey, apiUrl }` override environment variables. `agent-browser` (universal plus a desktop and browser) is the default template; `universal` on a server without it. The free plan creates from `agent-browser`, `android` or `ci` only; other templates need a paid plan (`403 template_not_allowed` on free). Create accepts a template ID, a private snapshot name, or a `sn_...` snapshot ID. Template IDs take precedence; duplicate snapshot names require an ID. There are no official snapshots. Template creation and snapshot-ID creation need only machine scopes; snapshot-name lookup also needs `images:read`.
56
56
 
57
- Drive the desktop with `box.desktop`: `start()`, `open(url)`, `screenshot()` (PNG bytes), `click(x, y)`, `move`, `drag`, `scroll`, `type(text)`, `press('Enter' | ['ctrl', 'l'])`, `cursorPosition()`. `streamUrl({ viewOnly: true })` returns a link (also embeddable in an iframe) that shows the desktop to people without an account; its expiry stops new connections, and `revokeStreamUrls()` ends every link and disconnects open viewers.
57
+ Drive the desktop with `box.desktop`: `start()`, `open(url)`, `screenshot()` (PNG bytes), `click(x, y)`, `move`, `drag`, `scroll`, `type(text)`, `press('Enter' | ['ctrl', 'l'])`, `cursorPosition()`. `streamUrl({ viewOnly: true })` returns a link (also embeddable in an iframe) that shows the desktop to people without an account; its expiry stops new connections, and `revokeStreamUrls()` ends every link and disconnects open viewers. On Linux, macOS and Windows sandboxes, `box.computerUse.call(tool, args)` calls the sandbox's computer-use MCP tools (`list_windows`, `get_window_state`, `get_desktop_state`, `click`, `type_text`, `run_steps`, ...; `computerUse.tools()` lists them) and resolves with `{ text, images, isError }`; each call starts the server anew, so element tokens do not carry from one call to the next.
58
58
 
59
59
  Give a server in the box an HTTPS URL with `box.ports.publish(port, { name?, access?: 'public' | 'private' })`. It returns `{ url, access, token?, tokenUrl? }`, and WebSockets pass through. Use the returned `url`, never build one. A private port's `tokenUrl` comes only from the publish that created or rotated its token. `ports.list()` and `ports.unpublish(port)` manage them.
60
60