agenttwin 0.3.45 → 0.3.46

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 (75) hide show
  1. package/dist/api.js +153 -56
  2. package/dist/dashboard/assets/next/static/chunks/app/_not-found/{page-90e7c4625d67caa3.js → page-ca2a678442778cc4.js} +1 -1
  3. package/dist/dashboard/assets/next/static/chunks/app/about/{page-7b6ab8f6081f5e77.js → page-f12d76165cc1cfdb.js} +1 -1
  4. package/dist/dashboard/assets/next/static/chunks/app/account/password/{page-037fec5f56012be1.js → page-c2ce3c796c817ca1.js} +1 -1
  5. package/dist/dashboard/assets/next/static/chunks/app/{auth/page-540d65d1057a7527.js → api-policy/page-dc4de82f3c8b5ee5.js} +1 -1
  6. package/dist/dashboard/assets/next/static/chunks/app/{compare/page-540d65d1057a7527.js → auth/page-dc4de82f3c8b5ee5.js} +1 -1
  7. package/dist/dashboard/assets/next/static/chunks/app/blog/{layout-1f35c9c8280d8e88.js → layout-52698c1f7512ab03.js} +1 -1
  8. package/dist/dashboard/assets/next/static/chunks/app/{contact/page-540d65d1057a7527.js → compare/page-dc4de82f3c8b5ee5.js} +1 -1
  9. package/dist/dashboard/assets/next/static/chunks/app/{api-policy/page-540d65d1057a7527.js → contact/page-dc4de82f3c8b5ee5.js} +1 -1
  10. package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-b5ef02cb8f06edca.js +1 -0
  11. package/dist/dashboard/assets/next/static/chunks/app/dashboard/{page-7ee71756cadd81da.js → page-e175e18f842b558f.js} +1 -1
  12. package/dist/dashboard/assets/next/static/chunks/app/demo/{page-fa467521a350a22e.js → page-4dc63755e0013e7c.js} +1 -1
  13. package/dist/dashboard/assets/next/static/chunks/app/developers/page-dc4de82f3c8b5ee5.js +1 -0
  14. package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/{page-2f02d1a4e3c44daa.js → page-ba0ec7ecc08eff9f.js} +1 -1
  15. package/dist/dashboard/assets/next/static/chunks/app/dpa/page-dc4de82f3c8b5ee5.js +1 -0
  16. package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-4bc33047e4c9fe8e.js +1 -0
  17. package/dist/dashboard/assets/next/static/chunks/app/guides/page-dc4de82f3c8b5ee5.js +1 -0
  18. package/dist/dashboard/assets/next/static/chunks/app/layout-cd911546738f01ed.js +1 -0
  19. package/dist/dashboard/assets/next/static/chunks/app/login/page-d6d4276397724d29.js +1 -0
  20. package/dist/dashboard/assets/next/static/chunks/app/not-found-dc4de82f3c8b5ee5.js +1 -0
  21. package/dist/dashboard/assets/next/static/chunks/app/onboarding/{page-0ef60a890802e3ea.js → page-40532b5cef9a88c1.js} +1 -1
  22. package/dist/dashboard/assets/next/static/chunks/app/page-a8275b37886e34a8.js +1 -0
  23. package/dist/dashboard/assets/next/static/chunks/app/{enterprise/page-5d3aa113786c4257.js → pricing/page-8f3a108c73f12071.js} +1 -1
  24. package/dist/dashboard/assets/next/static/chunks/app/privacy/page-dc4de82f3c8b5ee5.js +1 -0
  25. package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-dc4de82f3c8b5ee5.js +1 -0
  26. package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-dc4de82f3c8b5ee5.js +1 -0
  27. package/dist/dashboard/assets/next/static/chunks/app/security/page-dc4de82f3c8b5ee5.js +1 -0
  28. package/dist/dashboard/assets/next/static/chunks/app/signup/page-d6d4276397724d29.js +1 -0
  29. package/dist/dashboard/assets/next/static/chunks/app/status/page-b39797a55d029518.js +1 -0
  30. package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-dc4de82f3c8b5ee5.js +1 -0
  31. package/dist/dashboard/assets/next/static/chunks/app/terms/page-dc4de82f3c8b5ee5.js +1 -0
  32. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-09d48e9ba6876ea1.js +1 -0
  33. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-031ee9c843b9c428.js +1 -0
  34. package/dist/dashboard/assets/next/static/chunks/app/v2/layout-abbd9f3b8811f559.js +1 -0
  35. package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-4f4a342a4c28f9de.js +1 -0
  36. package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/{page-cb95f6e08d868cb9.js → page-efea46ea53572102.js} +1 -1
  37. package/dist/dashboard/assets/next/static/chunks/app/v2/page-4c5b8b508cf0da4c.js +1 -0
  38. package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-4f4a342a4c28f9de.js +1 -0
  39. package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-dc4de82f3c8b5ee5.js +1 -0
  40. package/dist/dashboard/assets/next/static/chunks/{main-app-09f87cf7a6813e7b.js → main-app-1ec13ceef4a34729.js} +1 -1
  41. package/dist/dashboard/assets/next/static/chunks/{webpack-956fc59a9b8e1c9d.js → webpack-b34c6469f0501f3e.js} +1 -1
  42. package/dist/dashboard/index.html +2 -2
  43. package/dist/discover-worker.js +1 -1
  44. package/dist/engine.js +153 -56
  45. package/dist/gateway.js +153 -56
  46. package/dist/scan-worker.js +2 -1
  47. package/dist/worker.js +5 -0
  48. package/dist/world-host.js +5 -0
  49. package/package.json +1 -1
  50. package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-0a7a4610c777d4ca.js +0 -1
  51. package/dist/dashboard/assets/next/static/chunks/app/developers/page-540d65d1057a7527.js +0 -1
  52. package/dist/dashboard/assets/next/static/chunks/app/dpa/page-540d65d1057a7527.js +0 -1
  53. package/dist/dashboard/assets/next/static/chunks/app/guides/page-540d65d1057a7527.js +0 -1
  54. package/dist/dashboard/assets/next/static/chunks/app/layout-f1fad0b3adfa8650.js +0 -1
  55. package/dist/dashboard/assets/next/static/chunks/app/login/page-0fcaa825ae57072e.js +0 -1
  56. package/dist/dashboard/assets/next/static/chunks/app/not-found-540d65d1057a7527.js +0 -1
  57. package/dist/dashboard/assets/next/static/chunks/app/page-02d88045d016e184.js +0 -1
  58. package/dist/dashboard/assets/next/static/chunks/app/pricing/page-b20818439dc8daa3.js +0 -1
  59. package/dist/dashboard/assets/next/static/chunks/app/privacy/page-540d65d1057a7527.js +0 -1
  60. package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-540d65d1057a7527.js +0 -1
  61. package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-540d65d1057a7527.js +0 -1
  62. package/dist/dashboard/assets/next/static/chunks/app/security/page-540d65d1057a7527.js +0 -1
  63. package/dist/dashboard/assets/next/static/chunks/app/signup/page-0fcaa825ae57072e.js +0 -1
  64. package/dist/dashboard/assets/next/static/chunks/app/status/page-477b90a47b806b39.js +0 -1
  65. package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-540d65d1057a7527.js +0 -1
  66. package/dist/dashboard/assets/next/static/chunks/app/terms/page-540d65d1057a7527.js +0 -1
  67. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-f3b848d905696aa6.js +0 -1
  68. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-5114d5bc25cc925a.js +0 -1
  69. package/dist/dashboard/assets/next/static/chunks/app/v2/layout-c5a3a914ad02b396.js +0 -1
  70. package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-391350c8e39d35fe.js +0 -1
  71. package/dist/dashboard/assets/next/static/chunks/app/v2/page-ba5549311d95d01d.js +0 -1
  72. package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-391350c8e39d35fe.js +0 -1
  73. package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-540d65d1057a7527.js +0 -1
  74. /package/dist/dashboard/assets/next/static/{iCEc5bCzyYUPa74FKyLIp → pGgp6m8IvF1eEP2vBkhqX}/_buildManifest.js +0 -0
  75. /package/dist/dashboard/assets/next/static/{iCEc5bCzyYUPa74FKyLIp → pGgp6m8IvF1eEP2vBkhqX}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5452:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5452)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9352],{44:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765)),Promise.resolve().then(n.t.bind(n,3845,23))},3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},3845:()=>{},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,7502,5105,8441,1255,7358],()=>e(e.s=44)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5452:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5452)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{540:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(2115),i=n(5704);function l(){return(0,r.useEffect)(()=>{let e=i.env.NEXT_PUBLIC_POSTHOG_KEY;if(!e)return;let t=!1;return(async()=>{let{default:r}=await n.e(9432).then(n.bind(n,7385));t||r.init(e,{api_host:i.env.NEXT_PUBLIC_POSTHOG_HOST||"https://analytics.agenttwin.si",capture_pageview:!0,autocapture:!0,persistence:"localStorage+cookie",disable_session_recording:!0,advanced_disable_toolbar_metrics:!0})})(),()=>{t=!0}},[]),null}},1120:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,1402,23)),Promise.resolve().then(n.bind(n,540)),Promise.resolve().then(n.t.bind(n,1681,23)),Promise.resolve().then(n.t.bind(n,6837,23)),Promise.resolve().then(n.t.bind(n,4510,23)),Promise.resolve().then(n.t.bind(n,4730,23))},1402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return h},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return y}});let r=n(8140),i=n(9417),l=n(5155),a=r._(n(7650)),s=i._(n(2115)),u=n(2073),o=n(4681),c=n(4853),d=n(9001),f=new Map,p=new Set,_=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:i=null,dangerouslySetInnerHTML:l,children:s="",strategy:u="afterInteractive",onError:c,stylesheets:d}=e,_=n||t;if(_&&p.has(_))return;if(f.has(t)){p.add(_),f.get(t).then(r,c);return}let b=()=>{i&&i(),p.add(_)},y=document.createElement("script"),g=new Promise((e,t)=>{y.addEventListener("load",function(t){e(),r&&r.call(this,t),b()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});l?(y.innerHTML=l.__html||"",b()):s?(y.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",b()):t&&(y.src=t,f.set(t,g)),(0,o.setAttributesFromProps)(y,e),"worker"===u&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",u),d&&(e=>{if(a.default.preinit)return e.forEach(e=>{a.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(d),document.body.appendChild(y)};function b(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>_(e))}):_(e)}function y(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");p.add(t)})}function g(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:i=null,strategy:o="afterInteractive",onError:f,stylesheets:b,...y}=e,{updateScripts:g,scripts:h,getIsSsr:m,appDir:v,nonce:O}=(0,s.useContext)(u.HeadManagerContext);O=y.nonce||O;let E=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||n;E.current||(i&&e&&p.has(e)&&i(),E.current=!0)},[i,t,n]);let I=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{if(!I.current){if("afterInteractive"===o)_(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>_(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>_(e))}));I.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(g?(h[o]=(h[o]||[]).concat([{id:t,src:n,onLoad:r,onReady:i,onError:f,...y,nonce:O}]),g(h)):m&&m()?p.add(t||n):m&&!m()&&_({...e,nonce:O})),v){if(b&&b.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!n)return y.dangerouslySetInnerHTML&&(y.children=y.dangerouslySetInnerHTML.__html,delete y.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:O,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([0,{...y,id:t}]))+")"}});else return a.default.preload(n,y.integrity?{as:"script",integrity:y.integrity,nonce:O,crossOrigin:y.crossOrigin}:{as:"script",nonce:O,crossOrigin:y.crossOrigin}),(0,l.jsx)("script",{nonce:O,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+(0,d.htmlEscapeJsonString)(JSON.stringify([n,{...y,id:t}]))+")"}});"afterInteractive"===o&&n&&a.default.preload(n,y.integrity?{as:"script",integrity:y.integrity,nonce:O,crossOrigin:y.crossOrigin}:{as:"script",nonce:O,crossOrigin:y.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let h=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1681:()=>{},4510:()=>{},4730:()=>{},4853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6837:()=>{},9001:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ESCAPE_REGEX:function(){return r},htmlEscapeAttributeString:function(){return s},htmlEscapeJsonString:function(){return a}});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},r=/[&><\u2028\u2029]/g,i={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},l=/[&"'<>]/g;function a(e){return e.replace(r,e=>n[e])}function s(e){return e.replace(l,e=>i[e])}}},e=>{e.O(0,[4203,8441,1255,7358],()=>e(e.s=1120)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[879,4520],{9536:(e,s,_)=>{Promise.resolve().then(_.bind(_,6787))}},e=>{e.O(0,[3935,6787,8441,1255,7358],()=>e(e.s=9536)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5452:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5452)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9566],{1390:(e,t,s)=>{Promise.resolve().then(s.bind(s,8109))},6184:()=>{},8109:(e,t,s)=>{"use strict";s.d(t,{default:()=>x});var a=s(5155),n=s(2115),r=s(6787);function o(e){var t,s,a,n,r;return{company:null!=(t=null==e?void 0:e.company)?t:"",website:null!=(s=null==e?void 0:e.website)?s:"",role:null!=(a=null==e?void 0:e.role)?a:"",teamSize:null!=(n=null==e?void 0:e.teamSize)?n:"",useCase:null!=(r=null==e?void 0:e.useCase)?r:""}}function i(e){let t,s=e.trim();if(!s)return"";let a=s.startsWith("//")?"https:"+s:/^[a-z][a-z\d+.-]*:/i.test(s)?s:"https://"+s;try{t=new URL(a)}catch(e){throw Error("Enter a valid company website, such as example.com.")}if(!["https:","http:"].includes(t.protocol)||t.username||t.password||t.href.length>254)throw Error("Enter a company website using http:// or https://, without login details.");return t.href}s(1261),s(6184),s(9022);let c={company:"",website:"",role:"",teamSize:"",useCase:""},l="agenttwin:pending-terminal:v1",d=e=>"agenttwin:onboarding-draft:v1:"+JSON.stringify([r.n,e]),u="agenttwin:workspace-preferences:v1",p={morning:"bay-morning.webp",afternoon:"golden-gate-afternoon.webp",evening:"moonlit-coast.webp"},h=["Your profile","Your workspace","Connect your application"],m={artwork:"afternoon",compact:!1,autoRefresh:!0,reduceMotion:!1};function g(){return(0,a.jsx)("span",{"aria-hidden":"true",children:"→"})}function j(){return(0,a.jsx)("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,a.jsx)("path",{d:"m4 8 2.5 2.5L12 5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function x(){var e;let[t,s]=(0,n.useState)(null),[x,v]=(0,n.useState)(""),[w,y]=(0,n.useState)(0),[f,b]=(0,n.useState)(0),[k,N]=(0,n.useState)(0),[S,C]=(0,n.useState)(m),[A,I]=(0,n.useState)(""),[E,T]=(0,n.useState)(""),[O,L]=(0,n.useState)(""),[R,P]=(0,n.useState)(c),[W,z]=(0,n.useState)(!1),F=(e,t)=>P(s=>({...s,[e]:t})),[J,Y]=(0,n.useState)(""),[M,D]=(0,n.useState)(!1),[B,U]=(0,n.useState)(!1),[_,q]=(0,n.useState)(!1),[H,$]=(0,n.useState)(""),[K,V]=(0,n.useState)(!1),[G,Q]=(0,n.useState)(""),[X,Z]=(0,n.useState)([]),[ee,et]=(0,n.useState)(!1),[es,ea]=(0,n.useState)(""),[en,er]=(0,n.useState)(!1),eo=(0,n.useRef)(null),ei="auto"===S.artwork?"afternoon":S.artwork;function ec(e){b(e),N(t=>Math.max(t,e)),I(""),requestAnimationFrame(()=>{var e;return null==(e=eo.current)?void 0:e.focus({preventScroll:!0})})}function el(){try{let e={};try{let t=JSON.parse(localStorage.getItem(u)||"{}");t&&"object"==typeof t&&!Array.isArray(t)&&(e=t)}catch(e){}return localStorage.setItem(u,JSON.stringify({...e,...S,name:O.slice(0,40),userName:E.slice(0,60)})),er(!1),!0}catch(e){return er(!0),I("Browser storage is unavailable. Your preferences could not be saved."),!1}}async function ed(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t||W)return!1;z(!0),I("");try{let t=i(R.website);F("website",t);let a=await fetch(r.n+"/v1/auth/profile",{method:"POST",credentials:"include",headers:{"content-type":"application/json"},body:JSON.stringify({name:E,workspace:O,...o(R),website:t,complete:e}),signal:AbortSignal.timeout(15e3)}),n=await a.json();if(!a.ok)throw Error(404===a.status?"Account setup is not available on this API yet. Please try again after the API is updated.":n.error||"Could not save your details. Try again.");return s(n.user),!0}catch(e){return I(e instanceof Error?e.message:"Could not save your details. Try again."),!1}finally{z(!1)}}async function eu(){!t||M||K||W||await ed(!0)&&(el(),location.assign(X.length?"/dashboard/#environment":"/dashboard/#home"))}async function ep(e){if(e.preventDefault(),!M&&!B&&t){D(!0),$("");try{let e=await fetch(r.n+"/v1/auth/device/approve",{method:"POST",credentials:"include",headers:{"content-type":"application/json"},body:JSON.stringify({userCode:J.trim().toUpperCase()}),signal:AbortSignal.timeout(15e3)}),t=await e.json();if(!e.ok)throw Error(t.error||"Could not connect your terminal. Try again.");try{sessionStorage.removeItem(l)}catch(e){}U(!0),Y(""),$("Terminal connected. Init is syncing your project; this page will update automatically.")}catch(e){$(e instanceof Error?e.message:"Could not connect your terminal.")}finally{D(!1)}}}async function eh(){if(!K&&t){V(!0),Q("");try{let e=await fetch(r.n+"/v1/projects",{credentials:"include",signal:AbortSignal.timeout(15e3)});if(!e.ok)throw Error("Could not check your projects. Try again.");let t=await e.json();if(!Array.isArray(t.projects))throw Error("Could not load your projects. Try again.");Z(t.projects),et(!0),Q(t.projects.length?"Your project is in your workspace.":"Run npx agenttwin and sign in when it asks. The project map appears here automatically.")}catch(e){Q(e instanceof Error?e.message:"Could not check your projects.")}finally{V(!1)}}}async function em(e){try{await navigator.clipboard.writeText(e),ea(e),I("Command copied. Run it in your project’s terminal.")}catch(e){I("Select the command and copy it into your terminal.")}}return(0,n.useEffect)(()=>{let e=new URLSearchParams(location.hash.slice(1)).get("user_code"),t=null;try{e&&/^[A-F0-9]{10}$/.test(e)?(t={code:e,expires:Date.now()+6e5},sessionStorage.setItem(l,JSON.stringify(t))):t=JSON.parse(sessionStorage.getItem(l)||"null")}catch(s){e&&(t={code:e,expires:Date.now()+6e5})}if(t&&/^[A-F0-9]{10}$/.test(t.code||"")&&Number(t.expires)>Date.now())Y(t.code),q(!0),b(2),N(2);else try{sessionStorage.removeItem(l)}catch(e){}e&&history.replaceState(null,"",location.pathname+location.search)},[]),(0,n.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem(u)||"null");e&&C({artwork:"afternoon",compact:!0===e.compact,autoRefresh:!1!==e.autoRefresh,reduceMotion:!0===e.reduceMotion})}catch(e){}},[]),(0,n.useEffect)(()=>{let e=new AbortController;return v(""),fetch(r.n+"/v1/auth/me",{credentials:"include",signal:AbortSignal.any([e.signal,AbortSignal.timeout(15e3)])}).then(async e=>{var t;if(401===e.status)return void location.replace("/login/?next=onboarding");if(!e.ok)throw Error();let a=(await e.json()).user;if(s(a),T(a.name),L(a.workspace),P(o(a.workspaceProfile)),null==(t=a.workspaceProfile)?void 0:t.completedAt){b(2),N(2);try{localStorage.removeItem(d(a.accountId))}catch(e){}}else if(a.accountId)try{let e=JSON.parse(localStorage.getItem(d(a.accountId))||"null");if((null==e?void 0:e.accountId)===a.accountId&&e.expires>Date.now()&&"string"==typeof e.name&&e.name.length<=100&&"string"==typeof e.workspace&&e.workspace.length<=100&&e.context&&["company","website","role","teamSize","useCase"].every(t=>"string"==typeof e.context[t])&&Number.isInteger(e.step)&&e.step>=0&&e.step<=2&&Number.isInteger(e.furthest)&&e.furthest>=e.step&&e.furthest<=2){T(e.name),L(e.workspace),P(o(e.context));let t=!1;try{let e=JSON.parse(sessionStorage.getItem(l)||"null");t=(null==e?void 0:e.expires)>Date.now()&&/^[A-F0-9]{10}$/.test((null==e?void 0:e.code)||"")}catch(e){}t||(b(e.step),N(e.furthest))}}catch(e){er(!0)}}).catch(()=>{e.signal.aborted||v("Your account could not be loaded. Try again to continue setup.")}),()=>e.abort()},[w]),(0,n.useEffect)(()=>{var e;if((null==t?void 0:t.accountId)&&(null==(e=t.workspaceProfile)||!e.completedAt))try{localStorage.setItem(d(t.accountId),JSON.stringify({accountId:t.accountId,name:E,workspace:O,context:o(R),step:f,furthest:k,expires:Date.now()+6048e5}))}catch(e){er(!0)}},[t,E,O,R,f,k]),(0,n.useEffect)(()=>{if(!t)return;let e=new AbortController,s=!1,a=async()=>{if("hidden"!==document.visibilityState&&!s){s=!0;try{2===f&&"http://localhost:8080"===r.n&&await fetch(r.n+"/v1/dev/workspace",{method:"POST",credentials:"include",headers:{"content-type":"application/json"},body:"{}",signal:AbortSignal.any([e.signal,AbortSignal.timeout(2e3)])}).catch(()=>{});let t=await fetch(r.n+"/v1/projects",{credentials:"include",signal:AbortSignal.any([e.signal,AbortSignal.timeout(1e4)])});if(!t.ok)return void Q("Could not check your project connection. Try again.");let s=await t.json();!e.signal.aborted&&Array.isArray(s.projects)&&(Z(s.projects),et(!0),s.projects.length&&Q("Your project is in your workspace."))}catch(e){}finally{s=!1}}};a();let n=2===f?setInterval(()=>{a()},3e3):void 0;return document.addEventListener("visibilitychange",a),()=>{e.abort(),clearInterval(n),document.removeEventListener("visibilitychange",a)}},[f,null==t?void 0:t.email]),(0,a.jsxs)("main",{className:"onboarding-page onboarding-san-francisco".concat(S.reduceMotion?" onboarding-still":""),style:{"--setup-scene":"url('assets/dashboard/".concat(p[ei],"')")},children:[(0,a.jsx)("div",{className:"onboarding-backdrop","aria-hidden":"true"}),(0,a.jsxs)("section",{className:"onboarding-shell","aria-labelledby":"onboarding-title",children:[(0,a.jsxs)("header",{className:"onboarding-header",children:[(0,a.jsxs)("a",{className:"auth-brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"26",height:"26",alt:""}),"AgentTwin"]}),(0,a.jsxs)("a",{href:"/docs/workflow/",children:["Need a hand? ",(0,a.jsx)(g,{})]})]}),(0,a.jsxs)("div",{className:"onboarding-content".concat(0===f?" onboarding-welcome":""),children:[(0,a.jsxs)("div",{className:"onboarding-controls",children:[(0,a.jsxs)("div",{className:"onboarding-greeting",children:[(0,a.jsx)("p",{children:O||"Your workspace"}),(0,a.jsx)("h1",{id:"onboarding-title",children:t?"Welcome, ".concat(t.name.trim().split(/\s+/)[0],"."):"Set up your workspace."})]}),!t&&!x&&(0,a.jsx)("p",{className:"setup-help",role:"status",children:"Loading your account…"}),x&&(0,a.jsxs)("div",{className:"onboarding-account-error",role:"alert",children:[(0,a.jsx)("p",{children:x}),(0,a.jsx)("button",{type:"button",onClick:()=>y(e=>e+1),children:"Try again"})]}),(0,a.jsx)("ol",{className:"setup-steps","aria-label":"Workspace setup",children:h.map((e,s)=>{var n,r;return(0,a.jsxs)("li",{className:"setup-step".concat(f===s?" active":"").concat(s<k?" visited":""),children:[(0,a.jsx)("h2",{children:(0,a.jsxs)("button",{type:"button",ref:f===s?eo:void 0,className:"setup-step-heading",onClick:()=>ec(s),disabled:s>k||M||K||W||!t,"aria-expanded":f===s,"aria-controls":"setup-panel-".concat(s),"aria-current":f===s?"step":void 0,children:[(0,a.jsx)("span",{className:"setup-step-number",children:s<k&&s!==f?(0,a.jsx)(j,{}):s+1}),e,s<k&&s!==f&&(0,a.jsx)("span",{className:"setup-edit",children:"Edit"})]})}),(0,a.jsxs)("div",{id:"setup-panel-".concat(s),className:"setup-step-panel",hidden:f!==s,children:[0===s&&(0,a.jsxs)("form",{className:"setup-profile-form",onSubmit:async e=>{e.preventDefault(),await ed()&&ec(1)},children:[(0,a.jsx)("p",{children:"Tell your team who you are."}),(0,a.jsxs)("label",{htmlFor:"setup-name",children:["Full name",(0,a.jsx)("input",{id:"setup-name",autoComplete:"name",value:E,onChange:e=>T(e.target.value),maxLength:100,required:!0,disabled:!t||W})]}),(0,a.jsxs)("label",{htmlFor:"setup-email",children:["Account email",(0,a.jsx)("input",{id:"setup-email",type:"email",value:(null==t?void 0:t.email)||"",readOnly:!0,autoComplete:"email"})]}),(0,a.jsxs)("label",{htmlFor:"setup-role",children:["Job title ",(0,a.jsx)("span",{children:"Optional"}),(0,a.jsx)("input",{id:"setup-role",autoComplete:"organization-title",value:R.role,onChange:e=>F("role",e.target.value),maxLength:100,disabled:!t||W,placeholder:"e.g. Platform engineer"})]}),(0,a.jsxs)("button",{type:"submit",className:"setup-primary",disabled:!t||W,children:[W?"Saving…":"Continue"," ",(0,a.jsx)(g,{})]})]}),1===s&&(0,a.jsxs)("form",{className:"setup-profile-form",onSubmit:async e=>{e.preventDefault(),await ed()&&(el(),ec(2))},children:[(0,a.jsx)("p",{children:"Name the workspace for your application and test results."}),(0,a.jsx)("p",{className:"setup-help",children:en?"Browser storage is unavailable. Save workspace to keep your details.":"Your draft stays on this device when you refresh. Save workspace to save it to your account."}),(0,a.jsxs)("label",{htmlFor:"setup-workspace",children:["Workspace name",(0,a.jsx)("input",{id:"setup-workspace",value:O,onChange:e=>L(e.target.value),required:!0,maxLength:100,disabled:!t||W,placeholder:"e.g. Acme engineering"})]}),(0,a.jsxs)("label",{htmlFor:"setup-website",children:["Company website ",(0,a.jsx)("span",{children:"Optional"}),(0,a.jsx)("input",{id:"setup-website",type:"text",inputMode:"url",autoComplete:"url",value:R.website,onChange:e=>F("website",e.target.value),onBlur:e=>{try{F("website",i(e.target.value))}catch(e){}},maxLength:254,placeholder:"https://example.com",disabled:!t||W})]}),(0,a.jsxs)("label",{htmlFor:"setup-size",children:["Team size ",(0,a.jsx)("span",{children:"Optional"}),(0,a.jsxs)("select",{id:"setup-size",value:R.teamSize,onChange:e=>F("teamSize",e.target.value),disabled:!t||W,children:[(0,a.jsx)("option",{value:"",children:"Select team size"}),["1","2–10","11–50","51–200","201–1000","1000+"].map(e=>(0,a.jsx)("option",{value:e,children:"1"===e?"Just me":e+" people"},e))]})]}),(0,a.jsxs)("details",{className:"setup-appearance",children:[(0,a.jsx)("summary",{children:"Appearance and accessibility"}),(0,a.jsxs)("fieldset",{className:"setup-choice",children:[(0,a.jsx)("legend",{children:"Layout"}),(0,a.jsx)("div",{className:"setup-segmented",children:[{label:"Comfortable",value:!1},{label:"Compact",value:!0}].map(e=>(0,a.jsxs)("label",{children:[(0,a.jsx)("input",{type:"radio",name:"setup-density",checked:S.compact===e.value,onChange:()=>C(t=>({...t,compact:e.value}))}),(0,a.jsx)("span",{children:e.label})]},e.label))})]}),(0,a.jsxs)("fieldset",{className:"setup-choice",children:[(0,a.jsx)("legend",{children:"Background"}),(0,a.jsx)("div",{className:"setup-scenes",children:["auto","morning","afternoon","evening"].map(e=>(0,a.jsxs)("label",{children:[(0,a.jsx)("input",{type:"radio",name:"setup-artwork",checked:S.artwork===e,onChange:()=>C(t=>({...t,artwork:e}))}),(0,a.jsx)("span",{className:"setup-scene-swatch".concat("auto"===e?" automatic":""),style:"auto"!==e?{backgroundImage:"url('assets/dashboard/".concat(p[e],"')")}:void 0,children:"auto"===e&&(0,a.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"M12 8v4l3 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),(0,a.jsx)("span",{children:"auto"===e?"Automatic":e[0].toUpperCase()+e.slice(1)})]},e))}),(0,a.jsx)("p",{className:"setup-help",children:"auto"===S.artwork?"Changes with your local time.":"Keep this scene throughout the day."})]}),(0,a.jsxs)("div",{className:"setup-toggle-list",children:[(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("strong",{children:"Live updates"}),(0,a.jsx)("small",{children:"Keep projects and test results up to date."})]}),(0,a.jsx)("input",{type:"checkbox",role:"switch",checked:S.autoRefresh,onChange:e=>C(t=>({...t,autoRefresh:e.target.checked}))})]}),(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("strong",{children:"Reduce motion"}),(0,a.jsx)("small",{children:"Use fewer animations and transitions."})]}),(0,a.jsx)("input",{type:"checkbox",role:"switch",checked:S.reduceMotion,onChange:e=>C(t=>({...t,reduceMotion:e.target.checked}))})]})]})]}),(0,a.jsxs)("button",{type:"submit",className:"setup-primary",disabled:!t||W,children:[W?"Saving…":"Save workspace"," ",(0,a.jsx)(g,{})]})]}),2===s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"setup-connect-intro",children:"Run one command in your repository."}),(0,a.jsxs)("div",{className:"setup-terminal",children:[(0,a.jsxs)("div",{className:"setup-command-label",children:[(0,a.jsx)("span",{children:"01"}),(0,a.jsx)("strong",{children:"Discover and connect"}),B&&(0,a.jsxs)("span",{className:"setup-connected",children:[(0,a.jsx)(j,{}),"Connected"]})]}),(r="npx agenttwin",(0,a.jsxs)("div",{className:"setup-command",children:[(0,a.jsx)("code",{children:r}),(0,a.jsx)("button",{type:"button",onClick:()=>em(r),"aria-label":"Copy ".concat(r),children:es===r?(0,a.jsx)(j,{}):(0,a.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[(0,a.jsx)("rect",{x:"7",y:"7",width:"9",height:"10",rx:"2",stroke:"currentColor",strokeWidth:"1.4"}),(0,a.jsx)("path",{d:"M12 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",stroke:"currentColor",strokeWidth:"1.4"})]})})]})),(0,a.jsx)("p",{className:"setup-help",children:"Init discovers your application and syncs its services, code paths and available test results here. Approve this terminal once if asked. You can continue in this browser as soon as syncing finishes."}),!B&&(0,a.jsxs)("details",{className:"setup-pairing",open:_||!!(null==t||null==(n=t.workspaceProfile)?void 0:n.completedAt),children:[(0,a.jsx)("summary",{children:_?"Confirm your terminal connection":"I have a terminal code"}),(0,a.jsxs)("form",{onSubmit:ep,children:[(0,a.jsxs)("label",{htmlFor:"setup-terminal-code",children:["Connection code",(0,a.jsx)("input",{id:"setup-terminal-code",name:"userCode",value:J,onChange:e=>Y(e.target.value.toUpperCase()),autoComplete:"off",autoCapitalize:"characters",spellCheck:!1,placeholder:"10-character code",minLength:10,maxLength:10,pattern:"[A-Fa-f0-9]{10}",required:!0,disabled:!t||M})]}),(0,a.jsx)("button",{type:"submit",className:"setup-secondary",disabled:!t||M,children:M?"Connecting…":"Connect terminal"})]}),(0,a.jsx)("p",{className:"setup-help",children:"Compare this code with your terminal before approving. Connecting lets it sync project discovery and test evidence to your workspace. Application source and credentials stay local."})]}),H&&(0,a.jsx)("p",{className:"setup-feedback",role:"status",children:H})]}),(0,a.jsx)("p",{className:"setup-help",role:"status",children:X.length?"Project connected.":B?"Terminal connected. Waiting for npx agenttwin to finish syncing your project…":"Waiting for init. This page updates automatically."}),(0,a.jsxs)("button",{type:"button",className:"setup-secondary setup-check",onClick:eh,disabled:!t||K,children:[K?"Checking…":X.length?"Check again":"Refresh connection",!K&&(0,a.jsx)(g,{})]}),G&&(0,a.jsx)("p",{className:"setup-feedback",role:"status",children:G}),X.map(e=>(0,a.jsxs)("div",{className:"setup-project",children:[(0,a.jsx)(j,{}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:e.name}),(0,a.jsxs)("span",{children:[e.tools," resource",1===e.tools?"":"s"," \xb7 ",e.workflows," workflow candidate",1===e.workflows?"":"s"]})]})]},e.name)),(0,a.jsxs)("div",{className:"setup-finish",children:[(0,a.jsxs)("button",{type:"button",className:"setup-primary",onClick:eu,disabled:!t||K||M||W,children:[W?"Saving…":X.length?"Open my workspace":"Connect later"," ",(0,a.jsx)(g,{})]}),!X.length&&(0,a.jsx)("p",{children:"Connect a project later from your workspace."}),en&&(0,a.jsx)("a",{href:"/dashboard/#home",children:"Open workspace without saving"})]})]})]})]},e)})}),(0,a.jsx)("p",{className:"setup-notice",role:"status","aria-live":"polite",children:A})]}),(0,a.jsxs)("aside",{className:"setup-preview".concat(S.compact?" compact":""),"aria-label":"Live workspace preview",children:[(0,a.jsxs)("div",{className:"setup-preview-heading",children:[(0,a.jsx)("span",{children:"Workspace preview"}),(0,a.jsx)("span",{className:"setup-preview-scene",children:ei[0].toUpperCase()+ei.slice(1)})]}),(0,a.jsxs)("div",{className:"setup-preview-window dashboard-preview",children:[(0,a.jsxs)("div",{className:"setup-preview-nav",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"18",height:"18",alt:""}),(0,a.jsx)("strong",{children:"AgentTwin"}),(0,a.jsx)("span",{className:"setup-preview-avatar",children:E?E[0].toUpperCase():"A"})]}),(0,a.jsx)("div",{className:"preview-navigation","aria-label":"Dashboard navigation preview",children:["Home","Environment","Workflows","Runs","Settings"].map(e=>(0,a.jsx)("span",{className:"Home"===e?"selected":void 0,children:e},e))}),(0,a.jsxs)("div",{className:"setup-preview-hero",children:[(0,a.jsx)("h3",{children:"What should your agent test?"}),(0,a.jsxs)("div",{className:"setup-preview-composer",children:[(0,a.jsx)("span",{children:"Ask about a workflow or test result"}),(0,a.jsx)("span",{"aria-hidden":"true",children:"↑"}),(0,a.jsx)("span",{className:"preview-microphone","aria-hidden":"true",children:(0,a.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[(0,a.jsx)("rect",{x:"9",y:"3",width:"6",height:"12",rx:"3"}),(0,a.jsx)("path",{d:"M5 10v2a7 7 0 0 0 14 0v-2M12 19v3"})]})})]})]}),(0,a.jsxs)("div",{className:"preview-dashboard-body",children:[(0,a.jsxs)("div",{className:"preview-connect-banner",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:(null==(e=X[0])?void 0:e.name)||"Connect your project"}),(0,a.jsx)("p",{children:X[0]?"".concat(X[0].tools," resources \xb7 ").concat(X[0].workflows," workflow candidates"):"Start in your repository with npx agenttwin."})]}),(0,a.jsxs)("span",{className:"preview-action",children:[X.length?"View project":"Connect project"," ",(0,a.jsx)(g,{})]})]}),(0,a.jsxs)("div",{className:"preview-workspace-heading",children:[(0,a.jsx)("span",{children:O||"Your workspace"}),(0,a.jsx)("span",{children:"⊞ Customize"})]}),(0,a.jsxs)("div",{className:"preview-widget-grid",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Project discovery"}),(0,a.jsx)("p",{children:X[0]?"".concat(X[0].name,": ").concat(X[0].tools," detected resources."):"Connect and sync your project to see its resources and workflow candidates."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Test results"}),(0,a.jsx)("p",{children:"Run receipts, assertions and recorded state changes appear here after a test."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Git activity"}),(0,a.jsx)("p",{children:"Repository commits and workflow changes."}),(0,a.jsx)("code",{children:"npx agenttwin"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Observed activities"}),(0,a.jsx)("p",{children:"Reads, writes, retries and injected failures recorded during a run."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Working now"}),(0,a.jsx)("p",{children:"Follow the progress of running workflow tests."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Needs attention"}),(0,a.jsx)("p",{children:"Inspect failed checks and the evidence behind them."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Last execution"}),(0,a.jsx)("p",{children:"The tested revision, runtime and outcome of your latest run."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Test readiness"}),(0,a.jsx)("p",{children:"Review dependencies, inputs and required outcomes."})]})]})]})]}),(0,a.jsx)("p",{className:"setup-preview-caption",children:2===f?X.length?"Project found. You can start reviewing workflows.":ee?"Your project appears here after its first sync.":"Connect your own project when you’re ready.":"Your application, its test world and the evidence from each run."})]})]}),(0,a.jsxs)("footer",{className:"onboarding-footer",children:[(0,a.jsxs)("span",{children:[f+1," of 3"]}),(0,a.jsx)("span",{children:"Profile and workspace save to your account."})]})]})]})}},9022:()=>{}},e=>{e.O(0,[3935,4295,9681,6787,8441,1255,7358],()=>e(e.s=1390)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9566],{2039:(e,t,s)=>{Promise.resolve().then(s.bind(s,8109))},6184:()=>{},8109:(e,t,s)=>{"use strict";s.d(t,{default:()=>x});var a=s(5155),n=s(2115),r=s(6787);function o(e){var t,s,a,n,r;return{company:null!=(t=null==e?void 0:e.company)?t:"",website:null!=(s=null==e?void 0:e.website)?s:"",role:null!=(a=null==e?void 0:e.role)?a:"",teamSize:null!=(n=null==e?void 0:e.teamSize)?n:"",useCase:null!=(r=null==e?void 0:e.useCase)?r:""}}function i(e){let t,s=e.trim();if(!s)return"";let a=s.startsWith("//")?"https:"+s:/^[a-z][a-z\d+.-]*:/i.test(s)?s:"https://"+s;try{t=new URL(a)}catch(e){throw Error("Enter a valid company website, such as example.com.")}if(!["https:","http:"].includes(t.protocol)||t.username||t.password||t.href.length>254)throw Error("Enter a company website using http:// or https://, without login details.");return t.href}s(1261),s(6184),s(9022);let c={company:"",website:"",role:"",teamSize:"",useCase:""},l="agenttwin:pending-terminal:v1",d=e=>"agenttwin:onboarding-draft:v1:"+JSON.stringify([r.n,e]),u="agenttwin:workspace-preferences:v1",p={morning:"bay-morning.webp",afternoon:"golden-gate-afternoon.webp",evening:"moonlit-coast.webp"},h=["Your profile","Your workspace","Connect your application"],m={artwork:"afternoon",compact:!1,autoRefresh:!0,reduceMotion:!1};function g(){return(0,a.jsx)("span",{"aria-hidden":"true",children:"→"})}function j(){return(0,a.jsx)("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,a.jsx)("path",{d:"m4 8 2.5 2.5L12 5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function x(){var e;let[t,s]=(0,n.useState)(null),[x,v]=(0,n.useState)(""),[w,y]=(0,n.useState)(0),[f,b]=(0,n.useState)(0),[k,N]=(0,n.useState)(0),[S,C]=(0,n.useState)(m),[A,I]=(0,n.useState)(""),[E,T]=(0,n.useState)(""),[O,L]=(0,n.useState)(""),[R,P]=(0,n.useState)(c),[W,z]=(0,n.useState)(!1),F=(e,t)=>P(s=>({...s,[e]:t})),[J,Y]=(0,n.useState)(""),[M,D]=(0,n.useState)(!1),[B,U]=(0,n.useState)(!1),[_,q]=(0,n.useState)(!1),[H,$]=(0,n.useState)(""),[K,V]=(0,n.useState)(!1),[G,Q]=(0,n.useState)(""),[X,Z]=(0,n.useState)([]),[ee,et]=(0,n.useState)(!1),[es,ea]=(0,n.useState)(""),[en,er]=(0,n.useState)(!1),eo=(0,n.useRef)(null),ei="auto"===S.artwork?"afternoon":S.artwork;function ec(e){b(e),N(t=>Math.max(t,e)),I(""),requestAnimationFrame(()=>{var e;return null==(e=eo.current)?void 0:e.focus({preventScroll:!0})})}function el(){try{let e={};try{let t=JSON.parse(localStorage.getItem(u)||"{}");t&&"object"==typeof t&&!Array.isArray(t)&&(e=t)}catch(e){}return localStorage.setItem(u,JSON.stringify({...e,...S,name:O.slice(0,40),userName:E.slice(0,60)})),er(!1),!0}catch(e){return er(!0),I("Browser storage is unavailable. Your preferences could not be saved."),!1}}async function ed(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!t||W)return!1;z(!0),I("");try{let t=i(R.website);F("website",t);let a=await fetch(r.n+"/v1/auth/profile",{method:"POST",credentials:"include",headers:{"content-type":"application/json"},body:JSON.stringify({name:E,workspace:O,...o(R),website:t,complete:e}),signal:AbortSignal.timeout(15e3)}),n=await a.json();if(!a.ok)throw Error(404===a.status?"Account setup is not available on this API yet. Please try again after the API is updated.":n.error||"Could not save your details. Try again.");return s(n.user),!0}catch(e){return I(e instanceof Error?e.message:"Could not save your details. Try again."),!1}finally{z(!1)}}async function eu(){!t||M||K||W||await ed(!0)&&(el(),location.assign(X.length?"/dashboard/#environment":"/dashboard/#home"))}async function ep(e){if(e.preventDefault(),!M&&!B&&t){D(!0),$("");try{let e=await fetch(r.n+"/v1/auth/device/approve",{method:"POST",credentials:"include",headers:{"content-type":"application/json"},body:JSON.stringify({userCode:J.trim().toUpperCase()}),signal:AbortSignal.timeout(15e3)}),t=await e.json();if(!e.ok)throw Error(t.error||"Could not connect your terminal. Try again.");try{sessionStorage.removeItem(l)}catch(e){}U(!0),Y(""),$("Terminal connected. Init is syncing your project; this page will update automatically.")}catch(e){$(e instanceof Error?e.message:"Could not connect your terminal.")}finally{D(!1)}}}async function eh(){if(!K&&t){V(!0),Q("");try{let e=await fetch(r.n+"/v1/projects",{credentials:"include",signal:AbortSignal.timeout(15e3)});if(!e.ok)throw Error("Could not check your projects. Try again.");let t=await e.json();if(!Array.isArray(t.projects))throw Error("Could not load your projects. Try again.");Z(t.projects),et(!0),Q(t.projects.length?"Your project is in your workspace.":"Run npx agenttwin and sign in when it asks. The project map appears here automatically.")}catch(e){Q(e instanceof Error?e.message:"Could not check your projects.")}finally{V(!1)}}}async function em(e){try{await navigator.clipboard.writeText(e),ea(e),I("Command copied. Run it in your project’s terminal.")}catch(e){I("Select the command and copy it into your terminal.")}}return(0,n.useEffect)(()=>{let e=new URLSearchParams(location.hash.slice(1)).get("user_code"),t=null;try{e&&/^[A-F0-9]{10}$/.test(e)?(t={code:e,expires:Date.now()+6e5},sessionStorage.setItem(l,JSON.stringify(t))):t=JSON.parse(sessionStorage.getItem(l)||"null")}catch(s){e&&(t={code:e,expires:Date.now()+6e5})}if(t&&/^[A-F0-9]{10}$/.test(t.code||"")&&Number(t.expires)>Date.now())Y(t.code),q(!0),b(2),N(2);else try{sessionStorage.removeItem(l)}catch(e){}e&&history.replaceState(null,"",location.pathname+location.search)},[]),(0,n.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem(u)||"null");e&&C({artwork:"afternoon",compact:!0===e.compact,autoRefresh:!1!==e.autoRefresh,reduceMotion:!0===e.reduceMotion})}catch(e){}},[]),(0,n.useEffect)(()=>{let e=new AbortController;return v(""),fetch(r.n+"/v1/auth/me",{credentials:"include",signal:AbortSignal.any([e.signal,AbortSignal.timeout(15e3)])}).then(async e=>{var t;if(401===e.status)return void location.replace("/login/?next=onboarding");if(!e.ok)throw Error();let a=(await e.json()).user;if(s(a),T(a.name),L(a.workspace),P(o(a.workspaceProfile)),null==(t=a.workspaceProfile)?void 0:t.completedAt){b(2),N(2);try{localStorage.removeItem(d(a.accountId))}catch(e){}}else if(a.accountId)try{let e=JSON.parse(localStorage.getItem(d(a.accountId))||"null");if((null==e?void 0:e.accountId)===a.accountId&&e.expires>Date.now()&&"string"==typeof e.name&&e.name.length<=100&&"string"==typeof e.workspace&&e.workspace.length<=100&&e.context&&["company","website","role","teamSize","useCase"].every(t=>"string"==typeof e.context[t])&&Number.isInteger(e.step)&&e.step>=0&&e.step<=2&&Number.isInteger(e.furthest)&&e.furthest>=e.step&&e.furthest<=2){T(e.name),L(e.workspace),P(o(e.context));let t=!1;try{let e=JSON.parse(sessionStorage.getItem(l)||"null");t=(null==e?void 0:e.expires)>Date.now()&&/^[A-F0-9]{10}$/.test((null==e?void 0:e.code)||"")}catch(e){}t||(b(e.step),N(e.furthest))}}catch(e){er(!0)}}).catch(()=>{e.signal.aborted||v("Your account could not be loaded. Try again to continue setup.")}),()=>e.abort()},[w]),(0,n.useEffect)(()=>{var e;if((null==t?void 0:t.accountId)&&(null==(e=t.workspaceProfile)||!e.completedAt))try{localStorage.setItem(d(t.accountId),JSON.stringify({accountId:t.accountId,name:E,workspace:O,context:o(R),step:f,furthest:k,expires:Date.now()+6048e5}))}catch(e){er(!0)}},[t,E,O,R,f,k]),(0,n.useEffect)(()=>{if(!t)return;let e=new AbortController,s=!1,a=async()=>{if("hidden"!==document.visibilityState&&!s){s=!0;try{2===f&&"http://localhost:8080"===r.n&&await fetch(r.n+"/v1/dev/workspace",{method:"POST",credentials:"include",headers:{"content-type":"application/json"},body:"{}",signal:AbortSignal.any([e.signal,AbortSignal.timeout(2e3)])}).catch(()=>{});let t=await fetch(r.n+"/v1/projects",{credentials:"include",signal:AbortSignal.any([e.signal,AbortSignal.timeout(1e4)])});if(!t.ok)return void Q("Could not check your project connection. Try again.");let s=await t.json();!e.signal.aborted&&Array.isArray(s.projects)&&(Z(s.projects),et(!0),s.projects.length&&Q("Your project is in your workspace."))}catch(e){}finally{s=!1}}};a();let n=2===f?setInterval(()=>{a()},3e3):void 0;return document.addEventListener("visibilitychange",a),()=>{e.abort(),clearInterval(n),document.removeEventListener("visibilitychange",a)}},[f,null==t?void 0:t.email]),(0,a.jsxs)("main",{className:"onboarding-page onboarding-san-francisco".concat(S.reduceMotion?" onboarding-still":""),style:{"--setup-scene":"url('assets/dashboard/".concat(p[ei],"')")},children:[(0,a.jsx)("div",{className:"onboarding-backdrop","aria-hidden":"true"}),(0,a.jsxs)("section",{className:"onboarding-shell","aria-labelledby":"onboarding-title",children:[(0,a.jsxs)("header",{className:"onboarding-header",children:[(0,a.jsxs)("a",{className:"auth-brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"26",height:"26",alt:""}),"AgentTwin"]}),(0,a.jsxs)("a",{href:"/docs/workflow/",children:["Need a hand? ",(0,a.jsx)(g,{})]})]}),(0,a.jsxs)("div",{className:"onboarding-content".concat(0===f?" onboarding-welcome":""),children:[(0,a.jsxs)("div",{className:"onboarding-controls",children:[(0,a.jsxs)("div",{className:"onboarding-greeting",children:[(0,a.jsx)("p",{children:O||"Your workspace"}),(0,a.jsx)("h1",{id:"onboarding-title",children:t?"Welcome, ".concat(t.name.trim().split(/\s+/)[0],"."):"Set up your workspace."})]}),!t&&!x&&(0,a.jsx)("p",{className:"setup-help",role:"status",children:"Loading your account…"}),x&&(0,a.jsxs)("div",{className:"onboarding-account-error",role:"alert",children:[(0,a.jsx)("p",{children:x}),(0,a.jsx)("button",{type:"button",onClick:()=>y(e=>e+1),children:"Try again"})]}),(0,a.jsx)("ol",{className:"setup-steps","aria-label":"Workspace setup",children:h.map((e,s)=>{var n,r;return(0,a.jsxs)("li",{className:"setup-step".concat(f===s?" active":"").concat(s<k?" visited":""),children:[(0,a.jsx)("h2",{children:(0,a.jsxs)("button",{type:"button",ref:f===s?eo:void 0,className:"setup-step-heading",onClick:()=>ec(s),disabled:s>k||M||K||W||!t,"aria-expanded":f===s,"aria-controls":"setup-panel-".concat(s),"aria-current":f===s?"step":void 0,children:[(0,a.jsx)("span",{className:"setup-step-number",children:s<k&&s!==f?(0,a.jsx)(j,{}):s+1}),e,s<k&&s!==f&&(0,a.jsx)("span",{className:"setup-edit",children:"Edit"})]})}),(0,a.jsxs)("div",{id:"setup-panel-".concat(s),className:"setup-step-panel",hidden:f!==s,children:[0===s&&(0,a.jsxs)("form",{className:"setup-profile-form",onSubmit:async e=>{e.preventDefault(),await ed()&&ec(1)},children:[(0,a.jsx)("p",{children:"Tell your team who you are."}),(0,a.jsxs)("label",{htmlFor:"setup-name",children:["Full name",(0,a.jsx)("input",{id:"setup-name",autoComplete:"name",value:E,onChange:e=>T(e.target.value),maxLength:100,required:!0,disabled:!t||W})]}),(0,a.jsxs)("label",{htmlFor:"setup-email",children:["Account email",(0,a.jsx)("input",{id:"setup-email",type:"email",value:(null==t?void 0:t.email)||"",readOnly:!0,autoComplete:"email"})]}),(0,a.jsxs)("label",{htmlFor:"setup-role",children:["Job title ",(0,a.jsx)("span",{children:"Optional"}),(0,a.jsx)("input",{id:"setup-role",autoComplete:"organization-title",value:R.role,onChange:e=>F("role",e.target.value),maxLength:100,disabled:!t||W,placeholder:"e.g. Platform engineer"})]}),(0,a.jsxs)("button",{type:"submit",className:"setup-primary",disabled:!t||W,children:[W?"Saving…":"Continue"," ",(0,a.jsx)(g,{})]})]}),1===s&&(0,a.jsxs)("form",{className:"setup-profile-form",onSubmit:async e=>{e.preventDefault(),await ed()&&(el(),ec(2))},children:[(0,a.jsx)("p",{children:"Name the workspace for your application and test results."}),(0,a.jsx)("p",{className:"setup-help",children:en?"Browser storage is unavailable. Save workspace to keep your details.":"Your draft stays on this device when you refresh. Save workspace to save it to your account."}),(0,a.jsxs)("label",{htmlFor:"setup-workspace",children:["Workspace name",(0,a.jsx)("input",{id:"setup-workspace",value:O,onChange:e=>L(e.target.value),required:!0,maxLength:100,disabled:!t||W,placeholder:"e.g. Acme engineering"})]}),(0,a.jsxs)("label",{htmlFor:"setup-website",children:["Company website ",(0,a.jsx)("span",{children:"Optional"}),(0,a.jsx)("input",{id:"setup-website",type:"text",inputMode:"url",autoComplete:"url",value:R.website,onChange:e=>F("website",e.target.value),onBlur:e=>{try{F("website",i(e.target.value))}catch(e){}},maxLength:254,placeholder:"https://example.com",disabled:!t||W})]}),(0,a.jsxs)("label",{htmlFor:"setup-size",children:["Team size ",(0,a.jsx)("span",{children:"Optional"}),(0,a.jsxs)("select",{id:"setup-size",value:R.teamSize,onChange:e=>F("teamSize",e.target.value),disabled:!t||W,children:[(0,a.jsx)("option",{value:"",children:"Select team size"}),["1","2–10","11–50","51–200","201–1000","1000+"].map(e=>(0,a.jsx)("option",{value:e,children:"1"===e?"Just me":e+" people"},e))]})]}),(0,a.jsxs)("details",{className:"setup-appearance",children:[(0,a.jsx)("summary",{children:"Appearance and accessibility"}),(0,a.jsxs)("fieldset",{className:"setup-choice",children:[(0,a.jsx)("legend",{children:"Layout"}),(0,a.jsx)("div",{className:"setup-segmented",children:[{label:"Comfortable",value:!1},{label:"Compact",value:!0}].map(e=>(0,a.jsxs)("label",{children:[(0,a.jsx)("input",{type:"radio",name:"setup-density",checked:S.compact===e.value,onChange:()=>C(t=>({...t,compact:e.value}))}),(0,a.jsx)("span",{children:e.label})]},e.label))})]}),(0,a.jsxs)("fieldset",{className:"setup-choice",children:[(0,a.jsx)("legend",{children:"Background"}),(0,a.jsx)("div",{className:"setup-scenes",children:["auto","morning","afternoon","evening"].map(e=>(0,a.jsxs)("label",{children:[(0,a.jsx)("input",{type:"radio",name:"setup-artwork",checked:S.artwork===e,onChange:()=>C(t=>({...t,artwork:e}))}),(0,a.jsx)("span",{className:"setup-scene-swatch".concat("auto"===e?" automatic":""),style:"auto"!==e?{backgroundImage:"url('assets/dashboard/".concat(p[e],"')")}:void 0,children:"auto"===e&&(0,a.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),(0,a.jsx)("path",{d:"M12 8v4l3 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),(0,a.jsx)("span",{children:"auto"===e?"Automatic":e[0].toUpperCase()+e.slice(1)})]},e))}),(0,a.jsx)("p",{className:"setup-help",children:"auto"===S.artwork?"Changes with your local time.":"Keep this scene throughout the day."})]}),(0,a.jsxs)("div",{className:"setup-toggle-list",children:[(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("strong",{children:"Live updates"}),(0,a.jsx)("small",{children:"Keep projects and test results up to date."})]}),(0,a.jsx)("input",{type:"checkbox",role:"switch",checked:S.autoRefresh,onChange:e=>C(t=>({...t,autoRefresh:e.target.checked}))})]}),(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("strong",{children:"Reduce motion"}),(0,a.jsx)("small",{children:"Use fewer animations and transitions."})]}),(0,a.jsx)("input",{type:"checkbox",role:"switch",checked:S.reduceMotion,onChange:e=>C(t=>({...t,reduceMotion:e.target.checked}))})]})]})]}),(0,a.jsxs)("button",{type:"submit",className:"setup-primary",disabled:!t||W,children:[W?"Saving…":"Save workspace"," ",(0,a.jsx)(g,{})]})]}),2===s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{className:"setup-connect-intro",children:"Run one command in your repository."}),(0,a.jsxs)("div",{className:"setup-terminal",children:[(0,a.jsxs)("div",{className:"setup-command-label",children:[(0,a.jsx)("span",{children:"01"}),(0,a.jsx)("strong",{children:"Discover and connect"}),B&&(0,a.jsxs)("span",{className:"setup-connected",children:[(0,a.jsx)(j,{}),"Connected"]})]}),(r="npx agenttwin",(0,a.jsxs)("div",{className:"setup-command",children:[(0,a.jsx)("code",{children:r}),(0,a.jsx)("button",{type:"button",onClick:()=>em(r),"aria-label":"Copy ".concat(r),children:es===r?(0,a.jsx)(j,{}):(0,a.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[(0,a.jsx)("rect",{x:"7",y:"7",width:"9",height:"10",rx:"2",stroke:"currentColor",strokeWidth:"1.4"}),(0,a.jsx)("path",{d:"M12 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",stroke:"currentColor",strokeWidth:"1.4"})]})})]})),(0,a.jsx)("p",{className:"setup-help",children:"Init discovers your application and syncs its services, code paths and available test results here. Approve this terminal once if asked. You can continue in this browser as soon as syncing finishes."}),!B&&(0,a.jsxs)("details",{className:"setup-pairing",open:_||!!(null==t||null==(n=t.workspaceProfile)?void 0:n.completedAt),children:[(0,a.jsx)("summary",{children:_?"Confirm your terminal connection":"I have a terminal code"}),(0,a.jsxs)("form",{onSubmit:ep,children:[(0,a.jsxs)("label",{htmlFor:"setup-terminal-code",children:["Connection code",(0,a.jsx)("input",{id:"setup-terminal-code",name:"userCode",value:J,onChange:e=>Y(e.target.value.toUpperCase()),autoComplete:"off",autoCapitalize:"characters",spellCheck:!1,placeholder:"10-character code",minLength:10,maxLength:10,pattern:"[A-Fa-f0-9]{10}",required:!0,disabled:!t||M})]}),(0,a.jsx)("button",{type:"submit",className:"setup-secondary",disabled:!t||M,children:M?"Connecting…":"Connect terminal"})]}),(0,a.jsx)("p",{className:"setup-help",children:"Compare this code with your terminal before approving. Connecting lets it sync project discovery and test evidence to your workspace. Application source and credentials stay local."})]}),H&&(0,a.jsx)("p",{className:"setup-feedback",role:"status",children:H})]}),(0,a.jsx)("p",{className:"setup-help",role:"status",children:X.length?"Project connected.":B?"Terminal connected. Waiting for npx agenttwin to finish syncing your project…":"Waiting for init. This page updates automatically."}),(0,a.jsxs)("button",{type:"button",className:"setup-secondary setup-check",onClick:eh,disabled:!t||K,children:[K?"Checking…":X.length?"Check again":"Refresh connection",!K&&(0,a.jsx)(g,{})]}),G&&(0,a.jsx)("p",{className:"setup-feedback",role:"status",children:G}),X.map(e=>(0,a.jsxs)("div",{className:"setup-project",children:[(0,a.jsx)(j,{}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:e.name}),(0,a.jsxs)("span",{children:[e.tools," resource",1===e.tools?"":"s"," \xb7 ",e.workflows," workflow candidate",1===e.workflows?"":"s"]})]})]},e.name)),(0,a.jsxs)("div",{className:"setup-finish",children:[(0,a.jsxs)("button",{type:"button",className:"setup-primary",onClick:eu,disabled:!t||K||M||W,children:[W?"Saving…":X.length?"Open my workspace":"Connect later"," ",(0,a.jsx)(g,{})]}),!X.length&&(0,a.jsx)("p",{children:"Connect a project later from your workspace."}),en&&(0,a.jsx)("a",{href:"/dashboard/#home",children:"Open workspace without saving"})]})]})]})]},e)})}),(0,a.jsx)("p",{className:"setup-notice",role:"status","aria-live":"polite",children:A})]}),(0,a.jsxs)("aside",{className:"setup-preview".concat(S.compact?" compact":""),"aria-label":"Live workspace preview",children:[(0,a.jsxs)("div",{className:"setup-preview-heading",children:[(0,a.jsx)("span",{children:"Workspace preview"}),(0,a.jsx)("span",{className:"setup-preview-scene",children:ei[0].toUpperCase()+ei.slice(1)})]}),(0,a.jsxs)("div",{className:"setup-preview-window dashboard-preview",children:[(0,a.jsxs)("div",{className:"setup-preview-nav",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"18",height:"18",alt:""}),(0,a.jsx)("strong",{children:"AgentTwin"}),(0,a.jsx)("span",{className:"setup-preview-avatar",children:E?E[0].toUpperCase():"A"})]}),(0,a.jsx)("div",{className:"preview-navigation","aria-label":"Dashboard navigation preview",children:["Home","Environment","Workflows","Runs","Settings"].map(e=>(0,a.jsx)("span",{className:"Home"===e?"selected":void 0,children:e},e))}),(0,a.jsxs)("div",{className:"setup-preview-hero",children:[(0,a.jsx)("h3",{children:"What should your agent test?"}),(0,a.jsxs)("div",{className:"setup-preview-composer",children:[(0,a.jsx)("span",{children:"Ask about a workflow or test result"}),(0,a.jsx)("span",{"aria-hidden":"true",children:"↑"}),(0,a.jsx)("span",{className:"preview-microphone","aria-hidden":"true",children:(0,a.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",children:[(0,a.jsx)("rect",{x:"9",y:"3",width:"6",height:"12",rx:"3"}),(0,a.jsx)("path",{d:"M5 10v2a7 7 0 0 0 14 0v-2M12 19v3"})]})})]})]}),(0,a.jsxs)("div",{className:"preview-dashboard-body",children:[(0,a.jsxs)("div",{className:"preview-connect-banner",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:(null==(e=X[0])?void 0:e.name)||"Connect your project"}),(0,a.jsx)("p",{children:X[0]?"".concat(X[0].tools," resources \xb7 ").concat(X[0].workflows," workflow candidates"):"Start in your repository with npx agenttwin."})]}),(0,a.jsxs)("span",{className:"preview-action",children:[X.length?"View project":"Connect project"," ",(0,a.jsx)(g,{})]})]}),(0,a.jsxs)("div",{className:"preview-workspace-heading",children:[(0,a.jsx)("span",{children:O||"Your workspace"}),(0,a.jsx)("span",{children:"⊞ Customize"})]}),(0,a.jsxs)("div",{className:"preview-widget-grid",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Project discovery"}),(0,a.jsx)("p",{children:X[0]?"".concat(X[0].name,": ").concat(X[0].tools," detected resources."):"Connect and sync your project to see its resources and workflow candidates."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Test results"}),(0,a.jsx)("p",{children:"Run receipts, assertions and recorded state changes appear here after a test."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Git activity"}),(0,a.jsx)("p",{children:"Repository commits and workflow changes."}),(0,a.jsx)("code",{children:"npx agenttwin"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Observed activities"}),(0,a.jsx)("p",{children:"Reads, writes, retries and injected failures recorded during a run."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Working now"}),(0,a.jsx)("p",{children:"Follow the progress of running workflow tests."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Needs attention"}),(0,a.jsx)("p",{children:"Inspect failed checks and the evidence behind them."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Last execution"}),(0,a.jsx)("p",{children:"The tested revision, runtime and outcome of your latest run."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("strong",{children:"Test readiness"}),(0,a.jsx)("p",{children:"Review dependencies, inputs and required outcomes."})]})]})]})]}),(0,a.jsx)("p",{className:"setup-preview-caption",children:2===f?X.length?"Project found. You can start reviewing workflows.":ee?"Your project appears here after its first sync.":"Connect your own project when you’re ready.":"Your application, its test world and the evidence from each run."})]})]}),(0,a.jsxs)("footer",{className:"onboarding-footer",children:[(0,a.jsxs)("span",{children:[f+1," of 3"]}),(0,a.jsx)("span",{children:"Profile and workspace save to your account."})]})]})]})}},9022:()=>{}},e=>{e.O(0,[3935,4295,9681,6787,8441,1255,7358],()=>e(e.s=2039)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{1019:()=>{},1210:()=>{},2385:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var a=r(2115);function n(){return(0,a.useEffect)(()=>{if(matchMedia("(prefers-reduced-motion: reduce)").matches)return;let e=document.querySelectorAll(".reveal");e.forEach(e=>e.classList.add("is-pending"));let t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(e.target.classList.remove("is-pending"),t.unobserve(e.target))})},{threshold:.08});return e.forEach(e=>t.observe(e)),()=>t.disconnect()},[]),null}},2795:(e,t,r)=>{"use strict";r.d(t,{default:()=>m});var a=r(5155),n=r(2115);let i="assets/video/agenttwin-hero",o="(min-width: 768px)",s=e=>"".concat(Math.floor(e/60),":").concat(String(Math.floor(e%60)).padStart(2,"0"));function l(e,t){return e.hasAttribute("src")||(e.src="".concat(i,"-").concat(t?"1080":"540",".mp4")),e.play()}function d(){let e=(0,n.useRef)(null),t=(0,n.useRef)(null),r=(0,n.useRef)(!1),d=(0,n.useRef)(!1),[c,h]=(0,n.useState)(!1),[u,m]=(0,n.useState)(!0),[p,v]=(0,n.useState)(!1),[f,g]=(0,n.useState)(0),[x,b]=(0,n.useState)(0),y=(0,n.useRef)(!1),[w,j]=(0,n.useState)(!1),S=(0,n.useRef)(void 0),E=()=>{j(!0),clearTimeout(S.current),S.current=setTimeout(()=>{var t;(null==(t=e.current)?void 0:t.paused)||j(!1)},3500)};(0,n.useEffect)(()=>()=>clearTimeout(S.current),[]),(0,n.useEffect)(()=>{if(c&&r.current){var e;r.current=!1,null==(e=t.current)||e.focus()}},[c]),(0,n.useEffect)(()=>{let t=e.current;if(!t)return;let r=matchMedia(o),a=matchMedia("(prefers-reduced-motion: reduce)"),n=!1,i=()=>{let e=d.current||r.matches&&!a.matches;n&&!document.hidden&&!y.current&&e?l(t,r.matches).catch(()=>{}):t.paused||t.pause()},s=new IntersectionObserver(e=>{let[t]=e;n=t.isIntersecting,i()},{threshold:.35});s.observe(t),document.addEventListener("visibilitychange",i),r.addEventListener("change",i),a.addEventListener("change",i);let c=()=>v(!0),h=()=>v(!1),u=()=>g(t.currentTime),m=()=>b(t.duration||0);return t.addEventListener("play",c),t.addEventListener("pause",h),t.addEventListener("timeupdate",u),t.addEventListener("loadedmetadata",m),t.readyState>=1&&m(),()=>{s.disconnect(),document.removeEventListener("visibilitychange",i),r.removeEventListener("change",i),a.removeEventListener("change",i),t.removeEventListener("play",c),t.removeEventListener("pause",h),t.removeEventListener("timeupdate",u),t.removeEventListener("loadedmetadata",m)}},[]);let k=t=>{let r=e.current;r&&(r.currentTime=t,g(t))};return(0,a.jsxs)("div",{className:"hero-capture hero-video","data-started":c||void 0,children:[(0,a.jsxs)("div",{className:"hero-video-frame",children:[(0,a.jsx)("img",{className:"hero-video-poster",src:"".concat(i,"-poster.webp"),srcSet:"".concat(i,"-poster-720.webp 720w, ").concat(i,"-poster.webp 1920w"),sizes:"(max-width: 767px) calc(100vw - 56px), (max-width: 1100px) 90vw, 1160px",width:1920,height:1080,fetchPriority:"high",alt:"","aria-hidden":"true"}),(0,a.jsx)("video",{ref:e,muted:!0,loop:!0,playsInline:!0,preload:"none",width:1920,height:1080,"aria-label":"AgentTwin product film: an agent's services become digital twins, a failure is introduced, fixed, and saved as a test",onClick:E,onPlaying:()=>h(!0)}),!c&&(0,a.jsxs)("button",{type:"button",className:"hero-video-start",onClick:t=>(t=>{let a=e.current;a&&(r.current=t,d.current=!0,y.current=!1,E(),l(a,matchMedia(o).matches).catch(()=>{r.current=!1}))})(0===t.detail),children:[(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M7 4.5v15a1 1 0 0 0 1.5.86l12-7.5a1 1 0 0 0 0-1.72l-12-7.5A1 1 0 0 0 7 4.5Z"})}),"Play product film"]})]}),(0,a.jsxs)("div",{className:"hero-video-controls",hidden:!c,"data-open":w||void 0,onPointerMove:w?E:void 0,onFocus:E,children:[w&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{ref:t,type:"button",onClick:()=>{let t=e.current;t&&(t.paused?(y.current=!1,t.play().catch(()=>{})):(y.current=!0,t.pause()))},"aria-label":p?"Pause video":"Play video",children:p?(0,a.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[(0,a.jsx)("rect",{x:"6",y:"5",width:"4",height:"14",rx:"1"}),(0,a.jsx)("rect",{x:"14",y:"5",width:"4",height:"14",rx:"1"})]}):(0,a.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M7 4.5v15a1 1 0 0 0 1.5.86l12-7.5a1 1 0 0 0 0-1.72l-12-7.5A1 1 0 0 0 7 4.5Z"})})}),(0,a.jsx)("button",{type:"button",onClick:()=>{var t;k(0),y.current=!1,null==(t=e.current)||t.play().catch(()=>{})},"aria-label":"Restart video",children:(0,a.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,a.jsx)("path",{d:"M3 12a9 9 0 1 0 3-6.7L3 8"}),(0,a.jsx)("path",{d:"M3 3v5h5"})]})}),(0,a.jsxs)("label",{className:"hero-video-seek",children:[(0,a.jsx)("span",{className:"sr-only",children:"Seek video"}),(0,a.jsx)("input",{type:"range",min:0,max:x||0,step:.1,value:Math.min(f,x||0),onChange:e=>k(Number(e.currentTarget.value)),"aria-valuetext":"".concat(s(f)," of ").concat(s(x)),style:{"--seek":x?"".concat(f/x*100,"%"):"0%"}})]}),(0,a.jsxs)("span",{className:"hero-video-time","aria-hidden":"true",children:[s(f)," / ",s(x)]})]}),(0,a.jsx)("button",{type:"button",className:"hero-video-sound",onClick:()=>{let t=e.current;t&&(t.muted=!t.muted,m(t.muted),!t.muted&&t.paused&&(y.current=!1,t.play().catch(()=>{})))},"aria-label":u?"Turn sound on":"Turn sound off",children:u?(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,a.jsx)("path",{d:"M11 5 6 9H3v6h3l5 4V5Z"}),(0,a.jsx)("path",{d:"m22 9-6 6M16 9l6 6"})]}):(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,a.jsx)("path",{d:"M11 5 6 9H3v6h3l5 4V5Z"}),(0,a.jsx)("path",{d:"M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14"})]})})]})]})}async function c(e){var t;if(null==(t=navigator.clipboard)?void 0:t.writeText)try{await navigator.clipboard.writeText(e);return}catch(e){}let r=document.createElement("textarea");r.value=e,r.readOnly=!0,r.tabIndex=-1,r.style.cssText="position:fixed;top:0;left:0;opacity:0;pointer-events:none",document.body.append(r),r.select();try{if(!document.execCommand("copy"))throw Error("Copy unavailable")}finally{r.remove()}}function h(){let[e,t]=(0,n.useState)("idle"),r=(0,n.useRef)(!1),i=(0,n.useRef)(void 0),o=(0,n.useCallback)(async e=>{let a=e.currentTarget;if(!r.current){r.current=!0,clearTimeout(i.current),t("idle");try{await c(a.querySelector("code").textContent.trim()),t("success"),i.current=setTimeout(()=>t("idle"),3e3)}catch(e){t("error")}finally{r.current=!1}}},[]);return(0,a.jsxs)("div",{className:"command-action",children:[(0,a.jsxs)("button",{className:"button button-outline button-command",type:"button","aria-label":"Copy npx agenttwin",title:"Copy command","data-copy-state":"idle"===e?void 0:e,onClick:o,children:[(0,a.jsxs)("span",{className:"pearl-spark","aria-hidden":"true",children:[(0,a.jsx)("span",{children:"✧"}),(0,a.jsx)("span",{children:"✦"})]}),(0,a.jsx)("code",{children:"npx agenttwin"}),(0,a.jsxs)("svg",{className:"copy-icon",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,a.jsx)("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),(0,a.jsx)("path",{d:"M16 8V4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h4"})]}),(0,a.jsx)("svg",{className:"copy-done",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,a.jsx)("path",{d:"m5 12 4 4L19 6"})})]}),(0,a.jsx)("span",{className:"copy-feedback",role:"status","aria-live":"polite","aria-atomic":"true",children:"success"===e?"Copied!":"error"===e?"Copy unavailable. Select the command to copy it.":""})]})}function u(e){let{text:t,offset:r=0}=e;return t.split(" ").map((e,t)=>(0,a.jsxs)(n.Fragment,{children:[t>0?" ":null,(0,a.jsx)("span",{className:"hero-word".concat("Twins"===e?" text-emphasis":""),style:{"--word-order":r+t},children:e})]},e))}function m(){let e=(0,n.useRef)(null),t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let r=e.current,a=t.current,n=null==r?void 0:r.getContext("2d");if(!r||!a||!n)return;let i=matchMedia("(prefers-reduced-motion: reduce)"),o=(e,t)=>{let r=document.createElement("canvas");return r.width=r.height=e,t(r.getContext("2d"),e),r},s=o(64,(e,t)=>{let r=e.createRadialGradient(t/2,t/2,0,t/2,t/2,t/2);r.addColorStop(0,"rgba(255,255,255,.85)"),r.addColorStop(.16,"rgba(255,255,255,.32)"),r.addColorStop(.45,"rgba(255,255,255,.08)"),r.addColorStop(1,"rgba(255,255,255,0)"),e.fillStyle=r,e.fillRect(0,0,t,t)}),l=o(64,(e,t)=>{let r=t/2;for(let a of[0,Math.PI/2]){e.save(),e.translate(r,r),e.rotate(a);let n=e.createLinearGradient(-r,0,r,0);n.addColorStop(0,"rgba(255,255,255,0)"),n.addColorStop(.5,"rgba(255,255,255,.9)"),n.addColorStop(1,"rgba(255,255,255,0)"),e.fillStyle=n,e.fillRect(-r,-.75,t,1.5),e.restore()}e.globalCompositeOperation="destination-in";let a=e.createRadialGradient(r,r,0,r,r,r);a.addColorStop(0,"rgba(0,0,0,1)"),a.addColorStop(1,"rgba(0,0,0,0)"),e.fillStyle=a,e.fillRect(0,0,t,t)}),d=0,c=0,h=0,u=!0,m=0,p=[],v=Array.from(a.querySelectorAll(".arc-label, .hero-content > h1, .hero-content > p, .hero-actions")),f=[],g=e=>{n.clearRect(0,0,d,c);let t="light"===document.documentElement.dataset.siteTheme;for(let r of(n.globalCompositeOperation=t?"source-over":"lighter",f)){let a=r.bright?30:12;if(p.some(e=>r.x>=e.left-a&&r.x<=e.right+a&&r.y>=e.top-a&&r.y<=e.bottom+a))continue;let o=i.matches?.6:.5+.5*Math.sin(e*r.speed+r.phase),d=o*o*(3-2*o),c=r.opacity*(.55+.45*d);if(t){if(n.fillStyle="#080a0b",n.globalAlpha=r.bright?Math.min(1,.35+1.8*c*d):.38*c,r.bright){let e=3+8*d;n.beginPath(),n.moveTo(r.x,r.y-e),n.lineTo(r.x+.8,r.y-.8),n.lineTo(r.x+e,r.y),n.lineTo(r.x+.8,r.y+.8),n.lineTo(r.x,r.y+e),n.lineTo(r.x-.8,r.y+.8),n.lineTo(r.x-e,r.y),n.lineTo(r.x-.8,r.y-.8),n.closePath(),n.fill()}else n.fillRect(r.x,r.y,1,1);continue}if(r.bright){let e=18+26*d;n.globalAlpha=Math.min(1,1.2*c),n.drawImage(s,r.x-e/2,r.y-e/2,e,e);let t=20+32*d;n.globalAlpha=.85*c,n.drawImage(l,r.x-t/2,r.y-t/2,t,t)}else if(r.size>1.3){let e=10+10*d;n.globalAlpha=c,n.drawImage(s,r.x-e/2,r.y-e/2,e,e)}n.globalAlpha=Math.min(1,1.25*c),n.fillStyle="#fff",n.fillRect(r.x,r.y,r.size,r.size)}n.globalAlpha=1,n.globalCompositeOperation="source-over"},x=()=>{let e=r.getBoundingClientRect();p=v.map(t=>{let r=t.getBoundingClientRect();return{left:r.left-e.left,top:r.top-e.top,right:r.right-e.left,bottom:r.bottom-e.top}}),d=e.width,c=e.height;let t=Math.min(devicePixelRatio||1,2);r.width=Math.round(d*t),r.height=Math.round(c*t),n.setTransform(t,0,0,t,0,0),f=[];for(let e=3;e<c;e+=8)for(let t=3;t<d;t+=8){let r=Math.max(0,Math.min(1,(1-Math.hypot(Math.min(t,d-t)/(.48*d),e/(1.3*c)))/1.25)),a=r*r*(3-2*r);if(a<=0)continue;let n=Math.abs(43758.5453*Math.sin(12.9898*t+78.233*e)%1);f.push({x:t,y:e,opacity:a*(.5+.5*n),size:n>.985?2.4:n>.9?1.6:1.1,bright:n>.985,phase:n*Math.PI*2,speed:8e-4+7*n%1*.0017})}g(0)},b=e=>{e-m>33&&(g(e),m=e),h=requestAnimationFrame(b)},y=a.querySelector("[data-arc]"),w=()=>{if(null==y||y.classList.toggle("is-paused",!u||document.hidden),cancelAnimationFrame(h),i.matches||!u||document.hidden)return void g(0);h=requestAnimationFrame(b)},j=new ResizeObserver(x);j.observe(r),v.forEach(e=>j.observe(e));let S=new MutationObserver(()=>g(performance.now()));S.observe(document.documentElement,{attributes:!0,attributeFilter:["data-site-theme"]});let E=new IntersectionObserver(e=>{u=e[0].isIntersecting,w()});E.observe(a),document.addEventListener("visibilitychange",w);let k=()=>w();return i.addEventListener("change",k),x(),()=>{cancelAnimationFrame(h),j.disconnect(),S.disconnect(),E.disconnect(),document.removeEventListener("visibilitychange",w),i.removeEventListener("change",k)}},[e,t]),(0,a.jsxs)("section",{className:"hero","aria-labelledby":"hero-title",ref:t,children:[(0,a.jsxs)("div",{className:"hero-light","aria-hidden":"true",children:[(0,a.jsx)("div",{className:"hero-wash"}),(0,a.jsx)("div",{className:"hero-bloom"}),(0,a.jsx)("div",{className:"hero-halo"}),(0,a.jsx)("div",{className:"hero-horizon"})]}),(0,a.jsx)("canvas",{className:"hero-particles","aria-hidden":"true",ref:e}),(0,a.jsx)("div",{className:"hero-floor","aria-hidden":"true",children:(0,a.jsx)("div",{})}),(0,a.jsxs)("div",{className:"hero-content",children:[(0,a.jsx)("div",{className:"arc-label","aria-hidden":"true","data-arc":"",children:(0,a.jsx)("img",{className:"arc-track","aria-hidden":"true",src:"assets/img/hero-arc.svg?v=inset-loop",width:700,height:700,alt:""})}),(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:"@media(max-width:600px){.hero h1 .hero-second{display:block}}"}}),(0,a.jsxs)("h1",{id:"hero-title","data-text-reveal":"hero",children:[(0,a.jsx)(u,{text:"Digital Twins for"})," ",(0,a.jsx)("span",{className:"hero-second",children:(0,a.jsx)(u,{text:"testing AI agents.",offset:3})})]}),(0,a.jsxs)("p",{children:["Run your AI agent on a twin of your entire infrastructure.",(0,a.jsx)("br",{className:"mobile-break"})," It finds broken workflows and critical failures, and lets you inject your own."]}),(0,a.jsxs)("div",{className:"actions hero-actions",children:[(0,a.jsxs)("a",{className:"button button-outline",href:"/dashboard/?demo=1",children:["Explore the demo ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]}),(0,a.jsx)("a",{className:"button button-white",href:"https://cal.com/sashanksingh",target:"_blank",rel:"noopener noreferrer",children:"Book a call"}),(0,a.jsx)(h,{})]})]}),(0,a.jsx)(d,{})]})}},3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},3944:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var a=r(2115);function n(){return(0,a.useEffect)(()=>{let e=[...document.querySelectorAll(".workflow-nav a")],t=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&e.forEach(e=>{e.hash==="#".concat(t.target.id)?e.setAttribute("aria-current","step"):e.removeAttribute("aria-current")})})},{rootMargin:"-15% 0px -55% 0px"});return document.querySelectorAll(".workflow-chapter").forEach(e=>t.observe(e)),()=>t.disconnect()},[]),null}},6744:(e,t,r)=>{Promise.resolve().then(r.bind(r,7748)),Promise.resolve().then(r.bind(r,2795)),Promise.resolve().then(r.bind(r,7982)),Promise.resolve().then(r.bind(r,9670)),Promise.resolve().then(r.bind(r,9212)),Promise.resolve().then(r.bind(r,2385)),Promise.resolve().then(r.t.bind(r,3652,23)),Promise.resolve().then(r.bind(r,8765)),Promise.resolve().then(r.bind(r,3944)),Promise.resolve().then(r.t.bind(r,1210,23)),Promise.resolve().then(r.t.bind(r,1019,23))},7748:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var a=r(5155),n=r(2115);function i(e){let{children:t}=e,r=(0,n.useRef)(null),i=e=>"string"==typeof e||"number"==typeof e?String(e):(0,n.isValidElement)(e)?"true"===e.props["aria-hidden"]?"":i(e.props.children):n.Children.toArray(e).map(i).join(""),o=n.Children.toArray(t).flatMap(e=>{if(!(0,n.isValidElement)(e))return[];let t=n.Children.toArray(e.props.children),r=t.find(e=>(0,n.isValidElement)(e)&&"summary"===e.type),a=t.find(e=>(0,n.isValidElement)(e)&&"p"===e.type);return r&&a?[{"@type":"Question",name:i(r),acceptedAnswer:{"@type":"Answer",text:i(a)}}]:[]});return(0,a.jsxs)("div",{className:"faq-items",ref:r,onToggle:e=>{var t;let a=e.target;a.open&&(null==(t=r.current)||t.querySelectorAll("details").forEach(e=>{e!==a&&(e.open=!1)}))},children:[(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:o}).replace(/</g,"\\u003c")}}),t]})}},7982:(e,t,r)=>{"use strict";r.d(t,{default:()=>n});var a=r(2115);function n(){return(0,a.useEffect)(()=>{var e;let t,r=document.querySelector(".home-page");if(!r)return;let a=!1,n=()=>{a||(t=function(e,t,r,a){let n,i,o=Array.from(e.querySelectorAll("[data-text-reveal]")),s=e.ownerDocument,l=new Set,d=new Map,c=e=>{let t=Array.from(e.querySelectorAll("[data-reveal-word]")),r=function(e){let t=[];return e.map(e=>{let r=t.findIndex(t=>2>Math.abs(t-e));return -1===r&&(r=t.length,t.push(e)),r})}(t.map(e=>e.getBoundingClientRect().top));t.forEach((e,t)=>e.style.setProperty("--reveal-line",String(r[t]))),d.set(e,e.getBoundingClientRect().width)},h=()=>{e.dataset.textMotion="static",o.forEach(e=>{e.dataset.textState="static"}),null==n||n.disconnect(),null==i||i.disconnect(),l.clear()};if(t.matches||!r)return h(),()=>{};e.dataset.textMotion="enabled",o.forEach(e=>{"hero"!==e.dataset.textReveal&&(c(e),e.dataset.textState=e.getBoundingClientRect().top>=s.documentElement.clientHeight?"pending":"static")});let u=e=>{("hero"===e.dataset.textReveal||"pending"===e.dataset.textState)&&(e.dataset.textState="visible")},m=()=>{e.dataset.textPaused=String(s.hidden),s.hidden||l.forEach(u)};m(),n=new r(t=>{"enabled"===e.dataset.textMotion&&t.forEach(e=>{let t=e.target;e.isIntersecting?e.intersectionRatio>=.2&&(l.add(t),t.dataset.textInView="true",s.hidden||u(t)):(l.delete(t),t.dataset.textInView="false","hero"===t.dataset.textReveal&&(t.dataset.textState="ready"))})},{threshold:[0,.2],rootMargin:"0px 0px -8% 0px"}),o.forEach(e=>null==n?void 0:n.observe(e)),a&&(i=new a(t=>{"enabled"===e.dataset.textMotion&&t.forEach(e=>{var t;let{target:r}=e,a=r.getBoundingClientRect().width;1>Math.abs((null!=(t=d.get(r))?t:a)-a)||("visible"===r.dataset.textState&&(r.dataset.textState="static"),c(r))})}),o.filter(e=>"hero"!==e.dataset.textReveal).forEach(e=>null==i?void 0:i.observe(e)));let p=()=>{t.matches&&h()};return s.addEventListener("visibilitychange",m),t.addEventListener("change",p),()=>{t.removeEventListener("change",p),s.removeEventListener("visibilitychange",m),null==n||n.disconnect(),null==i||i.disconnect(),l.clear(),delete e.dataset.textMotion,delete e.dataset.textPaused,o.forEach(e=>{delete e.dataset.textState,delete e.dataset.textInView})}}(r,matchMedia("(prefers-reduced-motion: reduce)"),window.IntersectionObserver,window.ResizeObserver))};return(null==(e=document.fonts)?void 0:e.status)==="loading"?document.fonts.ready.then(n):n(),()=>{a=!0,null==t||t()}},[]),null}},8765:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var a=r(5155),n=r(2115),i=r(1719);function o(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,r=e?"light":"dark";document.documentElement.dataset.siteTheme=r,t(e);try{localStorage.setItem("agenttwin-site-theme",r)}catch(e){}},children:[(0,a.jsx)(i.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(i.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,n.useState)(!1),r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=e=>{var a,n;"Escape"===e.key&&(null==(a=i.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(n=r.current)||n.focus())},a=e=>{var r;(null==(r=i.current)?void 0:r.contains(e.target))||t(!1)},n=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),n.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),n.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:i,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:r,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}},9212:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var a=r(5155),n=r(2115);function i(e){let{children:t}=e,r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=r.current;if(!e||e.children.length>1)return;let t=e.firstElementChild;if(!t)return;let a=t.cloneNode(!0);a.setAttribute("aria-hidden","true"),a.querySelectorAll("img").forEach(e=>{e.alt=""}),e.append(a),e.classList.add("is-ready")},[]),(0,a.jsx)("div",{className:"logo-marquee","aria-label":"Potential service coverage",children:(0,a.jsx)("div",{className:"logo-track",ref:r,children:t})})}},9670:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var a=r(5155),n=r(2115);function i(){let[e,t]=(0,n.useState)("javascript"),[r,i]=(0,n.useState)(""),o="python"===e,s="npx agenttwin";async function l(){try{await navigator.clipboard.writeText(s),i("Command copied.")}catch(e){i("Select the command above to copy it.")}}return(0,a.jsxs)("div",{className:"init-command-picker",children:[(0,a.jsxs)("div",{className:"init-language-options",role:"group","aria-label":"Choose your project language",children:[(0,a.jsx)("button",{type:"button","aria-pressed":!o,onClick:()=>{t("javascript"),i("")},children:"JavaScript / TypeScript"}),(0,a.jsx)("button",{type:"button","aria-pressed":o,onClick:()=>{t("python"),i("")},children:"Python"})]}),(0,a.jsxs)("div",{className:"init-command-row",children:[(0,a.jsx)("span",{className:"init-prompt","aria-hidden":"true",children:"$"}),(0,a.jsx)("pre",{className:"init-command",children:(0,a.jsx)("code",{children:s})}),(0,a.jsx)("button",{type:"button",className:"init-copy",onClick:l,"aria-label":"Copy ".concat(s),children:"Command copied."===r?"Copied":"Copy"})]}),(0,a.jsxs)("div",{className:"init-command-footer",children:[(0,a.jsx)("p",{className:"init-command-status",role:"status",children:r||(o?"Python projects use the same command.":"Works with any language.")}),(0,a.jsxs)("a",{href:"/docs/quickstart/",children:["Setup guide ",(0,a.jsx)("span",{"aria-hidden":"true",children:"↗"})]})]})]})}}},e=>{e.O(0,[4123,3981,5868,5105,8441,1255,7358],()=>e(e.s=6744)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9352],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},3845:()=>{},4021:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765)),Promise.resolve().then(n.t.bind(n,3845,23))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,7502,5105,8441,1255,7358],()=>e(e.s=4021)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6907],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5922:()=>{},8003:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765)),Promise.resolve().then(n.t.bind(n,5922,23))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,7329,5105,8441,1255,7358],()=>e(e.s=8003)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5452:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5452)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5452:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5452)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5452:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5452)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5452:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5452)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[879,4520],{9536:(e,s,_)=>{Promise.resolve().then(_.bind(_,6787))}},e=>{e.O(0,[3935,6787,8441,1255,7358],()=>e(e.s=9536)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9557],{873:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,3652,23)),Promise.resolve().then(a.bind(a,8765)),Promise.resolve().then(a.bind(a,1914))},1914:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var n=a(5155),s=a(2115);let r="https://api.agenttwin.si";async function i(e,t){try{return{name:e,state:"up",detail:await t()}}catch(t){return{name:e,state:"down",detail:t instanceof TypeError?"Unreachable from your browser":t instanceof Error?t.message:"Unreachable"}}}let o=async e=>{let t=performance.now();return{r:await fetch(e,{cache:"no-store",signal:AbortSignal.timeout(1e4)}),ms:Math.round(performance.now()-t)}};function l(){let[e,t]=(0,s.useState)(["API","Sign-in","Website and dashboard"].map(e=>({name:e,state:"checking",detail:"Checking…"}))),[a,l]=(0,s.useState)("");(0,s.useEffect)(()=>{let e=!0,a=async()=>{let a=await Promise.all([i("API",async()=>{let{r:e,ms:t}=await o(r+"/healthz"),a=await e.json();if(!e.ok||"ok"!==a.status)throw Error("Not healthy (".concat(e.status,")"));return"Operational \xb7 version ".concat(a.version," \xb7 ").concat(t," ms")}),i("Sign-in",async()=>{let{r:e,ms:t}=await o(r+"/v1/auth/providers");if(!e.ok)throw Error("Not responding (".concat(e.status,")"));return"Operational \xb7 ".concat(t," ms")}),i("Website and dashboard",async()=>{let{r:e,ms:t}=await o("/dashboard/");if(!e.ok)throw Error("Not responding (".concat(e.status,")"));return"Operational \xb7 ".concat(t," ms")})]);e&&(t(a),l(new Date().toLocaleTimeString()))};a();let n=setInterval(a,6e4);return()=>{e=!1,clearInterval(n)}},[]);let c=e.filter(e=>"down"===e.state).length,d=e.some(e=>"checking"===e.state);return(0,n.jsxs)("section",{"aria-live":"polite",className:"status-live",children:[(0,n.jsx)("p",{className:"status-overall is-".concat(d?"checking":c?"down":"up"),children:d?"Checking AgentTwin…":c?"".concat(c," of ").concat(e.length," systems are not responding"):"All systems operational"}),(0,n.jsx)("ul",{className:"status-list",children:e.map(e=>(0,n.jsxs)("li",{className:"is-".concat(e.state),children:[(0,n.jsx)("span",{className:"status-dot","aria-hidden":"true"}),(0,n.jsx)("strong",{children:e.name}),(0,n.jsx)("span",{children:e.detail})]},e.name))}),a&&(0,n.jsxs)("p",{className:"status-note",children:["Checked from your browser at ",a,". Refreshes every minute."]})]})}},3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},8765:(e,t,a)=>{"use strict";a.d(t,{default:()=>l});var n=a(5155),s=a(2115),r=a(1719);function i(){let[e,t]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,n.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,a=e?"light":"dark";document.documentElement.dataset.siteTheme=a,t(e);try{localStorage.setItem("agenttwin-site-theme",a)}catch(e){}},children:[(0,n.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,n.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let o=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,s.useState)(!1),a=(0,s.useRef)(null),r=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=e=>{var n,s;"Escape"===e.key&&(null==(n=r.current)?void 0:n.querySelector("#navlinks.is-open"))&&(t(!1),null==(s=a.current)||s.focus())},n=e=>{var a;(null==(a=r.current)?void 0:a.contains(e.target))||t(!1)},s=matchMedia("(min-width: 1024px)"),i=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",n),s.addEventListener("change",i),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",n),s.removeEventListener("change",i)}},[]),(0,n.jsxs)("header",{className:"site-header",ref:r,children:[(0,n.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,n.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,n.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[o.map(e=>(0,n.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,n.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,n.jsxs)("div",{className:"nav-actions",children:[(0,n.jsx)("a",{href:"/login/",children:"Sign in"}),(0,n.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,n.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,n.jsx)(i,{}),(0,n.jsxs)("button",{className:"menu-toggle",ref:a,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,n.jsx)("span",{}),(0,n.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=873)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5452:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5452)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,1369,2481,2882,3232,4345,6226,6402,6990,7006,7066,8365,9366,9877],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",wordmark:"SiteFooter_wordmark__B6_Tf",navigation:"SiteFooter_navigation__Zsq8o",main:"SiteFooter_main__EWvbi",brand:"SiteFooter_brand__HyIqL",groups:"SiteFooter_groups__tPgIM",group:"SiteFooter_group__FK9ik",more:"SiteFooter_more__LEh69",bottom:"SiteFooter_bottom__ADU2b",srOnly:"SiteFooter_srOnly__e7DbB"}},5452:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var a=n(5155),i=n(2115),r=n(1719);function o(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,a.jsxs)("button",{className:"site-theme-toggle",type:"button","aria-label":e?"Switch to dark mode":"Switch to light mode",title:e?"Switch to dark mode":"Switch to light mode",onClick:()=>{let e="light"!==document.documentElement.dataset.siteTheme,n=e?"light":"dark";document.documentElement.dataset.siteTheme=n,t(e);try{localStorage.setItem("agenttwin-site-theme",n)}catch(e){}},children:[(0,a.jsx)(r.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,a.jsx)(r.rRK,{className:"site-theme-moon",width:20,height:20,"aria-hidden":"true"})]})}let s=[{href:"/what-is-agenttwin/",label:"Product"},{href:"/#how",label:"How it works"},{href:"/pricing/",label:"Pricing"},{href:"/about/",label:"About"},{href:"/docs/",label:"Docs"},{href:"/blog/",label:"Blog"}];function l(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var a,i;"Escape"===e.key&&(null==(a=r.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},a=e=>{var n;(null==(n=r.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),o=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),i.addEventListener("change",o),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),i.removeEventListener("change",o)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:r,children:[(0,a.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,a.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,a.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[s.map(e=>(0,a.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,a.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,a.jsxs)("div",{className:"nav-actions",children:[(0,a.jsx)("a",{href:"/login/",children:"Sign in"}),(0,a.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,a.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,a.jsx)(o,{}),(0,a.jsxs)("button",{className:"menu-toggle",ref:n,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>t(!e),children:[(0,a.jsx)("span",{}),(0,a.jsx)("span",{})]})]})}}},e=>{e.O(0,[4123,5105,8441,1255,7358],()=>e(e.s=5452)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2723],{657:()=>{},672:()=>{},744:()=>{},975:()=>{},1962:()=>{},2724:()=>{},3076:()=>{},3184:()=>{},3677:()=>{},4619:()=>{},4938:()=>{},5798:()=>{},7645:()=>{},8664:()=>{},9095:()=>{},9214:()=>{},9327:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,4619,23)),Promise.resolve().then(n.t.bind(n,657,23)),Promise.resolve().then(n.t.bind(n,5798,23)),Promise.resolve().then(n.t.bind(n,4938,23)),Promise.resolve().then(n.t.bind(n,3677,23)),Promise.resolve().then(n.t.bind(n,9095,23)),Promise.resolve().then(n.t.bind(n,3076,23)),Promise.resolve().then(n.t.bind(n,672,23)),Promise.resolve().then(n.t.bind(n,8664,23)),Promise.resolve().then(n.t.bind(n,975,23)),Promise.resolve().then(n.t.bind(n,2724,23)),Promise.resolve().then(n.t.bind(n,7645,23)),Promise.resolve().then(n.t.bind(n,1962,23)),Promise.resolve().then(n.t.bind(n,744,23)),Promise.resolve().then(n.t.bind(n,9214,23)),Promise.resolve().then(n.t.bind(n,9639,23)),Promise.resolve().then(n.t.bind(n,3184,23))},9639:()=>{}},e=>{e.O(0,[1133,54,8427,2865,8091,8441,1255,7358],()=>e(e.s=9327)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4288],{1299:(e,n,a)=>{Promise.resolve().then(a.bind(a,4907))},4907:(e,n,a)=>{"use strict";a.d(n,{default:()=>O});var t=a(5155),s=a(2115),o=a(4558),i=a(2931),r=a(8570),l=a(3955),c=a(3808),d=a(4416),u=a(395),h=a(9532),m=a(4626),p=a(1516),g=a(8661),w=a(9941),v=a(3998),j=a(1118),x=a(8712),b=a(7334),f=a(6199),y=a(6346),k=a(9671),N=a(1518),A=a(4550);function T(){let{isMobile:e,setOpenMobile:n}=(0,w.cL)();return(0,s.useEffect)(()=>{window.dispatchEvent(new Event("agenttwin:sidebar-open"))},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.Gh,{children:(0,t.jsxs)(v.$,{id:"sidebar-discover",variant:"outline",children:[(0,t.jsx)(r.A,{"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Connect project"})]})}),(0,t.jsx)(w.Yv,{onClick:a=>{e&&a.target.closest("[data-sidebar-workflow],[data-sidebar-run],[data-sidebar-service]")&&n(!1)},children:(0,t.jsx)(w.Cn,{className:"repository-group",children:(0,t.jsx)("div",{id:"sidebar-projects","aria-label":"Your repositories"})})}),(0,t.jsx)(w.CG,{children:(0,t.jsx)(w.wZ,{children:(0,t.jsx)(w.FX,{children:(0,t.jsx)(w.Uj,{asChild:!0,tooltip:"Documentation",children:(0,t.jsxs)("a",{href:"/docs/",children:[(0,t.jsx)(l.A,{"aria-hidden":"true"}),(0,t.jsx)("span",{children:"Documentation"})]})})})})})]})}function S(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{className:"skip",href:"#main",children:"Skip to content"}),(0,t.jsxs)(w.GB,{className:"app-frame dashboard-workspace dashboard-v2 dark",children:[(0,t.jsx)("div",{className:"v2-scene","aria-hidden":"true"}),(0,t.jsxs)("header",{className:"topbar",children:[(0,t.jsxs)("a",{className:"brand dashboard-brand","data-dashboard-home":!0,href:"#home","aria-label":"AgentTwin home",children:[(0,t.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"25",height:"25",alt:"","aria-hidden":"true"}),"AgentTwin"]}),(0,t.jsx)(w.x2,{id:"sidebar-toggle","data-shadcn-sidebar":"true","aria-label":"Toggle sidebar"}),(0,t.jsx)("nav",{className:"home-switcher workspace-navigation","aria-label":"Main navigation",children:[{view:"home",label:"Home",Icon:c.A},{view:"environment",label:"Environment",Icon:d.A},{view:"configure",label:"Workflows",Icon:u.A},{view:"history",label:"Runs",Icon:h.A},{view:"checks",label:"Checks",Icon:m.A},{view:"team",label:"Team",Icon:p.A},{view:"settings",label:"Settings",Icon:g.A}].map(e=>{let{view:n,label:a,Icon:s}=e;return(0,t.jsxs)("button",{type:"button","data-view":n,children:[(0,t.jsx)(s,{"aria-hidden":"true"}),(0,t.jsx)("span",{children:a}),"home"===n&&(0,t.jsx)("span",{id:"home-badge",className:"pill-count",hidden:!0,children:"0"})]},n)})}),(0,t.jsxs)("div",{className:"home-top-actions",children:[(0,t.jsx)("a",{href:"/login/","data-auth-link":!0,className:"home-search",children:"Sign in"}),(0,t.jsxs)("button",{type:"button",id:"home-search",className:"home-search","aria-label":"Search",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"11",cy:"11",r:"6.5"}),(0,t.jsx)("path",{d:"m16 16 4.5 4.5"})]}),(0,t.jsx)("span",{className:"hs-label",children:"Search"}),(0,t.jsx)("kbd",{children:"⌘K"})]}),(0,t.jsxs)("div",{className:"home-bell-wrap",children:[(0,t.jsxs)("button",{type:"button",id:"home-bell",className:"home-icon-btn","aria-label":"Notifications","aria-haspopup":"true","aria-expanded":"false","aria-controls":"home-bell-menu",children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M18 9a6 6 0 1 0-12 0c0 6-2 7-2 7h16s-2-1-2-7"}),(0,t.jsx)("path",{d:"M10 20a2.2 2.2 0 0 0 4 0"})]}),(0,t.jsx)("span",{className:"bell-badge",id:"bell-badge",hidden:!0,children:"0"})]}),(0,t.jsxs)("div",{id:"home-bell-menu",className:"home-menu bell-menu",hidden:!0,children:[(0,t.jsx)("p",{className:"menu-label",children:"Notifications"}),(0,t.jsx)("div",{id:"bell-items"})]})]}),(0,t.jsx)("button",{type:"button",id:"home-expand",className:"home-icon-btn","aria-label":"Toggle full screen",children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M9 3H3v6M15 3h6v6M9 21H3v-6M15 21h6v-6"})})})]}),(0,t.jsxs)("div",{className:"workspace-name",hidden:!0,children:[(0,t.jsx)("span",{id:"workspace-label",children:"Workspace"}),(0,t.jsx)("span",{className:"workspace-divider",children:"/"}),(0,t.jsx)("span",{id:"current-view",children:"Environment"})]}),(0,t.jsxs)("div",{className:"account-control",children:[(0,t.jsx)("button",{type:"button",id:"account-toggle",className:"workspace-avatar","aria-label":"Open account menu","aria-expanded":"false","aria-controls":"account-menu",children:"AT"}),(0,t.jsxs)("div",{id:"account-menu",className:"account-menu",hidden:!0,children:[(0,t.jsxs)("div",{className:"account-menu-head",children:[(0,t.jsx)("span",{className:"account-menu-avatar","aria-hidden":"true",children:"AT"}),(0,t.jsxs)("span",{className:"account-menu-identity",children:[(0,t.jsx)("strong",{id:"account-user-name",children:"Your name not set"}),(0,t.jsx)("small",{id:"account-workspace",children:"My workspace"})]})]}),(0,t.jsx)("p",{id:"account-menu-status",className:"account-menu-status muted",children:"Not connected"}),(0,t.jsxs)("div",{className:"account-menu-links",children:[(0,t.jsx)("a",{href:"/login/","data-auth-link":!0,children:"Sign in"}),(0,t.jsx)("a",{href:"/signup/","data-auth-link":!0,children:"Create an account"}),(0,t.jsx)("a",{href:"/onboarding/",children:"Connect a repository"})]}),(0,t.jsxs)("div",{className:"account-menu-actions",children:[(0,t.jsx)("button",{type:"button","data-action":"settings",children:"Account & settings"}),(0,t.jsx)("button",{type:"button","data-action":"history",children:"View runs"})]}),(0,t.jsx)("div",{className:"account-menu-footer",children:(0,t.jsx)("button",{type:"button",id:"account-disconnect",disabled:!0,children:"Sign out"})})]})]})]}),(0,t.jsxs)("div",{className:"workspace-body",children:[(0,t.jsx)(w.Bx,{className:"workspace-sidebar",variant:"floating",collapsible:"offcanvas",children:(0,t.jsx)(T,{})}),(0,t.jsx)(w.sF,{className:"workspace-inset",children:(0,t.jsxs)("div",{className:"app-layout",children:[(0,t.jsxs)("main",{id:"main",children:[(0,t.jsx)("p",{id:"api-message",className:"coverage",role:"status","aria-live":"polite"}),(0,t.jsx)(x.A,{}),(0,t.jsx)(b.A,{}),(0,t.jsx)(f.A,{}),(0,t.jsx)(y.A,{}),(0,t.jsx)(k.A,{}),(0,t.jsx)(N.A,{}),(0,t.jsx)(A.A,{})]}),(0,t.jsx)(j.A,{})]})})]})]})]})}var C=a(7367),E=a(1898),R=a(7844),P=a(2360),M=a(4651),_=a(444),I=a(5868),D=a(1734),W=a(5090);function O(){return(0,s.useEffect)(()=>{let e=(0,C.c)(),n=!1;return queueMicrotask(async()=>{var t,s,r,l,c,d,u,h;if(n)return;let m=location.hash.slice(1);Object.assign(window,{marked:o.xI,DOMPurify:i.A});let p="1"===new URLSearchParams(location.search).get("demo");if(p){let{DEMO_WORLDS:t,DEMO_WORLDS_BY_SLUG:o}=await a.e(9675).then(a.bind(a,9675));if(n)return;let i=new URLSearchParams(location.search).get("world"),d=i&&o[i]||t[0];if(!document.querySelector('#agenttwin-discovery[data-agenttwin-world="'.concat(d.slug,'"]'))){null==(r=document.querySelector("#agenttwin-discovery[data-agenttwin-demo]"))||r.remove();let e=document.createElement("script");e.type="application/json",e.id="agenttwin-discovery",e.dataset.agenttwinDemo="1",e.dataset.agenttwinWorld=d.slug,e.textContent=JSON.stringify(d.inventory),document.head.append(e)}let u={pylon:"assets/icons/co-pylon.png",intercom:"assets/icons/co-intercom.svg",ramp:"assets/icons/co-ramp.png",clay:"assets/icons/co-clay.png",cognition:"assets/icons/co-cognition.png",sentry:"assets/icons/co-sentry.svg",abridge:"assets/icons/co-abridge.png",paloalto:"assets/icons/co-paloalto.png"};window.agentTwinProjects=t.map(e=>({name:e.inventory.name,slug:e.slug,logo:u[e.slug]})),(0,E.R)(e);let h=window.agentTwinDashboard;try{for(let e of d.runs)null==h||null==(l=h.importReceipt)||l.call(h,e,{navigate:!1})}catch(e){window.__demoError=String(e)}window.__demoWorlds=t;let p=new URLSearchParams(location.search).get("run");if(p)null==h||null==(s=h.openReceipt)||s.call(h,p);else if(!m){let{failureOverview:e}=await Promise.resolve().then(a.bind(a,5156)),n=e(d.runs).weeks.flatMap(e=>e.failures).sort((e,n)=>n.usd-e.usd||Date.parse(n.run.createdAt)-Date.parse(e.run.createdAt))[0];n&&(null==h||null==(c=h.openReceipt)||c.call(h,n.run.runId))}}else(0,E.R)(e);p&&Object.defineProperty(window,"agentTwinHosted",{configurable:!0,get:()=>({connected:!0,accountId:"demo",jobs:[]}),set:()=>{}}),(0,R.M)(e),(0,P.q)(e);let g=window.__demoWorlds;if(p){let e=window.agentTwinAccount;if(e){e.selectProject=async e=>{let n=null==g?void 0:g.find(n=>n.inventory.name===e);n&&(location.href="".concat(location.pathname,"?demo=1&world=").concat(n.slug,"#environment"))};let n=[];e.chat=async()=>{var e;return{available:!0,model:"demo-local",project:null==g||null==(e=g.find(e=>!0))?void 0:e.inventory.name,thread:{messages:n},transcription:{available:!0,model:"browser-speech"}}},e.sendChat=async e=>{let{content:a}=e;return{thread:{messages:n=[...n,{role:"user",content:a},{role:"assistant",content:(e=>{var n,a,t,s,o,i,r,l,c,d,u,h,m,p,g,w;let v=window.agentTwinDashboard,j=null==v||null==(n=v.getDiscovery)?void 0:n.call(v),x=null!=(s=null==v||null==(a=v.getReceipts)?void 0:a.call(v))?s:[],b=null==v||null==(t=v.getPreparation)?void 0:t.call(v),f=e.toLowerCase(),y=x.filter(e=>"failed"===e.status||"error"===e.status).slice(0,3),k=x.filter(e=>"passed"===e.status).length;return/fail|broke|wrong|attention/.test(f)&&y.length?"This world has ".concat(y.length,"+ failing runs to look at — for example ").concat(y.map(e=>'"'.concat(e.name.replaceAll("_"," "),'" (').concat(e.status,")")).join(", "),". Open the Runs page and I can walk any of them: each shows the failed checks, the recorded steps and a fix prompt for your coding agent."):/workflow|test/.test(f)?"".concat(null!=(o=null==j?void 0:j.name)?o:"This world"," discovers ").concat(null!=(i=null==j?void 0:j.workflows.length)?i:0," workflows across ").concat(null!=(r=null==j?void 0:j.tools.length)?r:0," tools. ").concat(x.length," runs are recorded (").concat(k," passed). Pick a workflow on the Workflows page to prepare a safe test — the twin workflows (replica, fault injection, replay) show where the product is heading."):/ready|setup|prepare|depend/.test(f)?"Readiness: ".concat(null!=(l=null==b?void 0:b.prepare)?l:0," workflows ready to test, ").concat(null!=(c=null==b?void 0:b.setup)?c:0," blocked on tool setup, ").concat(null!=(d=null==b?void 0:b.review)?d:0," needing review. Blocked ones need an adapter or runtime for one of their dependencies — the Environment page shows which."):/tool|service|integrat|connect/.test(f)?"".concat(null!=(u=null==j?void 0:j.tools.length)?u:0," tools are mapped for ").concat(null!=(h=null==j?void 0:j.name)?h:"this project",": ").concat(null==j?void 0:j.tools.slice(0,6).map(e=>e.title).join(", ")).concat((null!=(m=null==j?void 0:j.tools.length)?m:0)>6?", and more":"",". Coverage differs per tool — supported adapters, configuration-only, or missing adapters, all visible on the Environment page."):"Here is the picture for ".concat(null!=(p=null==j?void 0:j.name)?p:"this world",": ").concat(null!=(g=null==j?void 0:j.workflows.length)?g:0," workflows, ").concat(null!=(w=null==j?void 0:j.tools.length)?w:0," tools, ").concat(x.length," recorded runs (").concat(k," passed). Ask me about failures, a specific workflow, readiness, or the tools in this environment.")})(a)}]}}},e.transcribe=async()=>{var e;let n=window,a=null!=(e=n.SpeechRecognition)?e:n.webkitSpeechRecognition;if(!a)throw Error("Voice transcription needs Chrome or Edge. Type your message instead.");return new Promise((e,n)=>{let t=new a;t.lang=navigator.language||"en-US",t.interimResults=!0,t.continuous=!1;let s="",o=setTimeout(()=>{t.stop()},12e3);t.onresult=e=>{s=Array.from(e.results).map(e=>e[0].transcript).join(" ").trim()},t.onerror=e=>{clearTimeout(o),n(Error("not-allowed"===e.error?"Microphone access was denied. You can type your message instead.":"no-speech"===e.error?"No speech detected. Try again.":"Voice transcription failed. Try again or type instead."))},t.onend=()=>{clearTimeout(o),s?e({text:s}):n(Error("No speech detected. Try again."))},t.start()})},window.dispatchEvent(new Event("agenttwin:discovery"))}}if((0,M.f)(e),(0,_.c)(e),(0,I.sP)(e),(0,D.a3)(e),(0,W.a)(e),p){let e=null==(d=document.querySelector("#environment-project strong"))?void 0:d.textContent,n=null==(h=window.agentTwinProjects)||null==(u=h.find(n=>n.name===e))?void 0:u.logo,a=document.querySelector("#environment-project .project-icon img");n&&a&&!a.src.endsWith(n)&&(a.src=n)}["overview","home","environment","workflows","configure","runs","history","checks","team","settings"].includes(m)&&(null==(t=window.agentTwinDashboard)||t.go(m))}),()=>{var a;n=!0,e.dispose(),null==(a=document.querySelector("#agenttwin-discovery[data-agenttwin-demo]"))||a.remove(),document.body.classList.remove("view-home","view-settings","sidebar-collapsed","compact-density","reduce-motion")}},[]),(0,t.jsx)(S,{})}}},e=>{e.O(0,[3559,2743,3481,1937,8176,8441,1255,7358],()=>e(e.s=1299)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8512],{6496:()=>{},7866:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,6496,23))}},e=>{e.O(0,[9487,8441,1255,7358],()=>e(e.s=7866)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3552,9629],{1070:(e,s,u)=>{"use strict";u.d(s,{default:()=>_.default});var _=u(6787)},6940:(e,s,u)=>{Promise.resolve().then(u.bind(u,1070))}},e=>{e.O(0,[3935,6787,8441,1255,7358],()=>e(e.s=6940)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4333],{5257:(e,s,t)=>{"use strict";t.d(s,{default:()=>h});var n=t(5155),a=t(2115),r=t(6787),o=t(8864);t(1261),t(6184),t(9010);let i="agenttwin:workspace-preferences:v1",c={morning:"bay-morning.webp",afternoon:"golden-gate-afternoon.webp",evening:"moonlit-coast.webp"},l=["Welcome","Make it yours","Connect your project"],d={artwork:"auto",compact:!1,autoRefresh:!0,reduceMotion:!1};function u(){return(0,n.jsx)("span",{"aria-hidden":"true",children:"→"})}function p(){return(0,n.jsx)("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,n.jsx)("path",{d:"m4 8 2.5 2.5L12 5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function h(){var e;let[s,t]=(0,a.useState)(null),[h,m]=(0,a.useState)(""),[j,x]=(0,a.useState)(0),[g,v]=(0,a.useState)(0),[w,y]=(0,a.useState)(0),[b,f]=(0,a.useState)(d),[k,N]=(0,a.useState)("afternoon"),[C,S]=(0,a.useState)(""),[A,E]=(0,a.useState)(""),[T,R]=(0,a.useState)(!1),[M,W]=(0,a.useState)(!1),[L,O]=(0,a.useState)(""),[Y,I]=(0,a.useState)(!1),[B,F]=(0,a.useState)(""),[P,U]=(0,a.useState)([]),[_,D]=(0,a.useState)(!1),[J,K]=(0,a.useState)(""),[q,G]=(0,a.useState)(!1),H=(0,a.useRef)(null),z="auto"===b.artwork?k:b.artwork;function V(e){v(e),y(s=>Math.max(s,e)),S(""),requestAnimationFrame(()=>{var e;return null==(e=H.current)?void 0:e.focus({preventScroll:!0})})}function Q(){try{let e={};try{let s=JSON.parse(localStorage.getItem(i)||"{}");s&&"object"==typeof s&&!Array.isArray(s)&&(e=s)}catch(e){}return localStorage.setItem(i,JSON.stringify({...e,...b,name:"string"==typeof e.name&&e.name.trim()?e.name:null==s?void 0:s.workspace.slice(0,40),userName:"string"==typeof e.userName?e.userName:null==s?void 0:s.name.slice(0,60)})),G(!1),!0}catch(e){return G(!0),S("Browser storage is unavailable. Your preferences could not be saved."),!1}}function X(){s&&!T&&!Y&&Q()&&location.assign(P.length?"/v2/dashboard/#environment":"/v2/dashboard/#home")}async function Z(e){if(e.preventDefault(),!T&&!M&&s){R(!0),O("");try{let e=await fetch(r.n+"/v1/auth/device/approve",{method:"POST",credentials:"include",headers:{"content-type":"application/json"},body:JSON.stringify({userCode:A.trim().toUpperCase()}),signal:AbortSignal.timeout(15e3)}),s=await e.json();if(!e.ok)throw Error(s.error||"Could not connect your terminal. Try again.");W(!0),E(""),O("Terminal connected. Discover your project, then sync it below.")}catch(e){O(e instanceof Error?e.message:"Could not connect your terminal.")}finally{R(!1)}}}async function $(){if(!Y&&s){I(!0),F("");try{let e=await fetch(r.n+"/v1/projects",{credentials:"include",signal:AbortSignal.timeout(15e3)});if(!e.ok)throw Error("Could not check your projects. Try again.");let s=await e.json();if(!Array.isArray(s.projects))throw Error("Could not load your projects. Try again.");U(s.projects),D(!0),F(s.projects.length?"Your project is in your workspace.":"No project synced yet. Run the commands above, then check again.")}catch(e){F(e instanceof Error?e.message:"Could not check your projects.")}finally{I(!1)}}}async function ee(e){try{await navigator.clipboard.writeText(e),K(e),S("Command copied. Run it in your project’s terminal.")}catch(e){S("Select the command and copy it into your terminal.")}}function es(e){return(0,n.jsxs)("div",{className:"setup-command",children:[(0,n.jsx)("code",{children:e}),(0,n.jsx)("button",{type:"button",onClick:()=>ee(e),"aria-label":"Copy ".concat(e),children:J===e?(0,n.jsx)(p,{}):(0,n.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[(0,n.jsx)("rect",{x:"7",y:"7",width:"9",height:"10",rx:"2",stroke:"currentColor",strokeWidth:"1.4"}),(0,n.jsx)("path",{d:"M12 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",stroke:"currentColor",strokeWidth:"1.4"})]})})]})}return(0,a.useEffect)(()=>{let e=()=>N((0,o.w)(new Date().getHours()));e();let s=setInterval(e,6e4);try{let e=JSON.parse(localStorage.getItem(i)||"null");e&&f({artwork:["auto","morning","afternoon","evening"].includes(e.artwork)?e.artwork:"auto",compact:!0===e.compact,autoRefresh:!1!==e.autoRefresh,reduceMotion:!0===e.reduceMotion})}catch(e){}return()=>clearInterval(s)},[]),(0,a.useEffect)(()=>{let e=new AbortController;return m(""),fetch(r.n+"/v1/auth/me",{credentials:"include",signal:AbortSignal.any([e.signal,AbortSignal.timeout(15e3)])}).then(async e=>{if(401===e.status)return void location.replace("/login/?next=onboarding");if(!e.ok)throw Error();t((await e.json()).user)}).catch(()=>{e.signal.aborted||m("Your account could not be loaded. Try again to continue setup.")}),()=>e.abort()},[j]),(0,n.jsxs)("main",{className:"onboarding-page".concat(b.reduceMotion?" onboarding-still":""),style:{"--setup-scene":"url('assets/dashboard/".concat(c[z],"')")},children:[(0,n.jsx)("div",{className:"onboarding-backdrop","aria-hidden":"true"}),(0,n.jsxs)("section",{className:"onboarding-shell","aria-labelledby":"onboarding-title",children:[(0,n.jsxs)("header",{className:"onboarding-header",children:[(0,n.jsxs)("a",{className:"auth-brand",href:"/v2/","aria-label":"AgentTwin v2 home",children:[(0,n.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"26",height:"26",alt:""}),"AgentTwin"]}),(0,n.jsxs)("a",{href:"/docs/workflow/",children:["Need a hand? ",(0,n.jsx)(u,{})]})]}),(0,n.jsxs)("div",{className:"onboarding-content".concat(0===g?" onboarding-welcome":""),children:[(0,n.jsxs)("div",{className:"onboarding-controls",children:[(0,n.jsxs)("div",{className:"onboarding-greeting",children:[(0,n.jsx)("p",{children:(null==s?void 0:s.workspace)||"Your workspace"}),(0,n.jsx)("h1",{id:"onboarding-title",children:s?"Welcome, ".concat(s.name.trim().split(/\s+/)[0],"."):"Welcome to AgentTwin."})]}),h&&(0,n.jsxs)("div",{className:"onboarding-account-error",role:"alert",children:[(0,n.jsx)("p",{children:h}),(0,n.jsx)("button",{type:"button",onClick:()=>x(e=>e+1),children:"Try again"})]}),(0,n.jsx)("ol",{className:"setup-steps","aria-label":"Workspace setup",children:l.map((e,t)=>(0,n.jsxs)("li",{className:"setup-step".concat(g===t?" active":"").concat(t<w?" visited":""),children:[(0,n.jsx)("h2",{children:(0,n.jsxs)("button",{type:"button",ref:g===t?H:void 0,className:"setup-step-heading",onClick:()=>V(t),disabled:t>w||T||Y,"aria-expanded":g===t,"aria-controls":"setup-panel-".concat(t),"aria-current":g===t?"step":void 0,children:[(0,n.jsx)("span",{className:"setup-step-number",children:t<w&&t!==g?(0,n.jsx)(p,{}):t+1}),e,t<w&&t!==g&&(0,n.jsx)("span",{className:"setup-edit",children:"Edit"})]})}),(0,n.jsxs)("div",{id:"setup-panel-".concat(t),className:"setup-step-panel",hidden:g!==t,children:[0===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"setup-intro",children:"A safe place to test what your agent does."}),(0,n.jsx)("p",{children:"Connect your repository, choose a workflow, and review what happened before it runs in production."}),(0,n.jsxs)("button",{type:"button",className:"setup-primary",onClick:()=>V(1),children:["Let’s get started ",(0,n.jsx)(u,{})]})]}),1===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("fieldset",{className:"setup-choice",children:[(0,n.jsx)("legend",{children:"Layout"}),(0,n.jsx)("div",{className:"setup-segmented",children:[{label:"Comfortable",value:!1},{label:"Compact",value:!0}].map(e=>(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",name:"setup-density",checked:b.compact===e.value,onChange:()=>f(s=>({...s,compact:e.value}))}),(0,n.jsx)("span",{children:e.label})]},e.label))})]}),(0,n.jsxs)("fieldset",{className:"setup-choice",children:[(0,n.jsx)("legend",{children:"Background"}),(0,n.jsx)("div",{className:"setup-scenes",children:["auto","morning","afternoon","evening"].map(e=>(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",name:"setup-artwork",checked:b.artwork===e,onChange:()=>f(s=>({...s,artwork:e}))}),(0,n.jsx)("span",{className:"setup-scene-swatch".concat("auto"===e?" automatic":""),style:"auto"!==e?{backgroundImage:"url('assets/dashboard/".concat(c[e],"')")}:void 0,children:"auto"===e&&(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M12 8v4l3 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),(0,n.jsx)("span",{children:"auto"===e?"Automatic":e[0].toUpperCase()+e.slice(1)})]},e))}),(0,n.jsx)("p",{className:"setup-help",children:"auto"===b.artwork?"Changes with your local time.":"Keep this scene throughout the day."})]}),(0,n.jsxs)("div",{className:"setup-toggle-list",children:[(0,n.jsxs)("label",{children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{children:"Live updates"}),(0,n.jsx)("small",{children:"Keep projects and test results up to date."})]}),(0,n.jsx)("input",{type:"checkbox",role:"switch",checked:b.autoRefresh,onChange:e=>f(s=>({...s,autoRefresh:e.target.checked}))})]}),(0,n.jsxs)("label",{children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{children:"Reduce motion"}),(0,n.jsx)("small",{children:"Use fewer animations and transitions."})]}),(0,n.jsx)("input",{type:"checkbox",role:"switch",checked:b.reduceMotion,onChange:e=>f(s=>({...s,reduceMotion:e.target.checked}))})]})]}),(0,n.jsxs)("button",{type:"button",className:"setup-primary",onClick:()=>{Q()&&V(2)},children:["Continue ",(0,n.jsx)(u,{})]}),q&&(0,n.jsx)("button",{type:"button",className:"setup-text-button",onClick:()=>V(2),children:"Continue without saving"})]}),2===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"setup-connect-intro",children:"Start in your repository’s terminal."}),(0,n.jsxs)("div",{className:"setup-terminal",children:[(0,n.jsxs)("div",{className:"setup-command-label",children:[(0,n.jsx)("span",{children:"01"}),(0,n.jsx)("strong",{children:"Connect your terminal"}),M&&(0,n.jsxs)("span",{className:"setup-connected",children:[(0,n.jsx)(p,{}),"Connected"]})]}),es("npx agenttwin login"),!M&&(0,n.jsxs)("details",{className:"setup-pairing",children:[(0,n.jsx)("summary",{children:"I have a terminal code"}),(0,n.jsxs)("form",{onSubmit:Z,children:[(0,n.jsxs)("label",{htmlFor:"setup-terminal-code",children:["Connection code",(0,n.jsx)("input",{id:"setup-terminal-code",name:"userCode",value:A,onChange:e=>E(e.target.value.toUpperCase()),autoComplete:"off",autoCapitalize:"characters",spellCheck:!1,placeholder:"10-character code",minLength:10,maxLength:10,pattern:"[A-Fa-f0-9]{10}",required:!0,disabled:!s||T})]}),(0,n.jsx)("button",{type:"submit",className:"setup-secondary",disabled:!s||T,children:T?"Connecting…":"Connect terminal"})]}),(0,n.jsx)("p",{className:"setup-help",children:"Only approve a terminal connection you started."})]}),L&&(0,n.jsx)("p",{className:"setup-feedback",role:"status",children:L})]}),(0,n.jsxs)("div",{className:"setup-terminal",children:[(0,n.jsxs)("div",{className:"setup-command-label",children:[(0,n.jsx)("span",{children:"02"}),(0,n.jsx)("strong",{children:"Discover your project"})]}),es("npx agenttwin"),(0,n.jsx)("p",{className:"setup-help",children:"Review the detected tools and workflow candidates."})]}),(0,n.jsxs)("div",{className:"setup-terminal",children:[(0,n.jsxs)("div",{className:"setup-command-label",children:[(0,n.jsx)("span",{children:"03"}),(0,n.jsx)("strong",{children:"Bring it into your workspace"})]}),es("npx agenttwin sync"),(0,n.jsx)("p",{className:"setup-help",children:"Sync discovery and test results. Application source and credentials stay on your computer."})]}),(0,n.jsxs)("button",{type:"button",className:"setup-secondary setup-check",onClick:$,disabled:!s||Y,children:[Y?"Checking…":P.length?"Check again":"Check for my project",!Y&&(0,n.jsx)(u,{})]}),B&&(0,n.jsx)("p",{className:"setup-feedback",role:"status",children:B}),P.map(e=>(0,n.jsxs)("div",{className:"setup-project",children:[(0,n.jsx)(p,{}),(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:e.name}),(0,n.jsxs)("span",{children:[e.tools," resource",1===e.tools?"":"s"," \xb7 ",e.workflows," workflow candidate",1===e.workflows?"":"s"]})]})]},e.name)),(0,n.jsxs)("div",{className:"setup-finish",children:[(0,n.jsxs)("button",{type:"button",className:"setup-primary",onClick:X,disabled:!s||Y||T,children:[P.length?"Open my workspace":"Explore my workspace"," ",(0,n.jsx)(u,{})]}),!P.length&&(0,n.jsx)("p",{children:"Connect a project later from your workspace."}),q&&(0,n.jsx)("a",{href:"/v2/dashboard/#home",children:"Open workspace without saving"})]})]})]})]},e))}),(0,n.jsx)("p",{className:"setup-notice",role:"status","aria-live":"polite",children:C})]}),(0,n.jsxs)("aside",{className:"setup-preview".concat(b.compact?" compact":""),"aria-label":"Live workspace preview",children:[(0,n.jsxs)("div",{className:"setup-preview-heading",children:[(0,n.jsx)("span",{children:"Workspace preview"}),(0,n.jsx)("span",{className:"setup-preview-scene",children:z[0].toUpperCase()+z.slice(1)})]}),(0,n.jsxs)("div",{className:"setup-preview-window",children:[(0,n.jsxs)("div",{className:"setup-preview-nav",children:[(0,n.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"18",height:"18",alt:""}),(0,n.jsx)("span",{children:(null==s?void 0:s.workspace)||"Your workspace"}),(0,n.jsx)("span",{className:"setup-preview-avatar",children:(null==s?void 0:s.name)?s.name[0].toUpperCase():"A"})]}),(0,n.jsxs)("div",{className:"setup-preview-hero",children:[(0,n.jsxs)("h3",{children:["What should your",(0,n.jsx)("br",{}),"agent test?"]}),(0,n.jsxs)("div",{className:"setup-preview-composer",children:["Ask about a workflow ",(0,n.jsx)(u,{})]})]}),(0,n.jsxs)("div",{className:"setup-preview-cards",children:[(0,n.jsxs)("div",{className:"setup-preview-project",children:[(0,n.jsx)("span",{children:"Project discovery"}),(0,n.jsx)("strong",{children:(null==(e=P[0])?void 0:e.name)||"Connect your project"}),(0,n.jsx)("p",{children:P[0]?"".concat(P[0].tools," detected resource").concat(1===P[0].tools?"":"s"):"Your workflows will appear here."})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:"Test results"}),(0,n.jsx)("strong",{children:"No results in this preview"}),(0,n.jsx)("p",{children:"Review what each test recorded."})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:"Test readiness"}),(0,n.jsx)("strong",{children:P.length?"Review dependencies":"Start with discovery"}),(0,n.jsx)("p",{children:"Prepare inputs and expected outcomes."})]})]})]}),(0,n.jsx)("p",{className:"setup-preview-caption",children:2===g?P.length?"Project found. You can start reviewing workflows.":_?"Your project appears here after its first sync.":"Connect your own project when you’re ready.":"A workspace that feels like yours."})]})]}),(0,n.jsxs)("footer",{className:"onboarding-footer",children:[(0,n.jsxs)("span",{children:[g+1," of 3"]}),(0,n.jsx)("span",{children:"Preferences save to this browser."})]})]})]})}},6184:()=>{},8864:(e,s,t)=>{"use strict";function n(e){return e>=5&&e<12?"morning":e>=12&&e<17?"afternoon":"evening"}t.d(s,{K:()=>a,w:()=>n});let a={morning:"Morning \xb7 sunrise over the bay",afternoon:"Afternoon \xb7 sunny Golden Gate",evening:"Evening \xb7 moonlit coast"}},9010:()=>{},9162:(e,s,t)=>{Promise.resolve().then(t.bind(t,5257))}},e=>{e.O(0,[3935,4295,7441,6787,8441,1255,7358],()=>e(e.s=9162)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4333],{5257:(e,s,t)=>{"use strict";t.d(s,{default:()=>h});var n=t(5155),a=t(2115),r=t(6787),o=t(8864);t(1261),t(6184),t(9010);let i="agenttwin:workspace-preferences:v1",c={morning:"bay-morning.webp",afternoon:"golden-gate-afternoon.webp",evening:"moonlit-coast.webp"},l=["Welcome","Make it yours","Connect your project"],d={artwork:"auto",compact:!1,autoRefresh:!0,reduceMotion:!1};function u(){return(0,n.jsx)("span",{"aria-hidden":"true",children:"→"})}function p(){return(0,n.jsx)("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,n.jsx)("path",{d:"m4 8 2.5 2.5L12 5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}function h(){var e;let[s,t]=(0,a.useState)(null),[h,m]=(0,a.useState)(""),[j,x]=(0,a.useState)(0),[g,v]=(0,a.useState)(0),[w,y]=(0,a.useState)(0),[b,f]=(0,a.useState)(d),[k,N]=(0,a.useState)("afternoon"),[C,S]=(0,a.useState)(""),[A,E]=(0,a.useState)(""),[T,R]=(0,a.useState)(!1),[M,W]=(0,a.useState)(!1),[L,O]=(0,a.useState)(""),[Y,I]=(0,a.useState)(!1),[B,F]=(0,a.useState)(""),[P,U]=(0,a.useState)([]),[_,D]=(0,a.useState)(!1),[J,K]=(0,a.useState)(""),[q,G]=(0,a.useState)(!1),H=(0,a.useRef)(null),z="auto"===b.artwork?k:b.artwork;function V(e){v(e),y(s=>Math.max(s,e)),S(""),requestAnimationFrame(()=>{var e;return null==(e=H.current)?void 0:e.focus({preventScroll:!0})})}function Q(){try{let e={};try{let s=JSON.parse(localStorage.getItem(i)||"{}");s&&"object"==typeof s&&!Array.isArray(s)&&(e=s)}catch(e){}return localStorage.setItem(i,JSON.stringify({...e,...b,name:"string"==typeof e.name&&e.name.trim()?e.name:null==s?void 0:s.workspace.slice(0,40),userName:"string"==typeof e.userName?e.userName:null==s?void 0:s.name.slice(0,60)})),G(!1),!0}catch(e){return G(!0),S("Browser storage is unavailable. Your preferences could not be saved."),!1}}function X(){s&&!T&&!Y&&Q()&&location.assign(P.length?"/v2/dashboard/#environment":"/v2/dashboard/#home")}async function Z(e){if(e.preventDefault(),!T&&!M&&s){R(!0),O("");try{let e=await fetch(r.n+"/v1/auth/device/approve",{method:"POST",credentials:"include",headers:{"content-type":"application/json"},body:JSON.stringify({userCode:A.trim().toUpperCase()}),signal:AbortSignal.timeout(15e3)}),s=await e.json();if(!e.ok)throw Error(s.error||"Could not connect your terminal. Try again.");W(!0),E(""),O("Terminal connected. Discover your project, then sync it below.")}catch(e){O(e instanceof Error?e.message:"Could not connect your terminal.")}finally{R(!1)}}}async function $(){if(!Y&&s){I(!0),F("");try{let e=await fetch(r.n+"/v1/projects",{credentials:"include",signal:AbortSignal.timeout(15e3)});if(!e.ok)throw Error("Could not check your projects. Try again.");let s=await e.json();if(!Array.isArray(s.projects))throw Error("Could not load your projects. Try again.");U(s.projects),D(!0),F(s.projects.length?"Your project is in your workspace.":"No project synced yet. Run the commands above, then check again.")}catch(e){F(e instanceof Error?e.message:"Could not check your projects.")}finally{I(!1)}}}async function ee(e){try{await navigator.clipboard.writeText(e),K(e),S("Command copied. Run it in your project’s terminal.")}catch(e){S("Select the command and copy it into your terminal.")}}function es(e){return(0,n.jsxs)("div",{className:"setup-command",children:[(0,n.jsx)("code",{children:e}),(0,n.jsx)("button",{type:"button",onClick:()=>ee(e),"aria-label":"Copy ".concat(e),children:J===e?(0,n.jsx)(p,{}):(0,n.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:[(0,n.jsx)("rect",{x:"7",y:"7",width:"9",height:"10",rx:"2",stroke:"currentColor",strokeWidth:"1.4"}),(0,n.jsx)("path",{d:"M12 7V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",stroke:"currentColor",strokeWidth:"1.4"})]})})]})}return(0,a.useEffect)(()=>{let e=()=>N((0,o.w)(new Date().getHours()));e();let s=setInterval(e,6e4);try{let e=JSON.parse(localStorage.getItem(i)||"null");e&&f({artwork:["auto","morning","afternoon","evening"].includes(e.artwork)?e.artwork:"auto",compact:!0===e.compact,autoRefresh:!1!==e.autoRefresh,reduceMotion:!0===e.reduceMotion})}catch(e){}return()=>clearInterval(s)},[]),(0,a.useEffect)(()=>{let e=new AbortController;return m(""),fetch(r.n+"/v1/auth/me",{credentials:"include",signal:AbortSignal.any([e.signal,AbortSignal.timeout(15e3)])}).then(async e=>{if(401===e.status)return void location.replace("/login/?next=onboarding");if(!e.ok)throw Error();t((await e.json()).user)}).catch(()=>{e.signal.aborted||m("Your account could not be loaded. Try again to continue setup.")}),()=>e.abort()},[j]),(0,n.jsxs)("main",{className:"onboarding-page".concat(b.reduceMotion?" onboarding-still":""),style:{"--setup-scene":"url('assets/dashboard/".concat(c[z],"')")},children:[(0,n.jsx)("div",{className:"onboarding-backdrop","aria-hidden":"true"}),(0,n.jsxs)("section",{className:"onboarding-shell","aria-labelledby":"onboarding-title",children:[(0,n.jsxs)("header",{className:"onboarding-header",children:[(0,n.jsxs)("a",{className:"auth-brand",href:"/v2/","aria-label":"AgentTwin v2 home",children:[(0,n.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"26",height:"26",alt:""}),"AgentTwin"]}),(0,n.jsxs)("a",{href:"/docs/workflow/",children:["Need a hand? ",(0,n.jsx)(u,{})]})]}),(0,n.jsxs)("div",{className:"onboarding-content".concat(0===g?" onboarding-welcome":""),children:[(0,n.jsxs)("div",{className:"onboarding-controls",children:[(0,n.jsxs)("div",{className:"onboarding-greeting",children:[(0,n.jsx)("p",{children:(null==s?void 0:s.workspace)||"Your workspace"}),(0,n.jsx)("h1",{id:"onboarding-title",children:s?"Welcome, ".concat(s.name.trim().split(/\s+/)[0],"."):"Welcome to AgentTwin."})]}),h&&(0,n.jsxs)("div",{className:"onboarding-account-error",role:"alert",children:[(0,n.jsx)("p",{children:h}),(0,n.jsx)("button",{type:"button",onClick:()=>x(e=>e+1),children:"Try again"})]}),(0,n.jsx)("ol",{className:"setup-steps","aria-label":"Workspace setup",children:l.map((e,t)=>(0,n.jsxs)("li",{className:"setup-step".concat(g===t?" active":"").concat(t<w?" visited":""),children:[(0,n.jsx)("h2",{children:(0,n.jsxs)("button",{type:"button",ref:g===t?H:void 0,className:"setup-step-heading",onClick:()=>V(t),disabled:t>w||T||Y,"aria-expanded":g===t,"aria-controls":"setup-panel-".concat(t),"aria-current":g===t?"step":void 0,children:[(0,n.jsx)("span",{className:"setup-step-number",children:t<w&&t!==g?(0,n.jsx)(p,{}):t+1}),e,t<w&&t!==g&&(0,n.jsx)("span",{className:"setup-edit",children:"Edit"})]})}),(0,n.jsxs)("div",{id:"setup-panel-".concat(t),className:"setup-step-panel",hidden:g!==t,children:[0===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"setup-intro",children:"A safe place to test what your agent does."}),(0,n.jsx)("p",{children:"Connect your repository, choose a workflow, and review what happened before it runs in production."}),(0,n.jsxs)("button",{type:"button",className:"setup-primary",onClick:()=>V(1),children:["Let’s get started ",(0,n.jsx)(u,{})]})]}),1===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("fieldset",{className:"setup-choice",children:[(0,n.jsx)("legend",{children:"Layout"}),(0,n.jsx)("div",{className:"setup-segmented",children:[{label:"Comfortable",value:!1},{label:"Compact",value:!0}].map(e=>(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",name:"setup-density",checked:b.compact===e.value,onChange:()=>f(s=>({...s,compact:e.value}))}),(0,n.jsx)("span",{children:e.label})]},e.label))})]}),(0,n.jsxs)("fieldset",{className:"setup-choice",children:[(0,n.jsx)("legend",{children:"Background"}),(0,n.jsx)("div",{className:"setup-scenes",children:["auto","morning","afternoon","evening"].map(e=>(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"radio",name:"setup-artwork",checked:b.artwork===e,onChange:()=>f(s=>({...s,artwork:e}))}),(0,n.jsx)("span",{className:"setup-scene-swatch".concat("auto"===e?" automatic":""),style:"auto"!==e?{backgroundImage:"url('assets/dashboard/".concat(c[e],"')")}:void 0,children:"auto"===e&&(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M12 8v4l3 2",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),(0,n.jsx)("span",{children:"auto"===e?"Automatic":e[0].toUpperCase()+e.slice(1)})]},e))}),(0,n.jsx)("p",{className:"setup-help",children:"auto"===b.artwork?"Changes with your local time.":"Keep this scene throughout the day."})]}),(0,n.jsxs)("div",{className:"setup-toggle-list",children:[(0,n.jsxs)("label",{children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{children:"Live updates"}),(0,n.jsx)("small",{children:"Keep projects and test results up to date."})]}),(0,n.jsx)("input",{type:"checkbox",role:"switch",checked:b.autoRefresh,onChange:e=>f(s=>({...s,autoRefresh:e.target.checked}))})]}),(0,n.jsxs)("label",{children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("strong",{children:"Reduce motion"}),(0,n.jsx)("small",{children:"Use fewer animations and transitions."})]}),(0,n.jsx)("input",{type:"checkbox",role:"switch",checked:b.reduceMotion,onChange:e=>f(s=>({...s,reduceMotion:e.target.checked}))})]})]}),(0,n.jsxs)("button",{type:"button",className:"setup-primary",onClick:()=>{Q()&&V(2)},children:["Continue ",(0,n.jsx)(u,{})]}),q&&(0,n.jsx)("button",{type:"button",className:"setup-text-button",onClick:()=>V(2),children:"Continue without saving"})]}),2===t&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("p",{className:"setup-connect-intro",children:"Start in your repository’s terminal."}),(0,n.jsxs)("div",{className:"setup-terminal",children:[(0,n.jsxs)("div",{className:"setup-command-label",children:[(0,n.jsx)("span",{children:"01"}),(0,n.jsx)("strong",{children:"Connect your terminal"}),M&&(0,n.jsxs)("span",{className:"setup-connected",children:[(0,n.jsx)(p,{}),"Connected"]})]}),es("npx agenttwin login"),!M&&(0,n.jsxs)("details",{className:"setup-pairing",children:[(0,n.jsx)("summary",{children:"I have a terminal code"}),(0,n.jsxs)("form",{onSubmit:Z,children:[(0,n.jsxs)("label",{htmlFor:"setup-terminal-code",children:["Connection code",(0,n.jsx)("input",{id:"setup-terminal-code",name:"userCode",value:A,onChange:e=>E(e.target.value.toUpperCase()),autoComplete:"off",autoCapitalize:"characters",spellCheck:!1,placeholder:"10-character code",minLength:10,maxLength:10,pattern:"[A-Fa-f0-9]{10}",required:!0,disabled:!s||T})]}),(0,n.jsx)("button",{type:"submit",className:"setup-secondary",disabled:!s||T,children:T?"Connecting…":"Connect terminal"})]}),(0,n.jsx)("p",{className:"setup-help",children:"Only approve a terminal connection you started."})]}),L&&(0,n.jsx)("p",{className:"setup-feedback",role:"status",children:L})]}),(0,n.jsxs)("div",{className:"setup-terminal",children:[(0,n.jsxs)("div",{className:"setup-command-label",children:[(0,n.jsx)("span",{children:"02"}),(0,n.jsx)("strong",{children:"Discover your project"})]}),es("npx agenttwin"),(0,n.jsx)("p",{className:"setup-help",children:"Review the detected tools and workflow candidates."})]}),(0,n.jsxs)("div",{className:"setup-terminal",children:[(0,n.jsxs)("div",{className:"setup-command-label",children:[(0,n.jsx)("span",{children:"03"}),(0,n.jsx)("strong",{children:"Bring it into your workspace"})]}),es("npx agenttwin sync"),(0,n.jsx)("p",{className:"setup-help",children:"Sync discovery and test results. Application source and credentials stay on your computer."})]}),(0,n.jsxs)("button",{type:"button",className:"setup-secondary setup-check",onClick:$,disabled:!s||Y,children:[Y?"Checking…":P.length?"Check again":"Check for my project",!Y&&(0,n.jsx)(u,{})]}),B&&(0,n.jsx)("p",{className:"setup-feedback",role:"status",children:B}),P.map(e=>(0,n.jsxs)("div",{className:"setup-project",children:[(0,n.jsx)(p,{}),(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:e.name}),(0,n.jsxs)("span",{children:[e.tools," resource",1===e.tools?"":"s"," \xb7 ",e.workflows," workflow candidate",1===e.workflows?"":"s"]})]})]},e.name)),(0,n.jsxs)("div",{className:"setup-finish",children:[(0,n.jsxs)("button",{type:"button",className:"setup-primary",onClick:X,disabled:!s||Y||T,children:[P.length?"Open my workspace":"Explore my workspace"," ",(0,n.jsx)(u,{})]}),!P.length&&(0,n.jsx)("p",{children:"Connect a project later from your workspace."}),q&&(0,n.jsx)("a",{href:"/v2/dashboard/#home",children:"Open workspace without saving"})]})]})]})]},e))}),(0,n.jsx)("p",{className:"setup-notice",role:"status","aria-live":"polite",children:C})]}),(0,n.jsxs)("aside",{className:"setup-preview".concat(b.compact?" compact":""),"aria-label":"Live workspace preview",children:[(0,n.jsxs)("div",{className:"setup-preview-heading",children:[(0,n.jsx)("span",{children:"Workspace preview"}),(0,n.jsx)("span",{className:"setup-preview-scene",children:z[0].toUpperCase()+z.slice(1)})]}),(0,n.jsxs)("div",{className:"setup-preview-window",children:[(0,n.jsxs)("div",{className:"setup-preview-nav",children:[(0,n.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"18",height:"18",alt:""}),(0,n.jsx)("span",{children:(null==s?void 0:s.workspace)||"Your workspace"}),(0,n.jsx)("span",{className:"setup-preview-avatar",children:(null==s?void 0:s.name)?s.name[0].toUpperCase():"A"})]}),(0,n.jsxs)("div",{className:"setup-preview-hero",children:[(0,n.jsxs)("h3",{children:["What should your",(0,n.jsx)("br",{}),"agent test?"]}),(0,n.jsxs)("div",{className:"setup-preview-composer",children:["Ask about a workflow ",(0,n.jsx)(u,{})]})]}),(0,n.jsxs)("div",{className:"setup-preview-cards",children:[(0,n.jsxs)("div",{className:"setup-preview-project",children:[(0,n.jsx)("span",{children:"Project discovery"}),(0,n.jsx)("strong",{children:(null==(e=P[0])?void 0:e.name)||"Connect your project"}),(0,n.jsx)("p",{children:P[0]?"".concat(P[0].tools," detected resource").concat(1===P[0].tools?"":"s"):"Your workflows will appear here."})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:"Test results"}),(0,n.jsx)("strong",{children:"No results in this preview"}),(0,n.jsx)("p",{children:"Review what each test recorded."})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:"Test readiness"}),(0,n.jsx)("strong",{children:P.length?"Review dependencies":"Start with discovery"}),(0,n.jsx)("p",{children:"Prepare inputs and expected outcomes."})]})]})]}),(0,n.jsx)("p",{className:"setup-preview-caption",children:2===g?P.length?"Project found. You can start reviewing workflows.":_?"Your project appears here after its first sync.":"Connect your own project when you’re ready.":"A workspace that feels like yours."})]})]}),(0,n.jsxs)("footer",{className:"onboarding-footer",children:[(0,n.jsxs)("span",{children:[g+1," of 3"]}),(0,n.jsx)("span",{children:"Preferences save to this browser."})]})]})]})}},6184:()=>{},8864:(e,s,t)=>{"use strict";function n(e){return e>=5&&e<12?"morning":e>=12&&e<17?"afternoon":"evening"}t.d(s,{K:()=>a,w:()=>n});let a={morning:"Morning \xb7 sunrise over the bay",afternoon:"Afternoon \xb7 sunny Golden Gate",evening:"Evening \xb7 moonlit coast"}},9010:()=>{},9759:(e,s,t)=>{Promise.resolve().then(t.bind(t,5257))}},e=>{e.O(0,[3935,4295,7441,6787,8441,1255,7358],()=>e(e.s=9759)),_N_E=e.O()}]);