()
| 289 | }).catch(err => logError(err)); |
| 290 | } |
| 291 | function getCertEnvVarTelemetry(): Record<string, boolean> { |
| 292 | const result: Record<string, boolean> = {}; |
| 293 | if (process.env.NODE_EXTRA_CA_CERTS) { |
| 294 | result.has_node_extra_ca_certs = true; |
| 295 | } |
| 296 | if (process.env.CLAUDE_CODE_CLIENT_CERT) { |
| 297 | result.has_client_cert = true; |
| 298 | } |
| 299 | if (hasNodeOption('--use-system-ca')) { |
| 300 | result.has_use_system_ca = true; |
| 301 | } |
| 302 | if (hasNodeOption('--use-openssl-ca')) { |
| 303 | result.has_use_openssl_ca = true; |
| 304 | } |
| 305 | return result; |
| 306 | } |
| 307 | async function logStartupTelemetry(): Promise<void> { |
| 308 | if (isAnalyticsDisabled()) return; |
| 309 | const [isGit, worktreeCount, ghAuthStatus] = await Promise.all([getIsGit(), getWorktreeCount(), getGhAuthStatus()]); |
no test coverage detected