@kelceyp/caw-server 1.0.229 → 1.0.230

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.
@@ -3122,4 +3122,4 @@ url = "${Z}/mcp/p/${Q}"`,instructionText:"Connect Codex to this CAW project by e
3122
3122
  box-shadow: none !important;
3123
3123
  border-radius: 0 !important;
3124
3124
  }
3125
- `},J=new MutationObserver(Q);J.observe(document.body,{childList:!0,subtree:!0});let X=new ResizeObserver(Q);if(Z.current)X.observe(Z.current);if(window.addEventListener("resize",Q),document.querySelector('script[data-name="BMC-Widget"][data-id="kelceyp"]'))Q();else{let Y=document.createElement("script");Y.setAttribute("data-name","BMC-Widget"),Y.setAttribute("data-cfasync","false"),Y.src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js",Y.setAttribute("data-id","kelceyp"),Y.setAttribute("data-description","Support me on Buy me a coffee!"),Y.setAttribute("data-message",""),Y.setAttribute("data-color","#FF813F"),Y.setAttribute("data-position","Left"),Y.setAttribute("data-x_margin","18"),Y.setAttribute("data-y_margin","18"),Y.async=!0,Y.onload=()=>window.dispatchEvent(new Event("DOMContentLoaded")),document.head.appendChild(Y)}return()=>{J.disconnect(),X.disconnect(),window.removeEventListener("resize",Q);let Y=document.getElementById("bmc-wbtn");if(Y)Y.style.display="none"}},[]),Vy.jsxDEV("div",{className:"space-y-4",children:[Vy.jsxDEV("p",{className:"text-base text-foreground leading-relaxed",children:"If you like CAW and want to support the development of new features, feel free to buy me a coffee (click the cup). $5 minimum set by BMAC — be patient if you see a white screen."},void 0,!1,void 0,this),Vy.jsxDEV("div",{className:"flex",style:{maxWidth:"55%"},children:Vy.jsxDEV("img",{ref:Z,src:"/coffee-illustration.png",alt:"Coffee illustration",width:347,height:520,className:"object-contain ml-auto"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var $Z=G0(X8(),1),oL8=()=>{let[Z,Q]=aL8.useState("legal"),{data:J}=du();MQ("CAW - About");let X=J?.version?` — version ${J.version}`:"";return $Z.jsxDEV("div",{className:"flex-1 p-6",children:[$Z.jsxDEV("div",{className:"mb-6",children:$Z.jsxDEV("div",{className:"flex items-center gap-3",children:[$Z.jsxDEV(dz,{className:"w-6 h-6 text-muted-foreground"},void 0,!1,void 0,this),$Z.jsxDEV("h1",{className:"text-xl font-semibold text-foreground",children:["About",X]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$Z.jsxDEV(eX,{value:Z,onValueChange:Q,variant:"segment",children:[$Z.jsxDEV(ZK,{children:[$Z.jsxDEV(z1,{value:"legal",children:"Legal"},void 0,!1,void 0,this),$Z.jsxDEV(z1,{value:"coffee",children:"Coffee"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$Z.jsxDEV(uZ,{value:"legal",forceMount:!0,className:Z!=="legal"?"hidden":"",children:$Z.jsxDEV("div",{className:"space-y-4",children:[$Z.jsxDEV("div",{className:"flex items-start gap-4",children:[$Z.jsxDEV("img",{src:"/logo.svg",className:"h-24 flex-shrink-0",alt:"CAW"},void 0,!1,void 0,this),$Z.jsxDEV("div",{className:"space-y-1",children:[$Z.jsxDEV("p",{className:"text-sm text-foreground",children:"CAW is developed and owned by Athena Design Pty. Ltd."},void 0,!1,void 0,this),$Z.jsxDEV("p",{className:"text-sm text-foreground",children:"© Athena Design Pty. Ltd. All rights reserved."},void 0,!1,void 0,this),$Z.jsxDEV("p",{className:"text-sm text-foreground",children:"Athena Design is a two-person family company co-founded by Paul and Athena Kelcey."},void 0,!1,void 0,this),$Z.jsxDEV("p",{className:"text-sm text-foreground",children:"Our mission is to help engineers build better software. CAW was written by Paul Kelcey using CAW itself (version N building version N+1) alongside Claude Code, Codex and Cursor."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$Z.jsxDEV("div",{className:"border border-border rounded-md px-3 py-3",children:[$Z.jsxDEV("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Content Ownership"},void 0,!1,void 0,this),$Z.jsxDEV("div",{className:"text-sm text-muted-foreground space-y-2",children:[$Z.jsxDEV("p",{children:"All content created, stored, or generated in CAW — including documents, templates, stories, metadata, and AI-assisted outputs — is owned by you."},void 0,!1,void 0,this),$Z.jsxDEV("p",{children:"Athena Design does not claim, and will never claim, any ownership over your content or over anything you, your users, or your agents build using CAW."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$Z.jsxDEV("div",{className:"border border-border rounded-md px-3 py-3",children:[$Z.jsxDEV("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Agents and Integrations"},void 0,!1,void 0,this),$Z.jsxDEV("div",{className:"text-sm text-muted-foreground space-y-2",children:[$Z.jsxDEV("p",{children:"CAW is designed to work with bring-your-own (BYO) agents and tools, including third-party AI services."},void 0,!1,void 0,this),$Z.jsxDEV("p",{children:"Athena Design does not control, endorse, or take responsibility for the behaviour or actions of external agents, nor for any content produced by agents or users while using CAW."},void 0,!1,void 0,this),$Z.jsxDEV("p",{children:"Any interaction with third-party services is initiated and configured by you and is subject to their respective terms."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$Z.jsxDEV("div",{className:"border border-border rounded-md px-3 py-3",children:[$Z.jsxDEV("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Privacy and Data"},void 0,!1,void 0,this),$Z.jsxDEV("div",{className:"text-sm text-muted-foreground space-y-2",children:[$Z.jsxDEV("p",{children:"CAW is local-first by design."},void 0,!1,void 0,this),$Z.jsxDEV("p",{children:"CAW does not collect, transmit, or analyse your content or usage data. Athena Design respects your privacy and does not monitor how CAW is used."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$Z.jsxDEV("div",{className:"border border-border rounded-md px-3 py-3",children:[$Z.jsxDEV("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Disclaimer"},void 0,!1,void 0,this),$Z.jsxDEV("div",{className:"text-sm text-muted-foreground space-y-2",children:[$Z.jsxDEV("p",{children:"While care has been taken in the development of CAW, the software is provided as is."},void 0,!1,void 0,this),$Z.jsxDEV("p",{children:"You use CAW at your own risk. Athena Design accepts no responsibility for data loss, system issues, or other problems arising from the use of this software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$Z.jsxDEV(uZ,{value:"coffee",children:$Z.jsxDEV(rL8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};var A$=G0(m0(),1);var n9=G0(X8(),1),yE6=(Z,Q)=>{if(Q==="task")return"Task";if(Q==="cartridge")return"Cartridge";if(Q==="prompt")return"Prompt";if(Z==="d")return"Document";if(Z==="t")return"Template";if(Z==="s")return"Story";if(Z==="j")return"Job";if(Z==="f")return"Folder";return"Entity"},n80=50,gE6=[{min:0.75,label:"High",className:"text-green-700 border-green-300 bg-green-50"},{min:0.6,label:"Average",className:"text-amber-700 border-amber-300 bg-amber-50"},{min:0,label:"Low",className:"text-red-700 border-red-300 bg-red-50"}],mE6=({snippet:Z})=>{if(!Z)return null;let Q=[],J=Z,X=0;while(J.length>0){let K=J.indexOf("<mark>");if(K===-1){if(J)Q.push(n9.jsxDEV("span",{children:J},X++,!1,void 0,this));break}if(K>0)Q.push(n9.jsxDEV("span",{children:J.substring(0,K)},X++,!1,void 0,this));let Y=J.indexOf("</mark>",K);if(Y===-1){Q.push(n9.jsxDEV("span",{children:J.substring(K)},X++,!1,void 0,this));break}let U=J.substring(K+6,Y);Q.push(n9.jsxDEV("mark",{className:"bg-yellow-200 dark:bg-yellow-700/60 dark:text-yellow-100 text-foreground px-0.5 rounded",children:U},X++,!1,void 0,this)),J=J.substring(Y+7)}return n9.jsxDEV(n9.Fragment,{children:Q},void 0,!1,void 0,this)},uE6=({result:Z,onClick:Q,disabled:J})=>{let{entityId:X,name:K,path:Y,snippet:U,matchMethod:z,type:G,subtype:W,score:q}=Z,H=$Q(G,W),B=yE6(G,W),F=z==="rag",M=z??null,A=F&&q!=null?gE6.find((N)=>q>=N.min):null;return n9.jsxDEV("button",{onClick:Q,disabled:J,className:"w-full text-left p-4 border border-border rounded-lg bg-card hover:bg-accent/50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:n9.jsxDEV("div",{className:"flex items-start gap-3",children:[n9.jsxDEV(H,{className:"w-5 h-5 text-muted-foreground shrink-0 mt-0.5"},void 0,!1,void 0,this),n9.jsxDEV("div",{className:"flex-1 min-w-0",children:[n9.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[n9.jsxDEV("span",{className:"font-medium text-foreground truncate",children:K},void 0,!1,void 0,this),n9.jsxDEV(N6,{content:`${B} ID: ${X}`,children:n9.jsxDEV("span",{className:`inline-flex items-center rounded border px-1.5 py-0.5 text-[10px] font-mono shrink-0 ${wZ[RZ(X)]||wZ.A}`,children:X},void 0,!1,void 0,this)},void 0,!1,void 0,this),M&&n9.jsxDEV("span",{className:"inline-flex items-center rounded border px-1.5 py-0.5 text-[10px] font-medium shrink-0 text-muted-foreground border-border bg-muted/50",children:M},void 0,!1,void 0,this),A&&n9.jsxDEV("span",{className:`inline-flex items-center rounded border px-1.5 py-0.5 text-[10px] font-medium shrink-0 ${A.className}`,children:A.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n9.jsxDEV("div",{className:"text-sm text-muted-foreground truncate mb-2",children:Y},void 0,!1,void 0,this),U&&(F?n9.jsxDEV("div",{className:"text-sm text-muted-foreground dark:text-purple-100 line-clamp-2 pl-2 border-l-2 border-purple-300 dark:border-purple-400 bg-purple-50/50 dark:bg-purple-900/30 rounded-r px-2 py-0.5",children:U},void 0,!1,void 0,this):n9.jsxDEV("div",{className:"text-sm text-muted-foreground line-clamp-2",children:n9.jsxDEV(mE6,{snippet:U},void 0,!1,void 0,this)},void 0,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},pE6=({query:Z})=>n9.jsxDEV("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[n9.jsxDEV(LH,{className:"w-12 h-12 text-muted-foreground/50 mb-4"},void 0,!1,void 0,this),n9.jsxDEV("h3",{className:"text-lg font-medium text-foreground mb-2",children:"No results found"},void 0,!1,void 0,this),n9.jsxDEV("p",{className:"text-muted-foreground",children:['No documents match "',n9.jsxDEV("span",{className:"font-medium text-foreground",children:Z},void 0,!1,void 0,this),'"']},void 0,!0,void 0,this)]},void 0,!0,void 0,this),tL8=()=>n9.jsxDEV("div",{className:"flex flex-col items-center justify-center py-16",children:[n9.jsxDEV(o6,{className:"w-8 h-8 text-muted-foreground animate-spin mb-4"},void 0,!1,void 0,this),n9.jsxDEV("p",{className:"text-muted-foreground",children:"Searching..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),eL8=({currentPage:Z,totalPages:Q,isPending:J,onPageChange:X})=>n9.jsxDEV("div",{className:"flex items-center gap-2",children:[n9.jsxDEV(c0,{size:"sm",variant:"outline",onClick:()=>X(Z-1),disabled:Z===1||J,children:n9.jsxDEV(WX,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n9.jsxDEV("span",{className:"text-sm text-muted-foreground px-2",children:["Page ",Z," of ",Q]},void 0,!0,void 0,this),n9.jsxDEV(c0,{size:"sm",variant:"outline",onClick:()=>X(Z+1),disabled:Z===Q||J,children:n9.jsxDEV(UZ,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),jN0=()=>{let Z=DZ(),Q=y1(),{id:J,storeCode:X}=g1(),[K,Y]=A$.useState(null),U=A$.useRef(null),z=k5((D)=>D.query),G=k5((D)=>D.results),W=k5((D)=>D.total),q=k5((D)=>D.currentPage),H=k5((D)=>D.isSearching),B=k5((D)=>D.setPageResults),F=k5((D)=>D.setResults),{isPending:M,mutateAsync:A}=Oc(J),N=W?Math.ceil(W/n80):0,w=(q-1)*n80+1,R=Math.min(q*n80,W||0);A$.useEffect(()=>{if(U.current)U.current.scrollTop=0},[q]);let $=X?`/project/${J}/store/${X}/documents`:`/project/${J}/documents`;if(G===null&&!H&&!M)return n9.jsxDEV(wT,{to:$,replace:!0},void 0,!1,void 0,this);if(H)return n9.jsxDEV("div",{className:"flex-1 p-6 overflow-auto",children:n9.jsxDEV(tL8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let V=(D)=>{let _=D.entityId.length>=2&&D.entityId[1]==="s",f=D.entityId.length>=2&&D.entityId[1]==="j",j=D.entityId.length>=2&&D.entityId[1]==="f";if(_||f){let k=Pw(D.entityId,Q.pathname);if(k)Z(k.url)}else if(j){let k=Q.pathname.match(/\/project\/([^/]+)(?:\/store\/([^/]+))?/);if(k){let[,v,b]=k,x=b?`/project/${v}/store/${b}`:`/project/${v}`,h=D.path?.startsWith("Templates/")?"templates":"documents";Z(`${x}/${h}?id=${D.entityId}`)}}else Y(D.entityId)};if(M&&!G)return n9.jsxDEV("div",{className:"flex-1 p-6 overflow-auto",children:n9.jsxDEV(tL8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(G&&G.length===0)return n9.jsxDEV("div",{className:"flex-1 p-6 overflow-auto",children:n9.jsxDEV(pE6,{query:z},void 0,!1,void 0,this)},void 0,!1,void 0,this);let P=async(D)=>{let _=(D-1)*n80;try{let f=await A({query:z,store:X||"A",offset:_});B(z,f.hits,f.total,D)}catch(f){let j=f?.message||"Failed to load page";L6.error(j)}},C=async()=>{try{let D=await A({query:z,store:X||"A"});F(z,D.hits,D.total,D.embeddingStatus??null)}catch(D){L6.error(D?.message||"Failed to refresh results")}},I=W??G?.length??0;return n9.jsxDEV(n9.Fragment,{children:[n9.jsxDEV("div",{ref:U,className:"flex-1 p-6 overflow-auto",children:[n9.jsxDEV("div",{className:"flex justify-between items-start mb-6",children:[n9.jsxDEV("div",{children:[n9.jsxDEV("h2",{className:"text-lg font-medium text-foreground flex items-center gap-2",children:[n9.jsxDEV(LH,{className:"w-5 h-5"},void 0,!1,void 0,this),'Results for "',n9.jsxDEV("span",{className:"text-primary",children:z},void 0,!1,void 0,this),'"']},void 0,!0,void 0,this),n9.jsxDEV("p",{className:"text-sm text-muted-foreground mt-1",children:N>1?`Showing ${w}-${R} of ${W} results`:`${I} ${I===1?"result":"results"} found`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n9.jsxDEV("div",{className:"flex items-center gap-2",children:[N>1&&n9.jsxDEV(eL8,{currentPage:q,totalPages:N,isPending:M,onPageChange:P},void 0,!1,void 0,this),n9.jsxDEV(c0,{size:"icon",variant:"ghost",className:"h-8 w-8",onClick:C,disabled:M,title:"Refresh results",children:n9.jsxDEV(lK,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),n9.jsxDEV("div",{className:"space-y-3",children:G?.map((D,_)=>{let j=Pw(D.entityId,Q.pathname)===null;return n9.jsxDEV(uE6,{result:D,onClick:()=>V(D),disabled:j},D.entityId||_,!1,void 0,this)})},void 0,!1,void 0,this),N>1&&n9.jsxDEV("div",{className:"mt-6",children:n9.jsxDEV(eL8,{currentPage:q,totalPages:N,isPending:M,onPageChange:P},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n9.jsxDEV(U3,{open:!!K,onOpenChange:(D)=>!D&&Y(null),projectId:J,documentId:K,onNavigate:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var a80=G0(m0(),1);var cE=G0(m0(),1);var r80=G0(m0(),1);var U1=G0(X8(),1),ZA8={draft:"bg-muted text-muted-foreground border-border",sealed:"bg-green-50 text-green-700 border-green-300 dark:bg-green-900/30 dark:text-green-300 dark:border-green-700",imported:"bg-blue-50 text-blue-700 border-blue-300 dark:bg-blue-900/30 dark:text-blue-300 dark:border-blue-700"};function cE6(Z){if(!Z)return"";let Q=new Date(Z),X=Date.now()-Q.getTime(),K=Math.floor(X/1000);if(K<60)return"just now";let Y=Math.floor(K/60);if(Y<60)return`${Y}m ago`;let U=Math.floor(Y/60);if(U<24)return`${U}h ago`;let z=Math.floor(U/24);if(z<30)return`${z}d ago`;return Q.toLocaleDateString()}var QA8=({bundle:Z,isSelected:Q,onSelect:J,onRename:X,onDelete:K})=>{let Y=Z.fields?.status,U=Z.fields?.author,z=Z.fields?.description;return U1.jsxDEV(X3,{children:[U1.jsxDEV(K3,{asChild:!0,children:U1.jsxDEV("div",{role:"button",tabIndex:0,onClick:()=>J(Z.id),onKeyDown:(G)=>{if(G.key==="Enter"||G.key===" ")G.preventDefault(),J(Z.id)},className:d8("flex items-center gap-3 px-3 py-2.5 cursor-pointer border-b border-border outline-none",Q?"bg-muted":"hover:bg-muted/50"),children:[U1.jsxDEV("div",{className:"flex-1 min-w-0",children:[U1.jsxDEV("div",{className:"flex items-center gap-2",children:[U1.jsxDEV("span",{className:"text-sm font-medium truncate",children:Z.name},void 0,!1,void 0,this),Y&&U1.jsxDEV("span",{className:d8("inline-flex items-center rounded border px-1.5 py-0.5 text-[10px] font-medium shrink-0",ZA8[Y]||ZA8.draft),children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(U||z)&&U1.jsxDEV("div",{className:"flex items-center gap-2 mt-0.5",children:[U&&U1.jsxDEV("span",{className:"text-xs text-muted-foreground shrink-0",children:U},void 0,!1,void 0,this),U&&z&&U1.jsxDEV("span",{className:"text-xs text-muted-foreground",children:"·"},void 0,!1,void 0,this),z&&U1.jsxDEV("span",{className:"text-xs text-muted-foreground truncate",children:z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),U1.jsxDEV("span",{className:"text-xs text-muted-foreground shrink-0 whitespace-nowrap",children:cE6(Z.updatedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U1.jsxDEV(gq,{children:[U1.jsxDEV(F1,{onClick:()=>X(Z),children:[U1.jsxDEV(DQ,{className:"w-4 h-4 mr-2"},void 0,!1,void 0,this),"Rename"]},void 0,!0,void 0,this),U1.jsxDEV(F1,{onClick:()=>K(Z),className:"text-destructive focus:text-destructive",children:[U1.jsxDEV(R1,{className:"w-4 h-4 mr-2"},void 0,!1,void 0,this),"Delete"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},JA8=({open:Z,onOpenChange:Q,bundle:J,onConfirm:X,isPending:K})=>{let[Y,U]=r80.useState(J?.name||"");return r80.default.useEffect(()=>{if(Z&&J)U(J.name)},[Z,J]),U1.jsxDEV(M7,{open:Z,onOpenChange:Q,children:U1.jsxDEV(B7,{children:[U1.jsxDEV(W7,{children:U1.jsxDEV(q7,{children:"Rename Bundle"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U1.jsxDEV(VZ,{value:Y,onChange:(z)=>U(z.target.value),onKeyDown:(z)=>{if(z.key==="Enter"&&Y.trim())X(Y.trim())},placeholder:"Bundle name"},void 0,!1,void 0,this),U1.jsxDEV(v7,{children:[U1.jsxDEV(c0,{variant:"outline",onClick:()=>Q(!1),children:"Cancel"},void 0,!1,void 0,this),U1.jsxDEV(c0,{onClick:()=>X(Y.trim()),disabled:!Y.trim()||K,children:K?"Renaming...":"Rename"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},XA8=({open:Z,onOpenChange:Q,bundle:J,onConfirm:X,isPending:K})=>U1.jsxDEV(M7,{open:Z,onOpenChange:Q,children:U1.jsxDEV(B7,{children:[U1.jsxDEV(W7,{children:U1.jsxDEV(q7,{className:"flex items-center gap-2 text-destructive",children:[U1.jsxDEV(m6,{className:"w-5 h-5"},void 0,!1,void 0,this),"Delete Bundle"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U1.jsxDEV("p",{className:"text-sm",children:["Are you sure you want to delete ",U1.jsxDEV("strong",{children:J?.name},void 0,!1,void 0,this),"? This will remove the bundle and all its contents."]},void 0,!0,void 0,this),U1.jsxDEV(v7,{children:[U1.jsxDEV(c0,{variant:"outline",onClick:()=>Q(!1),children:"Cancel"},void 0,!1,void 0,this),U1.jsxDEV(c0,{variant:"destructive",onClick:X,disabled:K,children:K?"Deleting...":"Delete"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);var q5=G0(X8(),1),kN0=({projectId:Z,folderId:Q,title:J,canCreate:X,selectedBundleId:K,onSelect:Y,storeCode:U})=>{let{data:z=[],isLoading:G}=LR(Z,{folderId:Q,store:U,type:"f",enabled:!!Q}),W=z.filter((D)=>D.subtype==="bundle"),q=fd(Z),H=bd(Z),B=xd(Z),[F,M]=cE.useState(!1),[A,N]=cE.useState(""),[w,R]=cE.useState(null),[$,V]=cE.useState(null),P=()=>{if(!A.trim())return;q.mutate({parentId:Q,name:A.trim(),subtype:"bundle",fields:{status:"draft"}},{onSuccess:(D)=>{M(!1),N(""),Y(D.id),L6.success("Bundle created")},onError:(D)=>L6.error(D.message||"Failed to create bundle")})},C=(D)=>{if(!w)return;H.mutate({id:w.id,name:D},{onSuccess:()=>{R(null),L6.success("Bundle renamed")},onError:(_)=>L6.error(_.message||"Failed to rename bundle")})},I=()=>{if(!$)return;let D=$.id;B.mutate({id:D},{onSuccess:()=>{if(V(null),K===D)Y(null);L6.success("Bundle deleted")},onError:(_)=>L6.error(_.message||"Failed to delete bundle")})};return q5.jsxDEV("div",{className:"flex flex-col h-full",children:[q5.jsxDEV("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border bg-muted/30",children:[q5.jsxDEV("div",{className:"flex items-center gap-2",children:[q5.jsxDEV(nj,{className:"w-4 h-4 text-muted-foreground"},void 0,!1,void 0,this),q5.jsxDEV("span",{className:"text-sm font-medium",children:J},void 0,!1,void 0,this),q5.jsxDEV("span",{className:"text-xs text-muted-foreground",children:["(",W.length,")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X&&q5.jsxDEV(c0,{size:"sm",variant:"ghost",onClick:()=>M(!0),children:q5.jsxDEV(b4,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q5.jsxDEV("div",{className:"flex-1 overflow-y-auto",children:G?q5.jsxDEV("div",{className:"p-4 space-y-3",children:[1,2,3].map((D)=>q5.jsxDEV("div",{className:"animate-pulse",children:[q5.jsxDEV("div",{className:"h-4 bg-muted rounded w-3/4 mb-1"},void 0,!1,void 0,this),q5.jsxDEV("div",{className:"h-3 bg-muted rounded w-1/2"},void 0,!1,void 0,this)]},D,!0,void 0,this))},void 0,!1,void 0,this):W.length===0?q5.jsxDEV("div",{className:"p-6 text-center text-sm text-muted-foreground",children:X?"No export bundles yet":"No imported bundles"},void 0,!1,void 0,this):W.map((D)=>q5.jsxDEV(QA8,{bundle:D,isSelected:K===D.id,onSelect:Y,onRename:R,onDelete:V},D.id,!1,void 0,this))},void 0,!1,void 0,this),q5.jsxDEV(M7,{open:F,onOpenChange:M,children:q5.jsxDEV(B7,{children:[q5.jsxDEV(W7,{children:q5.jsxDEV(q7,{children:"New Bundle"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q5.jsxDEV(VZ,{value:A,onChange:(D)=>N(D.target.value),onKeyDown:(D)=>{if(D.key==="Enter")P()},placeholder:"Bundle name",autoFocus:!0},void 0,!1,void 0,this),q5.jsxDEV(v7,{children:[q5.jsxDEV(c0,{variant:"outline",onClick:()=>M(!1),children:"Cancel"},void 0,!1,void 0,this),q5.jsxDEV(c0,{onClick:P,disabled:!A.trim()||q.isPending,children:q.isPending?"Creating...":"Create"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q5.jsxDEV(JA8,{open:!!w,onOpenChange:(D)=>{if(!D)R(null)},bundle:w,onConfirm:C,isPending:H.isPending},void 0,!1,void 0,this),q5.jsxDEV(XA8,{open:!!$,onOpenChange:(D)=>{if(!D)V(null)},bundle:$,onConfirm:I,isPending:B.isPending},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var H5=G0(X8(),1),_N0=()=>{let{id:Z,storeCode:Q}=g1(),{data:J}=e4(Z),X=Q??"A";MQ(J?`${J.name} - Airlock`:"CAW");let{data:K,isLoading:Y,error:U}=QK0(Z,{path:"Share/exports",store:"A",type:"f"}),{data:z,isLoading:G,error:W}=QK0(Z,{path:"Share/imports",store:"A",type:"f"}),[q,H]=U4(Z,"airlock","selectedBundleId",null,X),[B,F]=U4(Z,"airlock","selectedPane",null,X),M=a80.useCallback((R)=>{H(R),F(R?"exports":null)},[H,F]),A=a80.useCallback((R)=>{H(R),F(R?"imports":null)},[H,F]),N=Y||G,w=U||W;if(N)return H5.jsxDEV("div",{className:"h-full flex",children:[H5.jsxDEV("div",{className:"flex-1 p-6",children:H5.jsxDEV("div",{className:"animate-pulse space-y-4",children:[H5.jsxDEV("div",{className:"h-6 bg-muted rounded w-32"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-full"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-3/4"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-1/2"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"w-px bg-border"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"flex-1 p-6",children:H5.jsxDEV("div",{className:"animate-pulse space-y-4",children:[H5.jsxDEV("div",{className:"h-6 bg-muted rounded w-32"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-full"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-3/4"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-1/2"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(w)return H5.jsxDEV("div",{className:"h-full flex items-center justify-center",children:H5.jsxDEV("div",{className:"text-center space-y-2",children:[H5.jsxDEV(rX,{className:"w-8 h-8 text-destructive mx-auto"},void 0,!1,void 0,this),H5.jsxDEV("p",{className:"text-sm font-medium text-destructive",children:"Share root not found"},void 0,!1,void 0,this),H5.jsxDEV("p",{className:"text-xs text-muted-foreground",children:"The Share/exports and Share/imports folders could not be resolved."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return H5.jsxDEV(Zv,{direction:"horizontal",className:"h-full",children:[H5.jsxDEV(kV,{defaultSize:50,minSize:25,children:H5.jsxDEV(kN0,{projectId:Z,folderId:K?.id,title:"Exports",canCreate:!0,selectedBundleId:B==="exports"?q:null,onSelect:M,storeCode:"A"},void 0,!1,void 0,this)},void 0,!1,void 0,this),H5.jsxDEV(Qv,{withHandle:!0},void 0,!1,void 0,this),H5.jsxDEV(kV,{defaultSize:50,minSize:25,children:H5.jsxDEV(kN0,{projectId:Z,folderId:z?.id,title:"Imports",canCreate:!1,selectedBundleId:B==="imports"?q:null,onSelect:A,storeCode:"A"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var YA8=G0(X8(),1),KA8=(Z)=>YA8.jsxDEV(W_0,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...Z},void 0,!1,void 0,this);var j9=G0(X8(),1),lE6=()=>{return vN0.useEffect(()=>{let Z=(Q)=>Q.preventDefault();return document.addEventListener("contextmenu",Z),()=>document.removeEventListener("contextmenu",Z)},[]),j9.jsxDEV(R10,{children:j9.jsxDEV(b10,{client:oC0,children:[j9.jsxDEV(A10,{children:j9.jsxDEV(N1,{element:j9.jsxDEV(wE0,{},void 0,!1,void 0,this),children:[j9.jsxDEV(N1,{index:!0,element:j9.jsxDEV(Gh0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"preferences",element:j9.jsxDEV(nL8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"about",element:j9.jsxDEV(oL8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"project/:id",element:j9.jsxDEV(zh0,{},void 0,!1,void 0,this),children:[j9.jsxDEV(N1,{index:!0,element:j9.jsxDEV(wT,{to:"documents",replace:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"documents/*",element:j9.jsxDEV(lA0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"templates/*",element:j9.jsxDEV(iA0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"stories",element:j9.jsxDEV(zN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"story/:storyId",element:j9.jsxDEV(MN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"jobs",element:j9.jsxDEV(wy,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"jobs/:tab",element:j9.jsxDEV(wy,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"job/:jobId",element:j9.jsxDEV(FN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"airlock",element:j9.jsxDEV(_N0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"settings",element:j9.jsxDEV(EN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"search",element:j9.jsxDEV(jN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"store/:storeCode",children:[j9.jsxDEV(N1,{index:!0,element:j9.jsxDEV(wT,{to:"documents",replace:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"documents/*",element:j9.jsxDEV(lA0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"templates/*",element:j9.jsxDEV(iA0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"stories",element:j9.jsxDEV(zN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"story/:storyId",element:j9.jsxDEV(MN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"jobs",element:j9.jsxDEV(wy,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"jobs/:tab",element:j9.jsxDEV(wy,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"job/:jobId",element:j9.jsxDEV(FN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"airlock",element:j9.jsxDEV(_N0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"search",element:j9.jsxDEV(jN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"settings",element:j9.jsxDEV(EN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"*",element:j9.jsxDEV(i80,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j9.jsxDEV(N1,{path:"*",element:j9.jsxDEV(i80,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j9.jsxDEV(N1,{path:"*",element:j9.jsxDEV(i80,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(KA8,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},UA8=lE6;var fN0=G0(X8(),1),zA8=localStorage.getItem("logLevel");if(zA8)HZ.setLevel(zA8);var qA8=document.getElementById("root");if(!qA8)throw Error("Root element not found");var dE6=WA8.createRoot(qA8);dE6.render(fN0.jsxDEV(GA8.default.StrictMode,{children:fN0.jsxDEV(UA8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this));
3125
+ `},J=new MutationObserver(Q);J.observe(document.body,{childList:!0,subtree:!0});let X=new ResizeObserver(Q);if(Z.current)X.observe(Z.current);if(window.addEventListener("resize",Q),document.querySelector('script[data-name="BMC-Widget"][data-id="kelceyp"]'))Q();else{let Y=document.createElement("script");Y.setAttribute("data-name","BMC-Widget"),Y.setAttribute("data-cfasync","false"),Y.src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js",Y.setAttribute("data-id","kelceyp"),Y.setAttribute("data-description","Support me on Buy me a coffee!"),Y.setAttribute("data-message",""),Y.setAttribute("data-color","#FF813F"),Y.setAttribute("data-position","Left"),Y.setAttribute("data-x_margin","18"),Y.setAttribute("data-y_margin","18"),Y.async=!0,Y.onload=()=>window.dispatchEvent(new Event("DOMContentLoaded")),document.head.appendChild(Y)}return()=>{J.disconnect(),X.disconnect(),window.removeEventListener("resize",Q);let Y=document.getElementById("bmc-wbtn");if(Y)Y.style.display="none"}},[]),Vy.jsxDEV("div",{className:"space-y-4",children:[Vy.jsxDEV("p",{className:"text-base text-foreground leading-relaxed",children:"If you like CAW and want to support the development of new features, feel free to buy me a coffee (click the cup). $5 minimum set by BMAC — be patient if you see a white screen."},void 0,!1,void 0,this),Vy.jsxDEV("div",{className:"flex",style:{maxWidth:"55%"},children:Vy.jsxDEV("img",{ref:Z,src:"/coffee-illustration.png",alt:"Coffee illustration",width:347,height:520,className:"object-contain ml-auto"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var $Z=G0(X8(),1),oL8=()=>{let[Z,Q]=aL8.useState("legal"),{data:J}=du();MQ("CAW - About");let X=J?.version?` — version ${J.version}`:"";return $Z.jsxDEV("div",{className:"flex-1 p-6",children:[$Z.jsxDEV("div",{className:"mb-6",children:$Z.jsxDEV("div",{className:"flex items-center gap-3",children:[$Z.jsxDEV(dz,{className:"w-6 h-6 text-muted-foreground"},void 0,!1,void 0,this),$Z.jsxDEV("h1",{className:"text-xl font-semibold text-foreground",children:["About",X]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$Z.jsxDEV(eX,{value:Z,onValueChange:Q,variant:"segment",children:[$Z.jsxDEV(ZK,{children:[$Z.jsxDEV(z1,{value:"legal",children:"Legal"},void 0,!1,void 0,this),$Z.jsxDEV(z1,{value:"coffee",children:"Coffee"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),$Z.jsxDEV(uZ,{value:"legal",forceMount:!0,className:Z!=="legal"?"hidden":"",children:$Z.jsxDEV("div",{className:"space-y-4",children:[$Z.jsxDEV("div",{className:"flex items-start gap-4",children:[$Z.jsxDEV("img",{src:"/logo.svg",className:"h-24 flex-shrink-0",alt:"CAW"},void 0,!1,void 0,this),$Z.jsxDEV("div",{className:"space-y-1",children:[$Z.jsxDEV("p",{className:"text-sm text-foreground",children:"CAW is developed and owned by Athena Design Pty. Ltd."},void 0,!1,void 0,this),$Z.jsxDEV("p",{className:"text-sm text-foreground",children:"© Athena Design Pty. Ltd. All rights reserved."},void 0,!1,void 0,this),$Z.jsxDEV("p",{className:"text-sm text-foreground",children:"Athena Design is a two-person family company co-founded by Paul and Athena Kelcey."},void 0,!1,void 0,this),$Z.jsxDEV("p",{className:"text-sm text-foreground",children:"Our mission is to help engineers build better software. CAW was written by Paul Kelcey using CAW itself (version N building version N+1) alongside Claude Code, Codex and Cursor."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$Z.jsxDEV("div",{className:"border border-border rounded-md px-3 py-3",children:[$Z.jsxDEV("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Content Ownership"},void 0,!1,void 0,this),$Z.jsxDEV("div",{className:"text-sm text-muted-foreground space-y-2",children:[$Z.jsxDEV("p",{children:"All content created, stored, or generated in CAW — including documents, templates, stories, metadata, and AI-assisted outputs — is owned by you."},void 0,!1,void 0,this),$Z.jsxDEV("p",{children:"Athena Design does not claim, and will never claim, any ownership over your content or over anything you, your users, or your agents build using CAW."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$Z.jsxDEV("div",{className:"border border-border rounded-md px-3 py-3",children:[$Z.jsxDEV("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Agents and Integrations"},void 0,!1,void 0,this),$Z.jsxDEV("div",{className:"text-sm text-muted-foreground space-y-2",children:[$Z.jsxDEV("p",{children:"CAW is designed to work with bring-your-own (BYO) agents and tools, including third-party AI services."},void 0,!1,void 0,this),$Z.jsxDEV("p",{children:"Athena Design does not control, endorse, or take responsibility for the behaviour or actions of external agents, nor for any content produced by agents or users while using CAW."},void 0,!1,void 0,this),$Z.jsxDEV("p",{children:"Any interaction with third-party services is initiated and configured by you and is subject to their respective terms."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$Z.jsxDEV("div",{className:"border border-border rounded-md px-3 py-3",children:[$Z.jsxDEV("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Privacy and Data"},void 0,!1,void 0,this),$Z.jsxDEV("div",{className:"text-sm text-muted-foreground space-y-2",children:[$Z.jsxDEV("p",{children:"CAW is local-first by design."},void 0,!1,void 0,this),$Z.jsxDEV("p",{children:"CAW does not collect, transmit, or analyse your content or usage data. Athena Design respects your privacy and does not monitor how CAW is used."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),$Z.jsxDEV("div",{className:"border border-border rounded-md px-3 py-3",children:[$Z.jsxDEV("h3",{className:"text-sm font-medium text-foreground mb-2",children:"Disclaimer"},void 0,!1,void 0,this),$Z.jsxDEV("div",{className:"text-sm text-muted-foreground space-y-2",children:[$Z.jsxDEV("p",{children:"While care has been taken in the development of CAW, the software is provided as is."},void 0,!1,void 0,this),$Z.jsxDEV("p",{children:"You use CAW at your own risk. Athena Design accepts no responsibility for data loss, system issues, or other problems arising from the use of this software."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),$Z.jsxDEV(uZ,{value:"coffee",children:$Z.jsxDEV(rL8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)};var A$=G0(m0(),1);var n9=G0(X8(),1),yE6=(Z,Q)=>{if(Q==="task")return"Task";if(Q==="cartridge")return"Cartridge";if(Q==="prompt")return"Prompt";if(Z==="d")return"Document";if(Z==="t")return"Template";if(Z==="s")return"Story";if(Z==="j")return"Job";if(Z==="f")return"Folder";return"Entity"},n80=50,gE6=[{min:0.75,label:"High",className:"text-green-700 border-green-300 bg-green-50"},{min:0.6,label:"Average",className:"text-amber-700 border-amber-300 bg-amber-50"},{min:0,label:"Low",className:"text-red-700 border-red-300 bg-red-50"}],mE6=({snippet:Z})=>{if(!Z)return null;let Q=[],J=Z,X=0;while(J.length>0){let K=J.indexOf("<mark>");if(K===-1){if(J)Q.push(n9.jsxDEV("span",{children:J},X++,!1,void 0,this));break}if(K>0)Q.push(n9.jsxDEV("span",{children:J.substring(0,K)},X++,!1,void 0,this));let Y=J.indexOf("</mark>",K);if(Y===-1){Q.push(n9.jsxDEV("span",{children:J.substring(K)},X++,!1,void 0,this));break}let U=J.substring(K+6,Y);Q.push(n9.jsxDEV("mark",{className:"bg-yellow-200 dark:bg-yellow-700/60 dark:text-yellow-100 text-foreground px-0.5 rounded",children:U},X++,!1,void 0,this)),J=J.substring(Y+7)}return n9.jsxDEV(n9.Fragment,{children:Q},void 0,!1,void 0,this)},uE6=({result:Z,onClick:Q,disabled:J})=>{let{entityId:X,name:K,path:Y,snippet:U,matchMethod:z,type:G,subtype:W,score:q}=Z,H=$Q(G,W),B=yE6(G,W),F=z==="rag",M=z??null,A=F&&q!=null?gE6.find((N)=>q>=N.min):null;return n9.jsxDEV("button",{onClick:Q,disabled:J,className:"w-full text-left p-4 border border-border rounded-lg bg-card hover:bg-accent/50 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:n9.jsxDEV("div",{className:"flex items-start gap-3",children:[n9.jsxDEV(H,{className:"w-5 h-5 text-muted-foreground shrink-0 mt-0.5"},void 0,!1,void 0,this),n9.jsxDEV("div",{className:"flex-1 min-w-0",children:[n9.jsxDEV("div",{className:"flex items-center gap-2 min-w-0",children:[n9.jsxDEV("span",{className:"font-medium text-foreground truncate",children:K},void 0,!1,void 0,this),n9.jsxDEV(N6,{content:`${B} ID: ${X}`,children:n9.jsxDEV("span",{className:`inline-flex items-center rounded border px-1.5 py-0.5 text-[10px] font-mono shrink-0 ${wZ[RZ(X)]||wZ.A}`,children:X},void 0,!1,void 0,this)},void 0,!1,void 0,this),M&&n9.jsxDEV("span",{className:"inline-flex items-center rounded border px-1.5 py-0.5 text-[10px] font-medium shrink-0 text-muted-foreground border-border bg-muted/50",children:M},void 0,!1,void 0,this),A&&n9.jsxDEV("span",{className:`inline-flex items-center rounded border px-1.5 py-0.5 text-[10px] font-medium shrink-0 ${A.className}`,children:A.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n9.jsxDEV("div",{className:"text-sm text-muted-foreground truncate mb-2",children:Y},void 0,!1,void 0,this),U&&(F?n9.jsxDEV("div",{className:"text-sm text-muted-foreground dark:text-purple-100 line-clamp-2 pl-2 border-l-2 border-purple-300 dark:border-purple-400 bg-purple-50/50 dark:bg-purple-900/30 rounded-r px-2 py-0.5",children:U},void 0,!1,void 0,this):n9.jsxDEV("div",{className:"text-sm text-muted-foreground line-clamp-2",children:n9.jsxDEV(mE6,{snippet:U},void 0,!1,void 0,this)},void 0,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},pE6=({query:Z})=>n9.jsxDEV("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[n9.jsxDEV(LH,{className:"w-12 h-12 text-muted-foreground/50 mb-4"},void 0,!1,void 0,this),n9.jsxDEV("h3",{className:"text-lg font-medium text-foreground mb-2",children:"No results found"},void 0,!1,void 0,this),n9.jsxDEV("p",{className:"text-muted-foreground",children:['No documents match "',n9.jsxDEV("span",{className:"font-medium text-foreground",children:Z},void 0,!1,void 0,this),'"']},void 0,!0,void 0,this)]},void 0,!0,void 0,this),tL8=()=>n9.jsxDEV("div",{className:"flex flex-col items-center justify-center py-16",children:[n9.jsxDEV(o6,{className:"w-8 h-8 text-muted-foreground animate-spin mb-4"},void 0,!1,void 0,this),n9.jsxDEV("p",{className:"text-muted-foreground",children:"Searching..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),eL8=({currentPage:Z,totalPages:Q,isPending:J,onPageChange:X})=>n9.jsxDEV("div",{className:"flex items-center gap-2",children:[n9.jsxDEV(c0,{size:"sm",variant:"outline",onClick:()=>X(Z-1),disabled:Z===1||J,children:n9.jsxDEV(WX,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),n9.jsxDEV("span",{className:"text-sm text-muted-foreground px-2",children:["Page ",Z," of ",Q]},void 0,!0,void 0,this),n9.jsxDEV(c0,{size:"sm",variant:"outline",onClick:()=>X(Z+1),disabled:Z===Q||J,children:n9.jsxDEV(UZ,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),jN0=()=>{let Z=DZ(),Q=y1(),{id:J,storeCode:X}=g1(),[K,Y]=A$.useState(null),U=A$.useRef(null),z=k5((D)=>D.query),G=k5((D)=>D.results),W=k5((D)=>D.total),q=k5((D)=>D.currentPage),H=k5((D)=>D.isSearching),B=k5((D)=>D.setPageResults),F=k5((D)=>D.setResults),{isPending:M,mutateAsync:A}=Oc(J),N=W?Math.ceil(W/n80):0,w=(q-1)*n80+1,R=Math.min(q*n80,W||0);A$.useEffect(()=>{if(U.current)U.current.scrollTop=0},[q]);let $=X?`/project/${J}/store/${X}/documents`:`/project/${J}/documents`;if(G===null&&!H&&!M)return n9.jsxDEV(wT,{to:$,replace:!0},void 0,!1,void 0,this);if(H)return n9.jsxDEV("div",{className:"flex-1 p-6 overflow-auto",children:n9.jsxDEV(tL8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let V=(D)=>{let _=D.entityId.length>=2&&D.entityId[1]==="s",f=D.entityId.length>=2&&D.entityId[1]==="j",j=D.entityId.length>=2&&D.entityId[1]==="f";if(_||f){let k=Pw(D.entityId,Q.pathname);if(k)Z(k.url)}else if(j){let k=Q.pathname.match(/\/project\/([^/]+)(?:\/store\/([^/]+))?/);if(k){let[,v,b]=k,x=b?`/project/${v}/store/${b}`:`/project/${v}`,h=D.path?.startsWith("Templates/")?"templates":"documents";Z(`${x}/${h}?id=${D.entityId}`)}}else Y(D.entityId)};if(M&&!G)return n9.jsxDEV("div",{className:"flex-1 p-6 overflow-auto",children:n9.jsxDEV(tL8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(G&&G.length===0)return n9.jsxDEV("div",{className:"flex-1 p-6 overflow-auto",children:n9.jsxDEV(pE6,{query:z},void 0,!1,void 0,this)},void 0,!1,void 0,this);let P=async(D)=>{let _=(D-1)*n80;try{let f=await A({query:z,store:X||"A",offset:_});B(z,f.hits,f.total,D)}catch(f){let j=f?.message||"Failed to load page";L6.error(j)}},C=async()=>{try{let D=await A({query:z,store:X||"A"});F(z,D.hits,D.total,D.embeddingStatus??null)}catch(D){L6.error(D?.message||"Failed to refresh results")}},I=W??G?.length??0;return n9.jsxDEV(n9.Fragment,{children:[n9.jsxDEV("div",{ref:U,className:"flex-1 p-6 overflow-auto",children:[n9.jsxDEV("div",{className:"flex justify-between items-start mb-6",children:[n9.jsxDEV("div",{children:[n9.jsxDEV("h2",{className:"text-lg font-medium text-foreground flex items-center gap-2",children:[n9.jsxDEV(LH,{className:"w-5 h-5"},void 0,!1,void 0,this),'Results for "',n9.jsxDEV("span",{className:"text-primary",children:z},void 0,!1,void 0,this),'"']},void 0,!0,void 0,this),n9.jsxDEV("p",{className:"text-sm text-muted-foreground mt-1",children:N>1?`Showing ${w}-${R} of ${W} results`:`${I} ${I===1?"result":"results"} found`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n9.jsxDEV("div",{className:"flex items-center gap-2",children:[N>1&&n9.jsxDEV(eL8,{currentPage:q,totalPages:N,isPending:M,onPageChange:P},void 0,!1,void 0,this),n9.jsxDEV(c0,{size:"icon",variant:"ghost",className:"h-8 w-8",onClick:C,disabled:M,title:"Refresh results",children:n9.jsxDEV(lK,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),n9.jsxDEV("div",{className:"space-y-3",children:G?.map((D,_)=>{let j=Pw(D.entityId,Q.pathname)===null;return n9.jsxDEV(uE6,{result:D,onClick:()=>V(D),disabled:j},D.entityId||_,!1,void 0,this)})},void 0,!1,void 0,this),N>1&&n9.jsxDEV("div",{className:"mt-6",children:n9.jsxDEV(eL8,{currentPage:q,totalPages:N,isPending:M,onPageChange:P},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),n9.jsxDEV(U3,{open:!!K,onOpenChange:(D)=>!D&&Y(null),projectId:J,documentId:K,onNavigate:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var a80=G0(m0(),1);var cE=G0(m0(),1);var r80=G0(m0(),1);var U1=G0(X8(),1),ZA8={draft:"bg-muted text-muted-foreground border-border",sealed:"bg-green-50 text-green-700 border-green-300 dark:bg-green-900/30 dark:text-green-300 dark:border-green-700",imported:"bg-blue-50 text-blue-700 border-blue-300 dark:bg-blue-900/30 dark:text-blue-300 dark:border-blue-700"};function cE6(Z){if(!Z)return"";let Q=new Date(Z),X=Date.now()-Q.getTime(),K=Math.floor(X/1000);if(K<60)return"just now";let Y=Math.floor(K/60);if(Y<60)return`${Y}m ago`;let U=Math.floor(Y/60);if(U<24)return`${U}h ago`;let z=Math.floor(U/24);if(z<30)return`${z}d ago`;return Q.toLocaleDateString()}var QA8=({bundle:Z,isSelected:Q,onSelect:J,onRename:X,onDelete:K})=>{let Y=Z.fields?.status,U=Z.fields?.author,z=Z.fields?.description;return U1.jsxDEV(X3,{children:[U1.jsxDEV(K3,{asChild:!0,children:U1.jsxDEV("div",{role:"button",tabIndex:0,onClick:()=>J(Z.id),onKeyDown:(G)=>{if(G.key==="Enter"||G.key===" ")G.preventDefault(),J(Z.id)},className:d8("flex items-center gap-3 px-3 py-2.5 cursor-pointer border-b border-border outline-none",Q?"bg-muted":"hover:bg-muted/50"),children:[U1.jsxDEV("div",{className:"flex-1 min-w-0",children:[U1.jsxDEV("div",{className:"flex items-center gap-2",children:[U1.jsxDEV("span",{className:"text-sm font-medium truncate",children:Z.name},void 0,!1,void 0,this),Y&&U1.jsxDEV("span",{className:d8("inline-flex items-center rounded border px-1.5 py-0.5 text-[10px] font-medium shrink-0",ZA8[Y]||ZA8.draft),children:Y},void 0,!1,void 0,this)]},void 0,!0,void 0,this),(U||z)&&U1.jsxDEV("div",{className:"flex items-center gap-2 mt-0.5",children:[U&&U1.jsxDEV("span",{className:"text-xs text-muted-foreground shrink-0",children:U},void 0,!1,void 0,this),U&&z&&U1.jsxDEV("span",{className:"text-xs text-muted-foreground",children:"·"},void 0,!1,void 0,this),z&&U1.jsxDEV("span",{className:"text-xs text-muted-foreground truncate",children:z},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),U1.jsxDEV("span",{className:"text-xs text-muted-foreground shrink-0 whitespace-nowrap",children:cE6(Z.updatedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U1.jsxDEV(gq,{children:[U1.jsxDEV(F1,{onClick:()=>X(Z),children:[U1.jsxDEV(DQ,{className:"w-4 h-4 mr-2"},void 0,!1,void 0,this),"Rename"]},void 0,!0,void 0,this),U1.jsxDEV(F1,{onClick:()=>K(Z),className:"text-destructive focus:text-destructive",children:[U1.jsxDEV(R1,{className:"w-4 h-4 mr-2"},void 0,!1,void 0,this),"Delete"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},JA8=({open:Z,onOpenChange:Q,bundle:J,onConfirm:X,isPending:K})=>{let[Y,U]=r80.useState(J?.name||"");return r80.default.useEffect(()=>{if(Z&&J)U(J.name)},[Z,J]),U1.jsxDEV(M7,{open:Z,onOpenChange:Q,children:U1.jsxDEV(B7,{children:[U1.jsxDEV(W7,{children:U1.jsxDEV(q7,{children:"Rename Bundle"},void 0,!1,void 0,this)},void 0,!1,void 0,this),U1.jsxDEV(VZ,{value:Y,onChange:(z)=>U(z.target.value),onKeyDown:(z)=>{if(z.key==="Enter"&&Y.trim())X(Y.trim())},placeholder:"Bundle name"},void 0,!1,void 0,this),U1.jsxDEV(v7,{children:[U1.jsxDEV(c0,{variant:"outline",onClick:()=>Q(!1),children:"Cancel"},void 0,!1,void 0,this),U1.jsxDEV(c0,{onClick:()=>X(Y.trim()),disabled:!Y.trim()||K,children:K?"Renaming...":"Rename"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},XA8=({open:Z,onOpenChange:Q,bundle:J,onConfirm:X,isPending:K})=>U1.jsxDEV(M7,{open:Z,onOpenChange:Q,children:U1.jsxDEV(B7,{children:[U1.jsxDEV(W7,{children:U1.jsxDEV(q7,{className:"flex items-center gap-2 text-destructive",children:[U1.jsxDEV(m6,{className:"w-5 h-5"},void 0,!1,void 0,this),"Delete Bundle"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),U1.jsxDEV("p",{className:"text-sm",children:["Are you sure you want to delete ",U1.jsxDEV("strong",{children:J?.name},void 0,!1,void 0,this),"? This will remove the bundle and all its contents."]},void 0,!0,void 0,this),U1.jsxDEV(v7,{children:[U1.jsxDEV(c0,{variant:"outline",onClick:()=>Q(!1),children:"Cancel"},void 0,!1,void 0,this),U1.jsxDEV(c0,{variant:"destructive",onClick:X,disabled:K,children:K?"Deleting...":"Delete"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);var q5=G0(X8(),1),kN0=({projectId:Z,folderId:Q,title:J,canCreate:X,selectedBundleId:K,onSelect:Y,storeCode:U})=>{let{data:z=[],isLoading:G}=LR(Z,{folderId:Q,store:U,type:"f",enabled:!!Q}),W=z.filter((D)=>D.subtype==="bundle"),q=fd(Z),H=bd(Z),B=xd(Z),[F,M]=cE.useState(!1),[A,N]=cE.useState(""),[w,R]=cE.useState(null),[$,V]=cE.useState(null),P=()=>{if(!A.trim())return;q.mutate({parentId:Q,name:A.trim(),subtype:"bundle",fields:{status:"draft"}},{onSuccess:(D)=>{M(!1),N(""),Y(D.id),L6.success("Bundle created")},onError:(D)=>L6.error(D.message||"Failed to create bundle")})},C=(D)=>{if(!w)return;H.mutate({id:w.id,name:D},{onSuccess:()=>{R(null),L6.success("Bundle renamed")},onError:(_)=>L6.error(_.message||"Failed to rename bundle")})},I=()=>{if(!$)return;let D=$.id;B.mutate({id:D},{onSuccess:()=>{if(V(null),K===D)Y(null);L6.success("Bundle deleted")},onError:(_)=>L6.error(_.message||"Failed to delete bundle")})};return q5.jsxDEV("div",{className:"flex flex-col h-full",children:[q5.jsxDEV("div",{className:"flex items-center justify-between px-3 h-10 border-b border-border bg-muted/30",children:[q5.jsxDEV("div",{className:"flex items-center gap-2",children:[q5.jsxDEV(nj,{className:"w-4 h-4 text-muted-foreground"},void 0,!1,void 0,this),q5.jsxDEV("span",{className:"text-sm font-medium",children:J},void 0,!1,void 0,this),q5.jsxDEV("span",{className:"text-xs text-muted-foreground",children:["(",W.length,")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),X&&q5.jsxDEV(c0,{size:"sm",variant:"ghost",onClick:()=>M(!0),children:q5.jsxDEV(b4,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q5.jsxDEV("div",{className:"flex-1 overflow-y-auto",children:G?q5.jsxDEV("div",{className:"p-4 space-y-3",children:[1,2,3].map((D)=>q5.jsxDEV("div",{className:"animate-pulse",children:[q5.jsxDEV("div",{className:"h-4 bg-muted rounded w-3/4 mb-1"},void 0,!1,void 0,this),q5.jsxDEV("div",{className:"h-3 bg-muted rounded w-1/2"},void 0,!1,void 0,this)]},D,!0,void 0,this))},void 0,!1,void 0,this):W.length===0?q5.jsxDEV("div",{className:"p-6 text-center text-sm text-muted-foreground",children:X?"No export bundles yet":"No imported bundles"},void 0,!1,void 0,this):W.map((D)=>q5.jsxDEV(QA8,{bundle:D,isSelected:K===D.id,onSelect:Y,onRename:R,onDelete:V},D.id,!1,void 0,this))},void 0,!1,void 0,this),q5.jsxDEV(M7,{open:F,onOpenChange:M,children:q5.jsxDEV(B7,{children:[q5.jsxDEV(W7,{children:q5.jsxDEV(q7,{children:"New Bundle"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q5.jsxDEV(VZ,{value:A,onChange:(D)=>N(D.target.value),onKeyDown:(D)=>{if(D.key==="Enter")P()},placeholder:"Bundle name",autoFocus:!0},void 0,!1,void 0,this),q5.jsxDEV(v7,{children:[q5.jsxDEV(c0,{variant:"outline",onClick:()=>M(!1),children:"Cancel"},void 0,!1,void 0,this),q5.jsxDEV(c0,{onClick:P,disabled:!A.trim()||q.isPending,children:q.isPending?"Creating...":"Create"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q5.jsxDEV(JA8,{open:!!w,onOpenChange:(D)=>{if(!D)R(null)},bundle:w,onConfirm:C,isPending:H.isPending},void 0,!1,void 0,this),q5.jsxDEV(XA8,{open:!!$,onOpenChange:(D)=>{if(!D)V(null)},bundle:$,onConfirm:I,isPending:B.isPending},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var H5=G0(X8(),1),_N0=()=>{let{id:Z,storeCode:Q}=g1(),{data:J}=e4(Z),X=Q??"A";MQ(J?`${J.name} - Airlock`:"CAW");let{data:K,isLoading:Y,error:U}=QK0(Z,{path:"Share/exports",store:"A",type:"f"}),{data:z,isLoading:G,error:W}=QK0(Z,{path:"Share/imports",store:"A",type:"f"}),[q,H]=U4(Z,"airlock","selectedBundleId",null,X),[B,F]=U4(Z,"airlock","selectedPane",null,X),M=a80.useCallback((R)=>{H(R),F(R?"exports":null)},[H,F]),A=a80.useCallback((R)=>{H(R),F(R?"imports":null)},[H,F]),N=Y||G,w=U||W;if(N)return H5.jsxDEV("div",{className:"h-full flex",children:[H5.jsxDEV("div",{className:"flex-1 p-6",children:H5.jsxDEV("div",{className:"animate-pulse space-y-4",children:[H5.jsxDEV("div",{className:"h-6 bg-muted rounded w-32"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-full"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-3/4"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-1/2"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"w-px bg-border"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"flex-1 p-6",children:H5.jsxDEV("div",{className:"animate-pulse space-y-4",children:[H5.jsxDEV("div",{className:"h-6 bg-muted rounded w-32"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-full"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-3/4"},void 0,!1,void 0,this),H5.jsxDEV("div",{className:"h-4 bg-muted rounded w-1/2"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);if(w)return H5.jsxDEV("div",{className:"h-full flex items-center justify-center",children:H5.jsxDEV("div",{className:"text-center space-y-2",children:[H5.jsxDEV(rX,{className:"w-8 h-8 text-destructive mx-auto"},void 0,!1,void 0,this),H5.jsxDEV("p",{className:"text-sm font-medium text-destructive",children:"Share root not found"},void 0,!1,void 0,this),H5.jsxDEV("p",{className:"text-xs text-muted-foreground",children:"The Share/exports and Share/imports folders could not be resolved."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return H5.jsxDEV(Zv,{direction:"horizontal",className:"h-full",children:[H5.jsxDEV(kV,{defaultSize:50,minSize:25,children:H5.jsxDEV(kN0,{projectId:Z,folderId:K?.id,title:"Exports",canCreate:!0,selectedBundleId:B==="exports"?q:null,onSelect:M,storeCode:"A"},void 0,!1,void 0,this)},void 0,!1,void 0,this),H5.jsxDEV(Qv,{withHandle:!0},void 0,!1,void 0,this),H5.jsxDEV(kV,{defaultSize:50,minSize:25,children:H5.jsxDEV(kN0,{projectId:Z,folderId:z?.id,title:"Imports",canCreate:!1,selectedBundleId:B==="imports"?q:null,onSelect:A,storeCode:"A"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};var YA8=G0(X8(),1),KA8=(Z)=>YA8.jsxDEV(W_0,{className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...Z},void 0,!1,void 0,this);var j9=G0(X8(),1),lE6=()=>{return vN0.useEffect(()=>{let Z=(Q)=>Q.preventDefault();return document.addEventListener("contextmenu",Z),()=>document.removeEventListener("contextmenu",Z)},[]),j9.jsxDEV(R10,{children:j9.jsxDEV(b10,{client:oC0,children:[j9.jsxDEV(A10,{children:j9.jsxDEV(N1,{element:j9.jsxDEV(wE0,{},void 0,!1,void 0,this),children:[j9.jsxDEV(N1,{index:!0,element:j9.jsxDEV(Gh0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"preferences",element:j9.jsxDEV(nL8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"about",element:j9.jsxDEV(oL8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"project/:id",element:j9.jsxDEV(zh0,{},void 0,!1,void 0,this),children:[j9.jsxDEV(N1,{index:!0,element:j9.jsxDEV(wT,{to:"documents",replace:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"documents/*",element:j9.jsxDEV(lA0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"templates/*",element:j9.jsxDEV(iA0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"stories",element:j9.jsxDEV(zN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"story/:storyId",element:j9.jsxDEV(MN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"jobs",element:j9.jsxDEV(wy,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"jobs/:tab",element:j9.jsxDEV(wy,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"job/:jobId",element:j9.jsxDEV(FN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"airlock",element:j9.jsxDEV(_N0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"settings",element:j9.jsxDEV(EN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"search",element:j9.jsxDEV(jN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"store/:storeCode",children:[j9.jsxDEV(N1,{index:!0,element:j9.jsxDEV(wT,{to:"documents",replace:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"documents/*",element:j9.jsxDEV(lA0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"templates/*",element:j9.jsxDEV(iA0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"stories",element:j9.jsxDEV(zN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"story/:storyId",element:j9.jsxDEV(MN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"jobs",element:j9.jsxDEV(wy,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"jobs/:tab",element:j9.jsxDEV(wy,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"job/:jobId",element:j9.jsxDEV(FN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"airlock",element:j9.jsxDEV(_N0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"search",element:j9.jsxDEV(jN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"settings",element:j9.jsxDEV(EN0,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(N1,{path:"*",element:j9.jsxDEV(i80,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j9.jsxDEV(N1,{path:"*",element:j9.jsxDEV(i80,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j9.jsxDEV(N1,{path:"*",element:j9.jsxDEV(i80,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j9.jsxDEV(KA8,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},UA8=lE6;var fN0=G0(X8(),1),zA8=localStorage.getItem("logLevel");if(zA8)HZ.setLevel(zA8);var qA8=document.getElementById("root");if(!qA8)throw Error("Root element not found");var dE6=WA8.createRoot(qA8);dE6.render(fN0.jsxDEV(GA8.default.StrictMode,{children:fN0.jsxDEV(UA8,{},void 0,!1,void 0,this)},void 0,!1,void 0,this));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kelceyp/caw-server",
3
- "version": "1.0.229",
3
+ "version": "1.0.230",
4
4
  "description": "CAW server - REST API, MCP server and core features",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",