Repository navigation
sandbox@4.12.0
Minor Changes
-
Add detached command execution and CLI commands to inspect logs, wait for completion, and stop a running command. (#391)
-
Add
sandbox read <name> <path>(aliascat) andsandbox write <name> <path>to read a sandbox file to stdout and write stdin to a sandbox file, andsandbox copy --recursiveto copy whole directories in either direction. Failed copies now exit with a non-zero code. (#380) -
Add
sandbox exec --stdinto pipe local input into a foreground command. Also add detached stdin writes, selected command output, domain lookup, and Linux users and groups. (#392) -
Add
sandbox create fxto open fx in the universal image with its default permissions. Print commands to continue the conversation withfx -cor stop the sandbox after exiting. (#413) -
Add
credentials: { npm: true }toSandbox.createand--credentials=npmtocreate,run, andsh, so a sandbox can install your team's private npm packages with Vercel managed credentials injected into the sandbox network policy.--credentialstakes a comma-separated list, so later credential types share the same flag. (#453) -
Add
--network-policy-file <FILE>(use-for stdin) tocreate,run,sh,fork, andconfig network-policy. It takes the whole network policy as JSON in the SDK'sNetworkPolicyshape, so the CLI can express any rule the SDK can, such as a request header limited toGETandHEAD. The SDK exportsparseNetworkPolicy, which validates untrusted input with the same rules asSandbox.create, rejects unknown keys, and never includes values in its errors.@vercel/sandbox-mockre-exports both. (#417)
Patch Changes
-
Use the login shell of the user for interactive sessions when
SHELLis not set. Before, images withoutSHELLstartedsh, and on Debian-based imagesshhas no line editing. (#438) -
Telemetry now records real team and project ids when
--scopeor--projectis given as a slug, keeps the slugs out of the id fields, and records the caller's user id. (#441) -
Update
zodto v4.6.7. (#450) -
Updated dependencies [
32c74ee8f049ded8e3260d9c3015a500a2fb0f95,0ab5f9d177f5e5ec107e0373f9ae234bb8ecb23b,201070d07f19faa89acb9a82015331a3b38db57a,5ebd5ed396f6f61f1e99cc560db2751d174672f4,3b6e77aba56553da9677cbefcaaf340f3bb6ebe9,584633045bdeda5ea013e8af8e0be3bb935e1d20]:- @vercel/sandbox@4.0.0