agenttwin 0.3.42 → 0.3.43

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 (92) hide show
  1. package/dist/api.js +3643 -1491
  2. package/dist/dashboard/assets/next/static/chunks/app/_not-found/page-cbf0a4f7672335b8.js +1 -0
  3. package/dist/dashboard/assets/next/static/chunks/app/about/page-6e8e140ea96e4e5e.js +1 -0
  4. package/dist/dashboard/assets/next/static/chunks/app/account/password/page-124ac1de3af2d687.js +1 -0
  5. package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-35fd8f4fe3b2af15.js +1 -0
  6. package/dist/dashboard/assets/next/static/chunks/app/auth/page-35fd8f4fe3b2af15.js +1 -0
  7. package/dist/dashboard/assets/next/static/chunks/app/blog/{layout-e74b3f054cea722b.js → layout-89f2942330b48007.js} +1 -1
  8. package/dist/dashboard/assets/next/static/chunks/app/compare/page-35fd8f4fe3b2af15.js +1 -0
  9. package/dist/dashboard/assets/next/static/chunks/app/contact/page-35fd8f4fe3b2af15.js +1 -0
  10. package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-0262e35e50882ab7.js +1 -0
  11. package/dist/dashboard/assets/next/static/chunks/app/dashboard/{page-29686920d4a10c85.js → page-943e07dc51384546.js} +1 -1
  12. package/dist/dashboard/assets/next/static/chunks/app/demo/page-9e977d1d883f7386.js +1 -0
  13. package/dist/dashboard/assets/next/static/chunks/app/developers/page-35fd8f4fe3b2af15.js +1 -0
  14. package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-aea3b669bcb45491.js +1 -0
  15. package/dist/dashboard/assets/next/static/chunks/app/dpa/page-35fd8f4fe3b2af15.js +1 -0
  16. package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-ce47c76b4160b3c9.js +1 -0
  17. package/dist/dashboard/assets/next/static/chunks/app/guides/page-35fd8f4fe3b2af15.js +1 -0
  18. package/dist/dashboard/assets/next/static/chunks/app/{layout-a5f6bc8dd2520b40.js → layout-bc1ef1623bd1dca6.js} +1 -1
  19. package/dist/dashboard/assets/next/static/chunks/app/login/page-9a6e88fc56812fbb.js +1 -0
  20. package/dist/dashboard/assets/next/static/chunks/app/not-found-35fd8f4fe3b2af15.js +1 -0
  21. package/dist/dashboard/assets/next/static/chunks/app/onboarding/{page-3ea1e6c4c169f8f7.js → page-9c1bd81087260f4f.js} +1 -1
  22. package/dist/dashboard/assets/next/static/chunks/app/page-7849ed5b53ffb2d1.js +1 -0
  23. package/dist/dashboard/assets/next/static/chunks/app/pricing/page-2e2f53160e686d9e.js +1 -0
  24. package/dist/dashboard/assets/next/static/chunks/app/privacy/page-35fd8f4fe3b2af15.js +1 -0
  25. package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-35fd8f4fe3b2af15.js +1 -0
  26. package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-35fd8f4fe3b2af15.js +1 -0
  27. package/dist/dashboard/assets/next/static/chunks/app/security/page-35fd8f4fe3b2af15.js +1 -0
  28. package/dist/dashboard/assets/next/static/chunks/app/signup/page-9a6e88fc56812fbb.js +1 -0
  29. package/dist/dashboard/assets/next/static/chunks/app/status/{page-60e19a4df9ad208d.js → page-d075703822281526.js} +1 -1
  30. package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-35fd8f4fe3b2af15.js +1 -0
  31. package/dist/dashboard/assets/next/static/chunks/app/terms/page-35fd8f4fe3b2af15.js +1 -0
  32. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-22d3ae1def1dd220.js +1 -0
  33. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/{page-a960ae1dc5ac6e50.js → page-1b768bed2b8a2747.js} +1 -1
  34. package/dist/dashboard/assets/next/static/chunks/app/v2/layout-38b897124c7f6223.js +1 -0
  35. package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-91f11cbfe46c4c25.js +1 -0
  36. package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-64dd3f1b59afe38a.js +1 -0
  37. package/dist/dashboard/assets/next/static/chunks/app/v2/page-9191727c63b6ce2e.js +1 -0
  38. package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-91f11cbfe46c4c25.js +1 -0
  39. package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-35fd8f4fe3b2af15.js +1 -0
  40. package/dist/dashboard/assets/next/static/chunks/{main-app-87e6f191ff894764.js → main-app-85f4e8de9868bedc.js} +1 -1
  41. package/dist/dashboard/assets/next/static/chunks/{webpack-0c96245bd731f5b7.js → webpack-382af3529e0fbd25.js} +1 -1
  42. package/dist/dashboard/index.html +2 -2
  43. package/dist/discover-worker.js +1 -1
  44. package/dist/engine.js +4465 -2115
  45. package/dist/gateway.js +3641 -1489
  46. package/dist/twins/catalog.json +4 -4
  47. package/dist/twins/engine/v2/agenttwin-clock.mjs +1 -1
  48. package/dist/twins/engine/v2/chunks/{IVRB2YOK.mjs → XWRFNZ2H.mjs} +4 -4
  49. package/dist/twins/engine/v2/volter_world-core.mjs +1 -1
  50. package/dist/twins/engine/v3/agenttwin-clock.mjs +1 -1
  51. package/dist/twins/engine/v3/chunks/{F72NFZTW.mjs → 7PBB7HOX.mjs} +1 -1
  52. package/dist/twins/engine/v3/chunks/UEIYILLP.mjs +11 -0
  53. package/dist/twins/engine/v3/volter_world-core.mjs +1 -1
  54. package/dist/twins/engine/v3/volter_world-ui.mjs +1 -1
  55. package/dist/worker.js +5131 -4546
  56. package/dist/world-host.js +6541 -5345
  57. package/package.json +1 -1
  58. package/dist/dashboard/assets/next/static/chunks/app/_not-found/page-99068bea25396c07.js +0 -1
  59. package/dist/dashboard/assets/next/static/chunks/app/about/page-e0162fbc9ea8f526.js +0 -1
  60. package/dist/dashboard/assets/next/static/chunks/app/account/password/page-87426eee9ff89b47.js +0 -1
  61. package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-59f706ed0c769951.js +0 -1
  62. package/dist/dashboard/assets/next/static/chunks/app/auth/page-59f706ed0c769951.js +0 -1
  63. package/dist/dashboard/assets/next/static/chunks/app/compare/page-59f706ed0c769951.js +0 -1
  64. package/dist/dashboard/assets/next/static/chunks/app/contact/page-59f706ed0c769951.js +0 -1
  65. package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-01d0e188ef39b91d.js +0 -1
  66. package/dist/dashboard/assets/next/static/chunks/app/demo/page-a45480cc30d7977f.js +0 -1
  67. package/dist/dashboard/assets/next/static/chunks/app/developers/page-59f706ed0c769951.js +0 -1
  68. package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-ce5eacfa8a31b499.js +0 -1
  69. package/dist/dashboard/assets/next/static/chunks/app/dpa/page-59f706ed0c769951.js +0 -1
  70. package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-d2b196defc0da48d.js +0 -1
  71. package/dist/dashboard/assets/next/static/chunks/app/guides/page-59f706ed0c769951.js +0 -1
  72. package/dist/dashboard/assets/next/static/chunks/app/login/page-d1b57c1494a2d7ab.js +0 -1
  73. package/dist/dashboard/assets/next/static/chunks/app/not-found-59f706ed0c769951.js +0 -1
  74. package/dist/dashboard/assets/next/static/chunks/app/page-4221b5faf18851c6.js +0 -1
  75. package/dist/dashboard/assets/next/static/chunks/app/pricing/page-0ff1007ece01b086.js +0 -1
  76. package/dist/dashboard/assets/next/static/chunks/app/privacy/page-59f706ed0c769951.js +0 -1
  77. package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-59f706ed0c769951.js +0 -1
  78. package/dist/dashboard/assets/next/static/chunks/app/scoreboard/page-59f706ed0c769951.js +0 -1
  79. package/dist/dashboard/assets/next/static/chunks/app/security/page-59f706ed0c769951.js +0 -1
  80. package/dist/dashboard/assets/next/static/chunks/app/signup/page-d1b57c1494a2d7ab.js +0 -1
  81. package/dist/dashboard/assets/next/static/chunks/app/subprocessors/page-59f706ed0c769951.js +0 -1
  82. package/dist/dashboard/assets/next/static/chunks/app/terms/page-59f706ed0c769951.js +0 -1
  83. package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-3b8cd4f1799185eb.js +0 -1
  84. package/dist/dashboard/assets/next/static/chunks/app/v2/layout-545711057a05740e.js +0 -1
  85. package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-e165b48f179946e0.js +0 -1
  86. package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-8f3a34b3fab5a5ce.js +0 -1
  87. package/dist/dashboard/assets/next/static/chunks/app/v2/page-ee9cc48281b2d5cf.js +0 -1
  88. package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-e165b48f179946e0.js +0 -1
  89. package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-59f706ed0c769951.js +0 -1
  90. package/dist/twins/engine/v3/chunks/7D6PDVOF.mjs +0 -11
  91. /package/dist/dashboard/assets/next/static/{0c5Jl9bTubWj2XMQXJ8Nb → sxtodXehxQTT0-7MaA4p7}/_buildManifest.js +0 -0
  92. /package/dist/dashboard/assets/next/static/{0c5Jl9bTubWj2XMQXJ8Nb → sxtodXehxQTT0-7MaA4p7}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8512],{4659:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,6496,23))},6496:()=>{}},e=>{e.O(0,[9487,8441,1255,7358],()=>e(e.s=4659)),_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)},5259:(e,s,u)=>{Promise.resolve().then(u.bind(u,1070))}},e=>{e.O(0,[3935,6787,8441,1255,7358],()=>e(e.s=5259)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4333],{956:(e,s,t)=>{Promise.resolve().then(t.bind(t,5257))},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:()=>{}},e=>{e.O(0,[3935,4295,7441,6787,8441,1255,7358],()=>e(e.s=956)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3031],{867:(e,t,n)=>{Promise.resolve().then(n.bind(n,7729)),Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765)),Promise.resolve().then(n.t.bind(n,1210,23))},1210:()=>{},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"}},7729:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(5155),i=n(2115),s=n(9688);async function a(e){var t;if(null==(t=navigator.clipboard)?void 0:t.writeText)try{await navigator.clipboard.writeText(e);return}catch(e){}let n=document.createElement("textarea");n.value=e,n.readOnly=!0,n.tabIndex=-1,n.style.cssText="position:fixed;top:0;left:0;opacity:0;pointer-events:none",document.body.append(n),n.select();try{if(!document.execCommand("copy"))throw Error("Copy unavailable")}finally{n.remove()}}function o(){let[e,t]=(0,i.useState)("idle"),n=(0,i.useRef)(!1),s=(0,i.useRef)(void 0);(0,i.useEffect)(()=>()=>clearTimeout(s.current),[]);let o=(0,i.useCallback)(async e=>{let r=e.currentTarget;if(!n.current){n.current=!0,clearTimeout(s.current),t("idle");try{await a(r.querySelector("code").textContent.trim()),t("success"),s.current=setTimeout(()=>t("idle"),3e3)}catch(e){t("error")}finally{n.current=!1}}},[]);return(0,r.jsxs)("div",{className:"command-action",children:[(0,r.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,r.jsxs)("span",{className:"pearl-spark","aria-hidden":"true",children:[(0,r.jsx)("span",{children:"✧"}),(0,r.jsx)("span",{children:"✦"})]}),(0,r.jsx)("code",{children:"npx agenttwin"}),(0,r.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,r.jsx)("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),(0,r.jsx)("path",{d:"M16 8V4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h4"})]}),(0,r.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,r.jsx)("path",{d:"m5 12 4 4L19 6"})})]}),(0,r.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 c(){return(0,r.jsxs)("section",{className:"hero scenic-hero","aria-labelledby":"hero-title",children:[(0,r.jsx)(s.A,{}),(0,r.jsxs)("div",{className:"hero-content",children:[(0,r.jsx)("p",{className:"scenic-eyebrow",children:"A safe test world for your agent"}),(0,r.jsxs)("h1",{id:"hero-title",children:["Test production conditions.",(0,r.jsx)("br",{})," Find what breaks before you ship."]}),(0,r.jsxs)("p",{children:["Give your application or AI agent a safe replica.",(0,r.jsx)("br",{className:"mobile-break"})," Run the workflow, introduce failures, and inspect the result."]}),(0,r.jsxs)("div",{className:"actions hero-actions",children:[(0,r.jsxs)("a",{className:"button button-white",href:"/v2/signup/",children:["Get started ",(0,r.jsx)("span",{"aria-hidden":"true",children:"→"})]}),(0,r.jsxs)("a",{className:"button button-outline",href:"/v2/demo/",children:["Explore the demo ",(0,r.jsx)("span",{"aria-hidden":"true",children:"↗"})]}),(0,r.jsx)(o,{})]})]}),(0,r.jsxs)("div",{className:"scenic-product-preview","aria-label":"Workspace preview",children:[(0,r.jsxs)("aside",{"aria-hidden":"true",children:[(0,r.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"22",height:"22",alt:""}),(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"m4 10 8-7 8 7M6 9v11h12V9"})}),(0,r.jsx)("svg",{viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"m3 8 9-5 9 5-9 5-9-5Zm0 5 9 5 9-5M3 18l9 5 9-5"})}),(0,r.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{cx:"6",cy:"5",r:"2"}),(0,r.jsx)("circle",{cx:"18",cy:"5",r:"2"}),(0,r.jsx)("circle",{cx:"6",cy:"19",r:"2"}),(0,r.jsx)("path",{d:"M6 7v10M18 7v3a4 4 0 0 1-4 4H6"})]}),(0,r.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"9"}),(0,r.jsx)("path",{d:"M12 7v5l3 2"})]}),(0,r.jsxs)("svg",{className:"preview-rail-bottom",viewBox:"0 0 24 24",children:[(0,r.jsx)("path",{d:"M4 7h16M4 17h16"}),(0,r.jsx)("circle",{cx:"9",cy:"7",r:"3"}),(0,r.jsx)("circle",{cx:"15",cy:"17",r:"3"})]})]}),(0,r.jsxs)("div",{className:"scenic-preview-body",children:[(0,r.jsxs)("div",{className:"scenic-preview-header",children:[(0,r.jsxs)("span",{children:["AgentTwin ",(0,r.jsx)("span",{children:"/"})," Your workspace"]}),(0,r.jsx)("span",{children:"Product preview"})]}),(0,r.jsxs)("div",{className:"scenic-preview-greeting",children:[(0,r.jsx)("h2",{children:"What should your agent test?"}),(0,r.jsx)("p",{children:"One place for your project, workflows, and test results."})]}),(0,r.jsxs)("div",{className:"scenic-preview-connect",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("strong",{children:"Start with your project"}),(0,r.jsx)("p",{children:"Discover the resources your workflows depend on."})]}),(0,r.jsxs)("a",{href:"/v2/onboarding/",children:["Connect project ",(0,r.jsx)("span",{"aria-hidden":"true",children:"→"})]})]}),(0,r.jsxs)("div",{className:"scenic-preview-cards",children:[(0,r.jsxs)("article",{children:[(0,r.jsx)("span",{children:"01 / Discover"}),(0,r.jsx)("h3",{children:"Know your environment"}),(0,r.jsx)("p",{children:"Services, tools, and workflow candidates from your repository."})]}),(0,r.jsxs)("article",{children:[(0,r.jsx)("span",{children:"02 / Test"}),(0,r.jsx)("h3",{children:"Follow every outcome"}),(0,r.jsx)("p",{children:"Run receipts and observed side effects, together in your workspace."})]}),(0,r.jsxs)("article",{children:[(0,r.jsx)("span",{children:"03 / Improve"}),(0,r.jsx)("h3",{children:"Keep what you learn"}),(0,r.jsx)("p",{children:"Inspect the result and prepare the next workflow to test."})]})]}),(0,r.jsxs)("a",{className:"scenic-preview-link",href:"/v2/dashboard/#home",children:["Explore the workspace ",(0,r.jsx)("span",{"aria-hidden":"true",children:"↗"})]})]})]})]})}},8765:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(5155),i=n(2115),s=n(1719);function a(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t("light"===document.documentElement.dataset.siteTheme)},[]),(0,r.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,r.jsx)(s.gLX,{className:"site-theme-sun",width:20,height:20,"aria-hidden":"true"}),(0,r.jsx)(s.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 c(){let[e,t]=(0,i.useState)(!1),n=(0,i.useRef)(null),s=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{var r,i;"Escape"===e.key&&(null==(r=s.current)?void 0:r.querySelector("#navlinks.is-open"))&&(t(!1),null==(i=n.current)||i.focus())},r=e=>{var n;(null==(n=s.current)?void 0:n.contains(e.target))||t(!1)},i=matchMedia("(min-width: 1024px)"),a=()=>t(!1);return document.addEventListener("keydown",e),document.addEventListener("click",r),i.addEventListener("change",a),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",r),i.removeEventListener("change",a)}},[]),(0,r.jsxs)("header",{className:"site-header",ref:s,children:[(0,r.jsxs)("a",{className:"brand",href:"/","aria-label":"AgentTwin home",children:[(0,r.jsx)("img",{src:"assets/logo/mark-twin-rings.svg?v=white-rings",alt:"","aria-hidden":"true",width:29,height:29}),"AgentTwin"]}),(0,r.jsxs)("nav",{className:"main-nav".concat(e?" is-open":""),id:"navlinks","aria-label":"Main navigation",children:[o.map(e=>(0,r.jsx)("a",{href:e.href,onClick:()=>t(!1),children:e.label},e.href)),(0,r.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>t(!1),children:"Open dashboard"})]}),(0,r.jsxs)("div",{className:"nav-actions",children:[(0,r.jsx)("a",{href:"/login/",children:"Sign in"}),(0,r.jsxs)("a",{className:"button button-white button-small",href:"/signup/",children:["Get started ",(0,r.jsx)("span",{"aria-hidden":"true",children:"\xbb"})]})]}),(0,r.jsx)(a,{}),(0,r.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,r.jsx)("span",{}),(0,r.jsx)("span",{})]})]})}},8864:(e,t,n)=>{"use strict";function r(e){return e>=5&&e<12?"morning":e>=12&&e<17?"afternoon":"evening"}n.d(t,{K:()=>i,w:()=>r});let i={morning:"Morning \xb7 sunrise over the bay",afternoon:"Afternoon \xb7 sunny Golden Gate",evening:"Evening \xb7 moonlit coast"}},9688:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5155),i=n(2115),s=n(8864);let a={morning:"bay-morning.webp",afternoon:"golden-gate-afternoon.webp",evening:"moonlit-coast.webp"};function o(e){let{workspace:t=!1,fixedScene:n}=e,[o,c]=(0,i.useState)(null!=n?n:"morning"),[l,d]=(0,i.useState)(!1),h=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(n)return void c(e=>e===n?e:n);let e=e=>{var n;if(!t)return;let r={};try{r=JSON.parse(localStorage.getItem("agenttwin:workspace-preferences:v1")||"{}")||{}}catch(e){}let i=null==e||null==(n=e.detail)?void 0:n.scene,a=r.artwork;c(i||("morning"===a||"afternoon"===a||"evening"===a?a:(0,s.w)(new Date().getHours()))),d(!0===r.reduceMotion)};e();let r=setInterval(e,6e4);return window.addEventListener("agenttwin:preferences",e),window.addEventListener("agenttwin:scene",e),window.addEventListener("storage",e),()=>{clearInterval(r),window.removeEventListener("agenttwin:preferences",e),window.removeEventListener("agenttwin:scene",e),window.removeEventListener("storage",e)}},[t,n]),(0,i.useEffect)(()=>{let e=h.current,t=null==e?void 0:e.getContext("2d");if(!e||!t)return;let n=matchMedia("(prefers-reduced-motion: reduce)"),r=new Image,i=document.createElement("canvas"),s=i.getContext("2d"),c=0,d=0,u=0,m=0,v=!1,p=!0,x=[];function g(e){for(let r of(t.clearRect(0,0,u,m),t.font="9px monospace",t.fillStyle="#fff7e5",x))t.globalAlpha=r.alpha*(l||n.matches?.7:.65+.25*Math.sin(e/2300+r.phase)),t.fillText(r.value,r.x,r.y);t.globalAlpha=1}function w(e){e-d>100&&(g(e),d=e),c=requestAnimationFrame(w)}function f(){if(cancelAnimationFrame(c),!v)return;g(0);let t=!l&&!n.matches&&!document.hidden&&p;e.dataset.motion=t?"running":"paused",t&&(c=requestAnimationFrame(w))}function j(){let n=e.getBoundingClientRect();u=n.width,m=n.height;let a=Math.min(devicePixelRatio||1,2);if(e.width=u*a,e.height=m*a,t.setTransform(a,0,0,a,0,0),!v||!s||!u||!m)return;let o=Math.ceil(u/16),c=Math.ceil(m/16);i.width=o,i.height=c;let l=Math.max(o/r.width,c/r.height);s.drawImage(r,(o-r.width*l)/2,(c-r.height*l)/2,r.width*l,r.height*l);let d=s.getImageData(0,0,o,c).data;x=[];for(let e=0;e<c;e++)for(let t=0;t<o;t++){let n=(e*o+t)*4,r=(d[n]+d[n+1]+d[n+2])/765,i=Math.abs(Math.sin(127.1*t+311.7*e));r<.18||i<.38||x.push({x:16*t,y:16*e,value:".:+*"[Math.min(3,Math.floor(4*r))],alpha:.08+.2*r,phase:8*i})}f()}r.onload=()=>{v=!0,j()},r.src="assets/dashboard/"+a[o];let b=new ResizeObserver(j);b.observe(e);let y=new IntersectionObserver(e=>{p=e[0].isIntersecting,f()});return y.observe(e),n.addEventListener("change",f),document.addEventListener("visibilitychange",f),()=>{r.onload=null,cancelAnimationFrame(c),b.disconnect(),y.disconnect(),n.removeEventListener("change",f),document.removeEventListener("visibilitychange",f)}},[o,l]),(0,r.jsxs)("div",{className:"scenic-backdrop","data-scene":o,"aria-hidden":"true",style:{backgroundImage:"url('assets/dashboard/".concat(a[o],"')")},children:[(0,r.jsx)("canvas",{ref:h}),(0,r.jsx)("div",{className:"scenic-shade"})]})}}},e=>{e.O(0,[4123,3981,5105,8441,1255,7358],()=>e(e.s=867)),_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)},5259:(e,s,u)=>{Promise.resolve().then(u.bind(u,1070))}},e=>{e.O(0,[3935,6787,8441,1255,7358],()=>e(e.s=5259)),_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],{1298:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3652,23)),Promise.resolve().then(n.bind(n,8765))},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,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=1298)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7358],{1823:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,7150,23)),Promise.resolve().then(n.t.bind(n,1959,23)),Promise.resolve().then(n.t.bind(n,7989,23)),Promise.resolve().then(n.t.bind(n,3886,23)),Promise.resolve().then(n.t.bind(n,9766,23)),Promise.resolve().then(n.t.bind(n,5278,23)),Promise.resolve().then(n.t.bind(n,8924,23)),Promise.resolve().then(n.t.bind(n,4431,23)),Promise.resolve().then(n.bind(n,622))},9393:()=>{}},e=>{var s=s=>e(e.s=s);e.O(0,[8441,1255],()=>(s(1666),s(1823))),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7358],{6129:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,7150,23)),Promise.resolve().then(n.t.bind(n,1959,23)),Promise.resolve().then(n.t.bind(n,7989,23)),Promise.resolve().then(n.t.bind(n,3886,23)),Promise.resolve().then(n.t.bind(n,9766,23)),Promise.resolve().then(n.t.bind(n,5278,23)),Promise.resolve().then(n.t.bind(n,8924,23)),Promise.resolve().then(n.t.bind(n,4431,23)),Promise.resolve().then(n.bind(n,622))},9393:()=>{}},e=>{var s=s=>e(e.s=s);e.O(0,[8441,1255],()=>(s(1666),s(6129))),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (()=>{"use strict";var e={},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}},i=!0;try{e[o](a,a.exports,r),i=!1}finally{i&&delete t[o]}return a.exports}r.m=e,(()=>{var e=[];r.O=(t,o,n,a)=>{if(o){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[o,n,a];return}for(var u=1/0,i=0;i<e.length;i++){for(var[o,n,a]=e[i],c=!0,d=0;d<o.length;d++)(!1&a||u>=a)&&Object.keys(r.O).every(e=>r.O[e](o[d]))?o.splice(d--,1):(c=!1,a<u&&(u=a));if(c){e.splice(i--,1);var f=n();void 0!==f&&(t=f)}}return t}})(),r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var u=2&n&&o;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(a,i),a}})(),r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>2743===e?"static/chunks/2743-a0efd6f4aeb11cc5.js":"static/chunks/"+(9432===e?"b468fba8":e)+"."+({1018:"4871a8dd0f112c38",4055:"1056568a41510e92",4343:"023a18f52318dbad",6751:"613adb085c9a5b06",8975:"5be81ec8b09e3b45",9013:"0f2be1cc70029afa",9432:"437b212aae4abcf8",9675:"d833ca9b2d89cf8a"})[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="_N_E:";r.l=(o,n,a,i)=>{if(e[o])return void e[o].push(n);if(void 0!==a)for(var u,c,d=document.getElementsByTagName("script"),f=0;f<d.length;f++){var l=d[f];if(l.getAttribute("src")==o||l.getAttribute("data-webpack")==t+a){u=l;break}}u||(c=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,r.nc&&u.setAttribute("nonce",r.nc),u.setAttribute("data-webpack",t+a),u.src=r.tu(o)),e[o]=[n];var s=(t,r)=>{u.onerror=u.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],u.parentNode&&u.parentNode.removeChild(u),n&&n.forEach(e=>e(r)),t)return t(r)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=s.bind(null,u.onerror),u.onload=s.bind(null,u.onload),c&&document.head.appendChild(u)}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("nextjs#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="assets/next/",(()=>{var e={8068:0,4123:0,4203:0,3935:0,7502:0,9832:0,6654:0,4295:0,9681:0,7329:0,3981:0,5868:0,2729:0,7056:0,5097:0,9487:0,1133:0,8249:0,8233:0,7304:0,7638:0,664:0,1371:0,8009:0,7441:0,2275:0,7206:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else if(/^(39(35|81)|4(123|203|295)|66(|5)4|7(056|206|304|329|441|502|638)|8(009|068|233|249)|9(487|681|832)|1133|1371|2275|2729|5097|5868)$/.test(t))e[t]=0;else{var a=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=a);var i=r.p+r.u(t),u=Error();r.l(i,o=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;u.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,n[1](u)}},"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,u,c]=o,d=0;if(i.some(t=>0!==e[t])){for(n in u)r.o(u,n)&&(r.m[n]=u[n]);if(c)var f=c(r)}for(t&&t(o);d<i.length;d++)a=i[d],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(f)},o=self.webpackChunk_N_E=self.webpackChunk_N_E||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r.nc=void 0})();
1
+ (()=>{"use strict";var e={},t={};function r(o){var n=t[o];if(void 0!==n)return n.exports;var a=t[o]={exports:{}},i=!0;try{e[o](a,a.exports,r),i=!1}finally{i&&delete t[o]}return a.exports}r.m=e,(()=>{var e=[];r.O=(t,o,n,a)=>{if(o){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[o,n,a];return}for(var u=1/0,i=0;i<e.length;i++){for(var[o,n,a]=e[i],c=!0,d=0;d<o.length;d++)(!1&a||u>=a)&&Object.keys(r.O).every(e=>r.O[e](o[d]))?o.splice(d--,1):(c=!1,a<u&&(u=a));if(c){e.splice(i--,1);var f=n();void 0!==f&&(t=f)}}return t}})(),r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var u=2&n&&o;"object"==typeof u&&!~e.indexOf(u);u=t(u))Object.getOwnPropertyNames(u).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(a,i),a}})(),r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>2743===e?"static/chunks/2743-a0efd6f4aeb11cc5.js":"static/chunks/"+(9432===e?"b468fba8":e)+"."+({1018:"4871a8dd0f112c38",4055:"1056568a41510e92",4343:"023a18f52318dbad",6751:"613adb085c9a5b06",8975:"5be81ec8b09e3b45",9013:"0f2be1cc70029afa",9432:"437b212aae4abcf8",9675:"d833ca9b2d89cf8a"})[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="_N_E:";r.l=(o,n,a,i)=>{if(e[o])return void e[o].push(n);if(void 0!==a)for(var u,c,d=document.getElementsByTagName("script"),f=0;f<d.length;f++){var l=d[f];if(l.getAttribute("src")==o||l.getAttribute("data-webpack")==t+a){u=l;break}}u||(c=!0,(u=document.createElement("script")).charset="utf-8",u.timeout=120,r.nc&&u.setAttribute("nonce",r.nc),u.setAttribute("data-webpack",t+a),u.src=r.tu(o)),e[o]=[n];var s=(t,r)=>{u.onerror=u.onload=null,clearTimeout(p);var n=e[o];if(delete e[o],u.parentNode&&u.parentNode.removeChild(u),n&&n.forEach(e=>e(r)),t)return t(r)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=s.bind(null,u.onerror),u.onload=s.bind(null,u.onload),c&&document.head.appendChild(u)}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:e=>e},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("nextjs#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="assets/next/",(()=>{var e={8068:0,4123:0,4203:0,3935:0,7502:0,9832:0,7329:0,6654:0,4295:0,9681:0,2729:0,7056:0,3981:0,5868:0,5097:0,1133:0,8249:0,8233:0,7304:0,7638:0,664:0,1371:0,8009:0,9487:0,7441:0,2275:0,7206:0};r.f.j=(t,o)=>{var n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else if(/^(39(35|81)|4(123|203|295)|66(|5)4|7(056|206|304|329|441|502|638)|8(009|068|233|249)|9(487|681|832)|1133|1371|2275|2729|5097|5868)$/.test(t))e[t]=0;else{var a=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=a);var i=r.p+r.u(t),u=Error();r.l(i,o=>{if(r.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;u.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",u.name="ChunkLoadError",u.type=a,u.request=i,n[1](u)}},"chunk-"+t,t)}},r.O.j=t=>0===e[t];var t=(t,o)=>{var n,a,[i,u,c]=o,d=0;if(i.some(t=>0!==e[t])){for(n in u)r.o(u,n)&&(r.m[n]=u[n]);if(c)var f=c(r)}for(t&&t(o);d<i.length;d++)a=i[d],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(f)},o=self.webpackChunk_N_E=self.webpackChunk_N_E||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r.nc=void 0})();