@insforge/instabox-sdk 0.5.2 → 0.5.3

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/README.md CHANGED
@@ -356,7 +356,7 @@ Reads, and mutations (which always carry an `Idempotency-Key`), are retried up t
356
356
  ## Limits and what is not there yet
357
357
 
358
358
  - Quotas are account-specific; inspect `GET /v1/usage`. Exceeding a quota throws `InstaboxQuotaError`.
359
- - At most 32 command requests per account are in flight at once on `api.instabox.sh`, across all sandboxes (file reads count too); more throw `InstaboxQuotaError` (429, retryable). A `background: true` command counts only while it starts.
359
+ - At most 32 requests per user run at once, across all your sandboxes. Commands, file reads, desktop, port-forward and vault-push calls share this limit. A `background: true` command counts only while it starts. More throw `InstaboxQuotaError` (429, retryable).
360
360
  - The timeout is a deadline from when it was set, not an inactivity timer.
361
361
  - Command output is not streamed.
362
362
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insforge/instabox-sdk",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "TypeScript SDK for instabox: create sandboxes on Firecracker dev machines, run commands, move files, pause, resume, snapshot and SSH in.",
5
5
  "private": false,
6
6
  "type": "module",
@@ -125,7 +125,7 @@ For SSH certificates, use `box.sshCredentials(publicKey)`. Use its returned host
125
125
 
126
126
  - `CommandExitError` carries stdout, stderr, exitCode, timedOut and truncated. Exec output is buffered and capped at 1 MiB per stream, stdin at 1 MiB; commands may run for at most 600 seconds, and a timeout throws `CommandExitError` with `timedOut: true` and exit code 124. Background commands return a PID and a `kill()` handle that ends the command and everything it started.
127
127
  - Files are limited to 10 MiB per read/write and transferred in chunks. A file whose size changes during a read fails; avoid concurrent writes to files being read.
128
- - `InstaboxAuthError` covers 401/403; `InstaboxQuotaError` covers 429 (also more than 32 commands or file reads in flight per account; background commands count only while starting); `InstaboxTimeoutError` covers request/operation deadlines. `InstaboxError` carries status, code, requestId and operationId.
128
+ - `InstaboxAuthError` covers 401/403; `InstaboxQuotaError` covers 429, including the limit of 32 requests per user at once across all sandboxes (commands, file reads, desktop, port-forward and vault-push calls share it; a background command counts only while it starts); `InstaboxTimeoutError` covers request/operation deadlines. `InstaboxError` carries status, code, requestId and operationId.
129
129
  - Inspect `GET /v1/usage` for account quotas. Sizes on `api.instabox.sh` are fixed (4 vCPU, 8 GiB, 16 GiB root, 20 GiB `/data`); do not pass `vcpus`, `memMiB`, `diskGiB` or `rootDiskGiB` there (`400 spec_not_allowed`). Sandbox names are lowercase letters, digits and `-`.
130
130
  - Metadata and saved disks may contain plaintext. Do not save credentials into snapshots.
131
131
  - Timeout is a one-shot deadline, not inactivity detection; resume does not reset it. Set a new timeout after resuming when needed.