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