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

Function getDistinctId

cli/src/utils/analytics.ts:108–110  ·  view source on GitHub ↗

Get current distinct ID (real user ID if identified, otherwise anonymous ID)

()

Source from the content-addressed store, hash-verified

106
107/** Get current distinct ID (real user ID if identified, otherwise anonymous ID) */
108function getDistinctId(): string | undefined {
109 return currentUserId ?? anonymousId
110}
111
112/** Reset analytics state - for testing only */
113export function resetAnalyticsState(deps?: AnalyticsDeps) {

Callers 1

trackEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected