@mrpatronz/nexusflow 2.15.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/core/brand-config.d.ts +24 -0
  2. package/dist/core/brand-config.d.ts.map +1 -1
  3. package/dist/core/brand-config.js +24 -0
  4. package/dist/core/brand-config.js.map +1 -1
  5. package/dist/gui/assets/{AgentsPage-Y1c-bjuA.js → AgentsPage-vWomDhqY.js} +1 -1
  6. package/dist/gui/assets/{DashboardPage-BsIOxFRD.js → DashboardPage-D2LQg1es.js} +1 -1
  7. package/dist/gui/assets/{GettingStartedPage-4aZxBNta.js → GettingStartedPage-BYPdHlcN.js} +1 -1
  8. package/dist/gui/assets/{MonacoDiffAdapter-BySeTVcR.js → MonacoDiffAdapter-ClvAYSFE.js} +1 -1
  9. package/dist/gui/assets/{ProjectsPage-DG2GUKNr.js → ProjectsPage-DdFVpbr7.js} +1 -1
  10. package/dist/gui/assets/{ScaffoldRepoInline-Ba6O_x1U.js → ScaffoldRepoInline-BvOKUfOp.js} +1 -1
  11. package/dist/gui/assets/{SettingsPage-Bfyjs9me.js → SettingsPage-BtRA38LZ.js} +1 -1
  12. package/dist/gui/assets/{SkillsPage-6v38Y90n.js → SkillsPage-Dc8TrRyw.js} +1 -1
  13. package/dist/gui/assets/{StartWorkPage-CWsbmJ6A.js → StartWorkPage-BJ7EYD7t.js} +1 -1
  14. package/dist/gui/assets/{StrategiesPage-CjbKoInX.js → StrategiesPage-GkFROjyC.js} +1 -1
  15. package/dist/gui/assets/{WorkroomsPage-bDcLMa5h.js → WorkroomsPage-DZVZcvUV.js} +1 -1
  16. package/dist/gui/assets/{WorkspacesPage-ChgMem8T.js → WorkspacesPage-DefIfu1l.js} +1 -1
  17. package/dist/gui/assets/{alert-dialog-7Tmml6C4.js → alert-dialog-B_TU2TCX.js} +1 -1
  18. package/dist/gui/assets/index-CQGZNI9n.css +2 -0
  19. package/dist/gui/assets/{index-CQHHxwAN.js → index-DNNQAjn6.js} +36 -36
  20. package/dist/gui/assets/{tabs-C9XODOED.js → tabs-D7v4Yq0P.js} +1 -1
  21. package/dist/gui/favicon-forest.svg +8 -0
  22. package/dist/gui/favicon-glacier.svg +8 -0
  23. package/dist/gui/favicon-nebula.svg +8 -0
  24. package/dist/gui/index.html +10 -4
  25. package/package.json +1 -1
  26. package/dist/gui/assets/index-D836ldaj.css +0 -2
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-DE3RlOCf.js";import{C as r,D as i,E as a,En as o,In as s,Jn as c,K as l,Kt as u,Ln as d,Mt as f,Nn as p,Nt as m,S as h,T as g,Wt as _,Xt as v,Yt as y,_ as b,_t as x,an as S,b as C,bn as w,cn as T,ht as E,in as D,jt as O,kn as k,ln as A,mt as j,nn as M,on as N,p as P,pt as F,sn as I,v as L,vt as R,x as z,y as B}from"./badge-BObbahyU.js";import{c as V,d as H,i as U,l as W,m as G,p as K,s as q}from"./button-BrcP8Wxx.js";import{b as J,c as ee,t as te,y as ne}from"./isElementDisabled-BONWqXlb.js";import{lt as re}from"./index-CQHHxwAN.js";var Y=n(),X=e(t(),1);function ie(){let[,e]=X.useState({});return X.useCallback(()=>{e({})},[])}function Z(e){let t=A(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=w(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(ne(n)!==a||ne(r)!==o)&&(n=a,r=o),{width:n,height:r}}var ae=X.createContext(void 0);function Q(){let e=X.useContext(ae);if(e===void 0)throw Error(K(64));return e}var $={tabActivationDirection:e=>({"data-activation-direction":e})},oe=X.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:c,value:l,style:u,...d}=e,f=e.defaultValue!==void 0,m=X.useRef([]),[h,g]=X.useState(()=>new Map),[_,v]=o({controlled:l,default:r,name:`Tabs`,state:`value`}),b=l!==void 0,[x,S]=X.useState(()=>new Map),C=X.useRef(void 0),w=X.useCallback(e=>se(x,e),[x]),[E,D]=X.useState(()=>({previousValue:_,tabActivationDirection:`none`})),{previousValue:O,tabActivationDirection:A}=E,j=A,M=!1;O!==_&&(j=ce(O,_,a,x),M=O!=null&&_!=null&&w(_)==null);let N=M?O:_,P=O!==N||A!==j;I(()=>{P&&D({previousValue:N,tabActivationDirection:j})},[N,P,j]);let F=T((e,t)=>{t.activationDirection=ce(_,e,a,x),i?.(e,t),!t.isCanceled&&v(e)}),L=T((e,t)=>{i?.(e,y(t,void 0,void 0,{activationDirection:`none`}))}),R=T((e,t)=>(g(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{g(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),z=X.useCallback(e=>h.get(e),[h]),B=X.useCallback(e=>{for(let t of x.values())if(e===t.value)return t.id},[x]),V=X.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:B,getTabPanelIdByValue:z,onValueChange:F,orientation:a,registerMountedTabPanel:R,setTabMap:S,tabActivationDirection:j,value:_}),[w,B,z,F,a,R,S,j,_]),H=X.useMemo(()=>{for(let e of x.values())if(e.value===_)return e},[x,_]),W=X.useMemo(()=>{for(let e of x.values())if(!e.disabled)return e.value},[x]),G=X.useRef(!f),K=X.useRef(r),q=X.useRef(f),J=X.useRef(!1);I(()=>{if(b)return;function e(e,t){v(e),D({previousValue:e,tabActivationDirection:`none`}),L(e,t),G.current=!1}if(x.size===0){J.current&&_!==null&&!C.current?.isConnected&&e(null,s);return}J.current=!0,C.current=x.keys().next().value;let t=H?.disabled,n=H==null&&_!==null;if(!t&&_===K.current&&(q.current=!1),q.current&&t&&_===K.current)return;let r=G.current;if(t||n){let n=W??null;if(_===n){G.current=!1;return}let i=s;r?i=p:t&&(i=k),e(n,i);return}r&&H!=null&&(L(_,p),G.current=!1)},[W,b,L,H,v,x,_]);let te=U(`div`,e,{state:{orientation:a,tabActivationDirection:j},ref:t,props:d,stateAttributesMapping:$});return(0,Y.jsx)(ae.Provider,{value:V,children:(0,Y.jsx)(ee,{elementsRef:m,children:te})})});function se(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function ce(e,t,n,r){if(e==null||t==null)return`none`;let[i,a,o]=n===`horizontal`?[`left`,`left`,`right`]:[`top`,`up`,`down`],s=se(r,e),c=se(r,t);if(s==null||c==null)return s!==c&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?t>e?o:a:`none`;let l=s.getBoundingClientRect()[i],u=c.getBoundingClientRect()[i];return u<l?a:u>l?o:`none`}var le=`data-composite-item-active`,ue=X.createContext(void 0);function de(){let e=X.useContext(ue);if(e===void 0)throw Error(K(65));return e}var fe=X.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:p,onValueChange:m,orientation:h,tabActivationDirection:g}=Q(),{activateOnFocus:_,registerTabResizeObserverElement:b,tabsListElement:x}=de(),{highlightedIndex:S,onHighlightedIndexChange:C}=N(),w=v(o),E=X.useMemo(()=>({disabled:r,id:w,value:a}),[r,w,a]),{compositeProps:k,compositeRef:A,index:j}=re({metadata:E}),P=a===u,F=X.useRef(!1),L=X.useRef(null),R=T(e=>{L.current?.(),L.current=e?b(e):null});I(()=>{if(F.current){F.current=!1;return}if(!(P&&j>-1&&S!==j))return;let e=x;if(e!=null){let t=O(D(e));if(t&&f(e,t))return}r||C(j)},[P,j,S,C,r,x]);let{getButtonProps:z,buttonRef:B}=M({disabled:r,native:s,focusableWhenDisabled:!0}),V=p(a),H=X.useRef(!1),W=X.useRef(!1);function G(e){m(a,y(d,e.nativeEvent,void 0,{activationDirection:`none`}))}function K(e){P||r||G(e)}function q(e){P||r||_&&(!H.current||W.current)&&G(e)}function J(e){if(P||r)return;H.current=!0,W.current=e.button===0;let t=D(e.currentTarget);function n(){H.current=!1,W.current=!1,t.removeEventListener(`pointerup`,n),t.removeEventListener(`pointercancel`,n)}t.addEventListener(`pointerup`,n),t.addEventListener(`pointercancel`,n)}return U(`button`,e,{state:{disabled:r,active:P,orientation:h,tabActivationDirection:g},ref:[t,B,A,R],props:[k,{role:`tab`,"aria-controls":V,"aria-selected":P,id:w,onClick:K,onFocus:q,onPointerDown:J,[le]:P?``:void 0,onKeyDownCapture(){F.current=!0}},l,z],stateAttributesMapping:$})}),pe=l();function me(){return W}function he(){return!1}function ge(){return!0}function _e(){return(0,pe.useSyncExternalStore)(me,he,ge)}function ve(e){let{script:t}=e,{nonce:n}=P();return _e()?(0,Y.jsx)(`script`,{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var ye,be={...$,activeTabPosition:()=>null,activeTabSize:()=>null},xe=X.forwardRef(function(e,t){let{className:n,render:r,renderBeforeHydration:i=!1,style:a,...o}=e,{getTabElementBySelectedValue:s,orientation:c,tabActivationDirection:l,value:u}=Q(),{tabsListElement:d,registerIndicatorUpdateListener:f}=de(),p=ie();X.useEffect(()=>f(p),[f,p]);let m=0,h=0,g=0,_=0,v=0,y=0,b=!1;if(u!=null&&d!=null){let e=s(u);if(e!=null){b=!0;let{width:t,height:n}=Z(e),{width:r,height:i}=Z(d),a=e.getBoundingClientRect(),o=d.getBoundingClientRect(),s=r>0?o.width/r:1,c=i>0?o.height/i:1;if(s>2**-52&&c>2**-52){let e=a.left-o.left,t=a.top-o.top;m=e/s+d.scrollLeft-d.clientLeft,g=t/c+d.scrollTop-d.clientTop}else m=e.offsetLeft,g=e.offsetTop;v=t,y=n,h=d.scrollWidth-m-v,_=d.scrollHeight-g-y}}let x=b?{left:m,right:h,top:g,bottom:_}:null,S=b?{width:v,height:y}:null,C=b?{"--active-tab-left":`${m}px`,"--active-tab-right":`${h}px`,"--active-tab-top":`${g}px`,"--active-tab-bottom":`${_}px`,"--active-tab-width":`${v}px`,"--active-tab-height":`${y}px`}:void 0,w=U(`span`,e,{state:{orientation:c,activeTabPosition:x,activeTabSize:S,tabActivationDirection:l},ref:t,props:[{role:`presentation`,style:C,hidden:!(b&&v>0&&y>0)},o,{suppressHydrationWarning:!0}],stateAttributesMapping:be});return u==null?null:(0,Y.jsxs)(X.Fragment,{children:[w,i&&(ye||=(0,Y.jsx)(ve,{script:``}))]})}),Se={...$,...c},Ce=X.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...s}=e,{value:c,getTabIdByPanelValue:l,orientation:d,tabActivationDirection:f,registerMountedTabPanel:p}=Q(),m=v(),{ref:h,index:g}=J(),y=r===c,{mounted:b,transitionStatus:x,setMounted:S}=u(y),C=!b,w=l(r),T={hidden:C,orientation:d,tabActivationDirection:f,transitionStatus:x},E=X.useRef(null),D=U(`div`,e,{state:T,ref:[t,h,E],props:[{"aria-labelledby":w,hidden:C,id:m,role:`tabpanel`,tabIndex:y?0:-1,inert:L(!y),"data-index":g},s],stateAttributesMapping:Se});return _({open:y,ref:E,onComplete(){y||S(!1)}}),I(()=>{if(!(m==null||C&&!a))return p(r,m)},[C,a,r,m,p]),a||b?D:null}),we=[];function Te(e){let{loopFocus:t=!0,orientation:n=`both`,grid:o,onLoop:s,direction:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:d,enableHomeAndEndKeys:f=!1,stopEventPropagation:p,disabledIndices:g,modifierKeys:_=we}=e,[v,y]=X.useState(0),b=o!=null,S=X.useRef(null),w=H(S,d),D=X.useRef([]),O=X.useRef(!1),k=l??v,A=T((e,t=!1)=>{if((u??y)(e),t){let t=D.current[e];i(S.current,t,c,n)}}),M=T(e=>{if(e.size===0||O.current)return;O.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,a=r?e.get(r)?.index??-1:-1;if(a!==-1)A(a);else if(R(t,k,g)){let e=F(t,{disabledIndices:g});x(t,e)||A(e)}i(S.current,r,c,n)});I(()=>{if(g==null||l!=null||!O.current)return;let e=D.current;if(R(e,k,g)){let t=F(e,{disabledIndices:g});x(e,t)||A(t)}},[g,l,k,D,A]);let N=T((e,t,n)=>s?s(e,t,n,D):n),P=T(e=>{let i=e.key===`Home`||e.key===`End`;if(!r.has(e.key)||!f&&i||Ee(e,_)||!S.current)return;let l=c===`rtl`,u=l?C:z,d=l?z:C,v=n===`vertical`?B:u,y=n===`vertical`?h:d,w=m(e.nativeEvent);if(w!=null&&a(w)&&!te(w)){let t=w.selectionStart,n=w.selectionEnd,r=w.value;if(t==null||e.shiftKey||t!==n||e.key!==y&&t<r.length||e.key!==v&&t>0)return}let T=k,O=E(D,g),M=j(D,g);o!=null&&(T=o({disabledIndices:g,elementsRef:D,event:e,highlightedIndex:k,loopFocus:t,maxIndex:M,minIndex:O,onLoop:N,orientation:n,rtl:l}));let P=n!==`vertical`&&e.key===u||n!==`horizontal`&&e.key===`ArrowDown`,I=n!==`vertical`&&e.key===d||n!==`horizontal`&&e.key===`ArrowUp`;f&&(e.key===`Home`?T=O:e.key===`End`&&(T=M)),T===k&&(P||I)&&(t&&T===M&&P?(T=O,s&&(T=s(e,k,T,D))):t&&T===O&&I?(T=M,s&&(T=s(e,k,T,D))):T=F(D.current,{startingIndex:T,decrement:I,disabledIndices:g})),T!==k&&!x(D.current,T)&&(p&&e.stopPropagation(),(b||i||P||I)&&e.preventDefault(),A(T,!0),queueMicrotask(()=>{D.current[T]?.focus()}))});return{props:{ref:w,onFocus(e){let t=S.current,n=m(e.nativeEvent);!t||n==null||!a(n)||n.setSelectionRange(0,n.value.length)},onKeyDown:P},highlightedIndex:k,onHighlightedIndexChange:A,elementsRef:D,onMapChange:M,relayKeyboardEvent:P}}function Ee(e,t){for(let n of g)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function De(e){let{render:t,className:n,style:r,refs:i=q,props:a=q,state:o=V,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,grid:d,loopFocus:f,onLoop:p,enableHomeAndEndKeys:m,onMapChange:h,stopEventPropagation:g=!0,rootRef:_,disabledIndices:v,modifierKeys:y,highlightItemOnHover:x=!1,tag:C=`div`,...w}=e,{props:T,highlightedIndex:E,onHighlightedIndexChange:D,elementsRef:O,onMapChange:k,relayKeyboardEvent:A}=Te({grid:d,loopFocus:f,onLoop:p,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:_,stopEventPropagation:g,enableHomeAndEndKeys:m,direction:b(),disabledIndices:v,modifierKeys:y}),j=U(C,e,{state:o,ref:i,props:[T,...a,w],stateAttributesMapping:s}),M=X.useMemo(()=>({highlightedIndex:E,onHighlightedIndexChange:D,highlightItemOnHover:x,relayKeyboardEvent:A}),[E,D,x,A]);return(0,Y.jsx)(S.Provider,{value:M,children:(0,Y.jsx)(ee,{elementsRef:O,onMapChange:e=>{h?.(e),k(e)},children:j})})}var Oe=X.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...s}=e,{orientation:c,setTabMap:l,tabActivationDirection:u}=Q(),[d,f]=X.useState(0),[p,m]=X.useState(null),h=X.useRef(new Set),g=X.useRef(new Set),_=X.useRef(null);I(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{h.current.forEach(e=>{e()})});return _.current=e,p&&e.observe(p),g.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),_.current=null}},[p]);let v=T(e=>(h.current.add(e),()=>{h.current.delete(e)})),y=T(e=>(g.current.add(e),_.current?.observe(e),()=>{g.current.delete(e),_.current?.unobserve(e)})),b={orientation:c,tabActivationDirection:u},x={"aria-orientation":c===`vertical`?`vertical`:void 0,role:`tablist`},S=X.useMemo(()=>({activateOnFocus:n,registerIndicatorUpdateListener:v,registerTabResizeObserverElement:y,tabsListElement:p}),[n,v,y,p]);return(0,Y.jsx)(ue.Provider,{value:S,children:(0,Y.jsx)(De,{render:a,className:r,style:o,state:b,refs:[t,m],props:[x,s],stateAttributesMapping:$,highlightedIndex:d,enableHomeAndEndKeys:!0,loopFocus:i,orientation:c,onHighlightedIndexChange:f,onMapChange:l,disabledIndices:q})})});function ke({className:e,...t}){return(0,Y.jsx)(oe,{className:G(`flex flex-col gap-4`,e),"data-slot":`tabs`,...t})}function Ae({className:e,...t}){return(0,Y.jsxs)(Oe,{className:G(`relative z-0 flex w-fit items-center gap-1 rounded-lg bg-muted p-1`,e),"data-slot":`tabs-list`,...t,children:[t.children,(0,Y.jsx)(xe,{className:`absolute top-1/2 left-0 z-[-1] h-[calc(100%-0.5rem)] w-(--active-tab-width) -translate-y-1/2 translate-x-(--active-tab-left) rounded-md bg-background shadow-xs transition-all duration-150`,"data-slot":`tabs-indicator`})]})}function je({className:e,...t}){return(0,Y.jsx)(fe,{className:G(`flex h-7 cursor-pointer items-center justify-center whitespace-nowrap rounded-md border border-transparent px-2.5 font-medium text-muted-foreground text-sm outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring data-selected:text-foreground`,e),"data-slot":`tabs-tab`,...t})}function Me({className:e,...t}){return(0,Y.jsx)(Ce,{className:G(`flex-1 outline-none`,e),"data-slot":`tabs-panel`,...t})}export{Z as a,je as i,Ae as n,Me as r,ke as t};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./jsx-runtime-DE3RlOCf.js";import{C as r,D as i,E as a,En as o,In as s,Jn as c,K as l,Kt as u,Ln as d,Mt as f,Nn as p,Nt as m,S as h,T as g,Wt as _,Xt as v,Yt as y,_ as b,_t as x,an as S,b as C,bn as w,cn as T,ht as E,in as D,jt as O,kn as k,ln as A,mt as j,nn as M,on as N,p as P,pt as F,sn as I,v as L,vt as R,x as z,y as B}from"./badge-BObbahyU.js";import{c as V,d as H,i as U,l as W,m as G,p as K,s as q}from"./button-BrcP8Wxx.js";import{b as J,c as ee,t as te,y as ne}from"./isElementDisabled-BONWqXlb.js";import{lt as re}from"./index-DNNQAjn6.js";var Y=n(),X=e(t(),1);function ie(){let[,e]=X.useState({});return X.useCallback(()=>{e({})},[])}function Z(e){let t=A(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=w(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r;return(ne(n)!==a||ne(r)!==o)&&(n=a,r=o),{width:n,height:r}}var ae=X.createContext(void 0);function Q(){let e=X.useContext(ae);if(e===void 0)throw Error(K(64));return e}var $={tabActivationDirection:e=>({"data-activation-direction":e})},oe=X.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:i,orientation:a=`horizontal`,render:c,value:l,style:u,...d}=e,f=e.defaultValue!==void 0,m=X.useRef([]),[h,g]=X.useState(()=>new Map),[_,v]=o({controlled:l,default:r,name:`Tabs`,state:`value`}),b=l!==void 0,[x,S]=X.useState(()=>new Map),C=X.useRef(void 0),w=X.useCallback(e=>se(x,e),[x]),[E,D]=X.useState(()=>({previousValue:_,tabActivationDirection:`none`})),{previousValue:O,tabActivationDirection:A}=E,j=A,M=!1;O!==_&&(j=ce(O,_,a,x),M=O!=null&&_!=null&&w(_)==null);let N=M?O:_,P=O!==N||A!==j;I(()=>{P&&D({previousValue:N,tabActivationDirection:j})},[N,P,j]);let F=T((e,t)=>{t.activationDirection=ce(_,e,a,x),i?.(e,t),!t.isCanceled&&v(e)}),L=T((e,t)=>{i?.(e,y(t,void 0,void 0,{activationDirection:`none`}))}),R=T((e,t)=>(g(n=>{let r=new Map(n);return r.set(e,t),r}),()=>{g(n=>{if(n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})})),z=X.useCallback(e=>h.get(e),[h]),B=X.useCallback(e=>{for(let t of x.values())if(e===t.value)return t.id},[x]),V=X.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:B,getTabPanelIdByValue:z,onValueChange:F,orientation:a,registerMountedTabPanel:R,setTabMap:S,tabActivationDirection:j,value:_}),[w,B,z,F,a,R,S,j,_]),H=X.useMemo(()=>{for(let e of x.values())if(e.value===_)return e},[x,_]),W=X.useMemo(()=>{for(let e of x.values())if(!e.disabled)return e.value},[x]),G=X.useRef(!f),K=X.useRef(r),q=X.useRef(f),J=X.useRef(!1);I(()=>{if(b)return;function e(e,t){v(e),D({previousValue:e,tabActivationDirection:`none`}),L(e,t),G.current=!1}if(x.size===0){J.current&&_!==null&&!C.current?.isConnected&&e(null,s);return}J.current=!0,C.current=x.keys().next().value;let t=H?.disabled,n=H==null&&_!==null;if(!t&&_===K.current&&(q.current=!1),q.current&&t&&_===K.current)return;let r=G.current;if(t||n){let n=W??null;if(_===n){G.current=!1;return}let i=s;r?i=p:t&&(i=k),e(n,i);return}r&&H!=null&&(L(_,p),G.current=!1)},[W,b,L,H,v,x,_]);let te=U(`div`,e,{state:{orientation:a,tabActivationDirection:j},ref:t,props:d,stateAttributesMapping:$});return(0,Y.jsx)(ae.Provider,{value:V,children:(0,Y.jsx)(ee,{elementsRef:m,children:te})})});function se(e,t){for(let[n,r]of e.entries())if(t===r.value)return n;return null}function ce(e,t,n,r){if(e==null||t==null)return`none`;let[i,a,o]=n===`horizontal`?[`left`,`left`,`right`]:[`top`,`up`,`down`],s=se(r,e),c=se(r,t);if(s==null||c==null)return s!==c&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?t>e?o:a:`none`;let l=s.getBoundingClientRect()[i],u=c.getBoundingClientRect()[i];return u<l?a:u>l?o:`none`}var le=`data-composite-item-active`,ue=X.createContext(void 0);function de(){let e=X.useContext(ue);if(e===void 0)throw Error(K(65));return e}var fe=X.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:i,value:a,id:o,nativeButton:s=!0,style:c,...l}=e,{value:u,getTabPanelIdByValue:p,onValueChange:m,orientation:h,tabActivationDirection:g}=Q(),{activateOnFocus:_,registerTabResizeObserverElement:b,tabsListElement:x}=de(),{highlightedIndex:S,onHighlightedIndexChange:C}=N(),w=v(o),E=X.useMemo(()=>({disabled:r,id:w,value:a}),[r,w,a]),{compositeProps:k,compositeRef:A,index:j}=re({metadata:E}),P=a===u,F=X.useRef(!1),L=X.useRef(null),R=T(e=>{L.current?.(),L.current=e?b(e):null});I(()=>{if(F.current){F.current=!1;return}if(!(P&&j>-1&&S!==j))return;let e=x;if(e!=null){let t=O(D(e));if(t&&f(e,t))return}r||C(j)},[P,j,S,C,r,x]);let{getButtonProps:z,buttonRef:B}=M({disabled:r,native:s,focusableWhenDisabled:!0}),V=p(a),H=X.useRef(!1),W=X.useRef(!1);function G(e){m(a,y(d,e.nativeEvent,void 0,{activationDirection:`none`}))}function K(e){P||r||G(e)}function q(e){P||r||_&&(!H.current||W.current)&&G(e)}function J(e){if(P||r)return;H.current=!0,W.current=e.button===0;let t=D(e.currentTarget);function n(){H.current=!1,W.current=!1,t.removeEventListener(`pointerup`,n),t.removeEventListener(`pointercancel`,n)}t.addEventListener(`pointerup`,n),t.addEventListener(`pointercancel`,n)}return U(`button`,e,{state:{disabled:r,active:P,orientation:h,tabActivationDirection:g},ref:[t,B,A,R],props:[k,{role:`tab`,"aria-controls":V,"aria-selected":P,id:w,onClick:K,onFocus:q,onPointerDown:J,[le]:P?``:void 0,onKeyDownCapture(){F.current=!0}},l,z],stateAttributesMapping:$})}),pe=l();function me(){return W}function he(){return!1}function ge(){return!0}function _e(){return(0,pe.useSyncExternalStore)(me,he,ge)}function ve(e){let{script:t}=e,{nonce:n}=P();return _e()?(0,Y.jsx)(`script`,{nonce:n,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0}):null}var ye,be={...$,activeTabPosition:()=>null,activeTabSize:()=>null},xe=X.forwardRef(function(e,t){let{className:n,render:r,renderBeforeHydration:i=!1,style:a,...o}=e,{getTabElementBySelectedValue:s,orientation:c,tabActivationDirection:l,value:u}=Q(),{tabsListElement:d,registerIndicatorUpdateListener:f}=de(),p=ie();X.useEffect(()=>f(p),[f,p]);let m=0,h=0,g=0,_=0,v=0,y=0,b=!1;if(u!=null&&d!=null){let e=s(u);if(e!=null){b=!0;let{width:t,height:n}=Z(e),{width:r,height:i}=Z(d),a=e.getBoundingClientRect(),o=d.getBoundingClientRect(),s=r>0?o.width/r:1,c=i>0?o.height/i:1;if(s>2**-52&&c>2**-52){let e=a.left-o.left,t=a.top-o.top;m=e/s+d.scrollLeft-d.clientLeft,g=t/c+d.scrollTop-d.clientTop}else m=e.offsetLeft,g=e.offsetTop;v=t,y=n,h=d.scrollWidth-m-v,_=d.scrollHeight-g-y}}let x=b?{left:m,right:h,top:g,bottom:_}:null,S=b?{width:v,height:y}:null,C=b?{"--active-tab-left":`${m}px`,"--active-tab-right":`${h}px`,"--active-tab-top":`${g}px`,"--active-tab-bottom":`${_}px`,"--active-tab-width":`${v}px`,"--active-tab-height":`${y}px`}:void 0,w=U(`span`,e,{state:{orientation:c,activeTabPosition:x,activeTabSize:S,tabActivationDirection:l},ref:t,props:[{role:`presentation`,style:C,hidden:!(b&&v>0&&y>0)},o,{suppressHydrationWarning:!0}],stateAttributesMapping:be});return u==null?null:(0,Y.jsxs)(X.Fragment,{children:[w,i&&(ye||=(0,Y.jsx)(ve,{script:``}))]})}),Se={...$,...c},Ce=X.forwardRef(function(e,t){let{className:n,value:r,render:i,keepMounted:a=!1,style:o,...s}=e,{value:c,getTabIdByPanelValue:l,orientation:d,tabActivationDirection:f,registerMountedTabPanel:p}=Q(),m=v(),{ref:h,index:g}=J(),y=r===c,{mounted:b,transitionStatus:x,setMounted:S}=u(y),C=!b,w=l(r),T={hidden:C,orientation:d,tabActivationDirection:f,transitionStatus:x},E=X.useRef(null),D=U(`div`,e,{state:T,ref:[t,h,E],props:[{"aria-labelledby":w,hidden:C,id:m,role:`tabpanel`,tabIndex:y?0:-1,inert:L(!y),"data-index":g},s],stateAttributesMapping:Se});return _({open:y,ref:E,onComplete(){y||S(!1)}}),I(()=>{if(!(m==null||C&&!a))return p(r,m)},[C,a,r,m,p]),a||b?D:null}),we=[];function Te(e){let{loopFocus:t=!0,orientation:n=`both`,grid:o,onLoop:s,direction:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:d,enableHomeAndEndKeys:f=!1,stopEventPropagation:p,disabledIndices:g,modifierKeys:_=we}=e,[v,y]=X.useState(0),b=o!=null,S=X.useRef(null),w=H(S,d),D=X.useRef([]),O=X.useRef(!1),k=l??v,A=T((e,t=!1)=>{if((u??y)(e),t){let t=D.current[e];i(S.current,t,c,n)}}),M=T(e=>{if(e.size===0||O.current)return;O.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,a=r?e.get(r)?.index??-1:-1;if(a!==-1)A(a);else if(R(t,k,g)){let e=F(t,{disabledIndices:g});x(t,e)||A(e)}i(S.current,r,c,n)});I(()=>{if(g==null||l!=null||!O.current)return;let e=D.current;if(R(e,k,g)){let t=F(e,{disabledIndices:g});x(e,t)||A(t)}},[g,l,k,D,A]);let N=T((e,t,n)=>s?s(e,t,n,D):n),P=T(e=>{let i=e.key===`Home`||e.key===`End`;if(!r.has(e.key)||!f&&i||Ee(e,_)||!S.current)return;let l=c===`rtl`,u=l?C:z,d=l?z:C,v=n===`vertical`?B:u,y=n===`vertical`?h:d,w=m(e.nativeEvent);if(w!=null&&a(w)&&!te(w)){let t=w.selectionStart,n=w.selectionEnd,r=w.value;if(t==null||e.shiftKey||t!==n||e.key!==y&&t<r.length||e.key!==v&&t>0)return}let T=k,O=E(D,g),M=j(D,g);o!=null&&(T=o({disabledIndices:g,elementsRef:D,event:e,highlightedIndex:k,loopFocus:t,maxIndex:M,minIndex:O,onLoop:N,orientation:n,rtl:l}));let P=n!==`vertical`&&e.key===u||n!==`horizontal`&&e.key===`ArrowDown`,I=n!==`vertical`&&e.key===d||n!==`horizontal`&&e.key===`ArrowUp`;f&&(e.key===`Home`?T=O:e.key===`End`&&(T=M)),T===k&&(P||I)&&(t&&T===M&&P?(T=O,s&&(T=s(e,k,T,D))):t&&T===O&&I?(T=M,s&&(T=s(e,k,T,D))):T=F(D.current,{startingIndex:T,decrement:I,disabledIndices:g})),T!==k&&!x(D.current,T)&&(p&&e.stopPropagation(),(b||i||P||I)&&e.preventDefault(),A(T,!0),queueMicrotask(()=>{D.current[T]?.focus()}))});return{props:{ref:w,onFocus(e){let t=S.current,n=m(e.nativeEvent);!t||n==null||!a(n)||n.setSelectionRange(0,n.value.length)},onKeyDown:P},highlightedIndex:k,onHighlightedIndexChange:A,elementsRef:D,onMapChange:M,relayKeyboardEvent:P}}function Ee(e,t){for(let n of g)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function De(e){let{render:t,className:n,style:r,refs:i=q,props:a=q,state:o=V,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,grid:d,loopFocus:f,onLoop:p,enableHomeAndEndKeys:m,onMapChange:h,stopEventPropagation:g=!0,rootRef:_,disabledIndices:v,modifierKeys:y,highlightItemOnHover:x=!1,tag:C=`div`,...w}=e,{props:T,highlightedIndex:E,onHighlightedIndexChange:D,elementsRef:O,onMapChange:k,relayKeyboardEvent:A}=Te({grid:d,loopFocus:f,onLoop:p,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:_,stopEventPropagation:g,enableHomeAndEndKeys:m,direction:b(),disabledIndices:v,modifierKeys:y}),j=U(C,e,{state:o,ref:i,props:[T,...a,w],stateAttributesMapping:s}),M=X.useMemo(()=>({highlightedIndex:E,onHighlightedIndexChange:D,highlightItemOnHover:x,relayKeyboardEvent:A}),[E,D,x,A]);return(0,Y.jsx)(S.Provider,{value:M,children:(0,Y.jsx)(ee,{elementsRef:O,onMapChange:e=>{h?.(e),k(e)},children:j})})}var Oe=X.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...s}=e,{orientation:c,setTabMap:l,tabActivationDirection:u}=Q(),[d,f]=X.useState(0),[p,m]=X.useState(null),h=X.useRef(new Set),g=X.useRef(new Set),_=X.useRef(null);I(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{h.current.forEach(e=>{e()})});return _.current=e,p&&e.observe(p),g.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),_.current=null}},[p]);let v=T(e=>(h.current.add(e),()=>{h.current.delete(e)})),y=T(e=>(g.current.add(e),_.current?.observe(e),()=>{g.current.delete(e),_.current?.unobserve(e)})),b={orientation:c,tabActivationDirection:u},x={"aria-orientation":c===`vertical`?`vertical`:void 0,role:`tablist`},S=X.useMemo(()=>({activateOnFocus:n,registerIndicatorUpdateListener:v,registerTabResizeObserverElement:y,tabsListElement:p}),[n,v,y,p]);return(0,Y.jsx)(ue.Provider,{value:S,children:(0,Y.jsx)(De,{render:a,className:r,style:o,state:b,refs:[t,m],props:[x,s],stateAttributesMapping:$,highlightedIndex:d,enableHomeAndEndKeys:!0,loopFocus:i,orientation:c,onHighlightedIndexChange:f,onMapChange:l,disabledIndices:q})})});function ke({className:e,...t}){return(0,Y.jsx)(oe,{className:G(`flex flex-col gap-4`,e),"data-slot":`tabs`,...t})}function Ae({className:e,...t}){return(0,Y.jsxs)(Oe,{className:G(`relative z-0 flex w-fit items-center gap-1 rounded-lg bg-muted p-1`,e),"data-slot":`tabs-list`,...t,children:[t.children,(0,Y.jsx)(xe,{className:`absolute top-1/2 left-0 z-[-1] h-[calc(100%-0.5rem)] w-(--active-tab-width) -translate-y-1/2 translate-x-(--active-tab-left) rounded-md bg-background shadow-xs transition-all duration-150`,"data-slot":`tabs-indicator`})]})}function je({className:e,...t}){return(0,Y.jsx)(fe,{className:G(`flex h-7 cursor-pointer items-center justify-center whitespace-nowrap rounded-md border border-transparent px-2.5 font-medium text-muted-foreground text-sm outline-none transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring data-selected:text-foreground`,e),"data-slot":`tabs-tab`,...t})}function Me({className:e,...t}){return(0,Y.jsx)(Ce,{className:G(`flex-1 outline-none`,e),"data-slot":`tabs-panel`,...t})}export{Z as a,je as i,Ae as n,Me as r,ke as t};
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
2
+ <defs><linearGradient id="brand" x1="30" y1="20" x2="160" y2="180" gradientUnits="userSpaceOnUse">
3
+ <stop offset="0%" stop-color="#86efac"/>
4
+ <stop offset="50%" stop-color="#22c55e"/>
5
+ <stop offset="100%" stop-color="#14b8a6"/>
6
+ </linearGradient></defs>
7
+ <path d="M 178.8 63.3 A 87 87 0 1 0 178.8 136.7 L 141.7 119.4 A 46 46 0 1 1 141.7 80.6 Z" fill="url(#brand)"/>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
2
+ <defs><linearGradient id="brand" x1="30" y1="20" x2="160" y2="180" gradientUnits="userSpaceOnUse">
3
+ <stop offset="0%" stop-color="#93c5fd"/>
4
+ <stop offset="50%" stop-color="#38bdf8"/>
5
+ <stop offset="100%" stop-color="#60a5fa"/>
6
+ </linearGradient></defs>
7
+ <path d="M 178.8 63.3 A 87 87 0 1 0 178.8 136.7 L 141.7 119.4 A 46 46 0 1 1 141.7 80.6 Z" fill="url(#brand)"/>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
2
+ <defs><linearGradient id="brand" x1="30" y1="20" x2="160" y2="180" gradientUnits="userSpaceOnUse">
3
+ <stop offset="0%" stop-color="#f472b6"/>
4
+ <stop offset="50%" stop-color="#c084fc"/>
5
+ <stop offset="100%" stop-color="#818cf8"/>
6
+ </linearGradient></defs>
7
+ <path d="M 178.8 63.3 A 87 87 0 1 0 178.8 136.7 L 141.7 119.4 A 46 46 0 1 1 141.7 80.6 Z" fill="url(#brand)"/>
8
+ </svg>
@@ -11,17 +11,23 @@
11
11
  (function () {
12
12
  var stored;
13
13
  var palette = 'sunset';
14
+ var validPalettes = ['sunset', 'aurora', 'forest', 'nebula', 'glacier'];
14
15
  try {
15
16
  stored = localStorage.getItem('contextspace-theme') || localStorage.getItem('nexusflow-theme');
16
- if (localStorage.getItem('contextspace-color-theme') === 'aurora') palette = 'aurora';
17
+ var storedPalette = localStorage.getItem('contextspace-color-theme');
18
+ if (storedPalette && validPalettes.indexOf(storedPalette) !== -1) {
19
+ palette = storedPalette;
20
+ }
17
21
  } catch (e) { /* Use system appearance when storage is unavailable. */ }
18
22
  var dark = stored === 'dark' || (stored !== 'light' && window.matchMedia('(prefers-color-scheme: dark)').matches);
19
23
  document.documentElement.classList.toggle('dark', dark);
20
24
  document.documentElement.dataset.colorTheme = palette;
21
- if (palette === 'aurora') document.querySelector('link[rel="icon"]').href = '/favicon-aurora.svg';
25
+ var iconHref = palette === 'sunset' ? '/favicon.svg' : '/favicon-' + palette + '.svg';
26
+ var link = document.querySelector('link[rel="icon"]');
27
+ if (link) link.href = iconHref;
22
28
  })();
23
29
  </script>
24
- <script type="module" crossorigin src="/assets/index-CQHHxwAN.js"></script>
30
+ <script type="module" crossorigin src="/assets/index-DNNQAjn6.js"></script>
25
31
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-hePW80VL.js">
26
32
  <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-DE3RlOCf.js">
27
33
  <link rel="modulepreload" crossorigin href="/assets/button-BrcP8Wxx.js">
@@ -35,7 +41,7 @@
35
41
  <link rel="modulepreload" crossorigin href="/assets/isElementDisabled-BONWqXlb.js">
36
42
  <link rel="modulepreload" crossorigin href="/assets/status-CKOvrZ16.js">
37
43
  <link rel="stylesheet" crossorigin href="/assets/monaco-d9IpiNv7.css">
38
- <link rel="stylesheet" crossorigin href="/assets/index-D836ldaj.css">
44
+ <link rel="stylesheet" crossorigin href="/assets/index-CQGZNI9n.css">
39
45
  </head>
40
46
  <body>
41
47
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrpatronz/nexusflow",
3
- "version": "2.15.0",
3
+ "version": "2.17.0",
4
4
  "description": "Combine multiple repos into a workspace with rich AI assistant context",
5
5
  "type": "module",
6
6
  "repository": {