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

Function isInProtectedNamespace

src/utils/envUtils.ts:172–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170 * Used for telemetry to measure auto-mode usage in sensitive environments.
171 */
172export function isInProtectedNamespace(): boolean {
173 // USER_TYPE is build-time --define'd; in external builds this block is
174 // DCE'd so the require() and namespace allowlist never appear in the bundle.
175 if (isInternalBuild()) {
176 /* eslint-disable @typescript-eslint/no-require-imports */
177 return (
178 require('./protectedNamespace.js') as typeof import('./protectedNamespace.js')
179 ).checkProtectedNamespace()
180 /* eslint-enable @typescript-eslint/no-require-imports */
181 }
182 return false
183}
184
185// @[MODEL LAUNCH]: Add a Vertex region override env var for the new model.
186/**

Callers 6

logTenguInitFunction · 0.85
classifyHandoffIfNeededFunction · 0.85
hasPermissionsToUseToolFunction · 0.85
initEnvLessBridgeCoreFunction · 0.85
initBridgeCoreFunction · 0.85
runBridgeLoopFunction · 0.85

Calls 1

isInternalBuildFunction · 0.85

Tested by

no test coverage detected