agenttwin 0.3.13 → 0.3.15
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.
- package/dist/api.js +472 -93
- package/dist/cli.js +126 -19
- package/dist/dashboard/assets/next/static/RRU6kOWIag8OaxBjl6DjU/_buildManifest.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/1255-d4ec8dbb0865c655.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/1482.e664aba77631265d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/182-71d400a5d9e02879.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/3050-bac69e3c6734beee.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/3056.ffa9a4d44a274b29.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{2442.9a266da6229b8ae0.js → 4055.1056568a41510e92.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/4343.023a18f52318dbad.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/4bd1b696-f785427dddbba9fb.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{5490.0d5d8d5ea3577f20.js → 6751.613adb085c9a5b06.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/6787-c85d7f794360b672.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/7772-f2d773cd3e94eea6.js +67 -0
- package/dist/dashboard/assets/next/static/chunks/8093-90b99184c0a57c57.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{3454.d29ee7a49c2a4fba.js → 8975.5be81ec8b09e3b45.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{7280.01b3f749332bb075.js → 9013.0f2be1cc70029afa.js} +2 -2
- package/dist/dashboard/assets/next/static/chunks/9376.42da54b90ff9f2d9.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/9675.14739028910476e4.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/971-f01a5b1fb6756f6c.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/_not-found/page-43db8aef3fa81958.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/about/page-3f5dbcdbf95bb2fc.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/account/password/page-c2ce3c796c817ca1.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/api-policy/page-3f5dbcdbf95bb2fc.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/auth/page-3f5dbcdbf95bb2fc.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-mockoon/page-ba841d868e5d124a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-pact/page-ba841d868e5d124a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-testcontainers/page-ba841d868e5d124a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/agenttwin-vs-wiremock/page-ba841d868e5d124a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/keploy-alternatives-for-database-and-payment-workflows/page-ba841d868e5d124a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/layout-563d8763d65d66b5.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/page-ba841d868e5d124a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/reset-test-environment-between-runs/page-ba841d868e5d124a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/blog/simulate-timeouts-and-duplicate-events/page-ba841d868e5d124a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/compare/page-3f5dbcdbf95bb2fc.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/contact/page-3f5dbcdbf95bb2fc.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-1afe915ed22ac5ed.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-d91fa87fbf634bc9.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/demo/page-4dc63755e0013e7c.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/developers/page-3f5dbcdbf95bb2fc.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-3c0d688140d910bd.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/guides/page-3f5dbcdbf95bb2fc.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/layout-993a96283a3ceb07.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/login/page-d6d4276397724d29.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-bc480c9258e5cc4d.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/page-e4fe99bcc001a517.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/pricing/page-40f352fe5093a0ff.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/privacy/page-3f5dbcdbf95bb2fc.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/sandbox/page-3f5dbcdbf95bb2fc.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/signup/page-d6d4276397724d29.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/sitemap.xml/route-ba841d868e5d124a.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-a5cf565e017886d3.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-ca68ba293cca7d75.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/layout-abbd9f3b8811f559.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-4f4a342a4c28f9de.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-f04c0b236abaead3.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-3905446ec0206fb5.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-4f4a342a4c28f9de.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-3f5dbcdbf95bb2fc.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{48a1527b.6d52e40c5e62d9d5.js → b468fba8.437b212aae4abcf8.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/framework-e54b663a2888b5de.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/main-5aa70aa3d6a46aa0.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/main-app-1ec13ceef4a34729.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/pages/_app-6c8c2371b16a04b8.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/pages/_error-94812ad32cad7365.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/webpack-1ac08e31899efefb.js +1 -0
- package/dist/dashboard/assets/next/static/css/15b28a76469ea7e5.css +3 -0
- package/dist/dashboard/assets/next/static/css/{eea0966f05042bde.css → 18afa3e32331c41d.css} +1 -1
- package/dist/dashboard/assets/next/static/css/6695e0f2ae2e5aaf.css +1 -0
- package/dist/dashboard/assets/next/static/css/ced6baae4dc4cbab.css +1 -0
- package/dist/dashboard/assets/next/static/css/d35115cc1039cc68.css +1 -0
- package/dist/dashboard/assets/next/static/css/f27d5fbb1f484d9d.css +1 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/gateway.js +465 -86
- package/package.json +14 -2
- package/dist/dashboard/assets/next/static/BbTZs0rKnsmj45peSnlwJ/_buildManifest.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/1981-2ce2c5edd154524a.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/2529.07927d0600506985.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/3916-2698a1a3ecb8649f.js +0 -67
- package/dist/dashboard/assets/next/static/chunks/4705-a6d249b4a5dcde26.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/4816-45f42396ec2135cc.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/650-3092bf29ff938e12.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/6f3ce29d-af1469ba72f5d3e4.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/794.a624e6be9e42a62b.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/_not-found/page-471a6c74344187f9.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/account/password/page-aaee6711085b485d.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-09cb13657f62384f.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-945c916b24f48675.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/demo/page-3cba0aab460c8677.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-9f7b8dca8b973b15.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/enterprise/page-4986698442bddc6b.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/layout-09868e53e4f0541f.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/login/page-2e29d4b17645c34c.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-af2c4768dc34ec92.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/page-507229409812cedd.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/pricing/page-c27282cd7bfb0fcf.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/signup/page-2e29d4b17645c34c.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/sitemap.xml/route-36bcc482b50fcb46.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/layout-77a57cd622171076.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/page-df34bcef0394d10d.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/layout-d1d715b5b2dae3cd.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/login/page-4f60d050bf954194.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-abfe2f36213848d7.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-df6a34eff716d18e.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/signup/page-4f60d050bf954194.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/framework-cb37e134fe056fa5.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/main-app-c83f3671ad6b824a.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/main-b7d6352ee94d0dba.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/pages/_app-9dd167be58cf5cbd.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/pages/_error-5a8b1eb076dd7c95.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/webpack-44457f45df749a89.js +0 -1
- package/dist/dashboard/assets/next/static/css/0856ee8c880d8b92.css +0 -1
- package/dist/dashboard/assets/next/static/css/0cf03e33b963e5cb.css +0 -1
- package/dist/dashboard/assets/next/static/css/81a1668ab34a36e8.css +0 -1
- package/dist/dashboard/assets/next/static/css/b15fa8a0e168d625.css +0 -1
- /package/dist/dashboard/assets/next/static/{BbTZs0rKnsmj45peSnlwJ → RRU6kOWIag8OaxBjl6DjU}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8512],{6496:()=>{},7866:(e,s,_)=>{Promise.resolve().then(_.t.bind(_,6496,23))}},e=>{e.O(0,[9487,8441,1255,7358],()=>e(e.s=7866)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3552,9629],{1070:(e,s,u)=>{"use strict";u.d(s,{default:()=>_.default});var _=u(6787)},6940:(e,s,u)=>{Promise.resolve().then(u.bind(u,1070))}},e=>{e.O(0,[3935,6787,8441,1255,7358],()=>e(e.s=6940)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4333],{5257:(e,s,t)=>{"use strict";t.d(s,{default:()=>h});var n=t(5155),a=t(2115),r=t(6787),o=t(8864);t(1261),t(6184),t(9010);let i="agenttwin:workspace-preferences:v1",c={morning:"bay-morning.png",afternoon:"golden-gate-afternoon.png",evening:"moonlit-coast.png"},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 init"),(0,n.jsx)("p",{className:"setup-help",children:"Review the detected tools and workflow candidates."})]}),(0,n.jsxs)("div",{className:"setup-terminal",children:[(0,n.jsxs)("div",{className:"setup-command-label",children:[(0,n.jsx)("span",{children:"03"}),(0,n.jsx)("strong",{children:"Bring it into your workspace"})]}),es("npx agenttwin sync"),(0,n.jsx)("p",{className:"setup-help",children:"Sync discovery and test results. Application source and credentials stay on your computer."})]}),(0,n.jsxs)("button",{type:"button",className:"setup-secondary setup-check",onClick:$,disabled:!s||Y,children:[Y?"Checking…":P.length?"Check again":"Check for my project",!Y&&(0,n.jsx)(u,{})]}),B&&(0,n.jsx)("p",{className:"setup-feedback",role:"status",children:B}),P.map(e=>(0,n.jsxs)("div",{className:"setup-project",children:[(0,n.jsx)(p,{}),(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:e.name}),(0,n.jsxs)("span",{children:[e.tools," resource",1===e.tools?"":"s"," \xb7 ",e.workflows," workflow candidate",1===e.workflows?"":"s"]})]})]},e.name)),(0,n.jsxs)("div",{className:"setup-finish",children:[(0,n.jsxs)("button",{type:"button",className:"setup-primary",onClick:X,disabled:!s||Y||T,children:[P.length?"Open my workspace":"Explore my workspace"," ",(0,n.jsx)(u,{})]}),!P.length&&(0,n.jsx)("p",{children:"Connect a project later from your workspace."}),q&&(0,n.jsx)("a",{href:"/v2/dashboard/#home",children:"Open workspace without saving"})]})]})]})]},e))}),(0,n.jsx)("p",{className:"setup-notice",role:"status","aria-live":"polite",children:C})]}),(0,n.jsxs)("aside",{className:"setup-preview".concat(b.compact?" compact":""),"aria-label":"Live workspace preview",children:[(0,n.jsxs)("div",{className:"setup-preview-heading",children:[(0,n.jsx)("span",{children:"Workspace preview"}),(0,n.jsx)("span",{className:"setup-preview-scene",children:z[0].toUpperCase()+z.slice(1)})]}),(0,n.jsxs)("div",{className:"setup-preview-window",children:[(0,n.jsxs)("div",{className:"setup-preview-nav",children:[(0,n.jsx)("img",{src:"assets/logo/mark-twin-rings.svg",width:"18",height:"18",alt:""}),(0,n.jsx)("span",{children:(null==s?void 0:s.workspace)||"Your workspace"}),(0,n.jsx)("span",{className:"setup-preview-avatar",children:(null==s?void 0:s.name)?s.name[0].toUpperCase():"A"})]}),(0,n.jsxs)("div",{className:"setup-preview-hero",children:[(0,n.jsxs)("h3",{children:["What should your",(0,n.jsx)("br",{}),"agent test?"]}),(0,n.jsxs)("div",{className:"setup-preview-composer",children:["Ask about a workflow ",(0,n.jsx)(u,{})]})]}),(0,n.jsxs)("div",{className:"setup-preview-cards",children:[(0,n.jsxs)("div",{className:"setup-preview-project",children:[(0,n.jsx)("span",{children:"Project discovery"}),(0,n.jsx)("strong",{children:(null==(e=P[0])?void 0:e.name)||"Connect your project"}),(0,n.jsx)("p",{children:P[0]?"".concat(P[0].tools," detected resource").concat(1===P[0].tools?"":"s"):"Your workflows will appear here."})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:"Test results"}),(0,n.jsx)("strong",{children:"No results in this preview"}),(0,n.jsx)("p",{children:"Review what each test recorded."})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{children:"Test readiness"}),(0,n.jsx)("strong",{children:P.length?"Review dependencies":"Start with discovery"}),(0,n.jsx)("p",{children:"Prepare inputs and expected outcomes."})]})]})]}),(0,n.jsx)("p",{className:"setup-preview-caption",children:2===g?P.length?"Project found. You can start reviewing workflows.":_?"Your project appears here after its first sync.":"Connect your own project when you’re ready.":"A workspace that feels like yours."})]})]}),(0,n.jsxs)("footer",{className:"onboarding-footer",children:[(0,n.jsxs)("span",{children:[g+1," of 3"]}),(0,n.jsx)("span",{children:"Preferences save to this browser."})]})]})]})}},6184:()=>{},8864:(e,s,t)=>{"use strict";function n(e){return e>=5&&e<12?"morning":e>=12&&e<17?"afternoon":"evening"}t.d(s,{K:()=>a,w:()=>n});let a={morning:"Morning \xb7 sunrise over the bay",afternoon:"Afternoon \xb7 sunny Golden Gate",evening:"Evening \xb7 moonlit coast"}},9010:()=>{},9759:(e,s,t)=>{Promise.resolve().then(t.bind(t,5257))}},e=>{e.O(0,[3935,4295,7441,6787,8441,1255,7358],()=>e(e.s=9759)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3031],{7729:(e,n,t)=>{"use strict";t.d(n,{default:()=>o});var r=t(5155),s=t(2115),i=t(9688);async function a(e){var n;if(null==(n=navigator.clipboard)?void 0:n.writeText)try{await navigator.clipboard.writeText(e);return}catch(e){}let t=document.createElement("textarea");t.value=e,t.readOnly=!0,t.tabIndex=-1,t.style.cssText="position:fixed;top:0;left:0;opacity:0;pointer-events:none",document.body.append(t),t.select();try{if(!document.execCommand("copy"))throw Error("Copy unavailable")}finally{t.remove()}}function c(){let[e,n]=(0,s.useState)("idle"),t=(0,s.useRef)(!1),i=(0,s.useRef)(void 0);(0,s.useEffect)(()=>()=>clearTimeout(i.current),[]);let c=(0,s.useCallback)(async e=>{let r=e.currentTarget;if(!t.current){t.current=!0,clearTimeout(i.current),n("idle");try{await a(r.querySelector("code").textContent.trim()),n("success"),i.current=setTimeout(()=>n("idle"),3e3)}catch(e){n("error")}finally{t.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 init",title:"Copy command","data-copy-state":"idle"===e?void 0:e,onClick:c,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 init"}),(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 o(){return(0,r.jsxs)("section",{className:"hero scenic-hero","aria-labelledby":"hero-title",children:[(0,r.jsx)(i.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)(c,{})]})]}),(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:"↗"})]})]})]})]})}},7815:(e,n,t)=>{"use strict";t.d(n,{default:()=>a});var r=t(5155),s=t(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 a(){let[e,n]=(0,s.useState)(!1),t=(0,s.useRef)(null),a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{let e=e=>{var r,s;"Escape"===e.key&&(null==(r=a.current)?void 0:r.querySelector("#navlinks.is-open"))&&(n(!1),null==(s=t.current)||s.focus())},r=e=>{var t;(null==(t=a.current)?void 0:t.contains(e.target))||n(!1)},s=matchMedia("(min-width: 1024px)"),i=()=>n(!1);return document.addEventListener("keydown",e),document.addEventListener("click",r),s.addEventListener("change",i),()=>{document.removeEventListener("keydown",e),document.removeEventListener("click",r),s.removeEventListener("change",i)}},[]),(0,r.jsxs)("header",{className:"site-header",ref:a,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:[i.map(e=>(0,r.jsx)("a",{href:e.href,onClick:()=>n(!1),children:e.label},e.href)),(0,r.jsx)("a",{className:"nav-mobile-dashboard",href:"/dashboard/",onClick:()=>n(!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.jsxs)("button",{className:"menu-toggle",ref:t,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"navlinks",onClick:()=>n(!e),children:[(0,r.jsx)("span",{}),(0,r.jsx)("span",{})]})]})}},8864:(e,n,t)=>{"use strict";function r(e){return e>=5&&e<12?"morning":e>=12&&e<17?"afternoon":"evening"}t.d(n,{K:()=>s,w:()=>r});let s={morning:"Morning \xb7 sunrise over the bay",afternoon:"Afternoon \xb7 sunny Golden Gate",evening:"Evening \xb7 moonlit coast"}},9688:(e,n,t)=>{"use strict";t.d(n,{A:()=>c});var r=t(5155),s=t(2115),i=t(8864);let a={morning:"bay-morning.png",afternoon:"golden-gate-afternoon.png",evening:"moonlit-coast.png"};function c(e){let{workspace:n=!1,fixedScene:t}=e,[c,o]=(0,s.useState)(null!=t?t:"morning"),[l,d]=(0,s.useState)(!1),h=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(t)return void o(e=>e===t?e:t);let e=e=>{var t;if(!n)return;let r={};try{r=JSON.parse(localStorage.getItem("agenttwin:workspace-preferences:v1")||"{}")||{}}catch(e){}let s=null==e||null==(t=e.detail)?void 0:t.scene,a=r.artwork;o(s||("morning"===a||"afternoon"===a||"evening"===a?a:(0,i.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)}},[n,t]),(0,s.useEffect)(()=>{let e=h.current,n=null==e?void 0:e.getContext("2d");if(!e||!n)return;let t=matchMedia("(prefers-reduced-motion: reduce)"),r=new Image,s=document.createElement("canvas"),i=s.getContext("2d"),o=0,d=0,u=0,v=0,p=!1,x=!0,m=[];function g(e){for(let r of(n.clearRect(0,0,u,v),n.font="9px monospace",n.fillStyle="#fff7e5",m))n.globalAlpha=r.alpha*(l||t.matches?.7:.65+.25*Math.sin(e/2300+r.phase)),n.fillText(r.value,r.x,r.y);n.globalAlpha=1}function f(e){e-d>100&&(g(e),d=e),o=requestAnimationFrame(f)}function w(){if(cancelAnimationFrame(o),!p)return;g(0);let n=!l&&!t.matches&&!document.hidden&&x;e.dataset.motion=n?"running":"paused",n&&(o=requestAnimationFrame(f))}function j(){let t=e.getBoundingClientRect();u=t.width,v=t.height;let a=Math.min(devicePixelRatio||1,2);if(e.width=u*a,e.height=v*a,n.setTransform(a,0,0,a,0,0),!p||!i||!u||!v)return;let c=Math.ceil(u/16),o=Math.ceil(v/16);s.width=c,s.height=o;let l=Math.max(c/r.width,o/r.height);i.drawImage(r,(c-r.width*l)/2,(o-r.height*l)/2,r.width*l,r.height*l);let d=i.getImageData(0,0,c,o).data;m=[];for(let e=0;e<o;e++)for(let n=0;n<c;n++){let t=(e*c+n)*4,r=(d[t]+d[t+1]+d[t+2])/765,s=Math.abs(Math.sin(127.1*n+311.7*e));r<.18||s<.38||m.push({x:16*n,y:16*e,value:".:+*"[Math.min(3,Math.floor(4*r))],alpha:.08+.2*r,phase:8*s})}w()}r.onload=()=>{p=!0,j()},r.src="assets/dashboard/"+a[c];let b=new ResizeObserver(j);b.observe(e);let y=new IntersectionObserver(e=>{x=e[0].isIntersecting,w()});return y.observe(e),t.addEventListener("change",w),document.addEventListener("visibilitychange",w),()=>{r.onload=null,cancelAnimationFrame(o),b.disconnect(),y.disconnect(),t.removeEventListener("change",w),document.removeEventListener("visibilitychange",w)}},[c,l]),(0,r.jsxs)("div",{className:"scenic-backdrop","data-scene":c,"aria-hidden":"true",style:{backgroundImage:"url('assets/dashboard/".concat(a[c],"')")},children:[(0,r.jsx)("canvas",{ref:h}),(0,r.jsx)("div",{className:"scenic-shade"})]})}},9875:(e,n,t)=>{Promise.resolve().then(t.bind(t,7729)),Promise.resolve().then(t.bind(t,7815))}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=9875)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3552,9629],{1070:(e,s,u)=>{"use strict";u.d(s,{default:()=>_.default});var _=u(6787)},6940:(e,s,u)=>{Promise.resolve().then(u.bind(u,1070))}},e=>{e.O(0,[3935,6787,8441,1255,7358],()=>e(e.s=6940)),_N_E=e.O()}]);
|
package/dist/dashboard/assets/next/static/chunks/app/what-is-agenttwin/page-3f5dbcdbf95bb2fc.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977,990,2882,3232,6402,7006,7220,8365,9366,9877],{5157:(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=5157)),_N_E=e.O()}]);
|