-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathtypes.ts
More file actions
34 lines (31 loc) · 1.07 KB
/
types.ts
File metadata and controls
34 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export interface TelemetryConfig {
userId: string
clientInfo: ClientInfo
extensionVersion: string
isEnabled: () => boolean
}
export interface ClientInfo {
client: string // 'vscode-desktop' | 'cursor' | 'vscodium' | etc.
app_name: string // Human-readable editor name (e.g., "Visual Studio Code", "Cursor")
app_host: string // Host environment (e.g., "desktop", "codespaces", "web")
is_remote: boolean // Whether workspace is opened via remote connection
remote_name: string | undefined // Remote type if applicable (e.g., "ssh-remote", "dev-container", "wsl")
platform: string // OS platform: 'win32' | 'darwin' | 'linux'
arch: string // CPU architecture: 'x64' | 'arm64'
}
// Event property types
export interface ActivationEventProps {
duration_ms: number
success: boolean
routes_count: number
routers_count: number
apps_count: number
workspace_folder_count: number
}
export interface EntrypointDetectedEventProps {
duration_ms: number
method: "config" | "pyproject" | "heuristic"
success: boolean
routes_count: number
routers_count: number
}