/** * Block dangerous env keys from child process spawns (GHSA-54rx class). * Shared by shell, MCP, and other spawn paths. * * The code-injection category is a single source of truth: the agent * package's BLOCKED_ENV_KEYS imports these sets directly so the config-write * denylist and the spawn sanitizer cannot drift. Both spawn consumers (the * coding-tools processQueue and the agent shell-execution-router) now * sanitize the FULL merged environment (trusted process.env + untrusted * overlay) through the same predicate, closing the config→env→spawn bypass. */ /** * Single source of truth for the spawn/MCP env denylist. Consumers that need * the raw data (e.g. the agent's MCP config validator) import these directly so * the lists cannot drift between the shell/spawn and MCP paths. */ export declare const BLOCKED_SPAWN_ENV_KEYS: ReadonlySet; export declare const BLOCKED_SPAWN_ENV_PREFIXES: readonly ["NPM_CONFIG_", "PNPM_", "YARN_", "BUN_CONFIG_", "UV_", "PIP_", "PIPX_", "PYX_", "DENO_", "DOCKER_", "PODMAN_", "BASH_FUNC_", "GIT_CONFIG_KEY_", "GIT_CONFIG_VALUE_"]; export declare function isBlockedSpawnEnvKey(key: string): boolean; export declare function sanitizeSpawnEnv(env: Record): Record;