()
| 33 | * falls through to defaults). |
| 34 | */ |
| 35 | export function autoModeConfigHandler(): void { |
| 36 | const config = getAutoModeConfig() |
| 37 | const defaults = getDefaultExternalAutoModeRules() |
| 38 | writeRules({ |
| 39 | allow: config?.allow?.length ? config.allow : defaults.allow, |
| 40 | soft_deny: config?.soft_deny?.length |
| 41 | ? config.soft_deny |
| 42 | : defaults.soft_deny, |
| 43 | environment: config?.environment?.length |
| 44 | ? config.environment |
| 45 | : defaults.environment, |
| 46 | }) |
| 47 | } |
| 48 | |
| 49 | const CRITIQUE_SYSTEM_PROMPT = |
| 50 | 'You are an expert reviewer of auto mode classifier rules for Claude Code.\n' + |
no test coverage detected