@agent-relay/dashboard-server 2.0.58 → 2.0.60

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 (69) hide show
  1. package/dist/server.js +12 -4
  2. package/dist/server.js.map +1 -1
  3. package/out/404.html +1 -1
  4. package/out/_next/static/chunks/695-9905bff526bf3c31.js +1 -0
  5. package/out/_next/static/chunks/{873-604131545363afd2.js → 873-609efa769bceebeb.js} +1 -1
  6. package/out/_next/static/chunks/app/blog/let-them-cook-multi-agent-orchestration/page-a58308f43557b908.js +1 -0
  7. package/out/_next/static/chunks/{main-be50531dde531aa3.js → main-acb1b24265295d6a.js} +1 -1
  8. package/out/_next/static/css/{7519fcf229687c83.css → 629d21db423c78a2.css} +1 -1
  9. package/out/about.html +2 -2
  10. package/out/about.txt +2 -2
  11. package/out/app/onboarding.html +1 -1
  12. package/out/app/onboarding.txt +1 -1
  13. package/out/app.html +1 -1
  14. package/out/app.txt +2 -2
  15. package/out/blog/agent-review-workflow.png +0 -0
  16. package/out/blog/go-to-bed-wake-up-to-a-finished-product.html +2 -2
  17. package/out/blog/go-to-bed-wake-up-to-a-finished-product.txt +1 -1
  18. package/out/blog/let-them-cook-multi-agent-orchestration-twitter-5x2.png +0 -0
  19. package/out/blog/let-them-cook-multi-agent-orchestration-twitter.png +0 -0
  20. package/out/blog/let-them-cook-multi-agent-orchestration.html +46 -0
  21. package/out/blog/let-them-cook-multi-agent-orchestration.png +0 -0
  22. package/out/blog/let-them-cook-multi-agent-orchestration.svg +155 -0
  23. package/out/blog/let-them-cook-multi-agent-orchestration.txt +6 -0
  24. package/out/blog.html +3 -3
  25. package/out/blog.txt +1 -1
  26. package/out/careers.html +3 -3
  27. package/out/careers.txt +2 -2
  28. package/out/changelog.html +2 -2
  29. package/out/changelog.txt +2 -2
  30. package/out/cloud/link.html +1 -1
  31. package/out/cloud/link.txt +1 -1
  32. package/out/complete-profile.html +1 -1
  33. package/out/complete-profile.txt +1 -1
  34. package/out/connect-repos.html +1 -1
  35. package/out/connect-repos.txt +1 -1
  36. package/out/contact.html +2 -2
  37. package/out/contact.txt +2 -2
  38. package/out/docs.html +2 -2
  39. package/out/docs.txt +2 -2
  40. package/out/history.html +1 -1
  41. package/out/history.txt +1 -1
  42. package/out/index.html +1 -1
  43. package/out/index.txt +2 -2
  44. package/out/login.html +1 -1
  45. package/out/login.txt +1 -1
  46. package/out/metrics.html +1 -1
  47. package/out/metrics.txt +1 -1
  48. package/out/pricing.html +2 -2
  49. package/out/pricing.txt +2 -2
  50. package/out/privacy.html +2 -2
  51. package/out/privacy.txt +2 -2
  52. package/out/providers/setup/claude.html +1 -1
  53. package/out/providers/setup/claude.txt +1 -1
  54. package/out/providers/setup/codex.html +1 -1
  55. package/out/providers/setup/codex.txt +1 -1
  56. package/out/providers/setup/cursor.html +1 -1
  57. package/out/providers/setup/cursor.txt +1 -1
  58. package/out/providers.html +1 -1
  59. package/out/providers.txt +1 -1
  60. package/out/security.html +2 -2
  61. package/out/security.txt +2 -2
  62. package/out/signup.html +1 -1
  63. package/out/signup.txt +1 -1
  64. package/out/terms.html +2 -2
  65. package/out/terms.txt +2 -2
  66. package/package.json +10 -10
  67. package/out/_next/static/chunks/695-e794284f76ffbce7.js +0 -1
  68. /package/out/_next/static/{NUzHPcppjsjp8vNZEuf2A → Zy1iEBTs-RzAM6cw9InUm}/_buildManifest.js +0 -0
  69. /package/out/_next/static/{NUzHPcppjsjp8vNZEuf2A → Zy1iEBTs-RzAM6cw9InUm}/_ssgManifest.js +0 -0
package/dist/server.js CHANGED
@@ -781,15 +781,23 @@ export async function startDashboard(portOrOptions, dataDirArg, teamDirArg, dbPa
781
781
  app.use(express.static(dashboardDir, { extensions: ['html'] }));
782
782
  // Fallback for Next.js pages (e.g., /metrics -> /metrics.html)
783
783
  // These are needed when a route exists as both a directory and .html file
784
+ const sendFileWithFallback = (res, filePath) => {
785
+ res.sendFile(filePath, (err) => {
786
+ if (err && !res.headersSent) {
787
+ res.status(404).send('Dashboard UI file not found. Please reinstall using: curl -fsSL https://raw.githubusercontent.com/AgentWorkforce/relay/main/install.sh | bash');
788
+ }
789
+ });
790
+ };
784
791
  app.get('/metrics', (req, res) => {
785
- res.sendFile(path.join(dashboardDir, 'metrics.html'));
792
+ sendFileWithFallback(res, path.join(dashboardDir, 'metrics.html'));
786
793
  });
787
794
  app.get('/app', (req, res) => {
788
- res.sendFile(path.join(dashboardDir, 'app.html'));
795
+ sendFileWithFallback(res, path.join(dashboardDir, 'app.html'));
789
796
  });
790
797
  // Catch-all for /app/* routes - serve app.html and let client-side routing handle it
791
- app.get('/app/*', (req, res) => {
792
- res.sendFile(path.join(dashboardDir, 'app.html'));
798
+ // Express 5 requires named parameter for wildcards
799
+ app.get('/app/{*path}', (req, res) => {
800
+ sendFileWithFallback(res, path.join(dashboardDir, 'app.html'));
793
801
  });
794
802
  }
795
803
  else {