New Feature
feat(executor): add inheritEnvKeys parameter for env var passthrough (#226)
Allow callers to inherit specific environment variables from the parent process into sandboxed executions. Security-critical variables (NODE_OPTIONS, LD_PRELOAD, etc.) remain blocked by the DENIED set regardless.
Use case: Gradle daemon needs stable TMPDIR for compatibility checks. Per-execution TMPDIR override forces cold-start on every build (3-10x slower).
Usage
// In ctx_execute — inherit TMPDIR so Gradle reuses its daemon
ctx_execute({
language: "shell",
code: "./gradlew build",
inheritEnvKeys: ["TMPDIR"]
})
// In ctx_batch_execute
ctx_batch_execute({
commands: [{ command: "./gradlew test" }],
inheritEnvKeys: ["TMPDIR"]
})How to update
npm update -g context-modeFull Changelog: v1.0.61...v1.0.62