agenttwin 0.3.25 → 0.3.26

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 (23) hide show
  1. package/dist/api.js +600 -189
  2. package/dist/dashboard/assets/next/static/chunks/{1018.4871a8dd0f112c38.js → 1018.66d31bb49c376d17.js} +1 -1
  3. package/dist/dashboard/assets/next/static/chunks/1937-f5553afe6a14cf73.js +1 -0
  4. package/dist/dashboard/assets/next/static/chunks/{2743-a0efd6f4aeb11cc5.js → 2743-72610a5d5a3f8462.js} +1 -1
  5. package/dist/dashboard/assets/next/static/chunks/5663-661e38f3ed101571.js +1 -0
  6. package/dist/dashboard/assets/next/static/chunks/{6751.613adb085c9a5b06.js → 6751.d9c97d8c374550b0.js} +1 -1
  7. package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-73183e77e91eaaa0.js +1 -0
  8. package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-3a3a934622d409c3.js +1 -0
  9. package/dist/dashboard/assets/next/static/chunks/app/v2/page-fc4df4912ce3af44.js +1 -0
  10. package/dist/dashboard/assets/next/static/chunks/{webpack-7171b2b838217ab1.js → webpack-c3ef4a63a3242476.js} +1 -1
  11. package/dist/dashboard/assets/next/static/css/aa701337c7b34139.css +1 -0
  12. package/dist/dashboard/index.html +2 -2
  13. package/dist/engine.js +20 -7
  14. package/dist/gateway.js +651 -193
  15. package/package.json +1 -1
  16. package/dist/dashboard/assets/next/static/chunks/1250-7571b1a697f6bb4a.js +0 -1
  17. package/dist/dashboard/assets/next/static/chunks/5663-2ba656663ac4643f.js +0 -1
  18. package/dist/dashboard/assets/next/static/chunks/app/dashboard/layout-2d0408d8f22d7921.js +0 -1
  19. package/dist/dashboard/assets/next/static/chunks/app/dashboard/page-0e0392368e0a891e.js +0 -1
  20. package/dist/dashboard/assets/next/static/chunks/app/v2/page-3e86fffabfa87d88.js +0 -1
  21. package/dist/dashboard/assets/next/static/css/1d1b20bd9fb076d4.css +0 -1
  22. /package/dist/dashboard/assets/next/static/{S50QwVNd9oAThVehzZ6V7 → KSAqb4jD1gnp0t5kzwmoJ}/_buildManifest.js +0 -0
  23. /package/dist/dashboard/assets/next/static/{S50QwVNd9oAThVehzZ6V7 → KSAqb4jD1gnp0t5kzwmoJ}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3031],{3652:e=>{e.exports={footer:"SiteFooter_footer__aUaTs",content:"SiteFooter_content__1J6Jy",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"}},7285:(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))},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 init",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 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 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,5105,8441,1255,7358],()=>e(e.s=7285)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- #checks-view{--warn:#d39b2a}#checks-view .checks-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}#checks-view .checks-kpi{border:1px solid var(--line);border-radius:14px;padding:18px 18px 16px;background:var(--soft)}#checks-view .checks-kpi strong{display:block;font-size:30px;font-weight:600;letter-spacing:-.02em;line-height:1.1}#checks-view .checks-kpi span{display:block;margin-top:6px;color:var(--muted);font-size:13px;line-height:1.4}#checks-view .checks-kpi small{font-size:12px}#checks-view .checks-kpi.bad strong{color:var(--bad)}#checks-view .checks-kpi.warn strong{color:var(--warn)}#checks-view .checks-panel{border:1px solid var(--line);border-radius:14px;padding:20px;margin:0 0 16px;background:var(--soft)}#checks-view .checks-panel h2{font-size:16px;font-weight:600;margin:0}#checks-view .checks-panel header p{color:var(--muted);font-size:13px;margin:4px 0 0}#checks-view .checks-chart{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;align-items:end;height:200px;margin-top:18px}#checks-view .checks-week{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}#checks-view .checks-week small{font-size:11px;color:var(--muted);white-space:nowrap}#checks-view .checks-week .checks-week-money{color:var(--bad);font-weight:600;min-height:14px}#checks-view .checks-bar{flex:1;width:100%;max-width:44px;display:flex;flex-direction:column-reverse;border-radius:6px;overflow:hidden;background:color-mix(in srgb,var(--line) 40%,transparent)}#checks-view .checks-bar span{display:block;width:100%}#checks-view .checks-bar .pass,#checks-view .checks-legend .pass{background:color-mix(in srgb,var(--muted) 45%,transparent)}#checks-view .checks-bar .warn,#checks-view .checks-legend .warn{background:var(--warn)}#checks-view .checks-bar .fail,#checks-view .checks-legend .fail{background:var(--bad)}#checks-view .checks-legend{display:flex;flex-wrap:wrap;gap:16px;margin-top:14px;font-size:12px;color:var(--muted)}#checks-view .checks-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}#checks-view .checks-list-head{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap}#checks-view .checks-filters{display:flex;gap:10px}#checks-view .checks-filters label{display:grid;gap:4px;font-size:12px;color:var(--muted)}#checks-view .checks-filters select{background:var(--surface,transparent);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:7px 9px;min-width:130px}#checks-view .checks-table{margin-top:14px}#checks-view .checks-row{display:grid;grid-template-columns:minmax(0,2.2fr) 120px minmax(0,2fr) minmax(0,1.4fr) 90px;gap:14px;align-items:center;padding:12px 4px;border-top:1px solid var(--line);font-size:13px}#checks-view .checks-row.head{border-top:0;color:var(--muted);font-size:12px;padding-top:0}#checks-view .checks-row b{display:block;font-weight:600;overflow-wrap:anywhere}#checks-view .checks-row small{display:block;color:var(--muted);font-size:12px;margin-top:3px}#checks-view .checks-row a{color:inherit;text-decoration:underline;text-underline-offset:2px}#checks-view .checks-badge{font-style:normal;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;border:1px solid;white-space:nowrap}#checks-view .checks-badge.bad{color:var(--bad)}#checks-view .checks-badge.warn{color:var(--warn)}#checks-view .checks-badge.good{color:var(--good)}#checks-view .checks-badge.muted{color:var(--muted)}#checks-view .checks-services{display:flex;flex-wrap:wrap;gap:6px}#checks-view .checks-services i{font-style:normal;font-size:12px;padding:2px 8px;border-radius:6px;background:color-mix(in srgb,var(--line) 60%,transparent)}#checks-view .checks-when{color:var(--muted);font-size:12px}#checks-view .checks-none,#checks-view .checks-note{margin:14px 4px 0;font-size:13px}#checks-view .checks-empty{border:1px dashed var(--line);border-radius:14px;padding:36px;margin-top:22px;max-width:760px}#checks-view .checks-empty h2{font-size:20px;margin:0 0 10px}#checks-view .checks-empty p{color:var(--muted);line-height:1.6;margin:0 0 20px}#checks-view .checks-empty-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--muted)}@media(max-width:900px){#checks-view .checks-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#checks-view .checks-row{grid-template-columns:minmax(0,1fr) auto}#checks-view .checks-row.head{display:none}#checks-view .checks-row>span:nth-child(3),#checks-view .checks-row>span:nth-child(4){grid-column:1/-1}#checks-view .checks-row>span:nth-child(5){display:none}#checks-view .checks-chart{gap:5px;height:170px}#checks-view .checks-week small:last-child{font-size:10px}}