MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / getAnalyticsRuntime

Function getAnalyticsRuntime

apps/local/src/analytics.ts:29–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27let analyticsRuntime: ManagedRuntime.ManagedRuntime<Analytics, never> | null = null;
28
29const getAnalyticsRuntime = (): ManagedRuntime.ManagedRuntime<Analytics, never> => {
30 if (analyticsRuntime) return analyticsRuntime;
31 analyticsRuntime = ManagedRuntime.make(
32 analyticsDefaultLayer({
33 surface: resolveSurface(),
34 version: VERSION,
35 channel: CHANNEL,
36 dataDir: resolveExecutorDataDir(),
37 }),
38 );
39 return analyticsRuntime;
40};
41
42/**
43 * Lazy facade over the daemon's shared service, usable from boot paths that

Callers 1

analytics.tsFile · 0.70

Calls 2

resolveExecutorDataDirFunction · 0.90
resolveSurfaceFunction · 0.85

Tested by

no test coverage detected