| 4 | |
| 5 | // User profile: defines how a user interacts with Sourcebot |
| 6 | interface 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 |
nothing calls this directly
no outgoing calls
no test coverage detected