()
| 170 | * Used for telemetry to measure auto-mode usage in sensitive environments. |
| 171 | */ |
| 172 | export 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 | /** |
no test coverage detected