instabox 0.8.87 → 0.8.89

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/cli/SHA256SUMS CHANGED
@@ -1,6 +1,6 @@
1
- 3deb230be6407d8a1a1388c605a937a9267b664c2a57cc41da98dc79b51b247c instabox-darwin-amd64
2
- 13a92d0805b4b54157f6b8f226ae15dc4ceebfa4665b6323a269b8bed3fe37ba instabox-darwin-arm64
3
- 064de76debb04a11c910831ce57a4a5ef74062af967635ec4efb34d8901ef7e7 instabox-linux-amd64
4
- 1f5a6f74c7a05a6cacb2d08e79df0e2ebe2b154697b3907ca17c8a5b8502714c instabox-linux-arm64
5
- cf8b9fad86e8bfc88ddb4e667cf96854f78d9306b809fac80267336ac8da55ad instabox-windows-amd64.exe
6
- 822d4a38fac7265af3e56f0e9ddb15537a23c3ec128491c07d585ea9c9b3e3da instabox-windows-arm64.exe
1
+ bb439ad309fe15a7e4a0c688db80af1d53f7a3dedd00ff958dff8d95d81cc47e instabox-darwin-amd64
2
+ dbbaf7c8464eac638ac418598254c5c993cc5c70aa17455e2464f1dab34e1066 instabox-darwin-arm64
3
+ 735de4657abe88e8264d6d1909096daa0bdcb43b9f400b24ea360ec6c9497c24 instabox-linux-amd64
4
+ 4f670fda1cacc297ee3289009e7491f77d5773eba10cc7bd2f4892f5596ac7e8 instabox-linux-arm64
5
+ 3a1cdc1fdb4707f10ca08cba5a2df742c1ad01c225adf7b9fcccdf30e226b097 instabox-windows-amd64.exe
6
+ 24ce6fa9a5daa805f906eb737921b63b0d8060e46d07e7b71759d632d6a5164d instabox-windows-arm64.exe
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "instabox",
3
- "version": "0.8.87",
3
+ "version": "0.8.89",
4
4
  "description": "A cloud box for your coding agent, the instabox CLI and its agent skills in one command: npx instabox@latest",
5
5
  "type": "module",
6
6
  "bin": {
@@ -69,6 +69,7 @@ instabox files work /data/home # list a directory (or print a t
69
69
  instabox push work ./app # copy a file or directory in (to /data/home/app)
70
70
  instabox pull work /data/home/app/out.log # copy a file or directory out (to ./out.log)
71
71
  instabox cp ./x.tgz work:/data/home/x.tgz # scp-style, either way (cp work:/data/home/x.tgz .)
72
+ instabox push work ./app/ /data/home/app # trailing / (or /.): app's files into /data/home/app, no app/app
72
73
  instabox auto-suspend work 10m # idle time before a paid box pauses
73
74
  instabox max-run work 120 # pause a paid box after two running hours
74
75
  instabox max-run work -1 # remove the runtime cap; idle policy still applies
@@ -80,6 +81,7 @@ instabox rm --yes work # delete the box (without --yes
80
81
  ```
81
82
 
82
83
  - Names or IDs (`m_...`) both work wherever `<id-or-name>` is accepted.
84
+ - Directories in `push`, `pull` and `cp` (both directions) follow `cp -r`/rsync: `SRC` into an existing directory lands as `DST/<name>` (`push work ./app /data/home` gives `/data/home/app`); `SRC` to a missing path becomes it; `SRC/`, `SRC/.` or `.` copies the contents into `DST` itself, creating it if missing (`pull work /data/home/app/ ./app` fills `./app`). With the destination omitted a directory always keeps its name (`push work .` gives `/data/home/<dirname>`), so nothing merges into HOME or the cwd by default.
83
85
  - For large uploads use `instabox push` or `instabox cp` (the HTTP API, parallel-friendly), not scp or rsync over `ssh.instabox.sh`, which keeps about 2 MiB in flight per connection and so slows with distance. Measured: at a 5 ms round trip both paths do ~104 MB/s; at 305 ms the API does 11-13 MB/s per stream and SSH 3-6 MB/s; 4 parallel API PUTs did 39 MB/s total.
84
86
  - `create` options: `--template T` or `--snapshot S`, `--vcpus N --mem-mib M` (a size of the plan, see Sizes), `--auto-suspend D|0`, `--max-run-minutes N`, `--delete-after D` (delete it D after creation, 1m-24h, whatever its state), `--meta K=V`, `--org O`, `--secrets all|NAME,NAME|none`, `--no-wait`, `--setup-file PATH|-` (`--wait-setup`), `--fail-fast` (when no host has room, fail at once and create nothing instead of failing the create after; with `--snapshot`, instead of creating it stopped).
85
87
  - `create --setup-file PATH` (`-`: stdin; at most 64 KB) runs that script in the new box once it is running, in HOME as the box's user (by its `#!` line, else with bash; CRLF line endings become LF), and prints its output; it replaces create + push + exec for provisioning. A failing script makes `create` exit with the script's code and keeps the box: debug it with `instabox exec work -- /tmp/instabox-setup.sh`. With `--json` the sandbox object gets a `setup` object (`exitCode`, `stdout`, `stderr`, `signal`, `timedOut`, `truncated`, `durationMs`). `create` always waits for the script (`--wait-setup` names that; `=false` is refused) and keeps its state in the box's metadata, so `instabox get work --json` shows it later: `metadata.setupStatus` (`pending`, `running`, `succeeded`, `failed`), `setupExitCode` (`124`: timed out) and `setupLog` (the last 512 characters of its stdout then stderr). The script is killed after `--setup-timeout` (default and at most 10m); for longer installs, use `ssh`. A missing, empty or over-64 KB file is refused before any box is created. `run --setup-file` does the same before its command, with its `-e` variables; when the script fails, run's `--json` `exitCode` is the script's. The script stays at `/tmp/instabox-setup.sh` (and in snapshots), so keep credentials out of it.