github mksglu/context-mode v1.0.62

latest releases: v1.0.65, v1.0.64, v1.0.63...
7 hours ago

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-mode

Full Changelog: v1.0.61...v1.0.62

Don't miss a new context-mode release

NewReleases is sending notifications on new releases.