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

Function isInProtectedNamespace

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

Source from the content-addressed store, hash-verified

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

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