agenttwin 0.3.15 → 0.3.16
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/README.md +4 -0
- package/dist/api.js +5311 -4088
- package/dist/cli.js +8575 -5825
- package/dist/dashboard/assets/next/static/chunks/2868-b80a3af454408935.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/{page-d91fa87fbf634bc9.js → page-562ef289e26a892c.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/{page-3c0d688140d910bd.js → page-77e04e31450c1d88.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/{page-e4fe99bcc001a517.js → page-34509f07c4d57e27.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/{page-ca68ba293cca7d75.js → page-8bb7ad38709ca7c7.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{webpack-1ac08e31899efefb.js → webpack-1e0180645d7be885.js} +1 -1
- package/dist/dashboard/index.html +2 -2
- package/dist/gateway.js +5370 -4147
- package/dist/worker.js +235 -46
- package/dist/world-host.js +1422 -984
- package/package.json +4 -1
- package/dist/dashboard/assets/next/static/chunks/971-f01a5b1fb6756f6c.js +0 -1
- /package/dist/dashboard/assets/next/static/{RRU6kOWIag8OaxBjl6DjU → othTO5Jx9zt3NjqmMLjYI}/_buildManifest.js +0 -0
- /package/dist/dashboard/assets/next/static/{RRU6kOWIag8OaxBjl6DjU → othTO5Jx9zt3NjqmMLjYI}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{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}},5583:(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))},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,u=0,h=!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),u=requestAnimationFrame(x)},g=a.querySelector("[data-arc]"),b=()=>{if(null==g||g.classList.toggle("is-paused",!h||document.hidden),cancelAnimationFrame(u),i.matches||!h||document.hidden)return void v(0);u=requestAnimationFrame(x)},j=new ResizeObserver(f);j.observe(r);let y=new IntersectionObserver(e=>{h=e[0].isIntersecting,b()});y.observe(a),document.addEventListener("visibilitychange",b);let w=()=>b();return i.addEventListener("change",w),f(),()=>{cancelAnimationFrame(u),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"})," Run real workflows, inject faults, and verify outcomes before production."]}),(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=5583)),_N_E=e.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{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}},5583:(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))},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,u=0,h=!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),u=requestAnimationFrame(x)},g=a.querySelector("[data-arc]"),b=()=>{if(null==g||g.classList.toggle("is-paused",!h||document.hidden),cancelAnimationFrame(u),i.matches||!h||document.hidden)return void v(0);u=requestAnimationFrame(x)},j=new ResizeObserver(f);j.observe(r);let y=new IntersectionObserver(e=>{h=e[0].isIntersecting,b()});y.observe(a),document.addEventListener("visibilitychange",b);let w=()=>b();return i.addEventListener("change",w),f(),()=>{cancelAnimationFrame(u),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:"AgentTwin 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"})," Run real workflows, inject faults, and verify outcomes before production."]}),(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=5583)),_N_E=e.O()}]);
|