* Per-session skill/plugin telemetry. Called from both the interactive path * and the headless -p path (before runHeadless) — both go through * main.tsx but branch before the interactive startup path, so it needs two * call sites here rather than one here + one in QueryEngine.
()
| 277 | * call sites here rather than one here + one in QueryEngine. |
| 278 | */ |
| 279 | function logSessionTelemetry(): void { |
| 280 | const model = parseUserSpecifiedModel(getInitialMainLoopModel() ?? getDefaultMainLoopModel()); |
| 281 | void logSkillsLoaded(getCwd(), getContextWindowForModel(model, getSdkBetas())); |
| 282 | void loadAllPluginsCacheOnly().then(({ |
| 283 | enabled, |
| 284 | errors |
| 285 | }) => { |
| 286 | const managedNames = getManagedPluginNames(); |
| 287 | logPluginsEnabledForSession(enabled, managedNames, getPluginSeedDirs()); |
| 288 | logPluginLoadErrors(errors, managedNames); |
| 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) { |
no test coverage detected