disclaw/tests/unit
Nick Tabeling eb30a9c945 fix(runner): add sanitizedEnv, remove process.env passthrough
Introduces src/runtime/env.ts with a pure sanitizedEnv() function that
strips DISCORD_BOT_TOKEN, DISCORD_CLIENT_SECRET, DISCORD_PUBLIC_KEY, and
all keys matching /^(DISCLAW_SECRET_|SECRET_|TOKEN_|API_KEY_?)/i before
passing the environment to spawned Claude Code child processes. Adds
optional env_blocklist field to DisclawConfig. Runner now passes
DISCLAW_AGENT_NAME and respects the blocklist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 10:39:16 +02:00
..
resolve-claude.test.ts fix(runner): replace shell:true with cross-spawn, add resolveClaude 2026-04-09 10:29:58 +02:00
sanitize-env.test.ts fix(runner): add sanitizedEnv, remove process.env passthrough 2026-04-09 10:39:16 +02:00