agenttwin 0.3.16 → 0.3.18

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 (84) hide show
  1. package/README.md +22 -4
  2. package/dist/cli.js +32 -14226
  3. package/dist/dashboard/assets/icons/docs/claude.png +0 -0
  4. package/dist/dashboard/assets/icons/docs/cursor.svg +1 -0
  5. package/dist/dashboard/assets/icons/docs/mcp.png +0 -0
  6. package/dist/dashboard/assets/icons/docs/sources.json +22 -0
  7. package/dist/dashboard/assets/icons/docs/vscode.png +0 -0
  8. package/dist/dashboard/assets/next/static/EvU7zdQimTNRzxI3sTw-q/_buildManifest.js +1 -0
  9. package/dist/dashboard/assets/next/static/chunks/0e5ce63c-707674e8817dc2e1.js +1 -0
  10. package/dist/dashboard/assets/next/static/chunks/1018.4871a8dd0f112c38.js +1 -0
  11. package/dist/dashboard/assets/next/static/chunks/{1482.e664aba77631265d.js → 1482.c28f7cd0f92885c1.js} +1 -1
  12. package/dist/dashboard/assets/next/static/chunks/2743-a0efd6f4aeb11cc5.js +1 -0
  13. package/dist/dashboard/assets/next/static/chunks/5258-3d0060b41be9ad97.js +1 -0
  14. package/dist/dashboard/assets/next/static/chunks/5531-fde254dbd21c3153.js +1 -0
  15. package/dist/dashboard/assets/next/static/chunks/app/_not-found/{page-43db8aef3fa81958.js → page-4fac636e5cfc0494.js} +1 -1
  16. package/dist/dashboard/assets/next/static/chunks/app/about/{page-3f5dbcdbf95bb2fc.js → page-bbf125ee6ef16d17.js} +1 -1
  17. package/dist/dashboard/assets/next/static/chunks/app/account/password/{page-c2ce3c796c817ca1.js → page-d1baf10bff8f328c.js} +1 -1
  18. package/dist/dashboard/assets/next/static/chunks/app/api-policy/{page-3f5dbcdbf95bb2fc.js → page-bbf125ee6ef16d17.js} +1 -1
  19. package/dist/dashboard/assets/next/static/chunks/app/auth/{page-3f5dbcdbf95bb2fc.js → page-bbf125ee6ef16d17.js} +1 -1
  20. package/dist/dashboard/assets/next/static/chunks/app/blog/layout-434c5265a09af3b9.js +1 -0
  21. package/dist/dashboard/assets/next/static/chunks/app/compare/{page-3f5dbcdbf95bb2fc.js → page-bbf125ee6ef16d17.js} +1 -1
  22. package/dist/dashboard/assets/next/static/chunks/app/contact/page-bbf125ee6ef16d17.js +1 -0
  23. package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-1632d9fae63c9cd6.js +1 -0
  24. package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-6894a8a3e5ba859a.js +1 -0
  25. package/dist/dashboard/assets/next/static/chunks/app/demo/page-c1267bf857a3fca8.js +1 -0
  26. package/dist/dashboard/assets/next/static/chunks/app/developers/page-bbf125ee6ef16d17.js +1 -0
  27. package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-5cec0850a8226e15.js +1 -0
  28. package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-f21347075a09d6d4.js +1 -0
  29. package/dist/dashboard/assets/next/static/chunks/app/guides/page-bbf125ee6ef16d17.js +1 -0
  30. package/dist/dashboard/assets/next/static/chunks/app/{layout-993a96283a3ceb07.js → layout-b924dc5a0d35506b.js} +1 -1
  31. package/dist/dashboard/assets/next/static/chunks/app/login/page-65179e6b5aba8504.js +1 -0
  32. package/dist/dashboard/assets/next/static/chunks/app/onboarding/{page-bc480c9258e5cc4d.js → page-8eb71ef88bdd9396.js} +1 -1
  33. package/dist/dashboard/assets/next/static/chunks/app/page-648a42537e0af8ae.js +1 -0
  34. package/dist/dashboard/assets/next/static/chunks/app/pricing/{page-40f352fe5093a0ff.js → page-5970ed83a07bed67.js} +1 -1
  35. package/dist/dashboard/assets/next/static/chunks/app/privacy/page-bbf125ee6ef16d17.js +1 -0
  36. package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-bbf125ee6ef16d17.js +1 -0
  37. package/dist/dashboard/assets/next/static/chunks/app/signup/page-65179e6b5aba8504.js +1 -0
  38. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-bf73782281ca3196.js +1 -0
  39. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-dcce64b2a778b11d.js +1 -0
  40. package/dist/dashboard/assets/next/static/chunks/app/v2/layout-c9122f78d0d3c100.js +1 -0
  41. package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-5b17dafd5bf2fe36.js +1 -0
  42. package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/{page-f04c0b236abaead3.js → page-d20759b1be50643f.js} +1 -1
  43. package/dist/dashboard/assets/next/static/chunks/app/v2/page-fee1ecf1d39d4204.js +1 -0
  44. package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-5b17dafd5bf2fe36.js +1 -0
  45. package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-bbf125ee6ef16d17.js +1 -0
  46. package/dist/dashboard/assets/next/static/chunks/{main-app-1ec13ceef4a34729.js → main-app-9030513b2ea7c6ba.js} +1 -1
  47. package/dist/dashboard/assets/next/static/chunks/webpack-f293c9680eabd154.js +1 -0
  48. package/dist/dashboard/assets/next/static/css/0856ee8c880d8b92.css +1 -0
  49. package/dist/dashboard/assets/next/static/css/{ced6baae4dc4cbab.css → 14eee9340ebc5f8b.css} +1 -1
  50. package/dist/dashboard/assets/next/static/css/542f5281c59de6ae.css +1 -0
  51. package/dist/dashboard/assets/next/static/css/d131a6499fe6cf19.css +3 -0
  52. package/dist/dashboard/assets/next/static/css/{d35115cc1039cc68.css → d2577d0d9837850e.css} +1 -1
  53. package/dist/dashboard/index.html +2 -2
  54. package/dist/engine.js +14405 -0
  55. package/package.json +3 -3
  56. package/dist/dashboard/assets/next/static/chunks/182-71d400a5d9e02879.js +0 -1
  57. package/dist/dashboard/assets/next/static/chunks/3050-bac69e3c6734beee.js +0 -1
  58. package/dist/dashboard/assets/next/static/chunks/8093-90b99184c0a57c57.js +0 -1
  59. package/dist/dashboard/assets/next/static/chunks/9376.42da54b90ff9f2d9.js +0 -1
  60. package/dist/dashboard/assets/next/static/chunks/app/blog/layout-563d8763d65d66b5.js +0 -1
  61. package/dist/dashboard/assets/next/static/chunks/app/contact/page-3f5dbcdbf95bb2fc.js +0 -1
  62. package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-1afe915ed22ac5ed.js +0 -1
  63. package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-562ef289e26a892c.js +0 -1
  64. package/dist/dashboard/assets/next/static/chunks/app/demo/page-4dc63755e0013e7c.js +0 -1
  65. package/dist/dashboard/assets/next/static/chunks/app/developers/page-3f5dbcdbf95bb2fc.js +0 -1
  66. package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-77e04e31450c1d88.js +0 -1
  67. package/dist/dashboard/assets/next/static/chunks/app/guides/page-3f5dbcdbf95bb2fc.js +0 -1
  68. package/dist/dashboard/assets/next/static/chunks/app/login/page-d6d4276397724d29.js +0 -1
  69. package/dist/dashboard/assets/next/static/chunks/app/page-34509f07c4d57e27.js +0 -1
  70. package/dist/dashboard/assets/next/static/chunks/app/privacy/page-3f5dbcdbf95bb2fc.js +0 -1
  71. package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-3f5dbcdbf95bb2fc.js +0 -1
  72. package/dist/dashboard/assets/next/static/chunks/app/signup/page-d6d4276397724d29.js +0 -1
  73. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-a5cf565e017886d3.js +0 -1
  74. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-8bb7ad38709ca7c7.js +0 -1
  75. package/dist/dashboard/assets/next/static/chunks/app/v2/layout-abbd9f3b8811f559.js +0 -1
  76. package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-4f4a342a4c28f9de.js +0 -1
  77. package/dist/dashboard/assets/next/static/chunks/app/v2/page-3905446ec0206fb5.js +0 -1
  78. package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-4f4a342a4c28f9de.js +0 -1
  79. package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-3f5dbcdbf95bb2fc.js +0 -1
  80. package/dist/dashboard/assets/next/static/chunks/webpack-1e0180645d7be885.js +0 -1
  81. package/dist/dashboard/assets/next/static/css/15b28a76469ea7e5.css +0 -3
  82. package/dist/dashboard/assets/next/static/css/6695e0f2ae2e5aaf.css +0 -1
  83. package/dist/dashboard/assets/next/static/othTO5Jx9zt3NjqmMLjYI/_buildManifest.js +0 -1
  84. /package/dist/dashboard/assets/next/static/{othTO5Jx9zt3NjqmMLjYI → EvU7zdQimTNRzxI3sTw-q}/_ssgManifest.js +0 -0
@@ -1 +1 @@
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.png",afternoon:"golden-gate-afternoon.png",evening:"moonlit-coast.png"},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,O]=(0,n.useState)(""),[T,L]=(0,n.useState)(""),[P,R]=(0,n.useState)(c),[W,z]=(0,n.useState)(!1),F=(e,t)=>R(s=>({...s,[e]:t})),[J,Y]=(0,n.useState)(""),[D,M]=(0,n.useState)(!1),[B,U]=(0,n.useState)(!1),[_,q]=(0,n.useState)(!1),[H,K]=(0,n.useState)(""),[$,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:T.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(P.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:T,...o(P),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||D||$||W||await ed(!0)&&(el(),location.assign(X.length?"/dashboard/#environment":"/dashboard/#home"))}async function ep(e){if(e.preventDefault(),!D&&!B&&t){M(!0),K("");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(""),K("Terminal connected. Init is syncing your project; this page will update automatically.")}catch(e){K(e instanceof Error?e.message:"Could not connect your terminal.")}finally{M(!1)}}}async function eh(){if(!$&&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.":"Keep init running until it says Setup complete. Discovery syncs here automatically; no terminal menu is required.")}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),O(a.name),L(a.workspace),R(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){O(e.name),L(e.workspace),R(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:T,context:o(P),step:f,furthest:k,expires:Date.now()+6048e5}))}catch(e){er(!0)}},[t,E,T,P,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:T||"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||D||$||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=>O(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:P.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:T,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:P.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:P.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 init",(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||D})]}),(0,a.jsx)("button",{type:"submit",className:"setup-secondary",disabled:!t||D,children:D?"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 init 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||$,children:[$?"Checking…":X.length?"Check again":"Refresh connection",!$&&(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||$||D||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 init."})]}),(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:T||"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 init"})]}),(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()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9566],{6184:()=>{},7886:(e,t,s)=>{Promise.resolve().then(s.bind(s,8109))},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.png",afternoon:"golden-gate-afternoon.png",evening:"moonlit-coast.png"},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,O]=(0,n.useState)(""),[T,L]=(0,n.useState)(""),[P,R]=(0,n.useState)(c),[W,z]=(0,n.useState)(!1),F=(e,t)=>R(s=>({...s,[e]:t})),[J,Y]=(0,n.useState)(""),[D,M]=(0,n.useState)(!1),[B,U]=(0,n.useState)(!1),[_,q]=(0,n.useState)(!1),[H,K]=(0,n.useState)(""),[$,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:T.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(P.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:T,...o(P),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||D||$||W||await ed(!0)&&(el(),location.assign(X.length?"/dashboard/#environment":"/dashboard/#home"))}async function ep(e){if(e.preventDefault(),!D&&!B&&t){M(!0),K("");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(""),K("Terminal connected. Init is syncing your project; this page will update automatically.")}catch(e){K(e instanceof Error?e.message:"Could not connect your terminal.")}finally{M(!1)}}}async function eh(){if(!$&&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.":"Keep init running until it says Setup complete. Discovery syncs here automatically; no terminal menu is required.")}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),O(a.name),L(a.workspace),R(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){O(e.name),L(e.workspace),R(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:T,context:o(P),step:f,furthest:k,expires:Date.now()+6048e5}))}catch(e){er(!0)}},[t,E,T,P,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:T||"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||D||$||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=>O(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:P.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:T,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:P.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:P.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 init",(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||D})]}),(0,a.jsx)("button",{type:"submit",className:"setup-secondary",disabled:!t||D,children:D?"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 init 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||$,children:[$?"Checking…":X.length?"Check again":"Refresh connection",!$&&(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||$||D||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 init."})]}),(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:T||"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 init"})]}),(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=7886)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{100:(e,t,r)=>{Promise.resolve().then(r.bind(r,3417)),Promise.resolve().then(r.bind(r,7748)),Promise.resolve().then(r.bind(r,8389)),Promise.resolve().then(r.bind(r,7189)),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.bind(r,7815)),Promise.resolve().then(r.bind(r,3944))},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}},3417:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var a=r(5155),n=r(2115);function i(e){let{children:t,kind:i}=e,s=(0,n.useRef)(null),l=(0,n.useRef)(null),[o,c]=(0,n.useState)(null);return(0,n.useLayoutEffect)(()=>{if(o&&l.current&&document.activeElement===document.body){var e;null==(e=document.getElementById(l.current))||e.focus({preventScroll:!0})}l.current=null},[o]),(0,n.useEffect)(()=>{let e=s.current;if(!e)return;let t=!0,a=!1,n=()=>{a||(a=!0,("worlds"===i?r.e(1482).then(r.bind(r,1482)):r.e(3056).then(r.bind(r,3056))).then(r=>{if(t){var a;l.current=e.contains(document.activeElement)&&(null==(a=document.activeElement)?void 0:a.id)||null,c(()=>r.default)}}).catch(()=>{a=!1}))},o=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&n()},{rootMargin:"300px"});return o.observe(e),e.addEventListener("focusin",n),e.addEventListener("pointerover",n),()=>{t=!1,o.disconnect(),e.removeEventListener("focusin",n),e.removeEventListener("pointerover",n)}},[i]),(0,a.jsx)("div",{ref:s,"data-deferred-ready":!!o,children:o?(0,a.jsx)(o,{}):t})}},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}},7189:(e,t,r)=>{"use strict";r.d(t,{default:()=>l});var a=r(5155),n=r(2115);async function i(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 s(){let[e,t]=(0,n.useState)("idle"),r=(0,n.useRef)(!1),s=(0,n.useRef)(void 0),l=(0,n.useCallback)(async e=>{let a=e.currentTarget;if(!r.current){r.current=!0,clearTimeout(s.current),t("idle");try{await i(a.querySelector("code").textContent.trim()),t("success"),s.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 init",title:"Copy command","data-copy-state":"idle"===e?void 0:e,onClick:l,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 init"}),(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 l(){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)"),s=(e,t)=>{let r=document.createElement("canvas");return r.width=r.height=e,t(r.getContext("2d"),e),r},l=s(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)}),o=s(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)}),c=0,d=0,h=0,u=!0,m=0,p=[],v=e=>{for(let t of(n.clearRect(0,0,c,d),n.globalCompositeOperation="lighter",p)){let r=i.matches?.6:.5+.5*Math.sin(e*t.speed+t.phase),a=r*r*(3-2*r),s=t.opacity*(.55+.45*a);if(t.bright){let e=18+26*a;n.globalAlpha=Math.min(1,1.2*s),n.drawImage(l,t.x-e/2,t.y-e/2,e,e);let r=20+32*a;n.globalAlpha=.85*s,n.drawImage(o,t.x-r/2,t.y-r/2,r,r)}else if(t.size>1.3){let e=10+10*a;n.globalAlpha=s,n.drawImage(l,t.x-e/2,t.y-e/2,e,e)}n.globalAlpha=Math.min(1,1.25*s),n.fillStyle="#fff",n.fillRect(t.x,t.y,t.size,t.size)}n.globalAlpha=1,n.globalCompositeOperation="source-over"},f=()=>{let e=r.getBoundingClientRect();c=e.width,d=e.height;let t=Math.min(devicePixelRatio||1,2);r.width=Math.round(c*t),r.height=Math.round(d*t),n.setTransform(t,0,0,t,0,0),p=[];for(let e=3;e<d;e+=8)for(let t=3;t<c;t+=8){let r=Math.max(0,Math.min(1,(1-Math.hypot(Math.min(t,c-t)/(.48*c),e/(1.3*d)))/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);p.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})}v(0)},x=e=>{e-m>33&&(v(e),m=e),h=requestAnimationFrame(x)},g=a.querySelector("[data-arc]"),b=()=>{if(null==g||g.classList.toggle("is-paused",!u||document.hidden),cancelAnimationFrame(h),i.matches||!u||document.hidden)return void v(0);h=requestAnimationFrame(x)},j=new ResizeObserver(f);j.observe(r);let y=new IntersectionObserver(e=>{u=e[0].isIntersecting,b()});y.observe(a),document.addEventListener("visibilitychange",b);let w=()=>b();return i.addEventListener("change",w),f(),()=>{cancelAnimationFrame(h),j.disconnect(),y.disconnect(),document.removeEventListener("visibilitychange",b),i.removeEventListener("change",w)}},[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",width:700,height:700,alt:""})}),(0,a.jsxs)("h1",{id:"hero-title",children:[(0,a.jsx)("span",{children:"Digital twins to test"})," ",(0,a.jsx)("span",{children:"AI agents."})]}),(0,a.jsxs)("p",{children:["Catch failures unit tests and deployment previews can miss.",(0,a.jsx)("br",{className:"mobile-break"})," Prove how your agents act before the stakes are real."]}),(0,a.jsxs)("div",{className:"actions hero-actions",children:[(0,a.jsxs)("a",{className:"button button-outline",href:"/demo/",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)(s,{})]})]}),(0,a.jsx)("a",{className:"hero-capture",href:"/demo/","aria-label":"Explore the AgentTwin workspace in the interactive demo",children:(0,a.jsxs)("picture",{children:[(0,a.jsx)("source",{media:"(max-width: 600px)",width:390,height:844,srcSet:"assets/img/hero-replica-mobile.webp"}),(0,a.jsx)("img",{src:"assets/img/hero-replica-desktop.webp",width:1360,height:608,alt:"AgentTwin workspace showing connected services, synthetic data, and safe replica settings",fetchPriority:"high",decoding:"async"})]})})]})}},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(""),s=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:s}).replace(/</g,"\\u003c")}}),t]})}},7815:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var a=r(5155),n=r(2115);let i=[{href:"/#product",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 s(){let[e,t]=(0,n.useState)(!1),r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=e=>{var a,n;"Escape"===e.key&&(null==(a=s.current)?void 0:a.querySelector("#navlinks.is-open"))&&(t(!1),null==(n=r.current)||n.focus())},a=e=>{var r;(null==(r=s.current)?void 0:r.contains(e.target))||t(!1)},n=matchMedia("(min-width: 1024px)"),i=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",a),n.addEventListener("change",i),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",a),n.removeEventListener("change",i)}},[]),(0,a.jsxs)("header",{className:"site-header",ref:s,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:[i.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.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",{})]})]})}},8389:(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)(!1);return(0,a.jsxs)("article",{className:"visual-card reveal",children:[(0,a.jsx)("div",{className:"card-visual grid-pattern",children:(0,a.jsxs)("div",{className:"trace-preview".concat(e?" is-failed":""),"aria-live":"polite",children:[(0,a.jsx)("span",{className:"mini-label",children:"Illustrative refund scenario"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"trace-point"}),(0,a.jsxs)("p",{children:["Refund created",(0,a.jsx)("small",{children:"Provider commits the write"})]}),(0,a.jsx)("span",{className:"trace-tag",children:"200"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"trace-point"}),(0,a.jsxs)("p",{children:[e?"Response lost":"Response received",(0,a.jsx)("small",{children:e?"Worker retries the request":"Worker records the result"})]}),(0,a.jsx)("span",{className:"trace-tag",children:e?"TIMEOUT":"OK"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"trace-point"}),(0,a.jsxs)("p",{children:[e?"Two refunds exist":"One refund exists",(0,a.jsx)("small",{children:e?"Illustrative unsafe retry outcome":"Expected final state"})]})]})]})}),(0,a.jsxs)("div",{className:"visual-card-copy",children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Retries with consequences."})," A write can succeed even when its response never arrives."]}),(0,a.jsxs)("button",{className:"text-link",type:"button",onClick:()=>t(!e),children:[e?"Reset the scenario ":"Introduce a timeout ",(0,a.jsx)("span",{"aria-hidden":"true",children:"↗"})]})]})]})}},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)(""),s="python"===e,l=s?"uvx agenttwin init":"npx agenttwin init";async function o(){try{await navigator.clipboard.writeText(l),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":!s,onClick:()=>{t("javascript"),i("")},children:"JavaScript / TypeScript"}),(0,a.jsx)("button",{type:"button","aria-pressed":s,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:l})}),(0,a.jsx)("button",{type:"button",className:"init-copy",onClick:o,"aria-label":"Copy ".concat(l),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||(s?"Requires uv and Node.js 22.12+.":"Requires Node.js 22.12+.")}),(0,a.jsxs)("a",{href:"/docs/quickstart/",children:["Setup guide ",(0,a.jsx)("span",{"aria-hidden":"true",children:"↗"})]})]})]})}}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=100)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6907],{5224:(e,n,a)=>{Promise.resolve().then(a.bind(a,7815)),Promise.resolve().then(a.t.bind(a,5922,23))},5922:()=>{},7815:(e,n,a)=>{"use strict";a.d(n,{default:()=>i});var s=a(5155),r=a(2115);let t=[{href:"/#product",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 i(){let[e,n]=(0,r.useState)(!1),a=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=e=>{var s,r;"Escape"===e.key&&(null==(s=i.current)?void 0:s.querySelector("#navlinks.is-open"))&&(n(!1),null==(r=a.current)||r.focus())},s=e=>{var a;(null==(a=i.current)?void 0:a.contains(e.target))||n(!1)},r=matchMedia("(min-width: 1024px)"),t=()=>n(!1);return document.addEventListener("keydown",e),document.addEventListener("click",s),r.addEventListener("change",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",s),r.removeEventListener("change",t)}},[]),(0,s.jsxs)("header",{className:"site-header",ref:i,children:[(0,s.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,s.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,s.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[t.map(e=>(0,s.jsx)("a",{href:e.href,onClick:()=>n(!1),children:e.label},e.href)),(0,s.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>n(!1),children:"Open dashboard"})]}),(0,s.jsxs)("div",{className:"nav-actions",children:[(0,s.jsx)("a",{href:"/login/",children:"Sign in"}),(0,s.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,s.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,s.jsxs)("button",{className:"menu-toggle",ref:a,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>n(!e),children:[(0,s.jsx)("span",{}),(0,s.jsx)("span",{})]})]})}}},e=>{e.O(0,[7329,8441,1255,7358],()=>e(e.s=5224)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6907],{3384:(e,n,a)=>{Promise.resolve().then(a.bind(a,7815)),Promise.resolve().then(a.t.bind(a,5922,23))},5922:()=>{},7815:(e,n,a)=>{"use strict";a.d(n,{default:()=>i});var s=a(5155),r=a(2115);let t=[{href:"/#product",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 i(){let[e,n]=(0,r.useState)(!1),a=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=e=>{var s,r;"Escape"===e.key&&(null==(s=i.current)?void 0:s.querySelector("#navlinks.is-open"))&&(n(!1),null==(r=a.current)||r.focus())},s=e=>{var a;(null==(a=i.current)?void 0:a.contains(e.target))||n(!1)},r=matchMedia("(min-width: 1024px)"),t=()=>n(!1);return document.addEventListener("keydown",e),document.addEventListener("click",s),r.addEventListener("change",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",s),r.removeEventListener("change",t)}},[]),(0,s.jsxs)("header",{className:"site-header",ref:i,children:[(0,s.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,s.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,s.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[t.map(e=>(0,s.jsx)("a",{href:e.href,onClick:()=>n(!1),children:e.label},e.href)),(0,s.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>n(!1),children:"Open dashboard"})]}),(0,s.jsxs)("div",{className:"nav-actions",children:[(0,s.jsx)("a",{href:"/login/",children:"Sign in"}),(0,s.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,s.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,s.jsxs)("button",{className:"menu-toggle",ref:a,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>n(!e),children:[(0,s.jsx)("span",{}),(0,s.jsx)("span",{})]})]})}}},e=>{e.O(0,[7329,8441,1255,7358],()=>e(e.s=3384)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,2882,3232,6402,7006,7220,8365,9366,9877],{1282:(e,n,a)=>{Promise.resolve().then(a.bind(a,7815))},7815:(e,n,a)=>{"use strict";a.d(n,{default:()=>i});var s=a(5155),r=a(2115);let t=[{href:"/#product",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 i(){let[e,n]=(0,r.useState)(!1),a=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=e=>{var s,r;"Escape"===e.key&&(null==(s=i.current)?void 0:s.querySelector("#navlinks.is-open"))&&(n(!1),null==(r=a.current)||r.focus())},s=e=>{var a;(null==(a=i.current)?void 0:a.contains(e.target))||n(!1)},r=matchMedia("(min-width: 1024px)"),t=()=>n(!1);return document.addEventListener("keydown",e),document.addEventListener("click",s),r.addEventListener("change",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",s),r.removeEventListener("change",t)}},[]),(0,s.jsxs)("header",{className:"site-header",ref:i,children:[(0,s.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,s.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,s.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[t.map(e=>(0,s.jsx)("a",{href:e.href,onClick:()=>n(!1),children:e.label},e.href)),(0,s.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>n(!1),children:"Open dashboard"})]}),(0,s.jsxs)("div",{className:"nav-actions",children:[(0,s.jsx)("a",{href:"/login/",children:"Sign in"}),(0,s.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,s.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,s.jsxs)("button",{className:"menu-toggle",ref:a,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>n(!e),children:[(0,s.jsx)("span",{}),(0,s.jsx)("span",{})]})]})}}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=1282)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,2882,3232,6402,7006,7220,8365,9366,9877],{1282:(e,n,a)=>{Promise.resolve().then(a.bind(a,7815))},7815:(e,n,a)=>{"use strict";a.d(n,{default:()=>i});var s=a(5155),r=a(2115);let t=[{href:"/#product",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 i(){let[e,n]=(0,r.useState)(!1),a=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=e=>{var s,r;"Escape"===e.key&&(null==(s=i.current)?void 0:s.querySelector("#navlinks.is-open"))&&(n(!1),null==(r=a.current)||r.focus())},s=e=>{var a;(null==(a=i.current)?void 0:a.contains(e.target))||n(!1)},r=matchMedia("(min-width: 1024px)"),t=()=>n(!1);return document.addEventListener("keydown",e),document.addEventListener("click",s),r.addEventListener("change",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",s),r.removeEventListener("change",t)}},[]),(0,s.jsxs)("header",{className:"site-header",ref:i,children:[(0,s.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,s.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,s.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[t.map(e=>(0,s.jsx)("a",{href:e.href,onClick:()=>n(!1),children:e.label},e.href)),(0,s.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>n(!1),children:"Open dashboard"})]}),(0,s.jsxs)("div",{className:"nav-actions",children:[(0,s.jsx)("a",{href:"/login/",children:"Sign in"}),(0,s.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,s.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,s.jsxs)("button",{className:"menu-toggle",ref:a,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>n(!e),children:[(0,s.jsx)("span",{}),(0,s.jsx)("span",{})]})]})}}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=1282)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[879,4520],{417:(e,s,_)=>{Promise.resolve().then(_.bind(_,6787))}},e=>{e.O(0,[3935,6787,8441,1255,7358],()=>e(e.s=417)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2723],{274:(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,8348,23)),Promise.resolve().then(n.t.bind(n,975,23)),Promise.resolve().then(n.t.bind(n,4509,23))},657:()=>{},975:()=>{},3677:()=>{},4509:()=>{},4619:()=>{},4938:()=>{},5798:()=>{},8348:()=>{}},e=>{e.O(0,[1133,9477,2275,7206,8441,1255,7358],()=>e(e.s=274)),_N_E=e.O()}]);