File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ export class Session {
77 sessionId ?: string ;
88 serviceProvider ?: NodeDriverServiceProvider ;
99 apiClient : ApiClient ;
10- agentClientName ?: string ;
11- agentClientVersion ?: string ;
10+ agentRunner ?: {
11+ name : string ;
12+ version : string ;
13+ } ;
1214 private credentials ?: { clientId : string ; clientSecret : string } ;
1315 private baseUrl : string ;
1416
@@ -35,8 +37,12 @@ export class Session {
3537 }
3638
3739 setAgentClientData ( agentClient : Implementation | undefined ) {
38- this . agentClientName = agentClient ?. name ;
39- this . agentClientVersion = agentClient ?. version ;
40+ if ( agentClient ?. name && agentClient ?. version ) {
41+ this . agentRunner = {
42+ name : agentClient . name ,
43+ version : agentClient . version ,
44+ } ;
45+ }
4046 }
4147
4248 ensureAuthenticated ( ) : asserts this is { apiClient : ApiClient } {
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ export class Telemetry {
4242 device_id : config . device_id ,
4343 mcp_server_version : pkg . version ,
4444 mcp_server_name : config . mcpServerName ,
45- mcp_client_version : this . session . agentClientVersion ,
46- mcp_client_name : this . session . agentClientName ,
45+ mcp_client_version : this . session . agentRunner ?. version ,
46+ mcp_client_name : this . session . agentRunner ?. name ,
4747 platform : config . platform ,
4848 arch : config . arch ,
4949 os_type : config . os_type ,
You can’t perform that action at this time.
0 commit comments