@agent-relay/dashboard-server 2.0.77 → 2.0.78

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 (63) hide show
  1. package/out/404.html +1 -1
  2. package/out/_next/static/chunks/285-cdcfcdf809c3db61.js +1 -0
  3. package/out/_next/static/chunks/722-b46e932925a74e7d.js +1 -0
  4. package/out/_next/static/chunks/app/app/[[...slug]]/{page-e46f6a1ae5a4de44.js → page-45fe4b47b29547d1.js} +1 -1
  5. package/out/_next/static/chunks/app/{page-2fc9cd9797ece830.js → page-5c60a00d938ac40a.js} +1 -1
  6. package/out/_next/static/chunks/app/providers/page-9a2e7c46b61d7742.js +1 -0
  7. package/out/about.html +1 -1
  8. package/out/about.txt +1 -1
  9. package/out/app/onboarding.html +1 -1
  10. package/out/app/onboarding.txt +1 -1
  11. package/out/app.html +1 -1
  12. package/out/app.txt +2 -2
  13. package/out/blog/go-to-bed-wake-up-to-a-finished-product.html +1 -1
  14. package/out/blog/go-to-bed-wake-up-to-a-finished-product.txt +1 -1
  15. package/out/blog/let-them-cook-multi-agent-orchestration.html +1 -1
  16. package/out/blog/let-them-cook-multi-agent-orchestration.txt +1 -1
  17. package/out/blog.html +1 -1
  18. package/out/blog.txt +1 -1
  19. package/out/careers.html +1 -1
  20. package/out/careers.txt +1 -1
  21. package/out/changelog.html +1 -1
  22. package/out/changelog.txt +1 -1
  23. package/out/cloud/link.html +1 -1
  24. package/out/cloud/link.txt +1 -1
  25. package/out/complete-profile.html +1 -1
  26. package/out/complete-profile.txt +1 -1
  27. package/out/connect-repos.html +1 -1
  28. package/out/connect-repos.txt +1 -1
  29. package/out/contact.html +1 -1
  30. package/out/contact.txt +1 -1
  31. package/out/docs.html +1 -1
  32. package/out/docs.txt +1 -1
  33. package/out/history.html +1 -1
  34. package/out/history.txt +1 -1
  35. package/out/index.html +1 -1
  36. package/out/index.txt +2 -2
  37. package/out/login.html +1 -1
  38. package/out/login.txt +1 -1
  39. package/out/metrics.html +1 -1
  40. package/out/metrics.txt +1 -1
  41. package/out/pricing.html +1 -1
  42. package/out/pricing.txt +1 -1
  43. package/out/privacy.html +1 -1
  44. package/out/privacy.txt +1 -1
  45. package/out/providers/setup/claude.html +1 -1
  46. package/out/providers/setup/claude.txt +1 -1
  47. package/out/providers/setup/codex.html +1 -1
  48. package/out/providers/setup/codex.txt +1 -1
  49. package/out/providers/setup/cursor.html +1 -1
  50. package/out/providers/setup/cursor.txt +1 -1
  51. package/out/providers.html +1 -1
  52. package/out/providers.txt +2 -2
  53. package/out/security.html +1 -1
  54. package/out/security.txt +1 -1
  55. package/out/signup.html +1 -1
  56. package/out/signup.txt +1 -1
  57. package/out/terms.html +1 -1
  58. package/out/terms.txt +1 -1
  59. package/package.json +1 -1
  60. package/out/_next/static/chunks/285-7e0f6b4d00cf57de.js +0 -1
  61. package/out/_next/static/chunks/app/providers/page-ad44a77ebe9d01c5.js +0 -1
  62. /package/out/_next/static/{yONrkGEJcAsR9DmXHskk0 → bEZfGbSMzOw3Hg1Gm6kJX}/_buildManifest.js +0 -0
  63. /package/out/_next/static/{yONrkGEJcAsR9DmXHskk0 → bEZfGbSMzOw3Hg1Gm6kJX}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[150],{1125:function(e,t,r){Promise.resolve().then(r.bind(r,9835))},1695:function(e,t,r){"use strict";var n=r(1219);r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},4859:function(e,t,r){"use strict";var n,s;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(s=r.g.process)?void 0:s.env)?r.g.process:r(9566)},9566:function(e){!function(){var t={229:function(e){var t,r,n,s=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c=[],l=!1,d=-1;function u(){l&&n&&(l=!1,n.length?c=n.concat(c):d=-1,c.length&&m())}function m(){if(!l){var e=o(u);l=!0;for(var t=c.length;t;){for(n=c,c=[];++d<t;)n&&n[d].run();d=-1,t=c.length}n=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}s.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||l||o(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=h,s.addListener=h,s.once=h,s.off=h,s.removeListener=h,s.removeAllListeners=h,s.emit=h,s.prependListener=h,s.prependOnceListener=h,s.listeners=function(e){return[]},s.binding=function(e){throw Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw Error("process.chdir is not supported")},s.umask=function(){return 0}}},r={};function n(e){var s=r[e];if(void 0!==s)return s.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var s=n(229);e.exports=s}()},9835:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return u}});var n=r(7573),s=r(7653),i=r(1695),a=r(5634),o=r(9175);let c=[{id:"anthropic",name:"Anthropic",displayName:"Claude",color:"#D97757",cliCommand:"claude",requiresUrlCopy:!0},{id:"codex",name:"OpenAI",displayName:"Codex",color:"#10A37F",cliCommand:"codex login",requiresUrlCopy:!0},{id:"google",name:"Google",displayName:"Gemini",color:"#4285F4",cliCommand:"gemini"},{id:"opencode",name:"OpenCode",displayName:"OpenCode",color:"#00D4AA",cliCommand:"opencode",comingSoon:!0},{id:"droid",name:"Factory",displayName:"Droid",color:"#6366F1",cliCommand:"droid",comingSoon:!0},{id:"cursor",name:"Cursor",displayName:"Cursor",color:"#7C3AED",cliCommand:"agent",requiresUrlCopy:!0}];function l(){return(0,n.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] flex items-center justify-center",children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsxs)("svg",{className:"w-8 h-8 text-accent-cyan animate-spin mx-auto",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),(0,n.jsx)("p",{className:"mt-4 text-text-muted",children:"Loading providers..."})]})})}function d(){let e=(0,i.useSearchParams)().get("workspace"),[t,r]=(0,s.useState)(!0),[l,d]=(0,s.useState)(null),[u,m]=(0,s.useState)(null),[p,h]=(0,s.useState)([]);return((0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/providers",{credentials:"include"}),t=e.headers.get("X-CSRF-Token");if(t&&m(t),!e.ok){if(401===e.status){window.location.href="/login";return}throw Error("Failed to fetch providers")}let r=((await e.json()).providers||[]).filter(e=>e.isConnected&&"github"!==e.id).map(e=>e.id);h(r)}catch(e){d(e instanceof Error?e.message:"Failed to load providers")}finally{r(!1)}})()},[]),t)?(0,n.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] flex items-center justify-center",children:(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsxs)("svg",{className:"w-8 h-8 text-accent-cyan animate-spin mx-auto",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),(0,n.jsx)("p",{className:"mt-4 text-text-muted",children:"Loading providers..."})]})}):(0,n.jsxs)("div",{className:"min-h-screen bg-gradient-to-br from-[#0a0a0f] via-[#0d1117] to-[#0a0a0f] flex flex-col items-center justify-center p-4",children:[(0,n.jsx)("div",{className:"fixed inset-0 opacity-10 pointer-events-none",children:(0,n.jsx)("div",{className:"absolute inset-0",style:{backgroundImage:"linear-gradient(rgba(0, 217, 255, 0.1) 1px, transparent 1px),\n linear-gradient(90deg, rgba(0, 217, 255, 0.1) 1px, transparent 1px)",backgroundSize:"50px 50px"}})}),(0,n.jsxs)("div",{className:"relative z-10 w-full max-w-xl",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center mb-8",children:[(0,n.jsx)(a.K7,{size:48,withGlow:!0}),(0,n.jsx)("h1",{className:"mt-4 text-2xl font-bold text-white",children:"Connect AI Providers"}),(0,n.jsx)("p",{className:"mt-2 text-text-muted text-center",children:"Connect your AI providers to start using agents."})]}),l&&(0,n.jsx)("div",{className:"mb-4 p-4 bg-error/10 border border-error/20 rounded-xl",children:(0,n.jsx)("p",{className:"text-error",children:l})}),!e&&(0,n.jsx)("div",{className:"mb-4 p-4 bg-warning/10 border border-warning/20 rounded-xl",children:(0,n.jsxs)("p",{className:"text-warning text-sm",children:[(0,n.jsx)("strong",{children:"Note:"})," CLI-based authentication requires a running workspace. Please"," ",(0,n.jsx)("a",{href:"/app",className:"underline hover:no-underline",children:"create a workspace"})," first."]})}),e?(0,n.jsx)(o.c,{providers:c,connectedProviders:p,workspaceId:e,csrfToken:u||void 0,onProviderConnected:e=>{h(t=>[...new Set([...t,e])])},onContinue:()=>{window.location.href=e?"/app?workspace=".concat(e):"/app"},showDetailedInfo:!0}):(0,n.jsxs)("div",{className:"bg-bg-primary/80 backdrop-blur-sm border border-border-subtle rounded-2xl p-6 text-center",children:[(0,n.jsx)("p",{className:"text-text-muted mb-4",children:"A workspace is required to connect providers via CLI authentication."}),(0,n.jsx)("a",{href:"/app",className:"inline-block py-3 px-6 bg-gradient-to-r from-accent-cyan to-[#00b8d9] text-bg-deep font-semibold rounded-xl hover:shadow-glow-cyan transition-all",children:"Create a Workspace"})]})]})]})}function u(){return(0,n.jsx)(s.Suspense,{fallback:(0,n.jsx)(l,{}),children:(0,n.jsx)(d,{})})}},4722:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(7573),s=r(7653);let i={codex:"openai"};function a(e){let{provider:t,workspaceId:r,csrfToken:a,onSuccess:o,onCancel:c,onError:l}=e,[d,u]=(0,s.useState)("idle"),[m,p]=(0,s.useState)(null),[h,x]=(0,s.useState)(null),[f,g]=(0,s.useState)(!1),b=(0,s.useRef)(!1),y=(0,s.useRef)(!1),v=t.id,j=i[v]||v,w=(0,s.useCallback)(async()=>{u("starting"),p(null),y.current=!1;try{let e={"Content-Type":"application/json"};a&&(e["X-CSRF-Token"]=a);let t=await fetch("/api/auth/ssh/init",{method:"POST",credentials:"include",headers:e,body:JSON.stringify({provider:v,workspaceId:r})}),n=await t.json();if(!t.ok)throw Error(n.error||"Failed to start authentication");x(n.commandWithUrl||n.command),u("waiting"),n.workspaceId&&N(n.workspaceId)}catch(t){let e=t instanceof Error?t.message:"Failed to start authentication";p(e),u("error"),l(e)}},[v,r,a,l]),N=(0,s.useCallback)(e=>{if(b.current)return;b.current=!0;let t=0,r=async()=>{if(t>=120||!b.current){b.current=!1,t>=120&&(p("Authentication timed out. Please try again."),u("error"),l("Authentication timed out"));return}try{let s=await fetch("/api/auth/ssh/status/".concat(e),{credentials:"include"});if(s.ok){var n;let e=await s.json(),t=null===(n=e.providers)||void 0===n?void 0:n.find(e=>e.name===j);if((null==t?void 0:t.status)==="connected"){b.current=!1,y.current||(y.current=!0,u("success"),setTimeout(()=>o(),1500));return}}t++,setTimeout(r,5e3)}catch(e){console.error("Poll error:",e),t++,setTimeout(r,5e3)}};r()},[j,l,o]),C=(0,s.useCallback)(()=>{b.current=!1,u("idle"),x(null),p(null),g(!1),c()},[c]),k=(0,s.useCallback)(()=>{h&&(navigator.clipboard.writeText(h),g(!0),setTimeout(()=>g(!1),2e3))},[h]);return(0,s.useEffect)(()=>{"idle"===d&&w()},[w,d]),(0,s.useEffect)(()=>()=>{b.current=!1},[]),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("div",{className:"w-10 h-10 rounded-lg flex items-center justify-center text-white font-bold",style:{backgroundColor:t.color},children:t.displayName[0]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"font-medium text-white",children:t.displayName}),(0,n.jsxs)("p",{className:"text-sm text-text-muted",children:["starting"===d&&"Starting authentication...","waiting"===d&&"Complete authentication below","success"===d&&"Connected!","error"===d&&(m||"Authentication failed")]})]})]}),"starting"===d&&(0,n.jsxs)("div",{className:"flex items-center justify-center gap-3 py-4",children:[(0,n.jsxs)("svg",{className:"w-5 h-5 text-accent-cyan animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),(0,n.jsx)("span",{className:"text-text-muted",children:"Preparing authentication..."})]}),"waiting"===d&&h&&(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"p-3 bg-accent-cyan/10 border border-accent-cyan/30 rounded-lg",children:[(0,n.jsxs)("p",{className:"text-sm text-accent-cyan mb-2",children:[(0,n.jsx)("strong",{children:"Step 1:"})," Copy and run this command in your terminal"]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("code",{className:"flex-1 px-3 py-2 bg-bg-deep rounded-lg text-xs font-mono text-white overflow-x-auto",children:h}),(0,n.jsx)("button",{onClick:k,className:"px-3 py-2 bg-bg-tertiary border border-border-subtle rounded-lg text-text-muted hover:text-white hover:border-accent-cyan/50 transition-colors text-xs whitespace-nowrap",children:f?"Copied!":"Copy"})]})]}),(0,n.jsxs)("div",{className:"p-3 bg-bg-tertiary border border-border-subtle rounded-lg",children:[(0,n.jsxs)("p",{className:"text-sm text-white mb-1",children:[(0,n.jsx)("strong",{children:"Step 2:"})," Accept any SSH host key warnings"]}),(0,n.jsxs)("p",{className:"text-xs text-text-muted",children:['If prompted with "Are you sure you want to continue connecting?", type ',(0,n.jsx)("code",{className:"px-1 py-0.5 bg-bg-deep rounded text-accent-cyan",children:"yes"})," and press Enter."]})]}),(0,n.jsxs)("div",{className:"p-3 bg-bg-tertiary border border-border-subtle rounded-lg",children:[(0,n.jsxs)("p",{className:"text-sm text-white mb-1",children:[(0,n.jsx)("strong",{children:"Step 3:"})," Complete the sign-in"]}),(0,n.jsxs)("p",{className:"text-xs text-text-muted",children:["A browser window will open for ",t.displayName," authentication. Sign in with your account and authorize access."]})]}),(0,n.jsxs)("div",{className:"p-3 bg-amber-500/10 border border-amber-500/30 rounded-lg",children:[(0,n.jsxs)("p",{className:"text-sm text-amber-400 mb-1",children:[(0,n.jsx)("strong",{children:"Step 4:"})," Wait for the ",t.displayName," input prompt, then type ",(0,n.jsx)("code",{className:"px-1 py-0.5 bg-bg-deep rounded",children:"exit"})]}),(0,n.jsxs)("p",{className:"text-xs text-amber-400/80",children:["Do NOT close the terminal early. After sign-in completes, wait until you see the ",t.displayName," input screen (e.g. the ",(0,n.jsx)("code",{className:"px-1 py-0.5 bg-bg-deep rounded",children:">"})," prompt). Then type ",(0,n.jsx)("code",{className:"px-1 py-0.5 bg-bg-deep rounded",children:"exit"})," and press Enter. This page will update automatically."]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2 p-3 bg-success/10 border border-success/30 rounded-lg text-sm text-success",children:[(0,n.jsxs)("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,n.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,n.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),(0,n.jsx)("span",{children:"Waiting for authentication to complete..."})]}),(0,n.jsx)("button",{onClick:C,className:"w-full py-2 text-text-muted hover:text-white transition-colors text-sm",children:"Cancel"})]}),"success"===d&&(0,n.jsxs)("div",{className:"flex items-center justify-center gap-3 py-4",children:[(0,n.jsx)("div",{className:"w-10 h-10 bg-success/20 rounded-full flex items-center justify-center",children:(0,n.jsx)("svg",{className:"w-6 h-6 text-success",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,n.jsxs)("span",{className:"text-white font-medium",children:[t.displayName," connected!"]})]}),"error"===d&&(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsx)("div",{className:"p-4 bg-error/10 border border-error/30 rounded-lg text-error text-sm",children:m||"Authentication failed. Please try again."}),(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)("button",{onClick:w,className:"flex-1 py-2 px-4 bg-bg-tertiary border border-border-subtle text-white rounded-lg hover:border-accent-cyan/50 transition-colors",children:"Try Again"}),(0,n.jsx)("button",{onClick:C,className:"py-2 px-4 text-text-muted hover:text-white transition-colors",children:"Cancel"})]})]})]})}},8514:function(e,t,r){"use strict";r.d(t,{X:function(){return n}});var n=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(0===e.css.cell.width||0===e.css.cell.height)return;let t=0===this._terminal.options.scrollback?0:this._terminal.options.overviewRuler?.width||14,r=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(r.getPropertyValue("height")),s=Math.max(0,parseInt(r.getPropertyValue("width"))),i=window.getComputedStyle(this._terminal.element),a={top:parseInt(i.getPropertyValue("padding-top")),bottom:parseInt(i.getPropertyValue("padding-bottom")),right:parseInt(i.getPropertyValue("padding-right")),left:parseInt(i.getPropertyValue("padding-left"))},o=a.top+a.bottom;return{cols:Math.max(2,Math.floor((s-(a.right+a.left)-t)/e.css.cell.width)),rows:Math.max(1,Math.floor((n-o)/e.css.cell.height))}}}}},function(e){e.O(0,[440,994,259,293,528,744],function(){return e(e.s=1125)}),_N_E=e.O()}]);