MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / resolveDeps

Function resolveDeps

cli/src/utils/analytics.ts:67–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65let injectedDeps: AnalyticsDeps | undefined
66
67function resolveDeps(): ResolvedAnalyticsDeps {
68 return {
69 env: injectedDeps?.env ?? defaultEnv,
70 isProd: injectedDeps?.isProd ?? defaultIsProd,
71 createClient: injectedDeps?.createClient ?? createPostHogClient,
72 generateAnonymousId:
73 injectedDeps?.generateAnonymousId ?? generateAnonymousId,
74 }
75}
76
77let loggerModulePromise:
78 | Promise<{ logger: { debug: (data: any, msg?: string, ...args: any[]) => void } }>

Callers 3

initAnalyticsFunction · 0.85
trackEventFunction · 0.85
identifyUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected