MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isInProtectedNamespace

Function isInProtectedNamespace

source code/utils/envUtils.ts:138–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 * Used for telemetry to measure auto-mode usage in sensitive environments.
137 */
138export function isInProtectedNamespace(): boolean {
139 // USER_TYPE is build-time --define'd; in external builds this block is
140 // DCE'd so the require() and namespace allowlist never appear in the bundle.
141 if (process.env.USER_TYPE === 'ant') {
142 /* eslint-disable @typescript-eslint/no-require-imports */
143 return (
144 require('./protectedNamespace.js') as typeof import('./protectedNamespace.js')
145 ).checkProtectedNamespace()
146 /* eslint-enable @typescript-eslint/no-require-imports */
147 }
148 return false
149}
150
151// @[MODEL LAUNCH]: Add a Vertex region override env var for the new model.
152/**

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected