@rizom/brain 0.1.1-alpha.13 → 0.1.1-alpha.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/brain.js CHANGED
@@ -2377,7 +2377,7 @@ ${A.entityContent}`,NL1);$=w+C.imagePrompt}catch(C){this.logger.warn("AI prompt
2377
2377
  .reveal .slides section:not(:first-child) span {
2378
2378
  text-align: left;
2379
2379
  }
2380
- `}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as _4}from"preact/jsx-dev-runtime";var mb2={github:(A)=>_4("svg",{className:A,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:_4("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),instagram:(A)=>_4("svg",{className:A,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:_4("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),linkedin:(A)=>_4("svg",{className:A,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:_4("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),email:(A)=>_4("svg",{className:A,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:_4("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),website:(A)=>_4("svg",{className:A,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:_4("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function CKA({links:A,className:f,iconClassName:Q="w-5 h-5"}){if(A.length===0)return null;return _4("div",{className:E1("flex gap-4 items-center",f),children:A.map((w,B)=>{let x=mb2[w.platform],c=`${w.platform.charAt(0).toUpperCase()}${w.platform.slice(1)}`;return _4("a",{href:w.url,target:"_blank",rel:"noopener noreferrer","aria-label":w.label??c,className:"inline-block transition-opacity hover:opacity-70",children:x(Q)},`${w.platform}-${B}`,!1,void 0,this)})},void 0,!1,void 0,this)}import{jsxDEV as h7}from"preact/jsx-dev-runtime";function qKA({cta:A,variant:f="centered",socialLinks:Q}){if(f==="editorial")return h7("section",{className:"cta-bg-pattern bg-theme-subtle py-24 md:py-32 px-6 md:px-12 relative",children:[h7("div",{className:"section-divider absolute top-0 left-0 right-0"},void 0,!1,void 0,this),h7("div",{className:"max-w-4xl mx-auto",children:[h7("p",{className:"text-sm tracking-widest uppercase text-theme-muted mb-4",children:"Get in Touch"},void 0,!1,void 0,this),h7("h2",{className:"text-3xl md:text-4xl font-semibold text-heading max-w-2xl mb-10",children:A.heading},void 0,!1,void 0,this),h7("div",{className:"flex flex-wrap items-center gap-6",children:[h7(h8,{href:A.buttonLink,variant:"primary",size:"lg",children:A.buttonText},void 0,!1,void 0,this),Q&&Q.length>0&&Q.map((w,B)=>h7("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-theme-muted hover:text-brand transition-colors",children:w.label??w.platform},B,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return h7("section",{className:"cta-bg-pattern bg-brand py-16 md:py-24 px-6 md:px-12",children:h7("div",{className:"max-w-4xl mx-auto text-center",children:[h7("h2",{className:"text-2xl md:text-3xl font-bold text-inverse mb-4 font-heading",children:A.heading},void 0,!1,void 0,this),A.subtitle&&h7("p",{className:"text-base md:text-lg text-inverse opacity-80 mb-6 max-w-md mx-auto",children:A.subtitle},void 0,!1,void 0,this),h7(h8,{href:A.buttonLink,variant:"outline-light",size:"lg",children:A.buttonText},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as _KA}from"preact/jsx-dev-runtime";var VKA=({primaryNavigation:A,secondaryNavigation:f,copyright:Q,socialLinks:w,children:B})=>{return _KA("footer",{className:"footer pt-8 sm:pt-14 pb-7 sm:pb-10 bg-footer",children:_KA("div",{className:"container mx-auto px-6 max-w-layout",children:_KA(MKA,{primaryNav:A,secondaryNav:f,copyright:Q??"Powered by Rizom",socialLinks:w,showThemeToggle:!0,variant:"default",children:B},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as q5}from"preact/jsx-dev-runtime";function Jj0({children:A,variant:f}){return q5("div",{className:f==="cta"?"text-[10px] font-mono font-bold uppercase tracking-[0.16em] text-white opacity-40 mb-5":"text-[10px] font-mono font-bold uppercase tracking-[0.16em] text-brand opacity-60 mb-5",children:A},void 0,!1,void 0,this)}function MKA({primaryNav:A,secondaryNav:f,copyright:Q,socialLinks:w,showThemeToggle:B=!1,variant:x="default",children:c}){let I=x==="cta"?"text-white/70 hover:text-accent text-sm":"text-theme-muted hover:text-brand text-sm",$=x==="cta"?"w-4 h-4 text-white opacity-40 hover:opacity-100 hover:text-accent":"w-4 h-4 text-theme-light hover:text-brand hover:opacity-100",D=x==="cta"?"text-[11px] text-white opacity-30 font-mono tracking-[0.04em]":"text-[11px] text-theme-light font-mono tracking-[0.04em]",u=f.length>0,K=w&&w.length>0;return q5("div",{children:[q5("div",{className:"flex flex-col sm:flex-row sm:items-start sm:gap-12",children:[c&&q5("div",{className:"order-first sm:order-last sm:ml-auto pb-7 border-b border-theme-light sm:pb-0 sm:border-b-0",children:c},void 0,!1,void 0,this),q5("div",{className:"grid grid-cols-2 sm:flex sm:gap-12 pt-7 sm:pt-0",children:[A.length>0&&q5("div",{children:[q5(Jj0,{variant:x,children:"Navigate"},void 0,!1,void 0,this),q5(hr,{items:A,orientation:"vertical",linkClassName:I},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u&&q5("div",{children:[q5(Jj0,{variant:x,children:"More"},void 0,!1,void 0,this),q5(hr,{items:f,orientation:"vertical",linkClassName:I},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q5("div",{className:"mt-7 sm:mt-12 pt-5 border-t border-theme-light flex flex-row justify-between items-center gap-4",children:[Q&&q5("p",{className:D,children:Q},void 0,!1,void 0,this),q5("div",{className:"flex items-center gap-5",children:[K&&q5(CKA,{links:w,iconClassName:$},void 0,!1,void 0,this),B&&q5(pb,{variant:"footer",size:"sm"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as i2}from"preact/jsx-dev-runtime";var lb2=dQ("",{variants:{variant:{full:"",icon:"",text:""}},defaultVariants:{variant:"full"}});function Er({variant:A,height:f=32,className:Q,color:w="currentColor",title:B}){if(B)return i2("span",{className:E1("font-semibold text-xl uppercase tracking-wide",Q),children:B},void 0,!1,void 0,this);let x=A??"full";if(x==="icon")return i2("svg",{height:f,viewBox:"0 0 60 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Q,"aria-label":"Rizom logo",children:i2("g",{id:"Group",children:[i2("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_2",children:[i2("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_3",children:[i2("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i2("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_4",children:[i2("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:w},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);if(x==="text")return i2("svg",{height:f,viewBox:"0 0 138 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Q,"aria-label":"Rizom",children:i2("g",{id:"RIZOM",children:[i2("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let c=f,I=f*33/59,$=f*0.2;return i2("div",{className:E1("inline-flex items-center",Q),style:{gap:`${$}px`},"aria-label":"Rizom logo",children:[i2("svg",{height:c,viewBox:"0 0 60 59",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:i2("g",{id:"Group",children:[i2("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_2",children:[i2("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_3",children:[i2("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i2("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_4",children:[i2("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:w},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),i2("svg",{height:I,viewBox:"0 0 138 33",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:i2("g",{id:"RIZOM",children:[i2("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as LB}from"preact/jsx-dev-runtime";function OKA({title:A,logo:f,titleClassName:Q,navigation:w,cta:B,showThemeToggle:x=!1,themeToggleClassName:c}){return LB("header",{className:"py-4 border-b border-theme",children:LB("div",{className:"max-w-layout mx-auto px-6 md:px-8",children:[LB("div",{className:"flex flex-row justify-between items-center",children:[LB("a",{href:"/",className:"text-logo hover:opacity-80 transition-opacity",children:f?LB(Er,{height:36},void 0,!1,void 0,this):Q?LB("span",{className:Q,children:A},void 0,!1,void 0,this):LB(Er,{title:A,height:36},void 0,!1,void 0,this)},void 0,!1,void 0,this),LB("div",{className:"hidden md:flex items-center gap-6",children:[LB("nav",{className:"flex gap-6","aria-label":"Main navigation",children:w.map(($)=>LB("a",{href:$.href,className:"text-sm text-theme hover:text-brand transition-colors",children:$.label},$.href,!1,void 0,this))},void 0,!1,void 0,this),B&&LB(h8,{href:B.buttonLink,variant:"accent",size:"sm",external:!0,className:"whitespace-nowrap",children:B.buttonText},void 0,!1,void 0,this),x&&LB(pb,{size:"sm",...c?{className:c}:{}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),LB(MZ,{variant:"ghost",ssrOnClick:"toggleMobileMenu()",type:"button",className:E1("md:hidden p-2 h-auto","text-theme hover:text-brand hover:bg-transparent"),"aria-label":"Toggle navigation menu","aria-expanded":"false","aria-controls":"mobile-menu",id:"mobile-menu-button",children:LB("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[LB("path",{className:"menu-icon",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"},void 0,!1,void 0,this),LB("path",{className:"close-icon hidden",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),LB("nav",{id:"mobile-menu","aria-label":"Mobile navigation",className:"md:hidden overflow-hidden transition-all duration-300 ease-in-out max-h-0 opacity-0",children:LB("div",{className:"flex flex-col gap-3 mt-4 pb-2 pt-4 border-t border-theme",children:[w.map(($)=>LB("a",{href:$.href,onclick:"closeMobileMenu()",className:"text-sm text-theme hover:text-brand transition-colors py-1",children:$.label},$.href,!1,void 0,this)),B&&LB(h8,{href:B.buttonLink,variant:"accent",size:"sm",external:!0,className:"mt-2",children:B.buttonText},void 0,!1,void 0,this),x&&LB("div",{className:"pt-2 mt-2 border-t border-theme",children:LB(pb,{size:"sm",...c?{className:c}:{}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as Sb2}from"preact/jsx-dev-runtime";var jKA=({html:A,className:f})=>{return Sb2("article",{className:E1(`prose prose-lg max-w-none
2380
+ `}},void 0,!1,void 0,this)]},void 0,!0,void 0,this)};import{jsxDEV as _4}from"preact/jsx-dev-runtime";var mb2={github:(A)=>_4("svg",{className:A,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:_4("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),instagram:(A)=>_4("svg",{className:A,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:_4("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),linkedin:(A)=>_4("svg",{className:A,fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:_4("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),email:(A)=>_4("svg",{className:A,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:_4("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),website:(A)=>_4("svg",{className:A,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:_4("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this)};function CKA({links:A,className:f,iconClassName:Q="w-5 h-5"}){if(A.length===0)return null;return _4("div",{className:E1("flex gap-4 items-center",f),children:A.map((w,B)=>{let x=mb2[w.platform],c=`${w.platform.charAt(0).toUpperCase()}${w.platform.slice(1)}`;return _4("a",{href:w.url,target:"_blank",rel:"noopener noreferrer","aria-label":w.label??c,className:"inline-block transition-opacity hover:opacity-70",children:x(Q)},`${w.platform}-${B}`,!1,void 0,this)})},void 0,!1,void 0,this)}import{jsxDEV as h7}from"preact/jsx-dev-runtime";function qKA({cta:A,variant:f="centered",socialLinks:Q}){if(f==="editorial")return h7("section",{className:"cta-bg-pattern bg-theme-subtle py-24 md:py-32 px-6 md:px-12 relative",children:[h7("div",{className:"section-divider absolute top-0 left-0 right-0"},void 0,!1,void 0,this),h7("div",{className:"max-w-4xl mx-auto",children:[h7("p",{className:"text-sm tracking-widest uppercase text-theme-muted mb-4",children:"Get in Touch"},void 0,!1,void 0,this),h7("h2",{className:"text-3xl md:text-4xl font-semibold text-heading max-w-2xl mb-10",children:A.heading},void 0,!1,void 0,this),h7("div",{className:"flex flex-wrap items-center gap-6",children:[h7(h8,{href:A.buttonLink,variant:"primary",size:"lg",children:A.buttonText},void 0,!1,void 0,this),Q&&Q.length>0&&Q.map((w,B)=>h7("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-theme-muted hover:text-brand transition-colors",children:w.label??w.platform},B,!1,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return h7("section",{className:"cta-bg-pattern bg-brand py-16 md:py-24 px-6 md:px-12",children:h7("div",{className:"max-w-4xl mx-auto text-center",children:[h7("h2",{className:"text-2xl md:text-3xl font-bold text-inverse mb-4 font-heading",children:A.heading},void 0,!1,void 0,this),A.subtitle&&h7("p",{className:"text-base md:text-lg text-inverse opacity-80 mb-6 max-w-md mx-auto",children:A.subtitle},void 0,!1,void 0,this),h7(h8,{href:A.buttonLink,variant:"outline-light",size:"lg",children:A.buttonText},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as _KA}from"preact/jsx-dev-runtime";var VKA=({primaryNavigation:A,secondaryNavigation:f,copyright:Q,socialLinks:w,children:B})=>{return _KA("footer",{className:"footer pt-8 sm:pt-14 pb-7 sm:pb-10 bg-footer",children:_KA("div",{className:"container mx-auto px-6 max-w-layout",children:_KA(MKA,{primaryNav:A,secondaryNav:f,copyright:Q??"Powered by Rizom",socialLinks:w,showThemeToggle:!0,variant:"default",children:B},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)};import{jsxDEV as q5}from"preact/jsx-dev-runtime";function Jj0({children:A,variant:f}){return q5("div",{className:f==="cta"?"text-[10px] font-mono font-bold uppercase tracking-[0.16em] text-white opacity-40 mb-5":"text-[10px] font-mono font-bold uppercase tracking-[0.16em] text-brand opacity-60 mb-5",children:A},void 0,!1,void 0,this)}function MKA({primaryNav:A,secondaryNav:f,copyright:Q,socialLinks:w,showThemeToggle:B=!1,variant:x="default",children:c}){let I=x==="cta"?"text-white/70 hover:text-accent text-sm":"text-theme-muted hover:text-brand text-sm",$=x==="cta"?"w-4 h-4 text-white opacity-40 hover:opacity-100 hover:text-accent":"w-4 h-4 text-theme-light hover:text-brand hover:opacity-100",D=x==="cta"?"text-[11px] text-white opacity-30 font-mono tracking-[0.04em]":"text-[11px] text-theme-light font-mono tracking-[0.04em]",u=f.length>0,K=w&&w.length>0;return q5("div",{children:[q5("div",{className:"flex flex-col sm:flex-row sm:items-start sm:gap-12",children:[c&&q5("div",{className:"order-first sm:order-last sm:ml-auto pb-7 border-b border-theme-light sm:pb-0 sm:border-b-0",children:c},void 0,!1,void 0,this),q5("div",{className:"grid grid-cols-2 sm:flex sm:gap-12 pt-7 sm:pt-0",children:[A.length>0&&q5("div",{children:[q5(Jj0,{variant:x,children:"Navigate"},void 0,!1,void 0,this),q5(hr,{items:A,orientation:"vertical",linkClassName:I},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u&&q5("div",{children:[q5(Jj0,{variant:x,children:"More"},void 0,!1,void 0,this),q5(hr,{items:f,orientation:"vertical",linkClassName:I},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),q5("div",{className:"mt-7 sm:mt-12 pt-5 border-t border-theme-light flex flex-row justify-between items-center gap-4",children:[Q&&q5("p",{className:D,children:Q},void 0,!1,void 0,this),q5("div",{className:"flex items-center gap-5",children:[K&&q5(CKA,{links:w,iconClassName:$},void 0,!1,void 0,this),B&&q5(pb,{variant:"footer",size:"sm"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as i2}from"preact/jsx-dev-runtime";var lb2=dQ("",{variants:{variant:{full:"",icon:"",text:""}},defaultVariants:{variant:"full"}});function Er({variant:A,height:f=32,className:Q,color:w="currentColor",title:B}){if(B)return i2("span",{className:E1("font-semibold text-xl uppercase tracking-wide",Q),children:B},void 0,!1,void 0,this);let x=A??"full";if(x==="icon")return i2("svg",{height:f,viewBox:"0 0 60 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Q,"aria-label":"Rizom logo",children:i2("g",{id:"Group",children:[i2("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_2",children:[i2("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_3",children:[i2("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i2("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_4",children:[i2("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:w},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);if(x==="text")return i2("svg",{height:f,viewBox:"0 0 138 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:Q,"aria-label":"Rizom",children:i2("g",{id:"RIZOM",children:[i2("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);let c=f,I=f*33/59,$=f*0.2;return i2("div",{className:E1("inline-flex items-center",Q),style:{gap:`${$}px`},"aria-label":"Rizom logo",children:[i2("svg",{height:c,viewBox:"0 0 60 59",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:i2("g",{id:"Group",children:[i2("path",{id:"Vector",d:"M29.8235 22.1142C31.7219 22.1142 33.5065 22.8336 34.8489 24.1412C36.1913 25.4481 36.9309 27.1856 36.9309 29.0338C36.9309 30.882 36.192 32.6195 34.8489 33.9265C33.5065 35.2334 31.7219 35.9535 29.8235 35.9535C27.9251 35.9535 26.1405 35.234 24.7981 33.9265C23.4557 32.6189 22.7167 30.882 22.7167 29.0338C22.7167 27.1856 23.4557 25.4481 24.7981 24.1412C26.1405 22.8342 27.9251 22.1142 29.8235 22.1142ZM29.8235 17.1881C23.104 17.1881 17.6562 22.4918 17.6562 29.0338C17.6562 35.5758 23.104 40.8796 29.8235 40.8796C36.543 40.8796 41.9907 35.5758 41.9907 29.0338C41.9907 22.4918 36.543 17.1881 29.8235 17.1881Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_2",children:[i2("path",{id:"Vector_2",d:"M13.2469 29.0338C13.2469 33.2709 14.9323 37.1315 17.6846 40.0136C11.8265 39.6006 7.20517 34.8424 7.20517 29.0338C7.20517 23.2253 11.8265 18.4671 17.6846 18.0541C14.9323 20.9362 13.2469 24.798 13.2469 29.0338Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_3",d:"M52.4385 29.0338C52.4385 34.8424 47.8172 39.6006 41.9591 40.0136C44.7114 37.1315 46.3967 33.2709 46.3967 29.0338C46.3967 24.7968 44.7114 20.9362 41.9591 18.0541C47.8172 18.4671 52.4385 23.2253 52.4385 29.0338Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_3",children:[i2("path",{id:"Vector_4",d:"M59.7265 29.0338C59.7265 32.172 57.6563 34.84 54.7735 35.8142C56.0553 31.4628 56.056 26.6042 54.7735 22.2535C57.6563 23.2277 59.7265 25.8957 59.7265 29.0338Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_5",d:"M3.97003 30.5734C4.08122 32.3778 4.3873 34.1312 4.86955 35.8139C-1.62448 33.824 -1.62136 24.2431 4.86955 22.2544C4.17929 24.8932 3.65582 27.8106 3.97003 30.5734Z",fill:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i2("path",{id:"Vector_6",d:"M41.0996 40.8504C40.6754 46.5537 35.788 51.0529 29.8218 51.0529C23.8557 51.0529 18.9683 46.5537 18.5441 40.8504C21.5044 43.5299 25.471 45.1708 29.8218 45.1708C34.1726 45.1708 38.1393 43.5299 41.0996 40.8504Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_7",d:"M41.0996 17.2173C38.1393 14.5377 34.1739 12.8969 29.8218 12.8969C25.4698 12.8969 21.5044 14.5377 18.5441 17.2173C18.9683 11.514 23.8557 7.01479 29.8218 7.01479C35.788 7.01479 40.6754 11.514 41.0996 17.2173Z",fill:w},void 0,!1,void 0,this),i2("g",{id:"Group_4",children:[i2("path",{id:"Vector_8",d:"M36.7862 53.3262C34.7417 59.6493 24.9007 59.6462 22.8574 53.3262C27.3257 54.5742 32.318 54.5742 36.7862 53.3262Z",fill:w},void 0,!1,void 0,this),i2("path",{id:"Vector_9",d:"M36.7862 4.74088C32.318 3.49294 27.3257 3.49294 22.8574 4.74088C24.902 -1.58155 34.743 -1.57851 36.7862 4.74088Z",fill:w},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),i2("svg",{height:I,viewBox:"0 0 138 33",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:i2("g",{id:"RIZOM",children:[i2("path",{d:"M5.24978 24.3876V31.7373H0V0.715879H10.0223C12.4086 0.715879 14.2858 1.43176 15.6539 2.86352C17.0538 4.26346 17.7538 6.01339 17.7538 8.1133C17.7538 9.99049 16.9902 11.7086 15.463 13.2676C17.7538 13.7767 19.5992 15.0494 20.9991 17.0857C22.3991 19.1219 23.099 21.54 23.099 24.3399V31.7373H17.8493V24.8172C17.8493 22.5263 17.2606 20.7287 16.0834 19.4242C14.938 18.1197 13.4108 17.4675 11.5018 17.4675C9.72005 17.4675 8.22466 18.0879 7.01562 19.3287C5.83839 20.5696 5.24978 22.2559 5.24978 24.3876ZM9.11553 5.82249H5.24978V14.7948C5.4725 14.5721 5.72704 14.3494 6.01339 14.1267C6.29974 13.904 6.602 13.6972 6.92017 13.5063C7.27015 13.3154 7.55651 13.1563 7.77922 13.029C8.03376 12.8699 8.36783 12.6949 8.78145 12.504C9.19507 12.2813 9.49733 12.1222 9.68824 12.0268C11.5972 11.0086 12.5518 9.86323 12.5518 8.59055C12.5518 7.7315 12.2495 7.06334 11.645 6.58609C11.0405 6.07702 10.1973 5.82249 9.11553 5.82249Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M33.3536 0.715879V31.7373H28.1039V0.715879H33.3536Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M61.3617 0.715879L46.71 26.5353H61.5049V31.7373H37.6422L52.3416 5.91794H39.3603V0.715879H61.3617Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M79.0133 32.4055C74.5908 32.4055 70.8205 30.8305 67.7024 27.6807C64.6162 24.5308 63.0731 20.6969 63.0731 16.1789C63.0731 11.7245 64.6162 7.9224 67.7024 4.77253C70.8205 1.59084 74.5908 0 79.0133 0C83.4359 0 87.2062 1.59084 90.3242 4.77253C93.4741 7.9224 95.049 11.7245 95.049 16.1789C95.049 20.6969 93.49 24.5308 90.3719 27.6807C87.2539 30.8305 83.4677 32.4055 79.0133 32.4055ZM79.0133 27.0125C81.9723 27.0125 84.4699 25.9626 86.5062 23.8626C88.5743 21.7627 89.6083 19.2015 89.6083 16.1789C89.6083 13.1881 88.5743 10.6586 86.5062 8.59055C84.4699 6.49064 81.9723 5.44068 79.0133 5.44068C76.0862 5.44068 73.6045 6.49064 71.5682 8.59055C69.5319 10.6586 68.5138 13.1881 68.5138 16.1789C68.5138 19.2015 69.5319 21.7627 71.5682 23.8626C73.6045 25.9626 76.0862 27.0125 79.0133 27.0125Z",fill:w},void 0,!1,void 0,this),i2("path",{d:"M126.682 0C129.545 0 132.011 1.04996 134.079 3.14987C136.147 5.21796 137.182 7.82695 137.182 10.9768V31.6896H131.932V10.7859C131.932 9.29052 131.423 8.01785 130.405 6.96789C129.386 5.91794 128.146 5.39296 126.682 5.39296C125.25 5.39296 124.025 5.90203 123.007 6.92017C121.989 7.93831 121.48 9.14735 121.48 10.5473V31.7373H116.182L116.23 10.5473C116.23 9.17917 115.705 7.98603 114.655 6.96789C113.605 5.91794 112.364 5.39296 110.933 5.39296C109.437 5.39296 108.165 5.91794 107.115 6.96789C106.065 8.01785 105.54 9.29052 105.54 10.7859V31.7373H100.338L100.29 10.9768C100.29 7.82695 101.324 5.21796 103.392 3.14987C105.492 1.04996 108.005 0 110.933 0C114.146 0 116.771 1.24086 118.807 3.72257C120.844 1.24086 123.468 0 126.682 0Z",fill:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}import{jsxDEV as LB}from"preact/jsx-dev-runtime";function OKA({title:A,logo:f,titleClassName:Q,navigation:w,cta:B,showThemeToggle:x=!1,themeToggleClassName:c}){return LB("header",{className:"py-4 border-b border-theme",children:LB("div",{className:"max-w-layout mx-auto px-6 md:px-8",children:[LB("div",{className:"flex flex-row justify-between items-center",children:[LB("a",{href:"/",className:"text-logo hover:opacity-80 transition-opacity",children:f?LB(Er,{height:36},void 0,!1,void 0,this):Q?LB("span",{className:Q,children:A},void 0,!1,void 0,this):LB(Er,{title:A,height:36},void 0,!1,void 0,this)},void 0,!1,void 0,this),LB("div",{className:"hidden md:flex items-center gap-6",children:[LB("nav",{className:"flex gap-6","aria-label":"Main navigation",children:w.map(($)=>LB("a",{href:$.href,className:"text-sm text-theme hover:text-brand transition-colors",children:$.label},$.href,!1,void 0,this))},void 0,!1,void 0,this),B&&LB(h8,{href:B.buttonLink,variant:"accent",size:"sm",external:!0,className:"whitespace-nowrap",children:B.buttonText},void 0,!1,void 0,this),x&&LB(pb,{size:"sm",...c?{className:c}:{}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),LB(MZ,{variant:"ghost",ssrOnClick:"toggleMobileMenu()",type:"button",className:E1("md:hidden p-2 h-auto rounded-lg","text-brand border border-brand/40 bg-brand/10","hover:bg-brand hover:text-theme-inverse hover:border-brand"),"aria-label":"Toggle navigation menu","aria-expanded":"false","aria-controls":"mobile-menu",id:"mobile-menu-button",children:LB("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",children:[LB("path",{className:"menu-icon",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"},void 0,!1,void 0,this),LB("path",{className:"close-icon hidden",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),LB("nav",{id:"mobile-menu","aria-label":"Mobile navigation",className:"md:hidden overflow-hidden transition-all duration-300 ease-in-out max-h-0 opacity-0",children:LB("div",{className:"flex flex-col gap-3 mt-4 pb-2 pt-4 border-t border-theme",children:[w.map(($)=>LB("a",{href:$.href,onclick:"closeMobileMenu()",className:"text-sm text-theme hover:text-brand transition-colors py-1",children:$.label},$.href,!1,void 0,this)),B&&LB(h8,{href:B.buttonLink,variant:"accent",size:"sm",external:!0,className:"mt-2",children:B.buttonText},void 0,!1,void 0,this),x&&LB("div",{className:"pt-2 mt-2 border-t border-theme",children:LB(pb,{size:"sm",...c?{className:c}:{}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}import{jsxDEV as Sb2}from"preact/jsx-dev-runtime";var jKA=({html:A,className:f})=>{return Sb2("article",{className:E1(`prose prose-lg max-w-none
2381
2381
  prose-h1:text-4xl prose-h1:font-bold prose-h1:mb-8 prose-h1:mt-0
2382
2382
  prose-h2:text-3xl prose-h2:font-semibold prose-h2:mt-16 prose-h2:mb-6 prose-h2:border-b prose-h2:pb-4
2383
2383
  prose-h3:text-2xl prose-h3:font-semibold prose-h3:mt-10 prose-h3:mb-4
@@ -2724,7 +2724,7 @@ ${A.map((x)=>({url:`${f}${x.path}`,lastmod:Q,changefreq:x.path==="/"?"daily":"we
2724
2724
  <script src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"></script>
2725
2725
  </body>
2726
2726
  </html>
2727
- `;async function om2(A,f,Q){let w=A.siteConfig.url??"https://example.com",B=f.list(),x=wr0(w,A.environment);await GO.writeFile(JO(A.outputDir,"robots.txt"),x,"utf-8"),Q.info(`Generated robots.txt for ${A.environment} environment`);let c=Br0(B,w);await GO.writeFile(JO(A.outputDir,"sitemap.xml"),c,"utf-8"),Q.info(`Generated sitemap.xml with ${B.length} URLs`)}async function am2(A,f,Q,w){if(!Q.cms)return;let B=await f.messaging.send("git-sync:get-repo-info",{});if("noop"in B||!B.success||!B.data?.repo){w.warn("CMS enabled but git-sync repo info unavailable \u2014 skipping CMS generation");return}let x=f.entityService.getEntityTypes(),c=cr0({repo:B.data.repo,branch:B.data.branch,...f.siteUrl&&{baseUrl:f.siteUrl},entityTypes:x,getFrontmatterSchema:($)=>f.entities.getEffectiveFrontmatterSchema($),getAdapter:($)=>f.entities.getAdapter($),...Q.entityDisplay&&{entityDisplay:Q.entityDisplay}}),I=JO(A.outputDir,"admin");await GO.mkdir(I,{recursive:!0}),await GO.writeFile(JO(I,"config.yml"),u$(c),"utf-8"),await GO.writeFile(JO(I,"index.html"),Ir0,"utf-8"),w.info("Generated CMS admin page and config.yml")}function $r0(A){let{context:f,routeRegistry:Q,config:w,logger:B}=A;f.messaging.subscribe("site:build:completed",async(x)=>{try{let c=x.payload;return B.info(`Received site:build:completed event for ${c.environment} environment - generating SEO files`),await om2(c,Q,B),await am2(c,f,w,B),{success:!0}}catch(c){return B.error("Failed to generate SEO files",c),{success:!1}}})}B0();HA();var Dr0=X.object({environment:X.enum(["preview","production"]).optional(),outputDir:X.string(),workingDir:X.string().optional(),enableContentGeneration:X.boolean().optional(),siteConfig:X.object({title:X.string(),description:X.string(),url:X.string().optional(),analyticsScript:X.string().optional()}).optional()});HA();class dZA extends CQ{sendMessage;cfg;constructor(A,f,Q){super(A,{schema:Dr0,jobTypeName:"site-build"});this.sendMessage=f;this.cfg=Q}async process(A,f,Q){let w=A.environment??"preview",B=A.enableContentGeneration??!1;try{this.logger.debug("Starting site build job",{jobId:f,environment:w,outputDir:A.outputDir}),await Q.report({progress:0,total:100,message:`Starting site build for ${w} environment`});let x=Q.createSub({scale:{start:10,end:90}}),c=await this.cfg.siteBuilder.build({outputDir:A.outputDir,workingDir:A.workingDir,sharedImagesDir:this.cfg.sharedImagesDir,enableContentGeneration:B,environment:w,cleanBeforeBuild:!0,siteConfig:A.siteConfig??this.cfg.defaultSiteConfig,layouts:this.cfg.layouts,themeCSS:this.cfg.themeCSS,slots:this.cfg.slots,headScripts:this.cfg.getHeadScripts?.(),...this.cfg.staticAssets&&{staticAssets:this.cfg.staticAssets}},x.toCallback());if(await Q.report({progress:100,total:100,message:`Site build completed: ${c.routesBuilt} routes built`}),this.logger.debug("Site build job completed",{jobId:f,environment:w,routesBuilt:c.routesBuilt,success:c.success}),c.success){this.logger.info(`Emitting site:build:completed event for ${w} environment`);let I=w==="preview"?this.cfg.previewUrl??this.cfg.siteUrl:this.cfg.siteUrl;await this.sendMessage("site:build:completed",{outputDir:A.outputDir,environment:w,routesBuilt:c.routesBuilt,siteConfig:{...A.siteConfig??this.cfg.defaultSiteConfig,url:I},generateEntityUrl:($,D)=>s9.getInstance().generateUrl($,D)},{broadcast:!0})}return{success:c.success,routesBuilt:c.routesBuilt,outputDir:A.outputDir,environment:w,...c.errors&&{errors:c.errors},...c.warnings&&{warnings:c.warnings}}}catch(x){throw this.logger.error("Site build job failed",x),x}}summarizeDataForLog(A){return{environment:A.environment,outputDir:A.outputDir}}}HA();B0();var sm2=X.object({slot:X.enum(zJ).optional().default("primary"),limit:X.number().optional()});class oZA{routeRegistry;logger;id="site:navigation";name="Site Navigation DataSource";description="Provides navigation items for site menus";constructor(A,f){this.routeRegistry=A;this.logger=f;this.logger.debug("NavigationDataSource initialized")}async fetch(A,f,Q){let w=sm2.parse(A??{});this.logger.debug("NavigationDataSource fetch called",{params:w});let B=this.routeRegistry.getNavigationItems(w.slot),x=w.limit?B.slice(0,w.limit):B,c=x.map(($)=>({label:$.label,href:$.href}));this.logger.debug("NavigationDataSource returning",{slot:w.slot,itemCount:x.length,items:c});let I={navigation:c};return f.parse(I)}}B0();HA();var tm2=X.object({environment:X.enum(["preview","production"]).optional().describe("Build environment (defaults to production, or preview if configured)")});function Yr0(A,f){return[Tf(A,"build-site","Build a static site from registered routes",tm2,async(Q)=>{return f(Q.environment),{success:!0,message:`Site build requested${Q.environment?` for ${Q.environment}`:""} (debounced)`,data:{}}},{cli:{name:"build"}})]}HA();B0();var ur0=X.object({previewOutputDir:X.string().describe("Output directory for preview builds").default("./dist/site-preview"),productionOutputDir:X.string().describe("Output directory for production builds").default("./dist/site-production"),sharedImagesDir:X.string().describe("Shared directory for optimized images (used by both preview and production)").default("./dist/images"),workingDir:X.string().optional().describe("Working directory for builds").default("./.preact-work"),siteInfo:KD.default({title:"Brain",description:"A knowledge management system"}),themeCSS:X.string().describe("Custom CSS theme overrides to inject into builds").optional(),analyticsScript:X.string().describe("Analytics tracking script to inject into page head (e.g., Cloudflare Web Analytics)").optional(),templates:X.any().optional().describe("Template definitions to register"),routes:X.array(hJ).optional().describe("Routes to register"),layouts:X.record(X.any()).optional().describe("Layout components (at least 'default' required)"),autoRebuild:X.boolean().default(!0).describe("Automatically rebuild site when content changes"),rebuildDebounce:X.number().min(100).describe("Debounce time in ms before triggering site rebuild after content changes").default(5000),entityDisplay:X.record(X.object({label:X.string().describe("Display label for entity type (e.g., 'Essay')"),pluralName:X.string().optional().describe("URL path segment (defaults to label.toLowerCase() + 's')"),layout:X.string().optional().describe("Layout name for this entity type's generated routes (defaults to 'default')"),paginate:X.boolean().optional().describe("Enable pagination for list pages"),pageSize:X.number().optional().describe("Items per page (default: 10)"),navigation:X.object({show:X.boolean().optional().describe("Show in navigation"),slot:X.enum(zJ).optional().describe("Navigation slot (primary or secondary)"),priority:X.number().min(0).max(100).optional().describe("Navigation priority (0-100)")}).optional().describe("Navigation settings for this entity type")})).optional().describe("Display metadata per entity type \u2014 label, plural name, layout, pagination, navigation slot. Consulted when auto-generating routes for active entity plugins."),staticAssets:X.record(X.string()).optional().describe("Static files to write to the output directory at build time. Keys are output paths (e.g. '/canvases/tree.js'), values are file contents as strings. Typically supplied by a SitePackage via text imports."),cms:X.object({}).optional().describe("Sveltia CMS configuration (enables /admin/ CMS, requires git-sync plugin)")});var Ur0={name:"@brains/site-builder-plugin",private:!0,version:"0.0.1",description:"Static site generation plugin for Brain system",type:"module",exports:{".":"./src/index.ts"},scripts:{typecheck:"tsc --noEmit",test:"bun test",lint:"eslint .",clean:"rm -rf dist"},dependencies:{"@brains/plugins":"workspace:*","@brains/site-info":"workspace:*","@brains/ui-library":"workspace:*","@tailwindcss/postcss":"^4.1.13","@tailwindcss/typography":"^0.5.19",postcss:"^8.5.6",preact:"^10.27.2","preact-render-to-string":"^6.3.1",sharp:"^0.34.5",tailwindcss:"^4.1.11"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/test-utils":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"^1.1.14","@types/sharp":"^0.32.0",eslint:"^8.56.0",typescript:"^5.3.3"}};class aZA extends mw{siteBuilder;pluginContext;_routeRegistry;_slotRegistry;profileService;layouts;rebuildManager;headScripts=new Map;get routeRegistry(){if(!this._routeRegistry)throw Error("RouteRegistry not initialized - plugin not registered");return this._routeRegistry}constructor(A={}){let f=A.layouts??{};super("site-builder",Ur0,{...A,layouts:f},ur0);this.layouts=f}async onRegister(A){if(this.pluginContext=A,this._routeRegistry=new SZA(A.logger),this._slotRegistry=new io,A.messaging.subscribe("plugin:site-builder:slot:register",async(f)=>{let{slotName:Q,pluginId:w,render:B,priority:x}=f.payload;return this._slotRegistry?.register(Q,{pluginId:w,render:B,...x!==void 0&&{priority:x}}),{success:!0}}),A.messaging.subscribe("plugin:site-builder:head-script:register",async(f)=>{let{pluginId:Q,script:w}=f.payload;return this.headScripts.set(Q,w),{success:!0}}),A.entities.registerDataSource(new oZA(this._routeRegistry,A.logger.child("NavigationDataSource"))),this.profileService=wx.getInstance(A.entityService,A.logger),A.messaging.subscribe("sync:initial:completed",async()=>{return await this.profileService?.initialize(),this.logger.info("AnchorProfileService initialized"),{success:!0}}),Qr0(A,this._routeRegistry,this.logger),this.config.templates)A.templates.register(this.config.templates);if(this.config.routes)To(this.config.routes,this.id,this.routeRegistry);if(this.siteBuilder=q7.getInstance(A.logger.child("SiteBuilder"),A,this.routeRegistry,this.profileService,this.config.entityDisplay),A.jobs.registerHandler("site-build",new dZA(this.logger.child("SiteBuildJobHandler"),A.messaging.send,{siteBuilder:this.siteBuilder,layouts:this.layouts,defaultSiteConfig:this.config.siteInfo,sharedImagesDir:this.config.sharedImagesDir,siteUrl:A.siteUrl,previewUrl:A.previewUrl,themeCSS:this.config.themeCSS,slots:this._slotRegistry,getHeadScripts:()=>this.getRegisteredHeadScripts(),...this.config.staticAssets&&{staticAssets:this.config.staticAssets}})),this.rebuildManager=new nZA(this.config,A,this.id,this.logger),this.config.autoRebuild)this.logger.debug("Auto-rebuild enabled"),this.rebuildManager.setupAutoRebuild();if(this.config.cms)this._routeRegistry.register({id:"cms-admin",path:"/admin/",title:"Admin",external:!0,navigation:{show:!0,slot:"secondary",label:"Admin",priority:100}});A.messaging.subscribe("entity:updated",async(f)=>{if(f.payload.entityType==="site-info"){let w=await this.getInstructions();if(w)A.registerInstructions(w)}return{success:!0}}),$r0({context:A,routeRegistry:this._routeRegistry,config:this.config,logger:this.logger})}getRegisteredHeadScripts(){return Array.from(this.headScripts.values())}async getTools(){if(!this.pluginContext||!this.rebuildManager)throw Error("Plugin context not initialized");let A=this.rebuildManager;return Yr0(this.id,(f)=>A.requestBuild(f))}async getResources(){let A=this.getContext();return[{uri:"brain://site",name:"Site Info",description:"Site metadata \u2014 title, description, domain, URLs",mimeType:"application/json",handler:async()=>{let f;try{f=await iY(A.entityService)}catch{f={title:"Brain",description:""}}return{contents:[{uri:"brain://site",mimeType:"application/json",text:JSON.stringify({...f,domain:A.domain,siteUrl:A.siteUrl,previewUrl:A.previewUrl},null,2)}]}}},{uri:"site://routes",name:"Site Routes",description:"All registered routes with sections and templates",mimeType:"application/json",handler:async()=>{let f=this.routeRegistry.list();return{contents:[{uri:"site://routes",mimeType:"application/json",text:JSON.stringify(f.map((Q)=>({id:Q.id,path:Q.path,title:Q.title,description:Q.description,sections:Q.sections.map((w)=>({id:w.id,template:w.template}))})),null,2)}]}}},{uri:"site://templates",name:"View Templates",description:"All registered view templates",mimeType:"application/json",handler:async()=>{let f=A.views.list();return{contents:[{uri:"site://templates",mimeType:"application/json",text:JSON.stringify(f.map((Q)=>({name:Q.name,description:Q.description,hasWebRenderer:!!Q.renderers.web})),null,2)}]}}}]}getSiteBuilder(){return this.siteBuilder}getSlotRegistry(){return this._slotRegistry}async getInstructions(){let A=this.getContext();try{let f=await iY(A.entityService);return`## Your Site
2727
+ `;async function om2(A,f,Q){let w=A.siteConfig.url??"https://example.com",B=f.list(),x=wr0(w,A.environment);await GO.writeFile(JO(A.outputDir,"robots.txt"),x,"utf-8"),Q.info(`Generated robots.txt for ${A.environment} environment`);let c=Br0(B,w);await GO.writeFile(JO(A.outputDir,"sitemap.xml"),c,"utf-8"),Q.info(`Generated sitemap.xml with ${B.length} URLs`)}async function am2(A,f,Q,w){if(!Q.cms)return;let B=await f.messaging.send("git-sync:get-repo-info",{});if("noop"in B||!B.success||!B.data?.repo){w.warn("CMS enabled but git-sync repo info unavailable \u2014 skipping CMS generation");return}let x=f.entityService.getEntityTypes(),c=cr0({repo:B.data.repo,branch:B.data.branch,...f.siteUrl&&{baseUrl:f.siteUrl},entityTypes:x,getFrontmatterSchema:($)=>f.entities.getEffectiveFrontmatterSchema($),getAdapter:($)=>f.entities.getAdapter($),...Q.entityDisplay&&{entityDisplay:Q.entityDisplay}}),I=JO(A.outputDir,"admin");await GO.mkdir(I,{recursive:!0}),await GO.writeFile(JO(I,"config.yml"),u$(c),"utf-8"),await GO.writeFile(JO(I,"index.html"),Ir0,"utf-8"),w.info("Generated CMS admin page and config.yml")}function $r0(A){let{context:f,routeRegistry:Q,config:w,logger:B}=A;f.messaging.subscribe("site:build:completed",async(x)=>{try{let c=x.payload;return B.info(`Received site:build:completed event for ${c.environment} environment - generating SEO files`),await om2(c,Q,B),await am2(c,f,w,B),{success:!0}}catch(c){return B.error("Failed to generate SEO files",c),{success:!1}}})}B0();HA();var Dr0=X.object({environment:X.enum(["preview","production"]).optional(),outputDir:X.string(),workingDir:X.string().optional(),enableContentGeneration:X.boolean().optional(),siteConfig:X.object({title:X.string(),description:X.string(),url:X.string().optional(),analyticsScript:X.string().optional()}).optional()});HA();class dZA extends CQ{sendMessage;cfg;constructor(A,f,Q){super(A,{schema:Dr0,jobTypeName:"site-build"});this.sendMessage=f;this.cfg=Q}async process(A,f,Q){let w=A.environment??"preview",B=A.enableContentGeneration??!1;try{this.logger.debug("Starting site build job",{jobId:f,environment:w,outputDir:A.outputDir}),await Q.report({progress:0,total:100,message:`Starting site build for ${w} environment`});let x=Q.createSub({scale:{start:10,end:90}}),c=await this.cfg.siteBuilder.build({outputDir:A.outputDir,workingDir:A.workingDir,sharedImagesDir:this.cfg.sharedImagesDir,enableContentGeneration:B,environment:w,cleanBeforeBuild:!0,siteConfig:A.siteConfig??this.cfg.defaultSiteConfig,layouts:this.cfg.layouts,themeCSS:this.cfg.themeCSS,slots:this.cfg.slots,headScripts:this.cfg.getHeadScripts?.(),...this.cfg.staticAssets&&{staticAssets:this.cfg.staticAssets}},x.toCallback());if(await Q.report({progress:100,total:100,message:`Site build completed: ${c.routesBuilt} routes built`}),this.logger.debug("Site build job completed",{jobId:f,environment:w,routesBuilt:c.routesBuilt,success:c.success}),c.success){this.logger.info(`Emitting site:build:completed event for ${w} environment`);let I=w==="preview"?this.cfg.previewUrl??this.cfg.siteUrl:this.cfg.siteUrl;await this.sendMessage("site:build:completed",{outputDir:A.outputDir,environment:w,routesBuilt:c.routesBuilt,siteConfig:{...A.siteConfig??this.cfg.defaultSiteConfig,url:I},generateEntityUrl:($,D)=>s9.getInstance().generateUrl($,D)},{broadcast:!0})}return{success:c.success,routesBuilt:c.routesBuilt,outputDir:A.outputDir,environment:w,...c.errors&&{errors:c.errors},...c.warnings&&{warnings:c.warnings}}}catch(x){throw this.logger.error("Site build job failed",x),x}}summarizeDataForLog(A){return{environment:A.environment,outputDir:A.outputDir}}}HA();B0();var sm2=X.object({slot:X.enum(zJ).optional().default("primary"),limit:X.number().optional()});class oZA{routeRegistry;logger;id="site:navigation";name="Site Navigation DataSource";description="Provides navigation items for site menus";constructor(A,f){this.routeRegistry=A;this.logger=f;this.logger.debug("NavigationDataSource initialized")}async fetch(A,f,Q){let w=sm2.parse(A??{});this.logger.debug("NavigationDataSource fetch called",{params:w});let B=this.routeRegistry.getNavigationItems(w.slot),x=w.limit?B.slice(0,w.limit):B,c=x.map(($)=>({label:$.label,href:$.href}));this.logger.debug("NavigationDataSource returning",{slot:w.slot,itemCount:x.length,items:c});let I={navigation:c};return f.parse(I)}}B0();HA();var tm2=X.object({environment:X.enum(["preview","production"]).optional().describe("Build environment (defaults to production, or preview if configured)")});function Yr0(A,f){return[Tf(A,"build-site","Build a static site from registered routes",tm2,async(Q)=>{return f(Q.environment),{success:!0,message:`Site build requested${Q.environment?` for ${Q.environment}`:""} (debounced)`,data:{}}},{cli:{name:"build"}})]}HA();B0();var ur0=X.object({previewOutputDir:X.string().describe("Output directory for preview builds").default("./dist/site-preview"),productionOutputDir:X.string().describe("Output directory for production builds").default("./dist/site-production"),sharedImagesDir:X.string().describe("Shared directory for optimized images (used by both preview and production)").default("./dist/images"),workingDir:X.string().optional().describe("Working directory for builds").default("./.preact-work"),siteInfo:KD.default({title:"Brain",description:"A knowledge management system"}),themeCSS:X.string().describe("Custom CSS theme overrides to inject into builds").optional(),analyticsScript:X.string().describe("Analytics tracking script to inject into page head (e.g., Cloudflare Web Analytics)").optional(),templates:X.any().optional().describe("Template definitions to register"),routes:X.array(hJ).optional().describe("Routes to register"),layouts:X.record(X.any()).optional().describe("Layout components (at least 'default' required)"),autoRebuild:X.boolean().default(!0).describe("Automatically rebuild site when content changes"),rebuildDebounce:X.number().min(100).describe("Debounce time in ms before triggering site rebuild after content changes").default(5000),entityDisplay:X.record(X.object({label:X.string().describe("Display label for entity type (e.g., 'Essay')"),pluralName:X.string().optional().describe("URL path segment (defaults to label.toLowerCase() + 's')"),layout:X.string().optional().describe("Layout name for this entity type's generated routes (defaults to 'default')"),paginate:X.boolean().optional().describe("Enable pagination for list pages"),pageSize:X.number().optional().describe("Items per page (default: 10)"),navigation:X.object({show:X.boolean().optional().describe("Show in navigation"),slot:X.enum(zJ).optional().describe("Navigation slot (primary or secondary)"),priority:X.number().min(0).max(100).optional().describe("Navigation priority (0-100)")}).optional().describe("Navigation settings for this entity type")})).optional().describe("Display metadata per entity type \u2014 label, plural name, layout, pagination, navigation slot. Consulted when auto-generating routes for active entity plugins."),staticAssets:X.record(X.string()).optional().describe("Static files to write to the output directory at build time. Keys are output paths (e.g. '/canvases/tree.js'), values are file contents as strings. Typically supplied by a SitePackage via text imports."),cms:X.object({}).optional().describe("Sveltia CMS configuration (enables /admin/ CMS, requires git-sync plugin)")});var Ur0={name:"@brains/site-builder-plugin",private:!0,version:"0.0.1",description:"Static site generation plugin for Brain system",type:"module",exports:{".":"./src/index.ts"},scripts:{typecheck:"tsc --noEmit",test:"bun test",lint:"eslint .",clean:"rm -rf dist"},dependencies:{"@brains/plugins":"workspace:*","@brains/site-info":"workspace:*","@brains/ui-library":"workspace:*","@tailwindcss/postcss":"^4.1.13","@tailwindcss/typography":"^0.5.19",postcss:"^8.5.6",preact:"^10.27.2","preact-render-to-string":"^6.3.1",sharp:"^0.34.5",tailwindcss:"^4.1.11"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/test-utils":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"^1.1.14","@types/sharp":"^0.32.0",eslint:"^8.56.0",typescript:"^5.3.3"}};class aZA extends mw{siteBuilder;pluginContext;_routeRegistry;_slotRegistry;profileService;layouts;rebuildManager;headScripts=new Map;get routeRegistry(){if(!this._routeRegistry)throw Error("RouteRegistry not initialized - plugin not registered");return this._routeRegistry}constructor(A={}){let f=A.layouts??{};super("site-builder",Ur0,{...A,layouts:f},ur0);this.layouts=f}async onRegister(A){if(this.pluginContext=A,this._routeRegistry=new SZA(A.logger),this._slotRegistry=new io,A.messaging.subscribe("plugin:site-builder:slot:register",async(f)=>{let{slotName:Q,pluginId:w,render:B,priority:x}=f.payload;return this._slotRegistry?.register(Q,{pluginId:w,render:B,...x!==void 0&&{priority:x}}),{success:!0}}),A.messaging.subscribe("plugin:site-builder:head-script:register",async(f)=>{let{pluginId:Q,script:w}=f.payload;return this.headScripts.set(Q,w),{success:!0}}),A.entities.registerDataSource(new oZA(this._routeRegistry,A.logger.child("NavigationDataSource"))),this.profileService=wx.getInstance(A.entityService,A.logger),A.messaging.subscribe("sync:initial:completed",async()=>{return await this.profileService?.initialize(),this.logger.info("AnchorProfileService initialized"),{success:!0}}),Qr0(A,this._routeRegistry,this.logger),this.config.templates)A.templates.register(this.config.templates);if(this.config.routes)To(this.config.routes,this.id,this.routeRegistry);if(this.siteBuilder=q7.getInstance(A.logger.child("SiteBuilder"),A,this.routeRegistry,this.profileService,this.config.entityDisplay),A.jobs.registerHandler("site-build",new dZA(this.logger.child("SiteBuildJobHandler"),A.messaging.send,{siteBuilder:this.siteBuilder,layouts:this.layouts,defaultSiteConfig:this.config.siteInfo,sharedImagesDir:this.config.sharedImagesDir,siteUrl:A.siteUrl,previewUrl:A.previewUrl,themeCSS:this.config.themeCSS,slots:this._slotRegistry,getHeadScripts:()=>this.getRegisteredHeadScripts(),...this.config.staticAssets&&{staticAssets:this.config.staticAssets}})),this.rebuildManager=new nZA(this.config,A,this.id,this.logger),this.config.autoRebuild)this.logger.debug("Auto-rebuild enabled"),this.rebuildManager.setupAutoRebuild();if(this.config.cms)this._routeRegistry.register({id:"cms-admin",path:"/admin/",title:"Admin",external:!0,navigation:{show:!1,slot:"secondary",label:"Admin",priority:100}});A.messaging.subscribe("entity:updated",async(f)=>{if(f.payload.entityType==="site-info"){let w=await this.getInstructions();if(w)A.registerInstructions(w)}return{success:!0}}),$r0({context:A,routeRegistry:this._routeRegistry,config:this.config,logger:this.logger})}getRegisteredHeadScripts(){return Array.from(this.headScripts.values())}async getTools(){if(!this.pluginContext||!this.rebuildManager)throw Error("Plugin context not initialized");let A=this.rebuildManager;return Yr0(this.id,(f)=>A.requestBuild(f))}async getResources(){let A=this.getContext();return[{uri:"brain://site",name:"Site Info",description:"Site metadata \u2014 title, description, domain, URLs",mimeType:"application/json",handler:async()=>{let f;try{f=await iY(A.entityService)}catch{f={title:"Brain",description:""}}return{contents:[{uri:"brain://site",mimeType:"application/json",text:JSON.stringify({...f,domain:A.domain,siteUrl:A.siteUrl,previewUrl:A.previewUrl},null,2)}]}}},{uri:"site://routes",name:"Site Routes",description:"All registered routes with sections and templates",mimeType:"application/json",handler:async()=>{let f=this.routeRegistry.list();return{contents:[{uri:"site://routes",mimeType:"application/json",text:JSON.stringify(f.map((Q)=>({id:Q.id,path:Q.path,title:Q.title,description:Q.description,sections:Q.sections.map((w)=>({id:w.id,template:w.template}))})),null,2)}]}}},{uri:"site://templates",name:"View Templates",description:"All registered view templates",mimeType:"application/json",handler:async()=>{let f=A.views.list();return{contents:[{uri:"site://templates",mimeType:"application/json",text:JSON.stringify(f.map((Q)=>({name:Q.name,description:Q.description,hasWebRenderer:!!Q.renderers.web})),null,2)}]}}}]}getSiteBuilder(){return this.siteBuilder}getSlotRegistry(){return this._slotRegistry}async getInstructions(){let A=this.getContext();try{let f=await iY(A.entityService);return`## Your Site
2728
2728
  ${[`**Title:** ${f.title}`,`**Description:** ${f.description}`,A.domain&&`**Domain:** ${A.domain}`,A.siteUrl&&`**URL:** ${A.siteUrl}`].filter(Boolean).join(`
2729
2729
  `)}`}catch{return}}async onShutdown(){this.logger.debug("Shutting down site-builder plugin"),this.rebuildManager?.dispose(),q7.resetInstance(),this.logger.debug("Cleaned up all event subscriptions")}}function uW(A={}){return new aZA(A)}HA();var Al2=KD.extend({navigation:X.object({primary:X.array(X.object({label:X.string(),href:X.string(),priority:X.number()})),secondary:X.array(X.object({label:X.string(),href:X.string(),priority:X.number()}))}),copyright:X.string(),socialLinks:X.array(X.object({platform:X.enum(["github","instagram","linkedin","email","website"]).describe("Social media platform"),url:X.string().describe("Profile or contact URL"),label:X.string().optional().describe("Optional display label")})).optional().describe("Social media links from profile entity")});import{h as fl2,Fragment as Ql2}from"preact";function sZA({name:A,slots:f}){if(!f?.hasSlot(A))return null;let w=f.getSlot(A).map((B)=>B.render());return fl2(Ql2,{},...w)}B0();bD();bO();HA();var tZA=X.object({defaultPrompt:X.string().default("Write a blog post about my recent work and insights"),paginate:X.boolean().default(!0),pageSize:X.number().default(10)});B0();HA();var xl2=X.object({prompt:X.string().optional(),title:X.string().optional(),content:X.string().optional(),excerpt:X.string().optional(),coverImageId:X.string().optional(),seriesName:X.string().optional(),seriesIndex:X.number().optional(),skipAi:X.boolean().optional()}),OKQ=e9.extend({title:X.string().optional(),slug:X.string().optional()});class eZA extends G5{constructor(A,f){super(A,f,{schema:xl2,jobTypeName:"blog-generation",entityType:"post"})}async generate(A,f){let{prompt:Q,coverImageId:w,seriesName:B,seriesIndex:x,skipAi:c}=A,{title:I,content:$,excerpt:D}=A;if(c){if(!I)this.failEarly("Title is required when skipAi is true");$=$??`## Introduction
2730
2730
 
@@ -26115,7 +26115,7 @@ Please report this to https://github.com/markedjs/marked.\`;
26115
26115
  }
26116
26116
  })();
26117
26117
  })();
26118
- `;var Uo0=a0({name:"dashboard",description:"Extensible dashboard with plugin-contributed widgets",schema:Na,requiredPermission:"public",formatter:new Ea,dataSourceId:"dashboard:dashboard",layout:{component:XGA,interactive:uo0}});var Ho0={name:"@brains/dashboard",private:!0,version:"0.1.0",description:"Dashboard plugin with extensible widget system",type:"module",exports:{".":"./src/index.ts"},scripts:{precompile:"bun ../../scripts/compile-hydration.ts",typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts,.tsx","lint:fix":"eslint . --ext .ts,.tsx --fix"},dependencies:{"@brains/plugins":"workspace:*","@brains/ui-library":"workspace:*","@brains/utils":"workspace:*",preact:"^10.27.2"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/test-utils":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};var Xn2=X.object({version:X.string().default("1.0.0")}),Zn2=X.object({id:X.string(),pluginId:X.string(),title:X.string(),description:X.string().optional(),priority:X.number().default(50),section:X.enum(["primary","secondary","sidebar"]).default("primary"),rendererName:X.enum(lO),dataProvider:X.function().returns(X.promise(X.unknown()))}),Wn2=X.object({pluginId:X.string(),widgetId:X.string().optional()});class ZGA extends mw{dependencies=["site-builder"];widgetRegistry=null;datasource=null;constructor(A){super("dashboard",Ho0,A??{},Xn2)}async onRegister(A){this.widgetRegistry=new za(this.logger),this.datasource=new ha(this.widgetRegistry,this.logger),A.entities.registerDataSource(this.datasource),A.templates.register({dashboard:Uo0}),await A.messaging.send("plugin:site-builder:route:register",{pluginId:this.id,routes:[{id:"dashboard",path:"/dashboard",title:"System Dashboard",description:"Monitor your Brain system statistics and activity",layout:"default",navigation:{show:!0,label:"Dashboard",slot:"secondary",priority:100},sections:[{id:"main",template:`${this.id}:dashboard`}]}]}),A.messaging.subscribe("dashboard:register-widget",async(f)=>{try{let Q=Zn2.parse(f.payload),w={id:Q.id,pluginId:Q.pluginId,title:Q.title,description:Q.description,priority:Q.priority,section:Q.section,rendererName:Q.rendererName,dataProvider:Q.dataProvider};return this.widgetRegistry?.register(w),this.logger.debug("Widget registered via messaging",{widgetId:Q.id,pluginId:Q.pluginId}),{success:!0}}catch(Q){return this.logger.error("Failed to register widget",{error:v0(Q),payload:f.payload}),{success:!1,error:"Widget registration failed"}}}),A.messaging.subscribe("dashboard:unregister-widget",async(f)=>{let Q=Wn2.parse(f.payload);return this.widgetRegistry?.unregister(Q.pluginId,Q.widgetId),this.logger.debug("Widget unregistered via messaging",{pluginId:Q.pluginId,widgetId:Q.widgetId}),{success:!0}}),this.logger.info("Dashboard plugin registered")}async getTools(){return[]}getWidgetRegistry(){return this.widgetRegistry}}function nO(A){return new ZGA(A)}HA();B0();HA();import{h as Vn2}from"preact";HA();_c();B0();var Pz=X.enum(["draft","queued","published","failed"]),yO=X.object({subject:X.string(),status:Pz,entityIds:X.array(X.string()).optional(),scheduledFor:X.string().datetime().optional(),sentAt:X.string().datetime().optional(),buttondownId:X.string().optional(),sourceEntityType:X.string().optional()}),Ko0=yO.pick({subject:!0,status:!0,entityIds:!0,scheduledFor:!0,sentAt:!0,buttondownId:!0,sourceEntityType:!0}),pO=X2.extend({entityType:X.literal("newsletter"),metadata:Ko0});B0();class Fo0 extends C2{constructor(){super({entityType:"newsletter",schema:pO,frontmatterSchema:yO})}toMarkdown(A){let f=this.extractBody(A.content);return this.buildMarkdown(f,A.metadata)}fromMarkdown(A){let f=this.parseFrontmatter(A);return{entityType:"newsletter",content:A,metadata:f}}}var Xo0=new Fo0;B0();B0();HA();var Gn2=KU.extend({status:X.enum(["draft","queued","published","failed"]).optional()}),Jn2=FU.extend({query:Gn2.optional()});function Zo0(A){try{let{content:f}=H2(A.content,yO);return f}catch{return A.content}}class WGA extends $6{id="newsletter:entities";name="Newsletter Entity DataSource";description="Fetches and transforms newsletter entities for rendering";config={entityType:"newsletter",defaultSort:[{field:"created",direction:"desc"}],defaultLimit:10,lookupField:"id",enableNavigation:!0};constructor(A){super(A);this.logger.debug("NewsletterDataSource initialized")}parseQuery(A){let f=Jn2.parse(A);return{entityType:f.entityType??this.config.entityType,query:f.query??{}}}transformEntity(A){let f=Zo0(A),Q={id:A.id,subject:A.metadata.subject,status:A.metadata.status,excerpt:cU(f,150),created:A.created,url:`/newsletters/${A.id}`};if(A.metadata.sentAt)Q.sentAt=A.metadata.sentAt;return Q}buildListResult(A,f,Q){return{newsletters:A,totalCount:f?.totalItems??A.length,pagination:f}}async fetch(A,f,Q){let{query:w}=this.parseQuery(A),B=Q.entityService;if(w.id)return this.fetchSingleNewsletter(w.id,f,B);let x=w.status,c=x?{filter:{metadata:{status:x}}}:void 0,{items:I,pagination:$}=await this.fetchList(w,B,c);return f.parse(this.buildListResult(I,$,w))}async fetchSingleNewsletter(A,f,Q){let w=await Q.getEntity(this.config.entityType,A);if(!w)throw Error(`Newsletter not found: ${A}`);let B=await this.resolveNavigation(w,Q),x=[];if(w.metadata.entityIds?.length){let $=w.metadata.sourceEntityType??"post";x=(await Promise.all(w.metadata.entityIds.map(async(u)=>{let K=await Q.getEntity($,u);if(K){let F=K.metadata;return{id:u,title:F.title??u,url:`/${$}s/${F.slug??u}`}}return null}))).filter((u)=>u!==null)}let c=Zo0(w),I={id:w.id,subject:w.metadata.subject,status:w.metadata.status,content:c,created:w.created,updated:w.updated,sentAt:w.metadata.sentAt,scheduledFor:w.metadata.scheduledFor,newsletter:w,prevNewsletter:B.prev?{id:B.prev.id,subject:B.prev.subject,url:B.prev.url}:null,nextNewsletter:B.next?{id:B.next.id,subject:B.next.subject,url:B.next.url}:null,sourceEntities:x.length>0?x:void 0};return f.parse(I)}}B0();HA();var vn2=X.object({prompt:X.string().optional().describe("AI generation prompt"),sourceEntityIds:X.array(X.string()).optional().describe("Entity IDs to include in newsletter (e.g., blog posts)"),sourceEntityType:X.enum(["post"]).optional().describe("Type of source entities"),content:X.string().optional().describe("Direct content (skip AI)"),subject:X.string().optional().describe("Newsletter subject (AI-generated if not provided)"),addToQueue:X.boolean().optional().describe("Create as queued (true) or draft (false)")});class GGA extends G5{constructor(A,f){super(A,f,{schema:vn2,jobTypeName:"newsletter:generation",entityType:"newsletter"})}async generate(A,f){let Q=A.addToQueue??!1,{prompt:w,sourceEntityIds:B,sourceEntityType:x}=A,{content:c,subject:I}=A;if(c){if(!I)this.failEarly("Subject is required when providing content directly");await this.reportProgress(f,{progress:50,message:"Using provided content"})}else if(B&&B.length>0){let F=x??"post";await this.reportProgress(f,{progress:10,message:`Fetching ${B.length} source entities`});let J=(await Promise.all(B.map((q)=>this.context.entityService.getEntity(F,q)))).filter((q)=>q!=null);if(J.length===0)this.failEarly(`No source entities found for IDs: ${B.join(", ")}`);await this.reportProgress(f,{progress:30,message:`Generating newsletter from ${J.length} posts`});let k=`Create an engaging newsletter that highlights these blog posts:
26118
+ `;var Uo0=a0({name:"dashboard",description:"Extensible dashboard with plugin-contributed widgets",schema:Na,requiredPermission:"public",formatter:new Ea,dataSourceId:"dashboard:dashboard",layout:{component:XGA,interactive:uo0}});var Ho0={name:"@brains/dashboard",private:!0,version:"0.1.0",description:"Dashboard plugin with extensible widget system",type:"module",exports:{".":"./src/index.ts"},scripts:{precompile:"bun ../../scripts/compile-hydration.ts",typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts,.tsx","lint:fix":"eslint . --ext .ts,.tsx --fix"},dependencies:{"@brains/plugins":"workspace:*","@brains/ui-library":"workspace:*","@brains/utils":"workspace:*",preact:"^10.27.2"},devDependencies:{"@brains/eslint-config":"workspace:*","@brains/test-utils":"workspace:*","@brains/typescript-config":"workspace:*","@types/bun":"latest","bun-types":"latest",eslint:"^8.56.0",typescript:"^5.3.3"}};var Xn2=X.object({version:X.string().default("1.0.0")}),Zn2=X.object({id:X.string(),pluginId:X.string(),title:X.string(),description:X.string().optional(),priority:X.number().default(50),section:X.enum(["primary","secondary","sidebar"]).default("primary"),rendererName:X.enum(lO),dataProvider:X.function().returns(X.promise(X.unknown()))}),Wn2=X.object({pluginId:X.string(),widgetId:X.string().optional()});class ZGA extends mw{dependencies=["site-builder"];widgetRegistry=null;datasource=null;constructor(A){super("dashboard",Ho0,A??{},Xn2)}async onRegister(A){this.widgetRegistry=new za(this.logger),this.datasource=new ha(this.widgetRegistry,this.logger),A.entities.registerDataSource(this.datasource),A.templates.register({dashboard:Uo0}),await A.messaging.send("plugin:site-builder:route:register",{pluginId:this.id,routes:[{id:"dashboard",path:"/dashboard",title:"System Dashboard",description:"Monitor your Brain system statistics and activity",layout:"default",navigation:{show:!1,label:"Dashboard",slot:"secondary",priority:100},sections:[{id:"main",template:`${this.id}:dashboard`}]}]}),A.messaging.subscribe("dashboard:register-widget",async(f)=>{try{let Q=Zn2.parse(f.payload),w={id:Q.id,pluginId:Q.pluginId,title:Q.title,description:Q.description,priority:Q.priority,section:Q.section,rendererName:Q.rendererName,dataProvider:Q.dataProvider};return this.widgetRegistry?.register(w),this.logger.debug("Widget registered via messaging",{widgetId:Q.id,pluginId:Q.pluginId}),{success:!0}}catch(Q){return this.logger.error("Failed to register widget",{error:v0(Q),payload:f.payload}),{success:!1,error:"Widget registration failed"}}}),A.messaging.subscribe("dashboard:unregister-widget",async(f)=>{let Q=Wn2.parse(f.payload);return this.widgetRegistry?.unregister(Q.pluginId,Q.widgetId),this.logger.debug("Widget unregistered via messaging",{pluginId:Q.pluginId,widgetId:Q.widgetId}),{success:!0}}),this.logger.info("Dashboard plugin registered")}async getTools(){return[]}getWidgetRegistry(){return this.widgetRegistry}}function nO(A){return new ZGA(A)}HA();B0();HA();import{h as Vn2}from"preact";HA();_c();B0();var Pz=X.enum(["draft","queued","published","failed"]),yO=X.object({subject:X.string(),status:Pz,entityIds:X.array(X.string()).optional(),scheduledFor:X.string().datetime().optional(),sentAt:X.string().datetime().optional(),buttondownId:X.string().optional(),sourceEntityType:X.string().optional()}),Ko0=yO.pick({subject:!0,status:!0,entityIds:!0,scheduledFor:!0,sentAt:!0,buttondownId:!0,sourceEntityType:!0}),pO=X2.extend({entityType:X.literal("newsletter"),metadata:Ko0});B0();class Fo0 extends C2{constructor(){super({entityType:"newsletter",schema:pO,frontmatterSchema:yO})}toMarkdown(A){let f=this.extractBody(A.content);return this.buildMarkdown(f,A.metadata)}fromMarkdown(A){let f=this.parseFrontmatter(A);return{entityType:"newsletter",content:A,metadata:f}}}var Xo0=new Fo0;B0();B0();HA();var Gn2=KU.extend({status:X.enum(["draft","queued","published","failed"]).optional()}),Jn2=FU.extend({query:Gn2.optional()});function Zo0(A){try{let{content:f}=H2(A.content,yO);return f}catch{return A.content}}class WGA extends $6{id="newsletter:entities";name="Newsletter Entity DataSource";description="Fetches and transforms newsletter entities for rendering";config={entityType:"newsletter",defaultSort:[{field:"created",direction:"desc"}],defaultLimit:10,lookupField:"id",enableNavigation:!0};constructor(A){super(A);this.logger.debug("NewsletterDataSource initialized")}parseQuery(A){let f=Jn2.parse(A);return{entityType:f.entityType??this.config.entityType,query:f.query??{}}}transformEntity(A){let f=Zo0(A),Q={id:A.id,subject:A.metadata.subject,status:A.metadata.status,excerpt:cU(f,150),created:A.created,url:`/newsletters/${A.id}`};if(A.metadata.sentAt)Q.sentAt=A.metadata.sentAt;return Q}buildListResult(A,f,Q){return{newsletters:A,totalCount:f?.totalItems??A.length,pagination:f}}async fetch(A,f,Q){let{query:w}=this.parseQuery(A),B=Q.entityService;if(w.id)return this.fetchSingleNewsletter(w.id,f,B);let x=w.status,c=x?{filter:{metadata:{status:x}}}:void 0,{items:I,pagination:$}=await this.fetchList(w,B,c);return f.parse(this.buildListResult(I,$,w))}async fetchSingleNewsletter(A,f,Q){let w=await Q.getEntity(this.config.entityType,A);if(!w)throw Error(`Newsletter not found: ${A}`);let B=await this.resolveNavigation(w,Q),x=[];if(w.metadata.entityIds?.length){let $=w.metadata.sourceEntityType??"post";x=(await Promise.all(w.metadata.entityIds.map(async(u)=>{let K=await Q.getEntity($,u);if(K){let F=K.metadata;return{id:u,title:F.title??u,url:`/${$}s/${F.slug??u}`}}return null}))).filter((u)=>u!==null)}let c=Zo0(w),I={id:w.id,subject:w.metadata.subject,status:w.metadata.status,content:c,created:w.created,updated:w.updated,sentAt:w.metadata.sentAt,scheduledFor:w.metadata.scheduledFor,newsletter:w,prevNewsletter:B.prev?{id:B.prev.id,subject:B.prev.subject,url:B.prev.url}:null,nextNewsletter:B.next?{id:B.next.id,subject:B.next.subject,url:B.next.url}:null,sourceEntities:x.length>0?x:void 0};return f.parse(I)}}B0();HA();var vn2=X.object({prompt:X.string().optional().describe("AI generation prompt"),sourceEntityIds:X.array(X.string()).optional().describe("Entity IDs to include in newsletter (e.g., blog posts)"),sourceEntityType:X.enum(["post"]).optional().describe("Type of source entities"),content:X.string().optional().describe("Direct content (skip AI)"),subject:X.string().optional().describe("Newsletter subject (AI-generated if not provided)"),addToQueue:X.boolean().optional().describe("Create as queued (true) or draft (false)")});class GGA extends G5{constructor(A,f){super(A,f,{schema:vn2,jobTypeName:"newsletter:generation",entityType:"newsletter"})}async generate(A,f){let Q=A.addToQueue??!1,{prompt:w,sourceEntityIds:B,sourceEntityType:x}=A,{content:c,subject:I}=A;if(c){if(!I)this.failEarly("Subject is required when providing content directly");await this.reportProgress(f,{progress:50,message:"Using provided content"})}else if(B&&B.length>0){let F=x??"post";await this.reportProgress(f,{progress:10,message:`Fetching ${B.length} source entities`});let J=(await Promise.all(B.map((q)=>this.context.entityService.getEntity(F,q)))).filter((q)=>q!=null);if(J.length===0)this.failEarly(`No source entities found for IDs: ${B.join(", ")}`);await this.reportProgress(f,{progress:30,message:`Generating newsletter from ${J.length} posts`});let k=`Create an engaging newsletter that highlights these blog posts:
26119
26119
 
26120
26120
  ${J.map((q)=>`## ${q.metadata.title}
26121
26121
 
@@ -29625,7 +29625,7 @@ footer.bg-footer button:not(.bg-theme-toggle) { color: var(--palette-black); }
29625
29625
  footer.bg-footer button:not(.bg-theme-toggle):hover { color: var(--palette-neon-green); }
29626
29626
  footer.bg-footer .bg-theme-toggle { background-color: transparent; border: 1px solid var(--palette-gray-700); color: var(--palette-gray-400); }
29627
29627
  footer.bg-footer .bg-theme-toggle:hover { background-color: transparent; border-color: var(--palette-neon-green); color: var(--palette-neon-green); }
29628
- `;var Es0=Ns0;import{readFileSync as xa2}from"fs";import{join as ca2}from"path";import{execSync as Ia2}from"child_process";import{parseArgs as ap2}from"util";var sp2={model:{type:"string"},domain:{type:"string"},"content-repo":{type:"string"},backend:{type:"string"},"push-to":{type:"string"},"ai-api-key":{type:"string"},"no-interactive":{type:"boolean"},preview:{type:"boolean"},deploy:{type:"boolean"},regen:{type:"boolean"},all:{type:"boolean"},only:{type:"string"},"dry-run":{type:"boolean"},remote:{type:"string"},token:{type:"string"},help:{type:"boolean",short:"h"},version:{type:"boolean",short:"v"}};function eY(A,f){let Q=A[f];return typeof Q==="string"?Q:void 0}function tz(A,f){let Q=A[f];return typeof Q==="boolean"?Q:void 0}function Ls0(A){let{values:f,positionals:Q}=ap2({args:A,options:sp2,allowPositionals:!0,strict:!1});if(f.help)return{command:"help",args:[],flags:{help:!0}};if(f.version)return{command:"version",args:[],flags:{version:!0}};return{command:Q[0]??"help",args:Q.slice(1),flags:{model:eY(f,"model"),domain:eY(f,"domain"),"content-repo":eY(f,"content-repo"),backend:eY(f,"backend"),"push-to":eY(f,"push-to"),"ai-api-key":eY(f,"ai-api-key"),"no-interactive":tz(f,"no-interactive"),preview:tz(f,"preview"),deploy:tz(f,"deploy"),regen:tz(f,"regen"),all:tz(f,"all"),only:eY(f,"only"),"dry-run":tz(f,"dry-run"),remote:eY(f,"remote"),token:eY(f,"token")}}}import{mkdirSync as no2}from"fs";import{join as yo2}from"path";import{spawn as po2,execSync as ro2}from"child_process";var Us={name:"@rizom/brain",version:"0.1.1-alpha.13",description:"Brain runtime + CLI \u2014 scaffold, run, and manage AI brain instances",type:"module",bin:{brain:"./dist/brain.js"},exports:{"./cli":"./dist/brain.js","./site":{types:"./dist/site.d.ts",import:"./dist/site.js"},"./themes":{types:"./dist/themes.d.ts",import:"./dist/themes.js"}},files:["dist"],scripts:{build:"bun scripts/build.ts",prepublishOnly:"bun scripts/build.ts",typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts"},dependencies:{"@clack/prompts":"^0.11.0","@modelcontextprotocol/sdk":"^1.24.0","@tailwindcss/postcss":"^4.1.13","@tailwindcss/typography":"^0.5.19",postcss:"^8.5.6",preact:"^10.27.2","preact-render-to-string":"^6.3.1",tailwindcss:"^4.1.11"},optionalDependencies:{"@libsql/client":"^0.15.7","@tailwindcss/oxide":"^4.1.4","better-sqlite3":"^11.8.1",lightningcss:"^1.29.2","react-devtools-core":"^6.1.1",sharp:"^0.34.5"},devDependencies:{"@brains/app":"workspace:*","@brains/eslint-config":"workspace:*","@brains/mcp-service":"workspace:*","@brains/plugins":"workspace:*","@brains/ranger":"workspace:*","@brains/relay":"workspace:*","@brains/rover":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-default":"workspace:*","@brains/site-personal":"workspace:*","@brains/site-professional":"workspace:*","@brains/site-rizom":"workspace:*","@brains/site-yeehaa":"workspace:*","@brains/theme-brutalist":"workspace:*","@brains/theme-default":"workspace:*","@brains/theme-rizom":"workspace:*","@brains/typescript-config":"workspace:*","@brains/utils":"workspace:*","@types/bun":"latest",typescript:"^5.3.3"},publishConfig:{access:"public"},repository:{type:"git",url:"https://github.com/rizom-ai/brains.git",directory:"packages/brain-cli"},license:"Apache-2.0",author:"Yeehaa <yeehaa@rizom.ai> (https://rizom.ai)",homepage:"https://github.com/rizom-ai/brains/tree/main/packages/brain-cli#readme",bugs:"https://github.com/rizom-ai/brains/issues",engines:{bun:">=1.3.3"},keywords:["brain","ai","cli","mcp","agent","personal-ai","knowledge-management"]};import{mkdirSync as Vs0,writeFileSync as Ks,chmodSync as Fs,existsSync as Ms0,readFileSync as Os0}from"fs";import{basename as FJA,dirname as js0,join as E8,resolve as Zr2}from"path";Ij();import{existsSync as Cs0,readFileSync as wr2}from"fs";import{dirname as Br2,join as qs0}from"path";var Hs={rover:`# This env file uses @env-spec - see https://varlock.dev/env-spec for more info
29628
+ `;var Es0=Ns0;import{readFileSync as xa2}from"fs";import{join as ca2}from"path";import{execSync as Ia2}from"child_process";import{parseArgs as ap2}from"util";var sp2={model:{type:"string"},domain:{type:"string"},"content-repo":{type:"string"},backend:{type:"string"},"push-to":{type:"string"},"ai-api-key":{type:"string"},"no-interactive":{type:"boolean"},preview:{type:"boolean"},deploy:{type:"boolean"},regen:{type:"boolean"},all:{type:"boolean"},only:{type:"string"},"dry-run":{type:"boolean"},remote:{type:"string"},token:{type:"string"},help:{type:"boolean",short:"h"},version:{type:"boolean",short:"v"}};function eY(A,f){let Q=A[f];return typeof Q==="string"?Q:void 0}function tz(A,f){let Q=A[f];return typeof Q==="boolean"?Q:void 0}function Ls0(A){let{values:f,positionals:Q}=ap2({args:A,options:sp2,allowPositionals:!0,strict:!1});if(f.help)return{command:"help",args:[],flags:{help:!0}};if(f.version)return{command:"version",args:[],flags:{version:!0}};return{command:Q[0]??"help",args:Q.slice(1),flags:{model:eY(f,"model"),domain:eY(f,"domain"),"content-repo":eY(f,"content-repo"),backend:eY(f,"backend"),"push-to":eY(f,"push-to"),"ai-api-key":eY(f,"ai-api-key"),"no-interactive":tz(f,"no-interactive"),preview:tz(f,"preview"),deploy:tz(f,"deploy"),regen:tz(f,"regen"),all:tz(f,"all"),only:eY(f,"only"),"dry-run":tz(f,"dry-run"),remote:eY(f,"remote"),token:eY(f,"token")}}}import{mkdirSync as no2}from"fs";import{join as yo2}from"path";import{spawn as po2,execSync as ro2}from"child_process";var Us={name:"@rizom/brain",version:"0.1.1-alpha.15",description:"Brain runtime + CLI \u2014 scaffold, run, and manage AI brain instances",type:"module",bin:{brain:"./dist/brain.js"},exports:{"./cli":"./dist/brain.js","./site":{types:"./dist/site.d.ts",import:"./dist/site.js"},"./themes":{types:"./dist/themes.d.ts",import:"./dist/themes.js"}},files:["dist"],scripts:{build:"bun scripts/build.ts",prepublishOnly:"bun scripts/build.ts",typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts"},dependencies:{"@clack/prompts":"^0.11.0","@modelcontextprotocol/sdk":"^1.24.0","@tailwindcss/postcss":"^4.1.13","@tailwindcss/typography":"^0.5.19",postcss:"^8.5.6",preact:"^10.27.2","preact-render-to-string":"^6.3.1",tailwindcss:"^4.1.11"},optionalDependencies:{"@libsql/client":"^0.15.7","@tailwindcss/oxide":"^4.1.4","better-sqlite3":"^11.8.1",lightningcss:"^1.29.2","react-devtools-core":"^6.1.1",sharp:"^0.34.5"},devDependencies:{"@brains/app":"workspace:*","@brains/eslint-config":"workspace:*","@brains/mcp-service":"workspace:*","@brains/plugins":"workspace:*","@brains/ranger":"workspace:*","@brains/relay":"workspace:*","@brains/rover":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-default":"workspace:*","@brains/site-personal":"workspace:*","@brains/site-professional":"workspace:*","@brains/site-rizom":"workspace:*","@brains/site-yeehaa":"workspace:*","@brains/theme-brutalist":"workspace:*","@brains/theme-default":"workspace:*","@brains/theme-rizom":"workspace:*","@brains/typescript-config":"workspace:*","@brains/utils":"workspace:*","@types/bun":"latest",typescript:"^5.3.3"},publishConfig:{access:"public"},repository:{type:"git",url:"https://github.com/rizom-ai/brains.git",directory:"packages/brain-cli"},license:"Apache-2.0",author:"Yeehaa <yeehaa@rizom.ai> (https://rizom.ai)",homepage:"https://github.com/rizom-ai/brains/tree/main/packages/brain-cli#readme",bugs:"https://github.com/rizom-ai/brains/issues",engines:{bun:">=1.3.3"},keywords:["brain","ai","cli","mcp","agent","personal-ai","knowledge-management"]};import{mkdirSync as Vs0,writeFileSync as Ks,chmodSync as Fs,existsSync as Ms0,readFileSync as Os0}from"fs";import{basename as FJA,dirname as js0,join as E8,resolve as Zr2}from"path";Ij();import{existsSync as Cs0,readFileSync as wr2}from"fs";import{dirname as Br2,join as qs0}from"path";var Hs={rover:`# This env file uses @env-spec - see https://varlock.dev/env-spec for more info
29629
29629
  #
29630
29630
  # @defaultRequired=false @defaultSensitive=false
29631
29631
  # ----------