@principal-ai/control-tower-core 0.4.3 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -7184,7 +7184,7 @@ class ServerBuilder {
7184
7184
  const userId = server.getUserIdFromClientId(clientId);
7185
7185
  if (userId && presenceManager.isEnabled()) {
7186
7186
  const client = server.getClient(clientId);
7187
- const deviceId = client?.metadata?.device_id || client?.metadata?.agentId || clientId;
7187
+ const deviceId = client?.deviceId || clientId;
7188
7188
  const extensions = presenceManager.extensions;
7189
7189
  if (extensions) {
7190
7190
  for (const ext of extensions) {
@@ -7197,7 +7197,7 @@ class ServerBuilder {
7197
7197
  const userId = server.getUserIdFromClientId(clientId);
7198
7198
  if (userId && presenceManager.isEnabled()) {
7199
7199
  const client = server.getClient(clientId);
7200
- const deviceId = client?.metadata?.device_id || client?.metadata?.agentId || clientId;
7200
+ const deviceId = client?.deviceId || clientId;
7201
7201
  const extensions = presenceManager.extensions;
7202
7202
  if (extensions) {
7203
7203
  for (const ext of extensions) {
@@ -7238,4 +7238,4 @@ export {
7238
7238
  BaseClient
7239
7239
  };
7240
7240
 
7241
- //# debugId=DB67CC00213AB3CF64756E2164756E21
7241
+ //# debugId=CDBE4571CA2CA37864756E2164756E21