MCPcopy Index your code
hub / github.com/Noumena-Network/code / logSessionTelemetry

Function logSessionTelemetry

src/main.tsx:333–348  ·  view source on GitHub ↗

* 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.

()

Source from the content-addressed store, hash-verified

331 * call sites here rather than one here + one in QueryEngine.
332 */
333function logSessionTelemetry(): void {
334 const model = parseUserSpecifiedModel(getInitialMainLoopModel() ?? getDefaultMainLoopModel());
335 void logSkillsLoaded(getCwd(), getContextWindowForModel(model, getSdkBetas()));
336 if (isDeferredHeadlessPluginStartupSurfacesEnabled()) {
337 logForDebugging('[STARTUP] Skipping eager plugin session telemetry during deferred headless startup');
338 return;
339 }
340 void loadAllPluginsCacheOnly().then(({
341 enabled,
342 errors
343 }) => {
344 const managedNames = getManagedPluginNames();
345 logPluginsEnabledForSession(enabled, managedNames, getPluginSeedDirs());
346 logPluginLoadErrors(errors, managedNames);
347 }).catch(err => logError(err));
348}
349function getCertEnvVarTelemetry(): Record<string, boolean> {
350 const result: Record<string, boolean> = {};
351 if (process.env.NODE_EXTRA_CA_CERTS) {

Callers 1

runFunction · 0.85

Calls 14

parseUserSpecifiedModelFunction · 0.85
getInitialMainLoopModelFunction · 0.85
getDefaultMainLoopModelFunction · 0.85
logSkillsLoadedFunction · 0.85
getCwdFunction · 0.85
getContextWindowForModelFunction · 0.85
getSdkBetasFunction · 0.85
getManagedPluginNamesFunction · 0.85
getPluginSeedDirsFunction · 0.85
logPluginLoadErrorsFunction · 0.85

Tested by

no test coverage detected