@cogitator-ai/studio 0.1.5 → 0.1.6

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.
@@ -1 +1 @@
1
- import{r as h}from"./react-Oh0PCTUB.js";const Me=a=>a?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function fe(a,e,n=[]){if(e==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:Me(a),size:24,node:e,...n.length>0?{aliases:n}:{}}}const ve=a=>{let e="",n=!1;for(const o of a){if(o==="-"||o==="_"||o<=" "){n=e.length>0;continue}e.length===0?e+=o.toLowerCase():e+=n?o.toUpperCase():o,n=!1}return e};const be=a=>{const e=ve(a);return e.charAt(0).toUpperCase()+e.slice(1)};const z=(...a)=>a.filter((e,n,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===n).join(" ").trim();const d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function g(a){return a!=null}function De(a,e={}){const n=e.attributeNames??{},o=c=>n[c]??c,r=a.size??a.width??d.width,l=a.size??a.height??d.height,k=a.aliases?.filter(c=>typeof c=="string"&&c.trim()!=="").map(c=>`lucide-${c}`)??[],p=[...a.name?[`lucide-${a.name}`]:[],...k],s=e.className?.split(" ").filter(Boolean)??[],m=e.includeDefaultClasses===!1?z(...s):z("lucide",...p,...s),w=e.absoluteStrokeWidth?Number(e.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(e.size??e.width??d.width):e.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((c,[i,y])=>(c[o(i)]=y,c),{}),..."color"in e&&e.color&&{[o("stroke")]:e.color},..."size"in e&&g(e.size)&&{[o("width")]:e.size,[o("height")]:e.size},..."width"in e&&g(e.width)&&{[o("width")]:e.width},..."height"in e&&g(e.height)&&{[o("height")]:e.height},[o("stroke-width")]:w,...m&&{[o("class")]:m},[o("viewBox")]:`0 0 ${r} ${l}`,...e.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in e&&e.attributes},a.node.map(c=>{const[i,y,u]=c,x=e.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...y}:y;return u?[i,x,u]:[i,x]})]}function $e(a,e={}){return De(a,{...e,attributeNames:{...e.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}const Ce=a=>{for(const e in a)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1},qe=h.createContext({}),Ae=()=>h.useContext(qe),je=h.forwardRef(({color:a,size:e,width:n,height:o,strokeWidth:r,absoluteStrokeWidth:l,nonScalingStroke:k,className:p="",children:s,iconNode:m=[],icon:w={node:m,aliases:[],size:24},..._},c)=>{const{size:i=24,strokeWidth:y=2,absoluteStrokeWidth:u=!1,nonScalingStroke:x=!1,color:pe="currentColor",className:me=""}=Ae()??{},ue=!!s||Ce(_),[xe,we,_e=[]]=$e(w,{color:a??pe,width:n??e??i,height:o??e??i,strokeWidth:r??y,absoluteStrokeWidth:l??u,nonScalingStroke:k??x,className:z(me,p),hasA11yProp:ue,attributes:_});return h.createElement(xe,{ref:c,...we},[..._e.map(([ge,ze])=>h.createElement(ge,ze)),...Array.isArray(s)?s:[s]])});function t(a,e=[],n=[]){const o=typeof a=="string"?fe(a,e,n):a,r=h.forwardRef(({className:l,...k},p)=>h.createElement(je,{ref:p,icon:o,className:l,...k}));return o.name&&(r.displayName=be(o.name)),r}const M={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};M.node;const Le=t(M);const f={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};f.node;const Ne=t(f);const v={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};v.node;const We=t(v);const b={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};b.node;const He=t(b);const D={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};D.node;const Be=t(D);const $={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};$.node;const Ve=t($);const C={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};C.node;const Ee=t(C);const q={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};q.node;const Ie=t(q);const A={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};A.node;const Pe=t(A);const j={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};j.node;const Re=t(j);const S={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};S.node;const Fe=t(S);const L={name:"circle-stop",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],aliases:["stop-circle"]};L.node;const Ge=t(L);const N={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};N.node;const Ke=t(N);const W={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};W.node;const Te=t(W);const H={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};H.node;const Ue=t(H);const B={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};B.node;const Je=t(B);const V={name:"corner-down-left",size:24,node:[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]]};V.node;const Xe=t(V);const E={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};E.node;const Oe=t(E);const I={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};I.node;const Ze=t(I);const P={name:"git-compare-arrows",size:24,node:[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]};P.node;const Qe=t(P);const R={name:"git-fork",size:24,node:[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]};R.node;const Ye=t(R);const F={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};F.node;const e1=t(F);const G={name:"keyboard",size:24,node:[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]};G.node;const t1=t(G);const K={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};K.node;const a1=t(K);const T={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};T.node;const o1=t(T);const U={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};U.node;const n1=t(U);const J={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};J.node;const c1=t(J);const X={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};X.node;const s1=t(X);const O={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};O.node;const i1=t(O);const Z={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};Z.node;const d1=t(Z);const Q={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};Q.node;const h1=t(Q);const Y={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};Y.node;const r1=t(Y);const ee={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};ee.node;const y1=t(ee);const te={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};te.node;const l1=t(te);const ae={name:"rows-3",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],aliases:["panels-top-bottom"]};ae.node;const k1=t(ae);const oe={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};oe.node;const p1=t(oe);const ne={name:"shield-alert",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]};ne.node;const m1=t(ne);const ce={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};ce.node;const u1=t(ce);const se={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};se.node;const x1=t(se);const ie={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};ie.node;const w1=t(ie);const de={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};de.node;const _1=t(de);const he={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};he.node;const g1=t(he);const re={name:"wifi-off",size:24,node:[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};re.node;const z1=t(re);const ye={name:"workflow",size:24,node:[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]};ye.node;const M1=t(ye);const le={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};le.node;const f1=t(le);const ke={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};ke.node;const v1=t(ke);export{Le as A,He as B,Ve as C,l1 as D,Oe as E,h1 as F,Ye as G,z1 as H,e1 as I,y1 as J,t1 as K,n1 as L,i1 as M,d1 as N,r1 as P,k1 as R,_1 as S,g1 as T,M1 as W,v1 as X,Je as a,Ee as b,Ke as c,Fe as d,Pe as e,Ge as f,Ie as g,Re as h,o1 as i,p1 as j,Xe as k,s1 as l,f1 as m,m1 as n,w1 as o,We as p,x1 as q,a1 as r,Ne as s,u1 as t,Qe as u,c1 as v,Ze as w,Ue as x,Te as y,Be as z};
1
+ import{r as h}from"./react-Oh0PCTUB.js";const Me=a=>a?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function fe(a,e,n=[]){if(e==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:Me(a),size:24,node:e,...n.length>0?{aliases:n}:{}}}const ve=a=>{let e="",n=!1;for(const o of a){if(o==="-"||o==="_"||o<=" "){n=e.length>0;continue}e.length===0?e+=o.toLowerCase():e+=n?o.toUpperCase():o,n=!1}return e};const be=a=>{const e=ve(a);return e.charAt(0).toUpperCase()+e.slice(1)};const z=(...a)=>a.filter((e,n,o)=>!!e&&e.trim()!==""&&o.indexOf(e)===n).join(" ").trim();const d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function g(a){return a!=null}function De(a,e={}){const n=e.attributeNames??{},o=c=>n[c]??c,r=a.size??a.width??d.width,l=a.size??a.height??d.height,k=a.aliases?.filter(c=>typeof c=="string"&&c.trim()!=="").map(c=>`lucide-${c}`)??[],p=[...a.name?[`lucide-${a.name}`]:[],...k],s=e.className?.split(" ").filter(Boolean)??[],m=e.includeDefaultClasses===!1?z(...s):z("lucide",...p,...s),w=e.absoluteStrokeWidth?Number(e.strokeWidth??d["stroke-width"])*Number(a.size??a.width??d.width)/Number(e.size??e.width??d.width):e.strokeWidth??d["stroke-width"];return["svg",{...Object.entries(d).reduce((c,[i,y])=>(c[o(i)]=y,c),{}),..."color"in e&&e.color&&{[o("stroke")]:e.color},..."size"in e&&g(e.size)&&{[o("width")]:e.size,[o("height")]:e.size},..."width"in e&&g(e.width)&&{[o("width")]:e.width},..."height"in e&&g(e.height)&&{[o("height")]:e.height},[o("stroke-width")]:w,...m&&{[o("class")]:m},[o("viewBox")]:`0 0 ${r} ${l}`,...e.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in e&&e.attributes},a.node.map(c=>{const[i,y,u]=c,x=e.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...y}:y;return u?[i,x,u]:[i,x]})]}function $e(a,e={}){return De(a,{...e,attributeNames:{...e.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}const Ce=a=>{for(const e in a)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1},qe=h.createContext({}),Ae=()=>h.useContext(qe),je=h.forwardRef(({color:a,size:e,width:n,height:o,strokeWidth:r,absoluteStrokeWidth:l,nonScalingStroke:k,className:p="",children:s,iconNode:m=[],icon:w={node:m,aliases:[],size:24},..._},c)=>{const{size:i=24,strokeWidth:y=2,absoluteStrokeWidth:u=!1,nonScalingStroke:x=!1,color:pe="currentColor",className:me=""}=Ae()??{},ue=!!s||Ce(_),[xe,we,_e=[]]=$e(w,{color:a??pe,width:n??e??i,height:o??e??i,strokeWidth:r??y,absoluteStrokeWidth:l??u,nonScalingStroke:k??x,className:z(me,p),hasA11yProp:ue,attributes:_});return h.createElement(xe,{ref:c,...we},[..._e.map(([ge,ze])=>h.createElement(ge,ze)),...Array.isArray(s)?s:[s]])});function t(a,e=[],n=[]){const o=typeof a=="string"?fe(a,e,n):a,r=h.forwardRef(({className:l,...k},p)=>h.createElement(je,{ref:p,icon:o,className:l,...k}));return o.name&&(r.displayName=be(o.name)),r}const M={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};M.node;const Le=t(M);const f={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};f.node;const Ne=t(f);const v={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};v.node;const We=t(v);const b={name:"bot",size:24,node:[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]};b.node;const He=t(b);const D={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};D.node;const Be=t(D);const $={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};$.node;const Ve=t($);const C={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};C.node;const Ee=t(C);const q={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};q.node;const Ie=t(q);const A={name:"circle-dashed",size:24,node:[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]};A.node;const Pe=t(A);const j={name:"circle-pause",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],aliases:["pause-circle"]};j.node;const Re=t(j);const S={name:"circle-slash",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"9",x2:"15",y1:"15",y2:"9",key:"1dfufj"}]]};S.node;const Fe=t(S);const L={name:"circle-stop",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],aliases:["stop-circle"]};L.node;const Ge=t(L);const N={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};N.node;const Ke=t(N);const W={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};W.node;const Te=t(W);const H={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};H.node;const Ue=t(H);const B={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};B.node;const Je=t(B);const V={name:"corner-down-left",size:24,node:[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]]};V.node;const Xe=t(V);const E={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};E.node;const Oe=t(E);const I={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]};I.node;const Ze=t(I);const P={name:"git-compare-arrows",size:24,node:[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]};P.node;const Qe=t(P);const R={name:"git-fork",size:24,node:[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]};R.node;const Ye=t(R);const F={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};F.node;const e1=t(F);const G={name:"keyboard",size:24,node:[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]};G.node;const t1=t(G);const K={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};K.node;const a1=t(K);const T={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};T.node;const o1=t(T);const U={name:"loader-circle",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],aliases:["loader-2"]};U.node;const n1=t(U);const J={name:"message-square",size:24,node:[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]};J.node;const c1=t(J);const X={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};X.node;const s1=t(X);const O={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};O.node;const i1=t(O);const Z={name:"network",size:24,node:[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]};Z.node;const d1=t(Z);const Q={name:"play",size:24,node:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]};Q.node;const h1=t(Q);const Y={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};Y.node;const r1=t(Y);const ee={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};ee.node;const y1=t(ee);const te={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};te.node;const l1=t(te);const ae={name:"rows-3",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],aliases:["panels-top-bottom"]};ae.node;const k1=t(ae);const oe={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};oe.node;const p1=t(oe);const ne={name:"shield-alert",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]};ne.node;const m1=t(ne);const ce={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};ce.node;const u1=t(ce);const se={name:"square-terminal",size:24,node:[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],aliases:["terminal-square"]};se.node;const x1=t(se);const ie={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};ie.node;const w1=t(ie);const de={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};de.node;const _1=t(de);const he={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};he.node;const g1=t(he);const re={name:"wifi-off",size:24,node:[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]};re.node;const z1=t(re);const ye={name:"workflow",size:24,node:[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]]};ye.node;const M1=t(ye);const le={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};le.node;const f1=t(le);const ke={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};ke.node;const v1=t(ke);export{Le as A,He as B,Ee as C,l1 as D,Oe as E,h1 as F,Ye as G,z1 as H,e1 as I,y1 as J,t1 as K,n1 as L,i1 as M,d1 as N,r1 as P,k1 as R,_1 as S,g1 as T,M1 as W,v1 as X,Ke as a,Fe as b,Pe as c,Ge as d,Ie as e,Re as f,Ve as g,Je as h,o1 as i,p1 as j,Xe as k,s1 as l,f1 as m,m1 as n,w1 as o,We as p,x1 as q,a1 as r,Ne as s,u1 as t,Qe as u,c1 as v,Ze as w,Ue as x,Te as y,Be as z};
@@ -1,4 +1,4 @@
1
- import{r as p,j as e,c as us}from"./react-Oh0PCTUB.js";import{C as hs,a as ps,b as ve,c as De,d as ms,e as xs,f as js,g as fs,h as gs,L as Me,i as Fe,A as P,S as Ne,M as ye,K as Le,B as K,W as D,P as Pe,j as ue,k as vs,G as J,X as We,N as Ns,l as ys,m as se,n as Ke,I as bs,o as _e,p as ks,q as Be,r as ws,s as Ge,t as Ss,E as $s,u as Cs,T as Ue,v as He,w as Ts,x as Es,y as As,R as Rs,z as Os,D as Is,F as he,H as zs,J as Ds}from"./icons-f6vmKzId.js";import"./math-Dyab3dfo.js";import{M as Ms,r as Fs,a as Ls,y as Ps,x as Ws,t as Ks,s as _s,b as Bs,c as Gs,p as Us,m as Hs,j as Js,d as Vs,e as qs,g as Xs,f as Ys,h as Qs,i as Zs,k as et,l as st}from"./markdown-B0lQtlaX.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const c of r.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}})();async function F(s,t){const n=await fetch(s,{method:t?.method??"GET",credentials:"same-origin",headers:t?.body!==void 0?{"content-type":"application/json"}:void 0,body:t?.body!==void 0?JSON.stringify(t.body):void 0}),a=await n.text(),i=a?JSON.parse(a):{};if(!n.ok)throw new Error(i.error??`HTTP ${n.status}`);return i}const E={state:()=>F("/api/state"),stats:()=>F("/api/stats"),runs:s=>{const t=new URLSearchParams;for(const[n,a]of Object.entries(s))a&&t.set(n,a);return F(`/api/runs?${t.toString()}`)},run:s=>F(`/api/runs/${encodeURIComponent(s)}`),thread:s=>F(`/api/threads/${encodeURIComponent(s)}`),chat:(s,t,n)=>F("/api/chat",{method:"POST",body:{agent:s,input:t,...n&&{threadId:n}}}),stop:s=>F(`/api/runs/${encodeURIComponent(s)}/stop`,{method:"POST",body:{}}),approve:(s,t,n)=>F(`/api/approvals/${encodeURIComponent(s)}`,{method:"POST",body:{approved:t,...n&&{reason:n}}}),fork:(s,t)=>F(`/api/runs/${encodeURIComponent(s)}/fork`,{method:"POST",body:t}),runWorkflow:(s,t)=>F(`/api/workflows/${encodeURIComponent(s)}/run`,{method:"POST",body:{input:t}}),rerun:(s,t)=>F(`/api/runs/${encodeURIComponent(s)}/rerun`,{method:"POST",body:{fromNode:t}})};function tt(s,t){let n,a=!1,i;const r=()=>{n=new EventSource("/api/events",{withCredentials:!0}),n.onopen=()=>t(!0),n.onmessage=c=>s(JSON.parse(c.data)),n.onerror=()=>{t(!1),n?.close(),a||(i=setTimeout(r,1e3))}};return r(),()=>{a=!0,clearTimeout(i),n?.close()}}function Y(s,t=!0){return s===void 0||!t&&s===0?"unpriced":s===0?"$0":s<1e-4?"<$0.0001":s<1?`$${s.toFixed(4)}`:`$${s.toFixed(2)}`}function T(s){return s===void 0?"":s<1e3?`${Math.round(s)} ms`:s<6e4?`${(s/1e3).toFixed(s<1e4?2:1)} s`:`${Math.floor(s/6e4)} min ${Math.round(s%6e4/1e3)} s`}function L(s){return s===void 0?"":s>=1e4?`${(s/1e3).toFixed(1)}k`:String(s)}function G(s,t=Date.now()){const n=Math.max(0,Math.round((t-s)/1e3));if(n<60)return`${n}s ago`;const a=Math.round(n/60);if(a<60)return`${a} min ago`;const i=Math.round(a/60);return i<48?`${i} h ago`:new Date(s).toLocaleDateString()}function M(s){if(typeof s=="string")return s;try{return JSON.stringify(s,null,2)??String(s)}catch{return String(s)}}function ne(s,t=90){const n=(s??"").replace(/\s+/g," ").trim();return n.length>t?`${n.slice(0,t-1)}…`:n}function Z(s){return s>=1e6?`${(s/1e6).toFixed(1)}M`:s>=1e4?`${(s/1e3).toFixed(1)}k`:s.toLocaleString("en-US")}function we(s){return new Date(s).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function Je(s){return new Date(s).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}function be(s,t){return s.model??t.defaultModel??"default model"}function nt(){return window.location.hash.replace(/^#\/?/,"").split("/").filter(Boolean).map(decodeURIComponent)}function at(){return p.useSyncExternalStore(s=>(window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)),()=>window.location.hash),nt()}function S(...s){return`#/${s.map(encodeURIComponent).join("/")}`}function C(...s){window.location.hash=S(...s)}let V={connected:!1,loaded:!1,project:"",host:{state:"starting"},runs:{},threads:{}};const pe=new Set;function X(s){V={...V,...s};for(const t of pe)t()}function ee(s){const t=s.filter(a=>(V.runs[a.id]?.revision??-1)<a.revision);if(t.length===0)return;const n={...V.runs};for(const a of t)n[a.id]=a;X({runs:n})}let Se;async function Ve(){try{X({stats:await E.stats()})}catch{return}}function rt(){clearTimeout(Se),Se=setTimeout(()=>{Ve()},600)}function it(s){switch(s.type){case"host":X({host:s.status});break;case"run":ee([s.run]),rt();break;case"thread":X({threads:{...V.threads,[s.thread.id]:s.thread}});break;case"token":case"reasoning":{const t=V.runs[s.runId];if(!t)break;const n=s.type==="token"?"output":"reasoning";ee([{...t,[n]:(t[n]??"")+s.text,revision:s.revision}]);break}}}function lt(){return tt(it,t=>{X({connected:t}),t&&ot()})}async function ot(){const s=await E.state();X({loaded:!0,project:s.project,host:s.host,threads:Object.fromEntries(s.threads.map(t=>[t.id,t]))}),ee(s.runs),await Ve()}async function me(s){const t=await E.run(s);return ee([t.run,...t.descendants,...t.forks]),t}async function ct(s){const t=await E.runs(s);ee(t.runs)}async function dt(s){const{thread:t,runs:n}=await E.thread(s);X({threads:{...V.threads,[t.id]:t}}),ee(n)}function $(s){return p.useSyncExternalStore(t=>(pe.add(t),()=>pe.delete(t)),()=>s(V))}const xe="cogitator-studio-theme",je=new Set;function ut(){try{const s=localStorage.getItem(xe);return s==="light"||s==="dark"?s:"system"}catch{return"system"}}let ce=ut();function qe(s){ce=s;try{s==="system"?localStorage.removeItem(xe):localStorage.setItem(xe,s)}catch{}s==="system"?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=s;for(const t of je)t()}function de(){return ce!=="system"?ce:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Xe(){qe(de()==="dark"?"light":"dark")}function ht(){return p.useSyncExternalStore(s=>(je.add(s),()=>je.delete(s)),()=>ce)}const Ye={running:"Running",waiting:"Needs approval",completed:"Completed",failed:"Failed",stopped:"Stopped",pending:"Pending",skipped:"Skipped"},pt={running:Me,waiting:gs,completed:fs,failed:De,stopped:js,pending:xs,skipped:ms};function U({status:s}){return e.jsx("span",{className:"status","data-status":s,children:Ye[s]})}function mt({status:s,size:t=15}){const n=pt[s];return e.jsx("span",{className:"status-icon","data-status":s,"data-tip":Ye[s],children:e.jsx(n,{size:t,strokeWidth:2,style:s==="running"?{animation:"spin 1s linear infinite"}:void 0})})}async function xt(s){if(navigator.clipboard&&window.isSecureContext){await navigator.clipboard.writeText(s);return}const t=document.createElement("textarea");t.value=s,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select(),document.execCommand("copy"),t.remove()}function ae({value:s,label:t="Copy"}){const[n,a]=p.useState(!1),i=p.useRef(void 0);p.useEffect(()=>()=>clearTimeout(i.current),[]);const r=async()=>{await xt(s),a(!0),clearTimeout(i.current),i.current=setTimeout(()=>a(!1),1400)};return e.jsx("button",{type:"button",className:"btn btn-ghost btn-icon btn-sm",onClick:()=>{r()},"aria-label":t,"data-tip":n?"Copied":t,children:n?e.jsx(hs,{size:13}):e.jsx(ps,{size:13})})}const jt=/("(?:\\.|[^"\\])*")(\s*:)?|\b(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b|\b(true|false|null)\b/g;function ft(s){const t=[];let n=0;for(const a of s.matchAll(jt)){const i=a.index;i>n&&t.push(s.slice(n,i));const[r,c,l,o,d]=a;c!==void 0?(t.push(e.jsx("span",{className:l?"j-key":"j-string",children:c},i)),l&&t.push(l)):o!==void 0?t.push(e.jsx("span",{className:"j-number",children:o},i)):d!==void 0&&t.push(e.jsx("span",{className:"j-literal",children:d},i)),n=i+r.length}return n<s.length&&t.push(s.slice(n)),t}function B({value:s,label:t}){const n=M(s),a=typeof s!="string";return e.jsxs("div",{className:"json",children:[e.jsxs("div",{className:"json-head",children:[e.jsx("span",{children:t??"value"}),e.jsx(ae,{value:n,label:`Copy ${t??"value"}`})]}),e.jsx("pre",{children:a?ft(n):n})]})}function W({icon:s,title:t,children:n,action:a}){return e.jsxs("div",{className:"empty",children:[s&&e.jsx("div",{className:"empty-icon",children:e.jsx(s,{size:18})}),t&&e.jsx("div",{className:"empty-title",children:t}),n&&e.jsx("div",{className:"empty-text",children:n}),a]})}function R({keys:s}){return e.jsx("span",{className:"kbds",children:s.map(t=>e.jsx("kbd",{className:"kbd",children:t},t))})}function O({crumbs:s,actions:t}){return e.jsxs("header",{className:"topbar",children:[e.jsx("nav",{className:"crumbs","aria-label":"Breadcrumb",children:s.map((n,a)=>{const i=a===s.length-1;return e.jsxs("span",{style:{display:"contents"},children:[a>0&&e.jsx(ve,{size:14}),n.to&&!i?e.jsx("a",{href:S(...n.to),className:"truncate",children:n.label}):e.jsx("span",{className:`truncate ${i?"crumb-current":""}`,children:n.label})]},a)})}),t&&e.jsx("div",{className:"topbar-actions",children:t})]})}function I({children:s}){return e.jsxs("div",{className:"error-text",role:"alert",children:[e.jsx(De,{size:14}),e.jsx("span",{children:s})]})}function q(s){return s instanceof Error?s.message:String(s)}function gt(s,t){if(!t)return 1;const n=s.label.toLowerCase(),a=`${n} ${s.keywords??""} ${s.group}`.toLowerCase();return n.startsWith(t)?3:n.split(/[\s/:-]+/).some(i=>i.startsWith(t))?2:t.split(/\s+/).every(i=>a.includes(i))?1:0}function $e(s,t){return{id:`run-${s.id}`,group:t,label:ne(s.input,70)||s.id,hint:`${s.target} · ${G(s.startedAt)}`,icon:s.kind==="workflow"?D:s.kind==="fork"?J:P,keywords:`${s.target} ${s.output??""}`,run:()=>C("runs",s.id)}}function vt({onClose:s,onShortcuts:t}){const n=$(m=>m.host),a=$(m=>m.runs),[i,r]=p.useState(""),[c,l]=p.useState(0),[o,d]=p.useState([]),j=p.useRef(null),v=i.trim().toLowerCase();p.useEffect(()=>{if(v.length<2){d([]);return}let m=!0;const g=setTimeout(()=>{E.runs({q:v}).then(w=>m&&d(w.runs.slice(0,8))).catch(()=>m&&d([]))},120);return()=>{m=!1,clearTimeout(g)}},[v]);const h=p.useMemo(()=>{const m=n.state==="ready"?n.registry:void 0,w=[{id:"overview",group:"Go to",label:"Overview",icon:Fe,hint:e.jsx(R,{keys:["G","O"]}),run:()=>C()},{id:"runs",group:"Go to",label:"Runs",icon:P,keywords:"history traces",hint:e.jsx(R,{keys:["G","R"]}),run:()=>C("runs")},...(m?.agents??[]).map(b=>({id:`agent-${b.key}`,group:"Agents",label:b.name,hint:m?be(b,m):b.model,icon:K,keywords:`chat ${b.key} ${b.description??""}`,run:()=>C("agents",b.key)})),...(m?.workflows??[]).map(b=>({id:`workflow-${b.key}`,group:"Workflows",label:b.name,hint:`${b.nodes.length} nodes`,icon:D,keywords:`run ${b.key}`,run:()=>C("workflows",b.key)})),...(m?.agents??[]).map(b=>({id:`new-${b.key}`,group:"Actions",label:`New thread with ${b.name}`,icon:Pe,keywords:"chat message start",run:()=>C("agents",b.key)})),{id:"theme",group:"Actions",label:de()==="dark"?"Switch to light theme":"Switch to dark theme",icon:de()==="dark"?Ne:ye,keywords:"theme appearance dark light mode",run:Xe},{id:"shortcuts",group:"Actions",label:"Keyboard shortcuts",icon:Le,hint:e.jsx(R,{keys:["?"]}),keywords:"keys help hotkeys",run:t}].map(b=>({command:b,score:gt(b,v)})).filter(b=>b.score>0).sort((b,A)=>A.score-b.score).map(b=>b.command),y=v?o.map(b=>$e(b,"Runs")):Object.values(a).filter(b=>!b.parentRunId).sort((b,A)=>A.startedAt-b.startedAt).slice(0,5).map(b=>$e(b,"Recent runs")),k=["Go to","Agents","Workflows","Recent runs","Runs","Actions"];return[...w,...y].sort((b,A)=>k.indexOf(b.group)-k.indexOf(A.group))},[n,a,o,v,t]);p.useEffect(()=>l(0),[v]),p.useEffect(()=>{j.current?.querySelector(`[data-index="${c}"]`)?.scrollIntoView({block:"nearest"})},[c]);const u=m=>{m&&(s(),m.run())},x=m=>{m.key==="ArrowDown"||m.ctrlKey&&m.key==="n"?(m.preventDefault(),l(g=>Math.min(g+1,h.length-1))):m.key==="ArrowUp"||m.ctrlKey&&m.key==="p"?(m.preventDefault(),l(g=>Math.max(g-1,0))):m.key==="Enter"?(m.preventDefault(),u(h[c])):m.key==="Escape"&&(m.preventDefault(),s())};let f="";return e.jsx("div",{className:"overlay",onMouseDown:s,"data-dialog":!0,children:e.jsxs("div",{className:"palette",role:"dialog","aria-modal":"true","aria-label":"Command palette",onMouseDown:m=>m.stopPropagation(),onKeyDown:x,"data-testid":"command-palette",children:[e.jsxs("div",{className:"palette-input",children:[e.jsx(ue,{size:17}),e.jsx("input",{autoFocus:!0,value:i,onChange:m=>r(m.target.value),placeholder:"Search agents, workflows, runs and actions",role:"combobox","aria-expanded":"true","aria-controls":"palette-list","aria-activedescendant":h[c]?`palette-${h[c].id}`:void 0,"data-testid":"palette-input"}),e.jsx(R,{keys:["Esc"]})]}),e.jsxs("div",{className:"palette-list",id:"palette-list",role:"listbox",ref:j,children:[h.length===0&&e.jsx("div",{className:"palette-empty",children:"Nothing matches."}),h.map((m,g)=>{const w=m.group!==f?m.group:void 0;f=m.group;const y=m.icon;return e.jsxs("div",{children:[w&&e.jsx("div",{className:"palette-group",children:w}),e.jsxs("div",{id:`palette-${m.id}`,className:"palette-item",role:"option","aria-selected":g===c,"data-index":g,onMouseMove:()=>g!==c&&l(g),onClick:()=>u(m),children:[e.jsx(y,{size:15}),e.jsx("span",{className:"palette-label",children:m.label}),m.hint&&e.jsx("span",{className:"palette-hint",children:m.hint})]})]},m.id)})]}),e.jsxs("div",{className:"palette-foot",children:[e.jsxs("span",{children:[e.jsx(R,{keys:["↑","↓"]})," navigate"]}),e.jsxs("span",{children:[e.jsx("kbd",{className:"kbd",children:e.jsx(vs,{size:10})})," ","open"]}),e.jsxs("span",{children:[e.jsx(R,{keys:["Esc"]})," close"]})]})]})})}const ke=/Mac|iPhone|iPad/.test(navigator.platform)?"⌘":"Ctrl";function Qe(s){const t=s.target;return t instanceof HTMLElement?t.isContentEditable||t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT":!1}function Ze(){return document.querySelector("[data-dialog]")!==null}function es(s){const t=p.useRef(s);t.current=s,p.useEffect(()=>{const n=a=>t.current(a);return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[])}function ss(s,t){es(n=>{n.metaKey||n.ctrlKey||n.altKey||Qe(n)||Ze()||s.includes(n.key)&&(n.preventDefault(),t(n))})}const Nt=[{title:"Everywhere",keys:[["Command palette",[ke,"K"]],["Keyboard shortcuts",["?"]],["Go to the overview",["G","O"]],["Go to the runs",["G","R"]],["Search the page",["/"]]]},{title:"Chat",keys:[["Send",["Enter"]],["New line",["Shift","Enter"]],["New thread",["N"]],["Focus the message box",["C"]]]},{title:"Runs",keys:[["Next and previous run",["J","K"]],["Open the run",["Enter"]]]}];function yt({onClose:s}){return e.jsx("div",{className:"overlay",onMouseDown:s,onKeyDown:t=>t.key==="Escape"&&s(),"data-dialog":!0,children:e.jsxs("div",{className:"dialog",role:"dialog","aria-modal":"true","aria-labelledby":"shortcuts-title",onMouseDown:t=>t.stopPropagation(),children:[e.jsxs("div",{className:"dialog-head",children:[e.jsx("h2",{id:"shortcuts-title",children:"Keyboard shortcuts"}),e.jsx("button",{type:"button",className:"btn btn-ghost btn-icon btn-sm",onClick:s,"aria-label":"Close",autoFocus:!0,children:e.jsx(We,{size:15})})]}),e.jsx("div",{className:"dialog-body",children:Nt.map(t=>e.jsxs("div",{children:[e.jsx("div",{className:"shortcut-group",children:t.title}),t.keys.map(([n,a])=>e.jsxs("div",{className:"shortcut",children:[e.jsx("span",{children:n}),e.jsx(R,{keys:a})]},n))]},t.title))})]})})}function bt({className:s}){return e.jsxs("svg",{className:s,viewBox:"0 0 32 32","aria-hidden":"true",children:[e.jsx("rect",{width:"32",height:"32",rx:"8",fill:"currentColor"}),e.jsx("path",{d:"M21 11.2A7 7 0 1 0 21 20.8",fill:"none",stroke:"var(--bg)",strokeWidth:"3",strokeLinecap:"round"}),e.jsx("circle",{cx:"16",cy:"16",r:"2",fill:"var(--bg)"})]})}function le({to:s,icon:t,active:n,children:a,meta:i,testId:r}){return e.jsxs("a",{href:S(...s),className:`sb-link ${n?"active":""}`,"aria-current":n?"page":void 0,"data-testid":r,children:[e.jsx(t,{size:15}),e.jsx("span",{className:"sb-text truncate",children:a}),i!==void 0&&e.jsx("span",{className:"sb-meta",children:i})]})}const kt=[{value:"system",icon:ys,label:"System theme"},{value:"light",icon:Ne,label:"Light theme"},{value:"dark",icon:ye,label:"Dark theme"}];function wt({route:s,onSearch:t,onShortcuts:n}){const a=$(u=>u.host),i=$(u=>u.project),r=$(u=>u.connected),c=$(u=>u.runs),l=ht(),o=a.state==="ready"?a.registry:void 0,d=(...u)=>u.every((x,f)=>s[f]===x),j=new Set(Object.values(c).filter(u=>u.status==="running"||u.status==="waiting").map(u=>u.target)),v=r?a.state:"offline",h={ready:"Project loaded",starting:"Loading the project",restarting:"Reloading the project",failed:"The project does not load",offline:"Reconnecting to cogitator dev"};return e.jsxs("nav",{className:"sidebar","aria-label":"Studio",children:[e.jsxs("div",{className:"sb-top",children:[e.jsxs("a",{className:"sb-brand",href:"#/",children:[e.jsx(bt,{className:"sb-mark"}),e.jsxs("span",{className:"sb-text",style:{minWidth:0},children:[e.jsx("div",{className:"sb-name",children:"Cogitator Studio"}),e.jsxs("div",{className:"sb-project",children:[e.jsx("span",{className:"dot","data-state":v}),e.jsx("span",{className:"truncate",children:i||"project"})]})]})]}),e.jsxs("button",{type:"button",className:"sb-search",onClick:t,"data-testid":"open-palette",children:[e.jsx(ue,{size:14}),e.jsx("span",{children:"Search"}),e.jsx(R,{keys:[ke,"K"]})]})]}),e.jsxs("div",{className:"sb-nav",children:[e.jsx(le,{to:[],icon:Fe,active:s.length===0,children:"Overview"}),e.jsx(le,{to:["runs"],icon:P,active:s[0]==="runs"||s[0]==="compare",testId:"nav-runs",meta:j.size>0?e.jsx("span",{className:"spinner","aria-label":"runs going"}):void 0,children:"Runs"}),e.jsxs("div",{className:"sb-section",children:[e.jsx("div",{className:"sb-section-title",children:"Agents"}),o?.agents.map(u=>e.jsx(le,{to:["agents",u.key],icon:K,active:d("agents",u.key),testId:`agent-${u.key}`,meta:j.has(u.key)?e.jsx("span",{className:"dot","data-state":"starting"}):void 0,children:u.name},u.key)),o?.agents.length===0&&e.jsx("div",{className:"sb-empty",children:"None registered"}),!o&&e.jsx("div",{className:"skeleton",style:{height:22,margin:"4px 8px"}})]}),o&&o.workflows.length>0&&e.jsxs("div",{className:"sb-section",children:[e.jsx("div",{className:"sb-section-title",children:"Workflows"}),o.workflows.map(u=>e.jsx(le,{to:["workflows",u.key],icon:D,active:d("workflows",u.key),meta:j.has(u.key)?e.jsx("span",{className:"dot","data-state":"starting"}):void 0,children:u.name},u.key))]}),o&&o.swarms.length>0&&e.jsxs("div",{className:"sb-section",children:[e.jsx("div",{className:"sb-section-title",children:"Swarms"}),o.swarms.map(u=>e.jsxs("div",{className:"sb-link sb-static","data-tip":`${u.strategy}: ${u.agents.join(", ")}`,children:[e.jsx(Ns,{size:15}),e.jsx("span",{className:"sb-text truncate",children:u.name}),e.jsx("span",{className:"sb-meta",children:u.strategy})]},u.key))]})]}),e.jsxs("div",{className:"sb-footer",children:[e.jsxs("div",{className:"sb-conn","data-tip":h[v],children:[e.jsx("span",{className:"dot","data-state":v}),e.jsx("span",{children:r?"Live":"Offline"})]}),e.jsxs("div",{className:"sb-tools",children:[e.jsx("div",{className:"seg seg-icons sb-themes",role:"group","aria-label":"Theme",children:kt.map(({value:u,icon:x,label:f})=>e.jsx("button",{type:"button","aria-pressed":l===u,"aria-label":f,"data-tip":f,onClick:()=>qe(u),children:e.jsx(x,{size:13})},u))}),e.jsx("button",{type:"button",className:"btn btn-ghost btn-icon btn-sm sb-theme-toggle",onClick:Xe,"aria-label":"Switch theme","data-tip":"Switch theme",children:de()==="dark"?e.jsx(Ne,{size:14}):e.jsx(ye,{size:14})}),e.jsx("button",{type:"button",className:"btn btn-ghost btn-icon btn-sm",onClick:n,"aria-label":"Keyboard shortcuts","data-tip":"Shortcuts",children:e.jsx(Le,{size:14})})]})]})]})}const St=/(```[\s\S]*?(?:```|$)|`[^`\n]*`)/g;function Ce(s,t,n,a){let i="",r=0;for(;;){const c=s.indexOf(t,r);if(c===-1)break;const l=s.indexOf(n,c+t.length);if(l===-1)break;const o=s.slice(c+t.length,l).trim();i+=s.slice(r,c)+(o?a(o):s.slice(c,l+n.length)),r=l+n.length}return i+s.slice(r)}function $t(s){return s.split(St).map((t,n)=>{if(n%2===1)return t;const a=Ce(t,"\\[","\\]",i=>`
1
+ import{r as p,j as e,c as us}from"./react-Oh0PCTUB.js";import{C as ve,a as De,b as hs,c as ps,d as ms,e as xs,f as js,L as Me,g as fs,h as gs,i as Fe,A as P,S as Ne,M as ye,K as Le,B as K,W as D,P as Pe,j as ue,k as vs,G as J,X as We,N as Ns,l as ys,m as se,n as Ke,I as bs,o as _e,p as ks,q as Be,r as ws,s as Ge,t as Ss,E as $s,u as Cs,T as Ue,v as He,w as Ts,x as Es,y as As,R as Rs,z as Os,D as Is,F as he,H as zs,J as Ds}from"./icons-Bvrqt254.js";import"./math-Dyab3dfo.js";import{M as Ms,r as Fs,a as Ls,y as Ps,x as Ws,t as Ks,s as _s,b as Bs,c as Gs,p as Us,m as Hs,j as Js,d as Vs,e as qs,g as Xs,f as Ys,h as Qs,i as Zs,k as et,l as st}from"./markdown-B0lQtlaX.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const c of r.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}})();async function F(s,t){const n=await fetch(s,{method:t?.method??"GET",credentials:"same-origin",headers:t?.body!==void 0?{"content-type":"application/json"}:void 0,body:t?.body!==void 0?JSON.stringify(t.body):void 0}),a=await n.text(),i=a?JSON.parse(a):{};if(!n.ok)throw new Error(i.error??`HTTP ${n.status}`);return i}const E={state:()=>F("/api/state"),stats:()=>F("/api/stats"),runs:s=>{const t=new URLSearchParams;for(const[n,a]of Object.entries(s))a&&t.set(n,a);return F(`/api/runs?${t.toString()}`)},run:s=>F(`/api/runs/${encodeURIComponent(s)}`),thread:s=>F(`/api/threads/${encodeURIComponent(s)}`),chat:(s,t,n)=>F("/api/chat",{method:"POST",body:{agent:s,input:t,...n&&{threadId:n}}}),stop:s=>F(`/api/runs/${encodeURIComponent(s)}/stop`,{method:"POST",body:{}}),approve:(s,t,n)=>F(`/api/approvals/${encodeURIComponent(s)}`,{method:"POST",body:{approved:t,...n&&{reason:n}}}),fork:(s,t)=>F(`/api/runs/${encodeURIComponent(s)}/fork`,{method:"POST",body:t}),runWorkflow:(s,t)=>F(`/api/workflows/${encodeURIComponent(s)}/run`,{method:"POST",body:{input:t}}),rerun:(s,t)=>F(`/api/runs/${encodeURIComponent(s)}/rerun`,{method:"POST",body:{fromNode:t}})};function tt(s,t){let n,a=!1,i;const r=()=>{n=new EventSource("/api/events",{withCredentials:!0}),n.onopen=()=>t(!0),n.onmessage=c=>s(JSON.parse(c.data)),n.onerror=()=>{t(!1),n?.close(),a||(i=setTimeout(r,1e3))}};return r(),()=>{a=!0,clearTimeout(i),n?.close()}}function Y(s,t=!0){return s===void 0||!t&&s===0?"unpriced":s===0?"$0":s<1e-4?"<$0.0001":s<1?`$${s.toFixed(4)}`:`$${s.toFixed(2)}`}function T(s){return s===void 0?"":s<1e3?`${Math.round(s)} ms`:s<6e4?`${(s/1e3).toFixed(s<1e4?2:1)} s`:`${Math.floor(s/6e4)} min ${Math.round(s%6e4/1e3)} s`}function L(s){return s===void 0?"":s>=1e4?`${(s/1e3).toFixed(1)}k`:String(s)}function G(s,t=Date.now()){const n=Math.max(0,Math.round((t-s)/1e3));if(n<60)return`${n}s ago`;const a=Math.round(n/60);if(a<60)return`${a} min ago`;const i=Math.round(a/60);return i<48?`${i} h ago`:new Date(s).toLocaleDateString()}function M(s){if(typeof s=="string")return s;try{return JSON.stringify(s,null,2)??String(s)}catch{return String(s)}}function ne(s,t=90){const n=(s??"").replace(/\s+/g," ").trim();return n.length>t?`${n.slice(0,t-1)}…`:n}function Z(s){return s>=1e6?`${(s/1e6).toFixed(1)}M`:s>=1e4?`${(s/1e3).toFixed(1)}k`:s.toLocaleString("en-US")}function we(s){return new Date(s).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function Je(s){return new Date(s).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"})}function be(s,t){return s.model??t.defaultModel??"default model"}function nt(){return window.location.hash.replace(/^#\/?/,"").split("/").filter(Boolean).map(decodeURIComponent)}function at(){return p.useSyncExternalStore(s=>(window.addEventListener("hashchange",s),()=>window.removeEventListener("hashchange",s)),()=>window.location.hash),nt()}function S(...s){return`#/${s.map(encodeURIComponent).join("/")}`}function C(...s){window.location.hash=S(...s)}let V={connected:!1,loaded:!1,project:"",host:{state:"starting"},runs:{},threads:{}};const pe=new Set;function X(s){V={...V,...s};for(const t of pe)t()}function ee(s){const t=s.filter(a=>(V.runs[a.id]?.revision??-1)<a.revision);if(t.length===0)return;const n={...V.runs};for(const a of t)n[a.id]=a;X({runs:n})}let Se;async function Ve(){try{X({stats:await E.stats()})}catch{return}}function rt(){clearTimeout(Se),Se=setTimeout(()=>{Ve()},600)}function it(s){switch(s.type){case"host":X({host:s.status});break;case"run":ee([s.run]),rt();break;case"thread":X({threads:{...V.threads,[s.thread.id]:s.thread}});break;case"token":case"reasoning":{const t=V.runs[s.runId];if(!t)break;const n=s.type==="token"?"output":"reasoning";ee([{...t,[n]:(t[n]??"")+s.text,revision:s.revision}]);break}}}function lt(){return tt(it,t=>{X({connected:t}),t&&ot()})}async function ot(){const s=await E.state();X({loaded:!0,project:s.project,host:s.host,threads:Object.fromEntries(s.threads.map(t=>[t.id,t]))}),ee(s.runs),await Ve()}async function me(s){const t=await E.run(s);return ee([t.run,...t.descendants,...t.forks]),t}async function ct(s){const t=await E.runs(s);ee(t.runs)}async function dt(s){const{thread:t,runs:n}=await E.thread(s);X({threads:{...V.threads,[t.id]:t}}),ee(n)}function $(s){return p.useSyncExternalStore(t=>(pe.add(t),()=>pe.delete(t)),()=>s(V))}const xe="cogitator-studio-theme",je=new Set;function ut(){try{const s=localStorage.getItem(xe);return s==="light"||s==="dark"?s:"system"}catch{return"system"}}let ce=ut();function qe(s){ce=s;try{s==="system"?localStorage.removeItem(xe):localStorage.setItem(xe,s)}catch{}s==="system"?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=s;for(const t of je)t()}function de(){return ce!=="system"?ce:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Xe(){qe(de()==="dark"?"light":"dark")}function ht(){return p.useSyncExternalStore(s=>(je.add(s),()=>je.delete(s)),()=>ce)}const Ye={running:"Running",waiting:"Needs approval",completed:"Completed",failed:"Failed",stopped:"Stopped",pending:"Pending",skipped:"Skipped"},pt={running:Me,waiting:js,completed:xs,failed:De,stopped:ms,pending:ps,skipped:hs};function U({status:s}){return e.jsx("span",{className:"status","data-status":s,children:Ye[s]})}function mt({status:s,size:t=15}){const n=pt[s];return e.jsx("span",{className:"status-icon","data-status":s,"data-tip":Ye[s],children:e.jsx(n,{size:t,strokeWidth:2,style:s==="running"?{animation:"spin 1s linear infinite"}:void 0})})}async function xt(s){if(navigator.clipboard&&window.isSecureContext){await navigator.clipboard.writeText(s);return}const t=document.createElement("textarea");t.value=s,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select(),document.execCommand("copy"),t.remove()}function ae({value:s,label:t="Copy"}){const[n,a]=p.useState(!1),i=p.useRef(void 0);p.useEffect(()=>()=>clearTimeout(i.current),[]);const r=async()=>{await xt(s),a(!0),clearTimeout(i.current),i.current=setTimeout(()=>a(!1),1400)};return e.jsx("button",{type:"button",className:"btn btn-ghost btn-icon btn-sm",onClick:()=>{r()},"aria-label":t,"data-tip":n?"Copied":t,children:n?e.jsx(fs,{size:13}):e.jsx(gs,{size:13})})}const jt=/("(?:\\.|[^"\\])*")(\s*:)?|\b(-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b|\b(true|false|null)\b/g;function ft(s){const t=[];let n=0;for(const a of s.matchAll(jt)){const i=a.index;i>n&&t.push(s.slice(n,i));const[r,c,l,o,d]=a;c!==void 0?(t.push(e.jsx("span",{className:l?"j-key":"j-string",children:c},i)),l&&t.push(l)):o!==void 0?t.push(e.jsx("span",{className:"j-number",children:o},i)):d!==void 0&&t.push(e.jsx("span",{className:"j-literal",children:d},i)),n=i+r.length}return n<s.length&&t.push(s.slice(n)),t}function B({value:s,label:t}){const n=M(s),a=typeof s!="string";return e.jsxs("div",{className:"json",children:[e.jsxs("div",{className:"json-head",children:[e.jsx("span",{children:t??"value"}),e.jsx(ae,{value:n,label:`Copy ${t??"value"}`})]}),e.jsx("pre",{children:a?ft(n):n})]})}function W({icon:s,title:t,children:n,action:a}){return e.jsxs("div",{className:"empty",children:[s&&e.jsx("div",{className:"empty-icon",children:e.jsx(s,{size:18})}),t&&e.jsx("div",{className:"empty-title",children:t}),n&&e.jsx("div",{className:"empty-text",children:n}),a]})}function R({keys:s}){return e.jsx("span",{className:"kbds",children:s.map(t=>e.jsx("kbd",{className:"kbd",children:t},t))})}function O({crumbs:s,actions:t}){return e.jsxs("header",{className:"topbar",children:[e.jsx("nav",{className:"crumbs","aria-label":"Breadcrumb",children:s.map((n,a)=>{const i=a===s.length-1;return e.jsxs("span",{style:{display:"contents"},children:[a>0&&e.jsx(ve,{size:14}),n.to&&!i?e.jsx("a",{href:S(...n.to),className:"truncate",children:n.label}):e.jsx("span",{className:`truncate ${i?"crumb-current":""}`,children:n.label})]},a)})}),t&&e.jsx("div",{className:"topbar-actions",children:t})]})}function I({children:s}){return e.jsxs("div",{className:"error-text",role:"alert",children:[e.jsx(De,{size:14}),e.jsx("span",{children:s})]})}function q(s){return s instanceof Error?s.message:String(s)}function gt(s,t){if(!t)return 1;const n=s.label.toLowerCase(),a=`${n} ${s.keywords??""} ${s.group}`.toLowerCase();return n.startsWith(t)?3:n.split(/[\s/:-]+/).some(i=>i.startsWith(t))?2:t.split(/\s+/).every(i=>a.includes(i))?1:0}function $e(s,t){return{id:`run-${s.id}`,group:t,label:ne(s.input,70)||s.id,hint:`${s.target} · ${G(s.startedAt)}`,icon:s.kind==="workflow"?D:s.kind==="fork"?J:P,keywords:`${s.target} ${s.output??""}`,run:()=>C("runs",s.id)}}function vt({onClose:s,onShortcuts:t}){const n=$(m=>m.host),a=$(m=>m.runs),[i,r]=p.useState(""),[c,l]=p.useState(0),[o,d]=p.useState([]),j=p.useRef(null),v=i.trim().toLowerCase();p.useEffect(()=>{if(v.length<2){d([]);return}let m=!0;const g=setTimeout(()=>{E.runs({q:v}).then(w=>m&&d(w.runs.slice(0,8))).catch(()=>m&&d([]))},120);return()=>{m=!1,clearTimeout(g)}},[v]);const h=p.useMemo(()=>{const m=n.state==="ready"?n.registry:void 0,w=[{id:"overview",group:"Go to",label:"Overview",icon:Fe,hint:e.jsx(R,{keys:["G","O"]}),run:()=>C()},{id:"runs",group:"Go to",label:"Runs",icon:P,keywords:"history traces",hint:e.jsx(R,{keys:["G","R"]}),run:()=>C("runs")},...(m?.agents??[]).map(b=>({id:`agent-${b.key}`,group:"Agents",label:b.name,hint:m?be(b,m):b.model,icon:K,keywords:`chat ${b.key} ${b.description??""}`,run:()=>C("agents",b.key)})),...(m?.workflows??[]).map(b=>({id:`workflow-${b.key}`,group:"Workflows",label:b.name,hint:`${b.nodes.length} nodes`,icon:D,keywords:`run ${b.key}`,run:()=>C("workflows",b.key)})),...(m?.agents??[]).map(b=>({id:`new-${b.key}`,group:"Actions",label:`New thread with ${b.name}`,icon:Pe,keywords:"chat message start",run:()=>C("agents",b.key)})),{id:"theme",group:"Actions",label:de()==="dark"?"Switch to light theme":"Switch to dark theme",icon:de()==="dark"?Ne:ye,keywords:"theme appearance dark light mode",run:Xe},{id:"shortcuts",group:"Actions",label:"Keyboard shortcuts",icon:Le,hint:e.jsx(R,{keys:["?"]}),keywords:"keys help hotkeys",run:t}].map(b=>({command:b,score:gt(b,v)})).filter(b=>b.score>0).sort((b,A)=>A.score-b.score).map(b=>b.command),y=v?o.map(b=>$e(b,"Runs")):Object.values(a).filter(b=>!b.parentRunId).sort((b,A)=>A.startedAt-b.startedAt).slice(0,5).map(b=>$e(b,"Recent runs")),k=["Go to","Agents","Workflows","Recent runs","Runs","Actions"];return[...w,...y].sort((b,A)=>k.indexOf(b.group)-k.indexOf(A.group))},[n,a,o,v,t]);p.useEffect(()=>l(0),[v]),p.useEffect(()=>{j.current?.querySelector(`[data-index="${c}"]`)?.scrollIntoView({block:"nearest"})},[c]);const u=m=>{m&&(s(),m.run())},x=m=>{m.key==="ArrowDown"||m.ctrlKey&&m.key==="n"?(m.preventDefault(),l(g=>Math.min(g+1,h.length-1))):m.key==="ArrowUp"||m.ctrlKey&&m.key==="p"?(m.preventDefault(),l(g=>Math.max(g-1,0))):m.key==="Enter"?(m.preventDefault(),u(h[c])):m.key==="Escape"&&(m.preventDefault(),s())};let f="";return e.jsx("div",{className:"overlay",onMouseDown:s,"data-dialog":!0,children:e.jsxs("div",{className:"palette",role:"dialog","aria-modal":"true","aria-label":"Command palette",onMouseDown:m=>m.stopPropagation(),onKeyDown:x,"data-testid":"command-palette",children:[e.jsxs("div",{className:"palette-input",children:[e.jsx(ue,{size:17}),e.jsx("input",{autoFocus:!0,value:i,onChange:m=>r(m.target.value),placeholder:"Search agents, workflows, runs and actions",role:"combobox","aria-expanded":"true","aria-controls":"palette-list","aria-activedescendant":h[c]?`palette-${h[c].id}`:void 0,"data-testid":"palette-input"}),e.jsx(R,{keys:["Esc"]})]}),e.jsxs("div",{className:"palette-list",id:"palette-list",role:"listbox",ref:j,children:[h.length===0&&e.jsx("div",{className:"palette-empty",children:"Nothing matches."}),h.map((m,g)=>{const w=m.group!==f?m.group:void 0;f=m.group;const y=m.icon;return e.jsxs("div",{children:[w&&e.jsx("div",{className:"palette-group",children:w}),e.jsxs("div",{id:`palette-${m.id}`,className:"palette-item",role:"option","aria-selected":g===c,"data-index":g,onMouseMove:()=>g!==c&&l(g),onClick:()=>u(m),children:[e.jsx(y,{size:15}),e.jsx("span",{className:"palette-label",children:m.label}),m.hint&&e.jsx("span",{className:"palette-hint",children:m.hint})]})]},m.id)})]}),e.jsxs("div",{className:"palette-foot",children:[e.jsxs("span",{children:[e.jsx(R,{keys:["↑","↓"]})," navigate"]}),e.jsxs("span",{children:[e.jsx("kbd",{className:"kbd",children:e.jsx(vs,{size:10})})," ","open"]}),e.jsxs("span",{children:[e.jsx(R,{keys:["Esc"]})," close"]})]})]})})}const ke=/Mac|iPhone|iPad/.test(navigator.platform)?"⌘":"Ctrl";function Qe(s){const t=s.target;return t instanceof HTMLElement?t.isContentEditable||t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT":!1}function Ze(){return document.querySelector("[data-dialog]")!==null}function es(s){const t=p.useRef(s);t.current=s,p.useEffect(()=>{const n=a=>t.current(a);return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[])}function ss(s,t){es(n=>{n.metaKey||n.ctrlKey||n.altKey||Qe(n)||Ze()||s.includes(n.key)&&(n.preventDefault(),t(n))})}const Nt=[{title:"Everywhere",keys:[["Command palette",[ke,"K"]],["Keyboard shortcuts",["?"]],["Go to the overview",["G","O"]],["Go to the runs",["G","R"]],["Search the page",["/"]]]},{title:"Chat",keys:[["Send",["Enter"]],["New line",["Shift","Enter"]],["New thread",["N"]],["Focus the message box",["C"]]]},{title:"Runs",keys:[["Next and previous run",["J","K"]],["Open the run",["Enter"]]]}];function yt({onClose:s}){return e.jsx("div",{className:"overlay",onMouseDown:s,onKeyDown:t=>t.key==="Escape"&&s(),"data-dialog":!0,children:e.jsxs("div",{className:"dialog",role:"dialog","aria-modal":"true","aria-labelledby":"shortcuts-title",onMouseDown:t=>t.stopPropagation(),children:[e.jsxs("div",{className:"dialog-head",children:[e.jsx("h2",{id:"shortcuts-title",children:"Keyboard shortcuts"}),e.jsx("button",{type:"button",className:"btn btn-ghost btn-icon btn-sm",onClick:s,"aria-label":"Close",autoFocus:!0,children:e.jsx(We,{size:15})})]}),e.jsx("div",{className:"dialog-body",children:Nt.map(t=>e.jsxs("div",{children:[e.jsx("div",{className:"shortcut-group",children:t.title}),t.keys.map(([n,a])=>e.jsxs("div",{className:"shortcut",children:[e.jsx("span",{children:n}),e.jsx(R,{keys:a})]},n))]},t.title))})]})})}function bt({className:s}){return e.jsxs("svg",{className:s,viewBox:"0 0 32 32","aria-hidden":"true",children:[e.jsx("rect",{width:"32",height:"32",rx:"8",fill:"currentColor"}),e.jsx("path",{d:"M21 11.2A7 7 0 1 0 21 20.8",fill:"none",stroke:"var(--bg)",strokeWidth:"3",strokeLinecap:"round"}),e.jsx("circle",{cx:"16",cy:"16",r:"2",fill:"var(--bg)"})]})}function le({to:s,icon:t,active:n,children:a,meta:i,testId:r}){return e.jsxs("a",{href:S(...s),className:`sb-link ${n?"active":""}`,"aria-current":n?"page":void 0,"data-testid":r,children:[e.jsx(t,{size:15}),e.jsx("span",{className:"sb-text truncate",children:a}),i!==void 0&&e.jsx("span",{className:"sb-meta",children:i})]})}const kt=[{value:"system",icon:ys,label:"System theme"},{value:"light",icon:Ne,label:"Light theme"},{value:"dark",icon:ye,label:"Dark theme"}];function wt({route:s,onSearch:t,onShortcuts:n}){const a=$(u=>u.host),i=$(u=>u.project),r=$(u=>u.connected),c=$(u=>u.runs),l=ht(),o=a.state==="ready"?a.registry:void 0,d=(...u)=>u.every((x,f)=>s[f]===x),j=new Set(Object.values(c).filter(u=>u.status==="running"||u.status==="waiting").map(u=>u.target)),v=r?a.state:"offline",h={ready:"Project loaded",starting:"Loading the project",restarting:"Reloading the project",failed:"The project does not load",offline:"Reconnecting to cogitator dev"};return e.jsxs("nav",{className:"sidebar","aria-label":"Studio",children:[e.jsxs("div",{className:"sb-top",children:[e.jsxs("a",{className:"sb-brand",href:"#/",children:[e.jsx(bt,{className:"sb-mark"}),e.jsxs("span",{className:"sb-text",style:{minWidth:0},children:[e.jsx("div",{className:"sb-name",children:"Cogitator Studio"}),e.jsxs("div",{className:"sb-project",children:[e.jsx("span",{className:"dot","data-state":v}),e.jsx("span",{className:"truncate",children:i||"project"})]})]})]}),e.jsxs("button",{type:"button",className:"sb-search",onClick:t,"data-testid":"open-palette",children:[e.jsx(ue,{size:14}),e.jsx("span",{children:"Search"}),e.jsx(R,{keys:[ke,"K"]})]})]}),e.jsxs("div",{className:"sb-nav",children:[e.jsx(le,{to:[],icon:Fe,active:s.length===0,children:"Overview"}),e.jsx(le,{to:["runs"],icon:P,active:s[0]==="runs"||s[0]==="compare",testId:"nav-runs",meta:j.size>0?e.jsx("span",{className:"spinner","aria-label":"runs going"}):void 0,children:"Runs"}),e.jsxs("div",{className:"sb-section",children:[e.jsx("div",{className:"sb-section-title",children:"Agents"}),o?.agents.map(u=>e.jsx(le,{to:["agents",u.key],icon:K,active:d("agents",u.key),testId:`agent-${u.key}`,meta:j.has(u.key)?e.jsx("span",{className:"dot","data-state":"starting"}):void 0,children:u.name},u.key)),o?.agents.length===0&&e.jsx("div",{className:"sb-empty",children:"None registered"}),!o&&e.jsx("div",{className:"skeleton",style:{height:22,margin:"4px 8px"}})]}),o&&o.workflows.length>0&&e.jsxs("div",{className:"sb-section",children:[e.jsx("div",{className:"sb-section-title",children:"Workflows"}),o.workflows.map(u=>e.jsx(le,{to:["workflows",u.key],icon:D,active:d("workflows",u.key),meta:j.has(u.key)?e.jsx("span",{className:"dot","data-state":"starting"}):void 0,children:u.name},u.key))]}),o&&o.swarms.length>0&&e.jsxs("div",{className:"sb-section",children:[e.jsx("div",{className:"sb-section-title",children:"Swarms"}),o.swarms.map(u=>e.jsxs("div",{className:"sb-link sb-static","data-tip":`${u.strategy}: ${u.agents.join(", ")}`,children:[e.jsx(Ns,{size:15}),e.jsx("span",{className:"sb-text truncate",children:u.name}),e.jsx("span",{className:"sb-meta",children:u.strategy})]},u.key))]})]}),e.jsxs("div",{className:"sb-footer",children:[e.jsxs("div",{className:"sb-conn","data-tip":h[v],children:[e.jsx("span",{className:"dot","data-state":v}),e.jsx("span",{children:r?"Live":"Offline"})]}),e.jsxs("div",{className:"sb-tools",children:[e.jsx("div",{className:"seg seg-icons sb-themes",role:"group","aria-label":"Theme",children:kt.map(({value:u,icon:x,label:f})=>e.jsx("button",{type:"button","aria-pressed":l===u,"aria-label":f,"data-tip":f,onClick:()=>qe(u),children:e.jsx(x,{size:13})},u))}),e.jsx("button",{type:"button",className:"btn btn-ghost btn-icon btn-sm sb-theme-toggle",onClick:Xe,"aria-label":"Switch theme","data-tip":"Switch theme",children:de()==="dark"?e.jsx(Ne,{size:14}):e.jsx(ye,{size:14})}),e.jsx("button",{type:"button",className:"btn btn-ghost btn-icon btn-sm",onClick:n,"aria-label":"Keyboard shortcuts","data-tip":"Shortcuts",children:e.jsx(Le,{size:14})})]})]})]})}const St=/(```[\s\S]*?(?:```|$)|`[^`\n]*`)/g;function Ce(s,t,n,a){let i="",r=0;for(;;){const c=s.indexOf(t,r);if(c===-1)break;const l=s.indexOf(n,c+t.length);if(l===-1)break;const o=s.slice(c+t.length,l).trim();i+=s.slice(r,c)+(o?a(o):s.slice(c,l+n.length)),r=l+n.length}return i+s.slice(r)}function $t(s){return s.split(St).map((t,n)=>{if(n%2===1)return t;const a=Ce(t,"\\[","\\]",i=>`
2
2
 
3
3
  $$
4
4
  ${i}
@@ -7,9 +7,9 @@
7
7
  <title>Cogitator Studio</title>
8
8
  <link rel="icon" type="image/svg+xml" href="./favicon.svg" />
9
9
  <script src="./theme.js"></script>
10
- <script type="module" crossorigin src="./assets/index-Dcfv691l.js"></script>
10
+ <script type="module" crossorigin src="./assets/index--qVHKT-a.js"></script>
11
11
  <link rel="modulepreload" crossorigin href="./assets/react-Oh0PCTUB.js">
12
- <link rel="modulepreload" crossorigin href="./assets/icons-f6vmKzId.js">
12
+ <link rel="modulepreload" crossorigin href="./assets/icons-Bvrqt254.js">
13
13
  <link rel="modulepreload" crossorigin href="./assets/math-Dyab3dfo.js">
14
14
  <link rel="modulepreload" crossorigin href="./assets/markdown-B0lQtlaX.js">
15
15
  <link rel="stylesheet" crossorigin href="./assets/math-D93AjGz5.css">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cogitator-ai/studio",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Cogitator Studio: a local debugger for agent projects with chat, traces, costs, approvals, workflow runs and time-travel forks",
5
5
  "keywords": [
6
6
  "cogitator",
@@ -22,6 +22,7 @@
22
22
  },
23
23
  "main": "./dist/index.js",
24
24
  "types": "./dist/index.d.ts",
25
+ "sideEffects": false,
25
26
  "files": [
26
27
  "dist"
27
28
  ],
@@ -29,13 +30,13 @@
29
30
  "node": ">=22.12.0"
30
31
  },
31
32
  "dependencies": {
32
- "@cogitator-ai/core": "0.39.0",
33
- "@cogitator-ai/memory": "0.12.5",
34
- "@cogitator-ai/models": "18.4.0",
35
- "@cogitator-ai/types": "0.41.0"
33
+ "@cogitator-ai/core": "0.39.1",
34
+ "@cogitator-ai/memory": "0.12.6",
35
+ "@cogitator-ai/models": "18.4.1",
36
+ "@cogitator-ai/types": "0.41.1"
36
37
  },
37
38
  "peerDependencies": {
38
- "@cogitator-ai/workflows": ">=0.12.5",
39
+ "@cogitator-ai/workflows": ">=0.12.6",
39
40
  "tsx": ">=4.0.0"
40
41
  },
41
42
  "peerDependenciesMeta": {
@@ -47,7 +48,7 @@
47
48
  }
48
49
  },
49
50
  "devDependencies": {
50
- "@cogitator-ai/workflows": "0.12.5",
51
+ "@cogitator-ai/workflows": "0.12.6",
51
52
  "@fontsource-variable/geist": "^5.3.0",
52
53
  "@fontsource-variable/geist-mono": "^5.3.0",
53
54
  "@types/node": "^22.20.4",
@@ -71,7 +72,7 @@
71
72
  },
72
73
  "repository": {
73
74
  "type": "git",
74
- "url": "https://github.com/cogitator-ai/Cogitator-AI.git",
75
+ "url": "git+https://github.com/cogitator-ai/Cogitator-AI.git",
75
76
  "directory": "packages/studio"
76
77
  },
77
78
  "publishConfig": {