* 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.
()
| 422 | * call sites here rather than one here + one in QueryEngine. |
| 423 | */ |
| 424 | function logSessionTelemetry(): void { |
| 425 | const model = parseUserSpecifiedModel(getInitialMainLoopModel() ?? getDefaultMainLoopModel()); |
| 426 | void logSkillsLoaded(getCwd(), getContextWindowForModel(model, getSdkBetas())); |
| 427 | void loadAllPluginsCacheOnly() |
| 428 | .then(({ enabled, errors }) => { |
| 429 | const managedNames = getManagedPluginNames(); |
| 430 | logPluginsEnabledForSession(enabled, managedNames, getPluginSeedDirs()); |
| 431 | logPluginLoadErrors(errors, managedNames); |
| 432 | }) |
| 433 | .catch(err => logError(err)); |
| 434 | } |
| 435 | |
| 436 | function getCertEnvVarTelemetry(): Record<string, boolean> { |
| 437 | const result: Record<string, boolean> = {}; |
no test coverage detected