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

Function isEnvTruthy

src/utils/protectedNamespace.js:10–14  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8const COO_SIGNAL_ENV_VARS = ['COO_CLUSTER', 'COO_CLUSTER_NAME', 'COO_NAMESPACE']
9
10function isEnvTruthy(value) {
11 if (!value) return false
12 const normalized = value.toLowerCase().trim()
13 return normalized === '1' || normalized === 'true' || normalized === 'yes' || normalized === 'on'
14}
15
16function hasAnyCooSignal() {
17 return COO_SIGNAL_ENV_VARS.some(envVar => {

Callers 15

addToHistoryFunction · 0.90
getAllBaseToolsFunction · 0.90
getToolsFunction · 0.90
context.tsFile · 0.90
showSetupScreensFunction · 0.90
submitMessageMethod · 0.90
startDeferredPrefetchesFunction · 0.90
initializeEntrypointFunction · 0.90
mainFunction · 0.90
runFunction · 0.90
maybeActivateProactiveFunction · 0.90
maybeActivateBriefFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected