/** * Sanitized environment builder for Claude Code child processes. * * Removes secrets from the inherited process environment before passing it to * spawned subprocesses, so an agent cannot exfiltrate credentials via env vars. */ /** * Returns a sanitized copy of `process.env` suitable for passing to a spawned * Claude Code child process. * * - Removes all keys in the static blocklist. * - Removes all keys matching the pattern blocklist. * - Sets `CI=true` and `DISCLAW_AGENT=1` as runtime markers. * - Merges `extra` last so callers can inject agent-specific variables * (e.g. `DISCLAW_AGENT_NAME`) and override any of the defaults. * - Removes any keys listed in `additionalBlocklist` (from `disclaw.yaml` * `env_blocklist` field) after applying `extra`. * * This function is pure: it never mutates `process.env`. */ export declare function sanitizedEnv(extra?: Record, additionalBlocklist?: string[]): NodeJS.ProcessEnv; //# sourceMappingURL=env.d.ts.map