MCPcopy Create free account
hub / github.com/Noumena-Network/code / isAdvisorEnabled

Function isAdvisorEnabled

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

Source from the content-addressed store, hash-verified

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

Callers 5

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

Calls 3

isEnvTruthyFunction · 0.90
getAdvisorConfigFunction · 0.85

Tested by

no test coverage detected