Repository navigation
Follow-up to 0.1.0. The 0.1.0 tag stays where it is.
- The worker no longer inherits the parent's environment. It gets PATH, HOME, locale and temp-dir variables; anything a tool needs is passed through the new
workerEnvoption. - Node's permission model is on by default (
permissions: true): file access limited to the package, toolhost'sdir, and the workspace; child processes only whenexecis on; no native addons. Network is not restricted. Turn it off withpermissions: falseif a tool must read or spawn outside those bounds. - Arguments are validated against the tool's schema before a call reaches the worker (
invalid_arguments, with each problem spelled out). Off withvalidateArgs: false. - README: what the permission model does and does not cover, why toolhost is not a sandbox and what to use instead, and why it is not on npm.
Install: npm install github:MZULALI/toolhost#v0.1.1