()
| 347 | }).catch(err => logError(err)); |
| 348 | } |
| 349 | function getCertEnvVarTelemetry(): Record<string, boolean> { |
| 350 | const result: Record<string, boolean> = {}; |
| 351 | if (process.env.NODE_EXTRA_CA_CERTS) { |
| 352 | result.has_node_extra_ca_certs = true; |
| 353 | } |
| 354 | if (process.env.CLAUDE_CODE_CLIENT_CERT) { |
| 355 | result.has_client_cert = true; |
| 356 | } |
| 357 | if (hasNodeOption('--use-system-ca')) { |
| 358 | result.has_use_system_ca = true; |
| 359 | } |
| 360 | if (hasNodeOption('--use-openssl-ca')) { |
| 361 | result.has_use_openssl_ca = true; |
| 362 | } |
| 363 | return result; |
| 364 | } |
| 365 | async function logStartupTelemetry(): Promise<void> { |
| 366 | if (isAnalyticsDisabled()) return; |
| 367 | const [isGit, worktreeCount, ghAuthStatus] = await Promise.all([getIsGit(), getWorktreeCount(), getGhAuthStatus()]); |
no test coverage detected