MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / UserProfile

Interface UserProfile

packages/db/tools/scripts/inject-audit-data-v2.ts:6–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5// User profile: defines how a user interacts with Sourcebot
6interface UserProfile {
7 id: string
8 // Whether this user uses the web UI, and how active they are (0 = never, 1 = heavy)
9 webWeight: number
10 // Whether this user uses MCP, and how active they are (0 = never, 1 = heavy)
11 mcpWeight: number
12 // Whether this user uses the API directly, and how active they are (0 = never, 1 = heavy)
13 apiWeight: number
14 // API source label (for non-MCP API usage)
15 apiSource: string
16 // How likely they are to be active on a weekday (0-1)
17 weekdayActivity: number
18 // How likely they are to be active on a weekend (0-1)
19 weekendActivity: number
20}
21
22// Generate realistic audit data for analytics testing
23// Simulates 50 users with mixed usage patterns across web UI, MCP, and API

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected