Contains utility functions for executing commands.
| Interface | Description |
|---|
| ExecArg | A command argument that contains a list of args to be batched. If the expanded command exceeds the platform’s max command length, the batched args are split into sequential executions. |
| ExecDetailedOptions | Options for exec that return detailed results. |
| ExecOptions | Options for executing a command. |
| ExecResult | A result of exec. |
| ExecSimpleOptions | Options for exec that return only stdout. |
| Function | Description |
|---|
| appendNodeOption | Appends a single node CLI option to a NODE_OPTIONS string, preserving any options already present. |
| buildChildEnv | Builds the environment for child processes: the parent environment plus DEBUG_COLORS, and — when the running node supports it — LOCAL_STORAGE_NODE_OPTION appended to NODE_OPTIONS. The support check guards against older node (< 22): passing an option node does not recognize via NODE_OPTIONS makes it exit before running, which would break every spawned tool. |
| exec | Executes a command. |
| Type | Description |
|---|
| CommandPart | A command part: either a plain string or an ExecArg with batched arguments. |