()
| 59 | } |
| 60 | |
| 61 | export function isAdvisorEnabled(): boolean { |
| 62 | if (isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_ADVISOR_TOOL)) { |
| 63 | return false |
| 64 | } |
| 65 | // The advisor beta header is first-party only (Bedrock/Vertex 400 on it). |
| 66 | if (!shouldIncludeFirstPartyOnlyBetas()) { |
| 67 | return false |
| 68 | } |
| 69 | return getAdvisorConfig().enabled ?? false |
| 70 | } |
| 71 | |
| 72 | export function canUserConfigureAdvisor(): boolean { |
| 73 | return isAdvisorEnabled() && (getAdvisorConfig().canUserConfigure ?? false) |
no test coverage detected