MCPcopy
hub / github.com/codeaashu/claude-code / isAdvisorEnabled

Function isAdvisorEnabled

src/utils/advisor.ts:60–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60export 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
71export function canUserConfigureAdvisor(): boolean {
72 return isAdvisorEnabled() && (getAdvisorConfig().canUserConfigure ?? false)

Callers 5

runFunction · 0.85
canUserConfigureAdvisorFunction · 0.85
getInitialAdvisorSettingFunction · 0.85
queryModelFunction · 0.85

Calls 3

isEnvTruthyFunction · 0.85
getAdvisorConfigFunction · 0.85

Tested by

no test coverage detected