@agent-relay/dashboard-server 2.0.65 → 2.0.66-beta.0

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 (76) hide show
  1. package/dist/server.d.ts.map +1 -1
  2. package/dist/server.js +102 -24
  3. package/dist/server.js.map +1 -1
  4. package/out/404.html +1 -1
  5. package/out/_next/static/chunks/118-4c8241b0218335de.js +1 -0
  6. package/out/_next/static/chunks/{202-6cfbf8339f05e5ef.js → 202-fc0763dd7488e58f.js} +1 -1
  7. package/out/_next/static/chunks/259-3bbaad41b2550936.js +1 -0
  8. package/out/_next/static/chunks/285-1cb1c0ed74f31c6c.js +1 -0
  9. package/out/_next/static/chunks/722-85011b58b9caf88b.js +1 -0
  10. package/out/_next/static/chunks/994-0ce5f1d759089504.js +1 -0
  11. package/out/_next/static/chunks/app/app/[[...slug]]/page-589620c567f85400.js +1 -0
  12. package/out/_next/static/chunks/app/{page-ba281b017e148cd6.js → page-5c60a00d938ac40a.js} +1 -1
  13. package/out/_next/static/chunks/app/providers/setup/[provider]/page-f058bf6696242d7b.js +1 -0
  14. package/out/_next/static/css/{15362c88976df1b9.css → 71615414d8909a44.css} +1 -1
  15. package/out/about.html +2 -2
  16. package/out/about.txt +1 -1
  17. package/out/app/onboarding.html +1 -1
  18. package/out/app/onboarding.txt +1 -1
  19. package/out/app.html +1 -1
  20. package/out/app.txt +2 -2
  21. package/out/blog/go-to-bed-wake-up-to-a-finished-product.html +2 -2
  22. package/out/blog/go-to-bed-wake-up-to-a-finished-product.txt +1 -1
  23. package/out/blog/let-them-cook-multi-agent-orchestration.html +2 -2
  24. package/out/blog/let-them-cook-multi-agent-orchestration.txt +1 -1
  25. package/out/blog.html +2 -2
  26. package/out/blog.txt +1 -1
  27. package/out/careers.html +2 -2
  28. package/out/careers.txt +1 -1
  29. package/out/changelog.html +2 -2
  30. package/out/changelog.txt +1 -1
  31. package/out/cloud/link.html +1 -1
  32. package/out/cloud/link.txt +2 -2
  33. package/out/complete-profile.html +2 -2
  34. package/out/complete-profile.txt +1 -1
  35. package/out/connect-repos.html +1 -1
  36. package/out/connect-repos.txt +2 -2
  37. package/out/contact.html +2 -2
  38. package/out/contact.txt +1 -1
  39. package/out/docs.html +2 -2
  40. package/out/docs.txt +1 -1
  41. package/out/history.html +1 -1
  42. package/out/history.txt +2 -2
  43. package/out/index.html +1 -1
  44. package/out/index.txt +2 -2
  45. package/out/login.html +2 -2
  46. package/out/login.txt +2 -2
  47. package/out/metrics.html +1 -1
  48. package/out/metrics.txt +2 -2
  49. package/out/pricing.html +2 -2
  50. package/out/pricing.txt +1 -1
  51. package/out/privacy.html +2 -2
  52. package/out/privacy.txt +1 -1
  53. package/out/providers/setup/claude.html +1 -1
  54. package/out/providers/setup/claude.txt +2 -2
  55. package/out/providers/setup/codex.html +1 -1
  56. package/out/providers/setup/codex.txt +2 -2
  57. package/out/providers/setup/cursor.html +1 -1
  58. package/out/providers/setup/cursor.txt +2 -2
  59. package/out/providers.html +1 -1
  60. package/out/providers.txt +2 -2
  61. package/out/security.html +2 -2
  62. package/out/security.txt +1 -1
  63. package/out/signup.html +2 -2
  64. package/out/signup.txt +2 -2
  65. package/out/terms.html +2 -2
  66. package/out/terms.txt +1 -1
  67. package/package.json +1 -1
  68. package/out/_next/static/chunks/118-b821e49d30a9f6af.js +0 -1
  69. package/out/_next/static/chunks/259-b560f20df53128e5.js +0 -1
  70. package/out/_next/static/chunks/535-757cbf5de3af1d18.js +0 -1
  71. package/out/_next/static/chunks/722-6cffbc5120f31e24.js +0 -1
  72. package/out/_next/static/chunks/994-e927457424324a78.js +0 -1
  73. package/out/_next/static/chunks/app/app/[[...slug]]/page-7c9abc28789ea7cb.js +0 -1
  74. package/out/_next/static/chunks/app/providers/setup/[provider]/page-c667546c4902f1b0.js +0 -1
  75. /package/out/_next/static/{XAoBjrJ3N72573Ty4Ja_J → CRgdkwuTcA6Bt0A5Fx1wC}/_buildManifest.js +0 -0
  76. /package/out/_next/static/{XAoBjrJ3N72573Ty4Ja_J → CRgdkwuTcA6Bt0A5Fx1wC}/_ssgManifest.js +0 -0
package/out/terms.html CHANGED
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/15362c88976df1b9.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/629d21db423c78a2.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-dd93b81e2659669c.js"/><script src="/_next/static/chunks/1dd3208c-40ab0fc0f60392b8.js" async=""></script><script src="/_next/static/chunks/528-d375bc8b46912d2c.js" async=""></script><script src="/_next/static/chunks/main-app-7f73a939a312a228.js" async=""></script><script src="/_next/static/chunks/695-51d25b1988644374.js" async=""></script><script src="/_next/static/chunks/app/terms/page-c7001720e7941dc6.js" async=""></script><title>Agent Relay Dashboard</title><meta name="description" content="Fleet control dashboard for Agent Relay"/><link rel="apple-touch-icon" href="/apple-icon.png?9e7a840704165ca6" type="image/png" sizes="256x256"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div class="landing-page static-page"><div class="landing-bg"><div class="grid-bg"><div class="grid-lines"></div><div class="grid-glow"></div></div><div class="glow-orbs"><div class="orb orb-1"></div><div class="orb orb-2"></div><div class="orb orb-3"></div></div></div><nav class="nav scrolled"><div class="nav-inner"><a href="/" class="nav-logo"><svg width="28" height="28" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg" class="
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/71615414d8909a44.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/629d21db423c78a2.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-dd93b81e2659669c.js"/><script src="/_next/static/chunks/1dd3208c-40ab0fc0f60392b8.js" async=""></script><script src="/_next/static/chunks/528-d375bc8b46912d2c.js" async=""></script><script src="/_next/static/chunks/main-app-7f73a939a312a228.js" async=""></script><script src="/_next/static/chunks/695-51d25b1988644374.js" async=""></script><script src="/_next/static/chunks/app/terms/page-c7001720e7941dc6.js" async=""></script><title>Agent Relay Dashboard</title><meta name="description" content="Fleet control dashboard for Agent Relay"/><link rel="apple-touch-icon" href="/apple-icon.png?9e7a840704165ca6" type="image/png" sizes="256x256"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div class="landing-page static-page"><div class="landing-bg"><div class="grid-bg"><div class="grid-lines"></div><div class="grid-glow"></div></div><div class="glow-orbs"><div class="orb orb-1"></div><div class="orb orb-2"></div><div class="orb orb-3"></div></div></div><nav class="nav scrolled"><div class="nav-inner"><a href="/" class="nav-logo"><svg width="28" height="28" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg" class="
2
2
  transition-all duration-300
3
3
  drop-shadow-[0_0_8px_rgba(0,217,255,0.3)]
4
4
 
@@ -6,4 +6,4 @@
6
6
  transition-all duration-300
7
7
  drop-shadow-[0_0_8px_rgba(0,217,255,0.3)]
8
8
 
9
- " aria-label="Agent Relay Logo" role="img"><path d="M30 80 L 50 20 L 70 80" stroke="#00d9ff" stroke-width="5" stroke-linejoin="round" stroke-linecap="round" fill="none"></path><line x1="40" y1="50" x2="60" y2="50" stroke="#00d9ff" stroke-width="5" stroke-linecap="round"></line><path d="M50 20 L 50 80" stroke="#00ffc8" stroke-width="2.5" stroke-linecap="round" opacity="0.7"></path><path d="M50 20 C 80 20 80 50 50 50 L 80 80" stroke="#00ffc8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none" opacity="0.7"></path></svg><span class="logo-text">Agent Relay</span></a><p>Orchestrate AI agents like a symphony.</p></div><div class="footer-links"><div class="footer-column"><h4>Product</h4><a href="/#features">Features</a><a href="/pricing">Pricing</a><a href="https://docs.agent-relay.com/">Documentation</a><a href="/changelog">Changelog</a></div><div class="footer-column"><h4>Company</h4><a href="/about">About</a><a href="/blog">Blog</a><a href="/careers">Careers</a><a href="/contact">Contact</a></div><div class="footer-column"><h4>Legal</h4><a href="/privacy">Privacy</a><a href="/terms">Terms</a><a href="/security">Security</a></div></div></div><div class="footer-bottom"><p>© 2026 Agent Relay. All rights reserved.</p><div class="social-links"><a href="https://github.com/AgentWorkforce/relay" aria-label="GitHub"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"></path></svg></a><a href="https://twitter.com/agent_relay" aria-label="Twitter"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path></svg></a></div></div></footer></div><script src="/_next/static/chunks/webpack-dd93b81e2659669c.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/15362c88976df1b9.css\",\"style\"]\n2:HL[\"/_next/static/css/629d21db423c78a2.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"3:I[1815,[],\"\"]\n5:I[5428,[],\"ClientPageRoot\"]\n6:I[8549,[\"695\",\"static/chunks/695-51d25b1988644374.js\",\"571\",\"static/chunks/app/terms/page-c7001720e7941dc6.js\"],\"default\",1]\n7:I[5092,[],\"\"]\n8:I[2023,[],\"\"]\na:I[1584,[],\"\"]\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L3\",null,{\"buildId\":\"XAoBjrJ3N72573Ty4Ja_J\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"terms\"],\"initialTree\":[\"\",{\"children\":[\"terms\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"terms\",{\"children\":[\"__PAGE__\",{},[[\"$L4\",[\"$\",\"$L5\",null,{\"props\":{\"params\":{},\"searchParams\":{}},\"Component\":\"$6\"}],[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/629d21db423c78a2.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]]],null],null]},[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"terms\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/15362c88976df1b9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Agent Relay Dashboard\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Fleet control dashboard for Agent Relay\"}],[\"$\",\"link\",\"4\",{\"rel\":\"apple-touch-icon\",\"href\":\"/apple-icon.png?9e7a840704165ca6\",\"type\":\"image/png\",\"sizes\":\"256x256\"}]]\n4:null\n"])</script></body></html>
9
+ " aria-label="Agent Relay Logo" role="img"><path d="M30 80 L 50 20 L 70 80" stroke="#00d9ff" stroke-width="5" stroke-linejoin="round" stroke-linecap="round" fill="none"></path><line x1="40" y1="50" x2="60" y2="50" stroke="#00d9ff" stroke-width="5" stroke-linecap="round"></line><path d="M50 20 L 50 80" stroke="#00ffc8" stroke-width="2.5" stroke-linecap="round" opacity="0.7"></path><path d="M50 20 C 80 20 80 50 50 50 L 80 80" stroke="#00ffc8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none" opacity="0.7"></path></svg><span class="logo-text">Agent Relay</span></a><p>Orchestrate AI agents like a symphony.</p></div><div class="footer-links"><div class="footer-column"><h4>Product</h4><a href="/#features">Features</a><a href="/pricing">Pricing</a><a href="https://docs.agent-relay.com/">Documentation</a><a href="/changelog">Changelog</a></div><div class="footer-column"><h4>Company</h4><a href="/about">About</a><a href="/blog">Blog</a><a href="/careers">Careers</a><a href="/contact">Contact</a></div><div class="footer-column"><h4>Legal</h4><a href="/privacy">Privacy</a><a href="/terms">Terms</a><a href="/security">Security</a></div></div></div><div class="footer-bottom"><p>© 2026 Agent Relay. All rights reserved.</p><div class="social-links"><a href="https://github.com/AgentWorkforce/relay" aria-label="GitHub"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"></path></svg></a><a href="https://twitter.com/agent_relay" aria-label="Twitter"><svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"></path></svg></a></div></div></footer></div><script src="/_next/static/chunks/webpack-dd93b81e2659669c.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/71615414d8909a44.css\",\"style\"]\n2:HL[\"/_next/static/css/629d21db423c78a2.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"3:I[1815,[],\"\"]\n5:I[5428,[],\"ClientPageRoot\"]\n6:I[8549,[\"695\",\"static/chunks/695-51d25b1988644374.js\",\"571\",\"static/chunks/app/terms/page-c7001720e7941dc6.js\"],\"default\",1]\n7:I[5092,[],\"\"]\n8:I[2023,[],\"\"]\na:I[1584,[],\"\"]\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L3\",null,{\"buildId\":\"CRgdkwuTcA6Bt0A5Fx1wC\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"terms\"],\"initialTree\":[\"\",{\"children\":[\"terms\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"terms\",{\"children\":[\"__PAGE__\",{},[[\"$L4\",[\"$\",\"$L5\",null,{\"props\":{\"params\":{},\"searchParams\":{}},\"Component\":\"$6\"}],[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/629d21db423c78a2.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]]],null],null]},[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"terms\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/71615414d8909a44.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Agent Relay Dashboard\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Fleet control dashboard for Agent Relay\"}],[\"$\",\"link\",\"4\",{\"rel\":\"apple-touch-icon\",\"href\":\"/apple-icon.png?9e7a840704165ca6\",\"type\":\"image/png\",\"sizes\":\"256x256\"}]]\n4:null\n"])</script></body></html>
package/out/terms.txt CHANGED
@@ -2,6 +2,6 @@
2
2
  3:I[8549,["695","static/chunks/695-51d25b1988644374.js","571","static/chunks/app/terms/page-c7001720e7941dc6.js"],"default",1]
3
3
  4:I[5092,[],""]
4
4
  5:I[2023,[],""]
5
- 0:["XAoBjrJ3N72573Ty4Ja_J",[[["",{"children":["terms",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["terms",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/629d21db423c78a2.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","terms","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/15362c88976df1b9.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]],null],null],["$L6",null]]]]
5
+ 0:["CRgdkwuTcA6Bt0A5Fx1wC",[[["",{"children":["terms",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["terms",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/629d21db423c78a2.css","precedence":"next","crossOrigin":"$undefined"}]]],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","terms","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/71615414d8909a44.css","precedence":"next","crossOrigin":"$undefined"}]],["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]],null],null],["$L6",null]]]]
6
6
  6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Agent Relay Dashboard"}],["$","meta","3",{"name":"description","content":"Fleet control dashboard for Agent Relay"}],["$","link","4",{"rel":"apple-touch-icon","href":"/apple-icon.png?9e7a840704165ca6","type":"image/png","sizes":"256x256"}]]
7
7
  1:null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-relay/dashboard-server",
3
- "version": "2.0.65",
3
+ "version": "2.0.66-beta.0",
4
4
  "description": "Express server for Agent Relay dashboard - serves UI and proxies to relay daemon",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[118],{5118:function(e,r,t){t.d(r,{$3:function(){return w},J$:function(){return d},XP:function(){return k},_V:function(){return u},aM:function(){return i},hc:function(){return l},hi:function(){return f},kG:function(){return h}});let s=(0,t(2446).bR)(),a="agentrelay_workspace_id",c=null,o="agentrelay_csrf_token",n=null;function i(e){n=e,window.sessionStorage&&(e?sessionStorage.setItem(o,e):sessionStorage.removeItem(o))}function u(){return n}function l(e){c=e,e?localStorage.setItem(a,e):localStorage.removeItem(a)}function d(){return c}function w(){if(c)return c;{let e=localStorage.getItem(a);if(e)return c=e,e}return null}window.sessionStorage&&(n=sessionStorage.getItem(o));let y=["/api/daemons/","/api/workspaces/","/api/providers/","/api/auth/","/api/billing/","/api/usage/","/api/admin/","/api/onboarding/","/api/repos/","/api/project-groups/","/api/github-app/","/api/channels"];function h(e){if(c){if(y.some(r=>e.startsWith(r)))return"".concat(s).concat(e);let r=e.startsWith("/api/")?e.substring(5):e.replace(/^\//,"");return"/api/workspaces/".concat(c,"/proxy/").concat(r)}return"".concat(s).concat(e)}async function p(e){var r;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=(null===(r=t.method)||void 0===r?void 0:r.toUpperCase())||"GET",a={...t.headers};"GET"!==s&&"HEAD"!==s&&"OPTIONS"!==s&&(n&&(a["X-CSRF-Token"]=n),t.body&&!a["Content-Type"]&&(a["Content-Type"]="application/json"));let c=await fetch(e,{...t,headers:a,credentials:"include"});return!function(e){let r=e.headers.get("X-CSRF-Token");r&&i(r)}(c),c}let f={async get(e){let r=await p(h(e),{method:"GET"});if(!r.ok)throw Error("HTTP ".concat(r.status,": ").concat(r.statusText));return await r.json()},async post(e,r){let t=await p(h(e),{method:"POST",body:r?JSON.stringify(r):void 0});if(!t.ok)throw Error("HTTP ".concat(t.status,": ").concat(t.statusText));return await t.json()},async patch(e,r){let t=await p(h(e),{method:"PATCH",body:r?JSON.stringify(r):void 0});if(!t.ok)throw Error("HTTP ".concat(t.status,": ").concat(t.statusText));return await t.json()},async delete(e){let r=await p(h(e),{method:"DELETE"});if(!r.ok)throw Error("HTTP ".concat(r.status,": ").concat(r.statusText));return await r.json()},async sendMessage(e){try{let r=await p(h("/api/send"),{method:"POST",body:JSON.stringify(e)}),t=await r.json();if(r.ok&&t.success)return{success:!0};return{success:!1,error:t.error||"Failed to send message"}}catch(e){return{success:!1,error:"Network error"}}},async uploadAttachment(e){try{let r,t,s;e instanceof File?(r=e.name,t=e.type,s=await new Promise((r,t)=>{let s=new FileReader;s.onload=()=>r(s.result),s.onerror=t,s.readAsDataURL(e)})):(r=e.filename,t=e.mimeType,s=e.data);let a=await p(h("/api/upload"),{method:"POST",body:JSON.stringify({filename:r,mimeType:t,data:s})}),c=await a.json();if(a.ok&&c.success&&c.attachment)return{success:!0,data:{attachment:c.attachment}};return{success:!1,error:c.error||"Failed to upload attachment"}}catch(e){return{success:!1,error:"Network error"}}},async spawnAgent(e){try{let r=await p(h("/api/spawn"),{method:"POST",body:JSON.stringify(e)});return await r.json()}catch(r){return{success:!1,name:e.name,error:"Network error"}}},async getSpawnedAgents(){try{let e=await p(h("/api/spawned")),r=await e.json();if(e.ok&&r.success)return{success:!0,data:{agents:r.agents||[]}};return{success:!1,error:r.error}}catch(e){return{success:!1,error:"Network error"}}},async releaseAgent(e){try{let r=await p(h("/api/spawned/".concat(encodeURIComponent(e))),{method:"DELETE"}),t=await r.json();if(r.ok&&t.success)return{success:!0};return{success:!1,error:t.error}}catch(e){return{success:!1,error:"Network error"}}},async interruptAgent(e){try{let r=await p(h("/api/agents/by-name/".concat(encodeURIComponent(e),"/interrupt")),{method:"POST"}),t=await r.json();if(r.ok&&t.success)return{success:!0};return{success:!1,error:t.error||"Failed to interrupt agent"}}catch(e){return{success:!1,error:"Network error"}}},async getData(){try{let e=await p(h("/api/data")),r=await e.json();if(e.ok)return{success:!0,data:r};return{success:!1,error:"Failed to fetch data"}}catch(e){return{success:!1,error:"Network error"}}},async getBridgeData(){try{let e=await p(h("/api/bridge")),r=await e.json();if(e.ok)return{success:!0,data:r};return{success:!1,error:"Failed to fetch bridge data"}}catch(e){return{success:!1,error:"Network error"}}},async getMetrics(){try{let e=await p(h("/api/metrics")),r=await e.json();if(e.ok)return{success:!0,data:r};return{success:!1,error:"Failed to fetch metrics"}}catch(e){return{success:!1,error:"Network error"}}},async getHistorySessions(e){try{let r=new URLSearchParams;(null==e?void 0:e.agent)&&r.set("agent",e.agent),(null==e?void 0:e.since)&&r.set("since",String(e.since)),(null==e?void 0:e.limit)&&r.set("limit",String(e.limit));let t=await p(h("/api/history/sessions?".concat(r))),s=await t.json();if(t.ok)return{success:!0,data:s};return{success:!1,error:"Failed to fetch sessions"}}catch(e){return{success:!1,error:"Network error"}}},async getHistoryMessages(e){try{let r=new URLSearchParams;(null==e?void 0:e.from)&&r.set("from",e.from),(null==e?void 0:e.to)&&r.set("to",e.to),(null==e?void 0:e.thread)&&r.set("thread",e.thread),(null==e?void 0:e.since)&&r.set("since",String(e.since)),(null==e?void 0:e.limit)&&r.set("limit",String(e.limit)),(null==e?void 0:e.order)&&r.set("order",e.order),(null==e?void 0:e.search)&&r.set("search",e.search);let t=await p(h("/api/history/messages?".concat(r))),s=await t.json();if(t.ok)return{success:!0,data:s};return{success:!1,error:"Failed to fetch messages"}}catch(e){return{success:!1,error:"Network error"}}},async getHistoryConversations(){try{let e=await p(h("/api/history/conversations")),r=await e.json();if(e.ok)return{success:!0,data:r};return{success:!1,error:"Failed to fetch conversations"}}catch(e){return{success:!1,error:"Network error"}}},async getHistoryMessage(e){try{let r=await p(h("/api/history/message/".concat(encodeURIComponent(e)))),t=await r.json();if(r.ok)return{success:!0,data:t};return{success:!1,error:t.error||"Failed to fetch message"}}catch(e){return{success:!1,error:"Network error"}}},async getHistoryStats(){try{let e=await p(h("/api/history/stats")),r=await e.json();if(e.ok)return{success:!0,data:r};return{success:!1,error:"Failed to fetch stats"}}catch(e){return{success:!1,error:"Network error"}}},async searchFiles(e){try{let r=new URLSearchParams;(null==e?void 0:e.query)&&r.set("q",e.query),(null==e?void 0:e.limit)&&r.set("limit",String(e.limit));let t=await p(h("/api/files?".concat(r))),s=await t.json();if(t.ok)return{success:!0,data:s};return{success:!1,error:"Failed to search files"}}catch(e){return{success:!1,error:"Network error"}}},async getDecisions(){try{let e=await p(h("/api/decisions")),r=await e.json();if(e.ok&&r.success)return{success:!0,data:{decisions:r.decisions||[]}};return{success:!1,error:r.error||"Failed to fetch decisions"}}catch(e){return{success:!1,error:"Network error"}}},async approveDecision(e,r,t){try{let s=await p(h("/api/decisions/".concat(encodeURIComponent(e),"/approve")),{method:"POST",body:JSON.stringify({optionId:r,response:t})}),a=await s.json();if(s.ok&&a.success)return{success:!0};return{success:!1,error:a.error||"Failed to approve decision"}}catch(e){return{success:!1,error:"Network error"}}},async rejectDecision(e,r){try{let t=await p(h("/api/decisions/".concat(encodeURIComponent(e),"/reject")),{method:"POST",body:JSON.stringify({reason:r})}),s=await t.json();if(t.ok&&s.success)return{success:!0};return{success:!1,error:s.error||"Failed to reject decision"}}catch(e){return{success:!1,error:"Network error"}}},async dismissDecision(e){try{let r=await p(h("/api/decisions/".concat(encodeURIComponent(e))),{method:"DELETE"}),t=await r.json();if(r.ok&&t.success)return{success:!0};return{success:!1,error:t.error||"Failed to dismiss decision"}}catch(e){return{success:!1,error:"Network error"}}},async getFleetServers(){try{let e=await p(h("/api/fleet/servers")),r=await e.json();if(e.ok&&r.success)return{success:!0,data:{servers:r.servers||[]}};return{success:!1,error:r.error||"Failed to fetch fleet servers"}}catch(e){return{success:!1,error:"Network error"}}},async getFleetStats(){try{let e=await p(h("/api/fleet/stats")),r=await e.json();if(e.ok&&r.success)return{success:!0,data:{stats:r.stats}};return{success:!1,error:r.error||"Failed to fetch fleet stats"}}catch(e){return{success:!1,error:"Network error"}}},async getTasks(e){try{let r=new URLSearchParams;(null==e?void 0:e.status)&&r.set("status",e.status),(null==e?void 0:e.agent)&&r.set("agent",e.agent);let t=await p(h("/api/tasks?".concat(r))),s=await t.json();if(t.ok&&s.success)return{success:!0,data:{tasks:s.tasks||[]}};return{success:!1,error:s.error||"Failed to fetch tasks"}}catch(e){return{success:!1,error:"Network error"}}},async createTask(e){try{let r=await p(h("/api/tasks"),{method:"POST",body:JSON.stringify(e)}),t=await r.json();if(r.ok&&t.success)return{success:!0,data:{task:t.task}};return{success:!1,error:t.error||"Failed to create task"}}catch(e){return{success:!1,error:"Network error"}}},async updateTask(e,r){try{let t=await p(h("/api/tasks/".concat(encodeURIComponent(e))),{method:"PATCH",body:JSON.stringify(r)}),s=await t.json();if(t.ok&&s.success)return{success:!0,data:{task:s.task}};return{success:!1,error:s.error||"Failed to update task"}}catch(e){return{success:!1,error:"Network error"}}},async cancelTask(e){try{let r=await p(h("/api/tasks/".concat(encodeURIComponent(e))),{method:"DELETE"}),t=await r.json();if(r.ok&&t.success)return{success:!0};return{success:!1,error:t.error||"Failed to cancel task"}}catch(e){return{success:!1,error:"Network error"}}},async createBead(e){try{let r=await p(h("/api/beads"),{method:"POST",body:JSON.stringify(e)}),t=await r.json();if(r.ok&&t.success)return{success:!0,data:{bead:t.bead}};return{success:!1,error:t.error||"Failed to create bead"}}catch(e){return{success:!1,error:"Network error"}}},async sendRelayMessage(e){try{let r=await p(h("/api/relay/send"),{method:"POST",body:JSON.stringify(e)}),t=await r.json();if(r.ok&&t.success)return{success:!0,data:{messageId:t.messageId}};return{success:!1,error:t.error||"Failed to send message"}}catch(e){return{success:!1,error:"Network error"}}}};function k(e){return{id:e.id,agentName:e.agentName,timestamp:e.createdAt,type:e.category,title:e.title,description:e.description,options:e.options,priority:e.urgency,context:e.context,expiresAt:e.expiresAt}}},2446:function(e,r,t){t.d(r,{HE:function(){return a},bR:function(){return c}});var s=t(4859);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/ws",r=s.env.NEXT_PUBLIC_WS_URL;if(r)return r.endsWith("/")?"".concat(r.slice(0,-1)).concat(e):"".concat(r).concat(e);window.location.hostname;let t="https:"===window.location.protocol?"wss:":"ws:";return"".concat(t,"//").concat(window.location.host).concat(e)}function c(){return s.env.NEXT_PUBLIC_API_URL||""}s.env.NEXT_PUBLIC_DEV_SERVER_PORT}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[259],{5634:function(e,t,r){r.d(t,{K7:function(){return n}});var o=r(7573);function n(e){let{size:t=24,className:r="",withGlow:n=!1}=e;return(0,o.jsxs)("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"\n transition-all duration-300\n ".concat(n?"drop-shadow-[0_0_8px_rgba(0,217,255,0.3)]":"","\n ").concat(r,"\n "),"aria-label":"Agent Relay Logo",role:"img",children:[(0,o.jsx)("path",{d:"M30 80 L 50 20 L 70 80",stroke:"#00d9ff",strokeWidth:"5",strokeLinejoin:"round",strokeLinecap:"round",fill:"none"}),(0,o.jsx)("line",{x1:"40",y1:"50",x2:"60",y2:"50",stroke:"#00d9ff",strokeWidth:"5",strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M50 20 L 50 80",stroke:"#00ffc8",strokeWidth:"2.5",strokeLinecap:"round",opacity:"0.7"}),(0,o.jsx)("path",{d:"M50 20 C 80 20 80 50 50 50 L 80 80",stroke:"#00ffc8",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",opacity:"0.7"})]})}r(7653)},9175:function(e,t,r){r.d(t,{c:function(){return a}});var o=r(7573),n=r(7653),s=r(1994),l=r(4722);let i={anthropic:{authMethod:"terminal"},codex:{authMethod:"oauth",requiresUrlCopy:!0,supportsDeviceFlow:!0},openai:{authMethod:"oauth",requiresUrlCopy:!0,supportsDeviceFlow:!0},google:{authMethod:"terminal"},opencode:{authMethod:"terminal"},droid:{authMethod:"terminal"},cursor:{authMethod:"terminal"}};function a(e){let{providers:t,connectedProviders:r,workspaceId:a,csrfToken:d,onProviderConnected:c,onConnectAnother:u,onContinue:h,showDetailedInfo:m=!0}=e,[x,p]=(0,n.useState)(null),[b,g]=(0,n.useState)("select"),[f,j]=(0,n.useState)(null),N=e=>{let t=i[e.id];(null==t?void 0:t.authMethod)==="terminal"?(p(e.id),g("terminal")):(null==t?void 0:t.authMethod)==="oauth"?(p(e.id),g("oauth")):(p(e.id),g("terminal")),j(null)},k=e=>{c(e),p(null),g("select")},v=()=>{p(null),g("select")},w=e=>{j(e),p(null),g("select")},y=e=>"codex"===e?r.includes("codex")||r.includes("openai"):r.includes(e);if(x&&"select"!==b){let e=t.find(e=>e.id===x);if(!e)return null;let r=i[e.id];return(0,o.jsxs)("div",{className:"bg-bg-primary/80 backdrop-blur-sm border border-border-subtle rounded-2xl p-6",children:[(0,o.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,o.jsx)("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center text-white font-bold",style:{backgroundColor:e.color},children:e.displayName[0]}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("h3",{className:"text-lg font-semibold text-white",children:[e.displayName," Setup"]}),(0,o.jsx)("p",{className:"text-sm text-text-muted",children:"terminal"===b?"Interactive terminal":"OAuth authentication"})]}),(0,o.jsx)("button",{onClick:v,className:"ml-auto p-2 text-text-muted hover:text-white transition-colors","aria-label":"Close",children:(0,o.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),f&&(0,o.jsx)("div",{className:"mb-4 p-3 bg-error/10 border border-error/20 rounded-lg",children:(0,o.jsx)("p",{className:"text-error text-sm",children:f})}),"terminal"===b&&(0,o.jsx)(s.$,{provider:{id:e.cliCommand||e.id,name:e.id,displayName:e.displayName,color:e.color},workspaceId:a,csrfToken:d,maxHeight:"400px",showHeader:!1,onSuccess:()=>k(e.id),onCancel:v,onConnectAnother:()=>{k(e.id),null==u||u()},onError:w}),"oauth"===b&&r&&(0,o.jsx)(l.j,{provider:{id:e.id,name:e.cliCommand||e.id,displayName:e.displayName,color:e.color,requiresUrlCopy:r.requiresUrlCopy,supportsDeviceFlow:r.supportsDeviceFlow},workspaceId:a,csrfToken:d,onSuccess:()=>k(e.id),onCancel:v,onError:w}),(0,o.jsx)("button",{onClick:v,className:"mt-4 text-sm text-text-muted hover:text-white transition-colors",children:"← Back to provider list"})]})}return(0,o.jsxs)("div",{className:"bg-bg-primary/80 backdrop-blur-sm border border-border-subtle rounded-2xl p-6",children:[(0,o.jsx)("h2",{className:"text-lg font-semibold text-white mb-4",children:"Choose an AI Provider"}),f&&(0,o.jsx)("div",{className:"mb-4 p-3 bg-error/10 border border-error/20 rounded-lg",children:(0,o.jsx)("p",{className:"text-error text-sm",children:f})}),(0,o.jsx)("div",{className:"space-y-3",children:t.map(e=>{let t=y(e.id),r=i[e.id],n=(null==r?void 0:r.authMethod)==="terminal";return(null==r||r.authMethod,m&&("anthropic"===e.id||"codex"===e.id))?(0,o.jsxs)("div",{className:"p-4 bg-bg-tertiary rounded-xl border space-y-4 ".concat(t?"border-green-500/50":"border-border-subtle"),children:[(0,o.jsxs)("div",{className:"flex items-center gap-3",children:[(0,o.jsxs)("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center text-white font-bold flex-shrink-0 relative",style:{backgroundColor:e.color},children:[e.displayName[0],t&&(0,o.jsx)("div",{className:"absolute -top-1 -right-1 w-5 h-5 bg-green-500 rounded-full flex items-center justify-center",children:(0,o.jsx)("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})})]}),(0,o.jsxs)("div",{className:"flex-1",children:[(0,o.jsx)("p",{className:"text-white font-medium",children:e.displayName}),(0,o.jsx)("p",{className:"text-text-muted text-sm",children:e.name})]}),t&&(0,o.jsx)("span",{className:"text-green-400 text-sm font-medium",children:"Connected"})]}),!t&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"p-3 bg-accent-cyan/10 border border-accent-cyan/30 rounded-lg",children:[(0,o.jsx)("p",{className:"text-sm text-accent-cyan font-medium mb-1",children:n?"Interactive terminal setup":"CLI-assisted authentication"}),(0,o.jsx)("p",{className:"text-xs text-accent-cyan/80",children:n?"Connect ".concat(e.displayName," using an interactive terminal. You'll see the CLI start up and can complete the OAuth login directly in the terminal."):"".concat(e.displayName," auth uses a CLI command to capture the OAuth callback locally. Click the button below and we'll show you a command with a unique session token to run in your terminal.")})]}),(0,o.jsxs)("button",{onClick:()=>N(e),className:"w-full flex items-center justify-center gap-2 p-3 bg-gradient-to-r from-accent-cyan to-[#00b8d9] text-bg-deep font-semibold rounded-xl hover:shadow-glow-cyan transition-all",children:[(0,o.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})}),"Connect with ",e.displayName]})]})]},e.id):(0,o.jsxs)("button",{onClick:()=>!t&&!e.comingSoon&&N(e),disabled:t||e.comingSoon,className:"w-full flex items-center gap-3 p-4 bg-bg-tertiary rounded-xl border transition-colors text-left ".concat(e.comingSoon?"border-border-subtle opacity-60 cursor-not-allowed":t?"border-green-500/50 cursor-default":"border-border-subtle hover:border-accent-cyan/50"),children:[(0,o.jsxs)("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center text-white font-bold flex-shrink-0 relative ".concat(e.comingSoon?"grayscale":""),style:{backgroundColor:e.color},children:[e.displayName[0],t&&(0,o.jsx)("div",{className:"absolute -top-1 -right-1 w-5 h-5 bg-green-500 rounded-full flex items-center justify-center",children:(0,o.jsx)("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M5 13l4 4L19 7"})})})]}),(0,o.jsxs)("div",{className:"flex-1",children:[(0,o.jsxs)("p",{className:"text-white font-medium flex items-center gap-2",children:[e.displayName,e.comingSoon&&(0,o.jsx)("span",{className:"px-2 py-0.5 bg-amber-400/20 text-amber-400 text-xs font-medium rounded-full",children:"Coming Soon"})]}),(0,o.jsx)("p",{className:"text-text-muted text-sm",children:e.description||e.name})]}),e.comingSoon?(0,o.jsx)("span",{className:"text-text-muted text-sm",children:"Not available yet"}):t?(0,o.jsx)("span",{className:"text-green-400 text-sm font-medium",children:"Connected"}):(0,o.jsx)("svg",{className:"w-5 h-5 text-text-muted",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]},e.id)})}),(u||h)&&r.length>0&&(0,o.jsxs)("div",{className:"mt-6 pt-4 border-t border-border-subtle space-y-3",children:[u&&(0,o.jsx)("button",{onClick:u,className:"w-full py-3 px-4 bg-bg-tertiary border border-border-subtle text-white rounded-xl text-center hover:border-accent-cyan/50 transition-colors",children:"Connect Another Provider"}),h&&(0,o.jsx)("button",{onClick:h,className:"w-full py-3 px-4 bg-gradient-to-r from-accent-cyan to-[#00b8d9] text-bg-deep font-semibold rounded-xl text-center hover:shadow-glow-cyan transition-all",children:"Continue to Dashboard"})]}),0===r.length&&h&&(0,o.jsx)("div",{className:"mt-6 text-center",children:(0,o.jsx)("button",{onClick:h,className:"text-text-muted hover:text-white transition-colors text-sm",children:"Skip for now - I'll connect later"})})]})}}}]);