@theagenticguy/microvms 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/README.md CHANGED
@@ -138,13 +138,15 @@ For a `Sandbox` named `vm` and its `session`:
138
138
  | Read live output as byte streams | `session.spawn(argv)` → `ExecProcess` |
139
139
  | Keep the VM awake while an exec runs | `await session.keepAwake({ whileBusy: true })` → `KeepAwake` |
140
140
  | Upload input or download results | `session.uploadFile(path, bytes)`, `session.downloadFile(path)` |
141
- | Transfer a directory | `session.uploadTar(path, tarBytes)`, `session.downloadTar(path)` |
141
+ | Sync a directory in, bring files back | `session.syncDir(localDir)`, `session.downloadDir(path, localDir, ['**'])` |
142
+ | Move a tar archive as bytes | `session.uploadTar(path, tarBytes)`, `session.downloadTar(path)` |
142
143
  | Freeze and restore a workspace | `vm.suspend()`, `vm.resume()` |
143
144
 
144
145
  `runSync` returns a Promise: it starts a command, waits, and acknowledges
145
146
  its saved output. A nonzero exit is a result, so check `result.ok` or
146
147
  `result.exitCode`. Use `{ shell: true }` when passing a shell script string.
147
- Async library errors expose their `ERR_*` code through `error.cause.message`.
148
+ Async library errors expose their `ERR_*` code through `error.cause.message`,
149
+ and `isRetryable(error)` says whether an identical retry could succeed.
148
150
 
149
151
  Omitting `egress` does not block outbound traffic. For no egress, use
150
152
  `egressNetworkConnectors: [vpcConnectorArn]` with a VPC without an internet