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

Function getAnalyticsRuntime

apps/host-selfhost/src/analytics.ts:28–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26let analyticsRuntime: ManagedRuntime.ManagedRuntime<Analytics, never> | null = null;
27
28const getAnalyticsRuntime = (): ManagedRuntime.ManagedRuntime<Analytics, never> => {
29 if (analyticsRuntime) return analyticsRuntime;
30 analyticsRuntime = ManagedRuntime.make(
31 analyticsDefaultLayer({
32 surface: "selfhost",
33 version: VERSION,
34 channel: CHANNEL,
35 dataDir: resolveDataDir(),
36 }),
37 );
38 return analyticsRuntime;
39};
40
41/**
42 * Lazy facade over the instance's shared service. `record` forks into the

Callers 1

analytics.tsFile · 0.70

Calls 1

resolveDataDirFunction · 0.90

Tested by

no test coverage detected