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