@agent-relay/dashboard-server 2.0.34 → 2.0.35

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.
Files changed (54) hide show
  1. package/dist/server.js +11 -5
  2. package/dist/server.js.map +1 -1
  3. package/out/404.html +1 -1
  4. package/out/about.html +1 -1
  5. package/out/about.txt +1 -1
  6. package/out/app/onboarding.html +1 -1
  7. package/out/app/onboarding.txt +1 -1
  8. package/out/app.html +1 -1
  9. package/out/app.txt +1 -1
  10. package/out/blog.html +1 -1
  11. package/out/blog.txt +1 -1
  12. package/out/careers.html +1 -1
  13. package/out/careers.txt +1 -1
  14. package/out/changelog.html +1 -1
  15. package/out/changelog.txt +1 -1
  16. package/out/cloud/link.html +1 -1
  17. package/out/cloud/link.txt +1 -1
  18. package/out/complete-profile.html +1 -1
  19. package/out/complete-profile.txt +1 -1
  20. package/out/connect-repos.html +1 -1
  21. package/out/connect-repos.txt +1 -1
  22. package/out/contact.html +1 -1
  23. package/out/contact.txt +1 -1
  24. package/out/docs.html +1 -1
  25. package/out/docs.txt +1 -1
  26. package/out/history.html +1 -1
  27. package/out/history.txt +1 -1
  28. package/out/index.html +1 -1
  29. package/out/index.txt +1 -1
  30. package/out/login.html +1 -1
  31. package/out/login.txt +1 -1
  32. package/out/metrics.html +1 -1
  33. package/out/metrics.txt +1 -1
  34. package/out/pricing.html +1 -1
  35. package/out/pricing.txt +1 -1
  36. package/out/privacy.html +1 -1
  37. package/out/privacy.txt +1 -1
  38. package/out/providers/setup/claude.html +1 -1
  39. package/out/providers/setup/claude.txt +1 -1
  40. package/out/providers/setup/codex.html +1 -1
  41. package/out/providers/setup/codex.txt +1 -1
  42. package/out/providers/setup/cursor.html +1 -1
  43. package/out/providers/setup/cursor.txt +1 -1
  44. package/out/providers.html +1 -1
  45. package/out/providers.txt +1 -1
  46. package/out/security.html +1 -1
  47. package/out/security.txt +1 -1
  48. package/out/signup.html +1 -1
  49. package/out/signup.txt +1 -1
  50. package/out/terms.html +1 -1
  51. package/out/terms.txt +1 -1
  52. package/package.json +1 -1
  53. /package/out/_next/static/{4ukqivSxHc6dSkfpBIaVI → TsTnNqYwJwh19onsq1d9K}/_buildManifest.js +0 -0
  54. /package/out/_next/static/{4ukqivSxHc6dSkfpBIaVI → TsTnNqYwJwh19onsq1d9K}/_ssgManifest.js +0 -0
package/dist/server.js CHANGED
@@ -836,8 +836,14 @@ export async function startDashboard(portOrOptions, dataDirArg, teamDirArg, dbPa
836
836
  };
837
837
  client.onStateChange = (state) => {
838
838
  console.log(`[dashboard] Relay client for ${senderName} state: ${state}`);
839
- // Clean up disconnected clients
840
- if (state === 'DISCONNECTED') {
839
+ // Handle state transitions
840
+ if (state === 'READY') {
841
+ // Re-add to map on successful reconnection
842
+ relayClients.set(senderName, client);
843
+ }
844
+ else if (state === 'DISCONNECTED') {
845
+ // Only remove if max reconnect attempts exhausted (client gives up)
846
+ // The client will auto-reconnect if configured, so don't remove prematurely
841
847
  relayClients.delete(senderName);
842
848
  }
843
849
  };
@@ -3233,8 +3239,8 @@ export async function startDashboard(portOrOptions, dataDirArg, teamDirArg, dbPa
3233
3239
  const uptime = process.uptime();
3234
3240
  const memUsage = process.memoryUsage();
3235
3241
  const socketExists = fs.existsSync(socketPath);
3236
- // Check relay client connectivity (check if default Dashboard client is connected)
3237
- const defaultClient = relayClients.get('Dashboard');
3242
+ // Check relay client connectivity (check if default _DashboardUI client is connected)
3243
+ const defaultClient = relayClients.get('_DashboardUI');
3238
3244
  const relayConnected = defaultClient?.state === 'READY';
3239
3245
  // If socket doesn't exist, daemon may not be running properly
3240
3246
  if (!socketExists) {
@@ -3260,7 +3266,7 @@ export async function startDashboard(portOrOptions, dataDirArg, teamDirArg, dbPa
3260
3266
  const uptime = process.uptime();
3261
3267
  const memUsage = process.memoryUsage();
3262
3268
  const socketExists = fs.existsSync(socketPath);
3263
- const defaultClient = relayClients.get('Dashboard');
3269
+ const defaultClient = relayClients.get('_DashboardUI');
3264
3270
  const relayConnected = defaultClient?.state === 'READY';
3265
3271
  if (!socketExists) {
3266
3272
  return res.status(503).json({