()
| 136 | * Used for telemetry to measure auto-mode usage in sensitive environments. |
| 137 | */ |
| 138 | export 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 | /** |
no outgoing calls
no test coverage detected