@qredence/fleet 0.5.11 → 0.6.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 (57) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/web/client/assets/{artifacts-panel-CQmFEF_H.js → artifacts-panel-CJ75gQub.js} +1 -1
  3. package/dist/web/client/assets/chat-Ci2cEQrR.js +52 -0
  4. package/dist/web/client/assets/{chat-command-palette-CmHTS3rs.js → chat-command-palette-CkISHfKE.js} +1 -1
  5. package/dist/web/client/assets/{command-DPfiaYUL.js → command-_WjnervL.js} +1 -1
  6. package/dist/web/client/assets/fleet-message-queue-BCno4XP-.js +1 -0
  7. package/dist/web/client/assets/{horizontal-resize-qK6eRhIG.js → horizontal-resize-CwoDojST.js} +1 -1
  8. package/dist/web/client/assets/{index-C1zOjrMK.js → index-DJ1fFbQu.js} +2 -2
  9. package/dist/web/client/assets/input-group-Tb5TYbzi.js +1 -0
  10. package/dist/web/client/assets/{model-selector-list-DsKTuAgS.js → model-selector-list-Ch05B2nZ.js} +1 -1
  11. package/dist/web/client/assets/{openui-renderer-J3dhPpL4.js → openui-renderer-Bf60nxNi.js} +5 -5
  12. package/dist/web/client/assets/pencil-DcUwsKLn.js +1 -0
  13. package/dist/web/client/assets/{provider-label-Dpr7djG9.js → provider-label-DDLRnZyC.js} +1 -1
  14. package/dist/web/client/assets/{right-panel-registry-DewpBWHM.js → right-panel-registry-Dp8yX-oL.js} +2 -2
  15. package/dist/web/client/assets/routes-DpgMJZ5n.js +16 -0
  16. package/dist/web/client/assets/settings-dialog-YJkvt5EB.js +2 -0
  17. package/dist/web/client/assets/{subagent-chat-panel-DkVUumrP.js → subagent-chat-panel-Yujplxpb.js} +1 -1
  18. package/dist/web/client/assets/{subagent-transcript-D8wmQxXe.js → subagent-transcript-CnI-mqN0.js} +1 -1
  19. package/dist/web/client/assets/{subagents-panel-BMp2Ego0.js → subagents-panel-CjXEdimj.js} +1 -1
  20. package/dist/web/client/assets/{virtualized-turn-list-DMJENRY0.js → virtualized-turn-list--Vynre4D.js} +2 -2
  21. package/dist/web/client/assets/{workspace-panel-G6yMpKJ8.js → workspace-panel-CPPIznT9.js} +1 -1
  22. package/dist/web/client/bundle-budget.json +6 -6
  23. package/dist/web/server/{_tanstack-start-manifest_v-po4woX6g-AUGCOEZ2.js → _tanstack-start-manifest_v-DS_CSIFQ-WB3VTKF3.js} +10 -9
  24. package/dist/web/server/{artifacts-panel-8GGUCtOd-X5TNKTY2.js → artifacts-panel-CaKrX2XC-R37I4BHF.js} +5 -5
  25. package/dist/web/server/{chat-command-palette-Dgl5tqWn-72LLEWUD.js → chat-command-palette-7gbqEnm9-6XICQZN7.js} +4 -4
  26. package/dist/web/server/{chunk-WILCIZYU.js → chunk-BBBS5AS7.js} +2 -2
  27. package/dist/web/server/{chunk-O4OTWWPF.js → chunk-CNXJN5HN.js} +4 -4
  28. package/dist/web/server/{chunk-XKKXXG6N.js → chunk-DI7XRK2H.js} +2 -2
  29. package/dist/web/server/{chunk-BXWAUTTH.js → chunk-DZ2IC3FH.js} +2 -2
  30. package/dist/web/server/{chunk-7MDZVLIY.js → chunk-EAE2QXRK.js} +1 -1
  31. package/dist/web/server/{chunk-JUROEEWM.js → chunk-EH4BZ6QM.js} +82 -4
  32. package/dist/web/server/{chunk-ABBWBBSS.js → chunk-KELEYPVK.js} +4 -4
  33. package/dist/web/server/{chunk-RNOJACWQ.js → chunk-LXJD6IGW.js} +2 -2
  34. package/dist/web/server/chunk-M5RSPNYN.js +22 -0
  35. package/dist/web/server/{chunk-P7H2OPKF.js → chunk-PIOFZUOU.js} +9 -1
  36. package/dist/web/server/chunk-PTCKOR23.js +39 -0
  37. package/dist/web/server/{chunk-MIW4LJTV.js → chunk-TWYHHG5N.js} +1 -9
  38. package/dist/web/server/{chunk-WKV2Z4KO.js → chunk-WHBVQJ4K.js} +2 -2
  39. package/dist/web/server/{chunk-GGT2ZKDB.js → chunk-YNUWKMNQ.js} +11 -4
  40. package/dist/web/server/fleet-message-queue-BS-cZ56r-GLZXUKDF.js +152 -0
  41. package/dist/web/server/{model-selector-list-OYnzNbyu-HBGCNF2L.js → model-selector-list-jBTZc2Mu-OXJOS5NA.js} +3 -3
  42. package/dist/web/server/{openui-renderer-Cj7kfqyL-EKJ6JTTQ.js → openui-renderer-Biyyjhjn-SJOEKPTJ.js} +4 -4
  43. package/dist/web/server/{router-Ci1wxI7I-E2AYMNON.js → router-DWALoX_M-I5CBL7FQ.js} +1228 -459
  44. package/dist/web/server/{routes-CRpm9-Sa-IYK6MUJO.js → routes-BBVirYfL-5WXMOT7M.js} +223 -49
  45. package/dist/web/server/server.js +2 -2
  46. package/dist/web/server/{settings-dialog-BvkgNflv-GPJ6COQO.js → settings-dialog-DndPbM-v-RFNXXEAN.js} +890 -567
  47. package/dist/web/server/{subagent-chat-panel-CMuvW9Sd-M5TEEGQW.js → subagent-chat-panel-C0RpnXav-J7VYO7QY.js} +3 -3
  48. package/dist/web/server/{subagents-panel-DgfB6_Yy-4INEPE3Y.js → subagents-panel-jDqIn9Nh-YEV6QLUY.js} +3 -3
  49. package/dist/web/server/{workspace-panel-bpwj-Veu-Q2CEJMN4.js → workspace-panel-CX_Vo6As-EWO6AMPI.js} +3 -3
  50. package/package.json +1 -1
  51. package/dist/web/client/assets/chat-yh02zgA7.js +0 -52
  52. package/dist/web/client/assets/fleet-message-queue-DUz6Hfrf.js +0 -1
  53. package/dist/web/client/assets/input-group-BFDsCVS9.js +0 -1
  54. package/dist/web/client/assets/routes-vNkVToAF.js +0 -16
  55. package/dist/web/client/assets/settings-dialog-B-v4me3Y.js +0 -1
  56. package/dist/web/server/chunk-QK4CHLVV.js +0 -17
  57. package/dist/web/server/fleet-message-queue-j0DCU5Xy-5HKBHMPV.js +0 -75
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-DwxZHm0M.js";var t=e(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]);export{t};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./bundle-mjs-DKHVkVWu.js";import{t as n}from"./react-dom-Bwxum3ti.js";import{t as r}from"./jsx-runtime-NZYk81nU.js";import{$ as i,B as a,F as o,N as s,Q as c,V as l,et as u,n as d,st as f,t as p,tt as m}from"./button-BR2WWrFo.js";import{G as h,P as g,at as _,ct as v,et as y,h as b,it as x,rt as S,t as C}from"./createBaseUIEventDetails-DV0dQrBX.js";import{_ as w,ct as T,d as E,f as D,g as O,h as k,it as A,l as j,m as M,nt as N,p as P,s as F,tt as I,u as ee}from"./dialog-BEZuZhzk.js";import{a as te,r as L,t as R}from"./provider-catalog-D8G66gwc.js";import{r as z}from"./useBaseUiId-CHqXB2UQ.js";import{t as B}from"./utils-Eg7xtNmV.js";import{t as V}from"./createLucideIcon-DwxZHm0M.js";import{t as H}from"./bot-Bs7QWJ2q.js";import{t as ne}from"./loader-circle-DjfHXUPB.js";import{n as re,r as ie,t as ae}from"./shield-check-CkA2viVW.js";import{t as oe}from"./plug-Dt6VN0zF.js";import{t as U}from"./sparkles-DuclzqlE.js";var W=e(t(),1),se=f();function ce(e,t){return t!=null&&!A(t)?0:typeof e==`function`?e():e}function G(e,t,n){let r=ce(e,n);return typeof r==`number`?r:r?.[t]}function le(e){return typeof e==`function`?e():e}function ue(e,t){return t||e===`click`||e===`mousedown`}function de(e){return e?.includes(`mouse`)&&e!==`mousedown`}function fe(e){let t=W.useCallback(t=>e===void 0?v:e.subscribeStore(t),[e]),n=W.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,se.useSyncExternalStore)(t,n,()=>e?.serverStore)}var pe=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new c,this.restTimeout=new c,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},K=new WeakMap;function q(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&K.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),K.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function me(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=K.get(n);a&&a!==e&&q(a),q(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,K.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function he(e){let t=e.context.dataRef.current,n=x(()=>t.hoverInteractionState??pe.create()).current;return t.hoverInteractionState||=n,_(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function ge(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:c}=t,d=`rootStore`in e?e.rootStore:e,f=d.useState(`open`),p=d.useState(`floatingElement`),_=d.useState(`domReferenceElement`),{dataRef:v}=d.context,x=N(),w=I(),E=he(d),D=i(),O=y(()=>ue(v.current.openEvent?.type,E.interactedInside)),k=y(()=>de(v.current.openEvent?.type)),A=y(()=>{q(E)});S(()=>{f||(E.pointerType=void 0,E.restTimeoutPending=!1,E.interactedInside=!1,A())},[f,E,A]),W.useEffect(()=>A,[A]),S(()=>{if(n&&f&&E.handleCloseOptions?.blockPointerEvents&&k()&&h(_)&&p){let e=_,t=p,n=u(p),r=x?.nodesRef.current.find(e=>e.id===w)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=E.pointerEventsScopeElement===t?null:E.pointerEventsScopeElement,a=r===t?null:r,o=E.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return me(E,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{A()}}},[n,f,_,p,E,k,x,w,A]),W.useEffect(()=>{if(!n)return;function e(){return!!(x&&w&&T(x.nodesRef.current,w).length>0)}function t(e){let t=G(r,`close`,E.pointerType),n=()=>{d.setOpen(!1,C(b,e)),x?.events.emit(`floating.closed`,e)};t?E.openChangeTimeout.start(t,n):(E.openChangeTimeout.clear(),n())}function i(e){let t=l(e);if(!s(t)){E.interactedInside=!1;return}E.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function u(){E.openChangeTimeout.clear(),D.clear(),x?.events.off(`floating.closed`,_),A()}function f(n){if(e()&&x){x.events.on(`floating.closed`,_);return}if(o(n.relatedTarget,d.context.triggerElements))return;let r=v.current.floatingContext?.nodeId??c,i=n.relatedTarget;if(!(x&&r&&h(i)&&T(x.nodesRef.current,r,!1).some(e=>a(e.context?.elements.floating,i)))){if(E.handler){E.handler(n);return}A(),k()&&!O()&&t(n)}}function _(t){!x||!w||e()||D.start(0,()=>{x.events.off(`floating.closed`,_),d.setOpen(!1,C(b,t)),x.events.emit(`floating.closed`,t)})}let y=p;return m(y&&g(y,`mouseenter`,u),y&&g(y,`mouseleave`,f),y&&g(y,`pointerdown`,i,!0),()=>{x?.events.off(`floating.closed`,_)})},[n,p,d,v,r,c,k,O,A,E,x,w,D])}var _e=e(n(),1),ve={current:null};function ye(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:s=!1,restMs:c=0,move:d=!0,triggerElementRef:f=ve,externalTree:p,isActiveTrigger:_=!0,getHandleCloseContext:v,isClosing:x,shouldOpen:S,guardStaleOpen:w=!1}=t,T=`rootStore`in e?e.rootStore:e,{dataRef:E,events:D}=T.context,O=N(p),k=he(T),j=W.useRef(!1),M=z(i),P=z(r),F=z(c),I=z(n),ee=z(S),te=z(x),L=y(()=>ue(E.current.openEvent?.type,k.interactedInside)),R=y(()=>ee.current?.()!==!1),B=y((e,t,n)=>{let r=T.context.triggerElements;if(r.hasElement(t))return!e||!a(e,t);if(!h(n))return!1;let i=n;return r.hasMatchingElement(e=>a(e,i))&&(!e||!a(e,i))}),V=y(()=>{k.handler&&=(u(T.select(`domReferenceElement`)).removeEventListener(`mousemove`,k.handler),void 0)}),H=y(()=>{q(k)});return _&&(k.handleCloseOptions=M.current?.__options),W.useEffect(()=>V,[V]),W.useEffect(()=>{if(!n)return;function e(e){e.open?j.current=!1:(j.current=e.reason===b,V(),k.openChangeTimeout.clear(),k.restTimeout.clear(),k.blockMouseMove=!0,k.restTimeoutPending=!1)}return D.on(`openchange`,e),()=>{D.off(`openchange`,e)}},[n,D,k,V]),W.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=G(P.current,`close`,k.pointerType);n?k.openChangeTimeout.start(n,()=>{T.setOpen(!1,C(b,e)),O?.events.emit(`floating.closed`,e)}):t&&(k.openChangeTimeout.clear(),T.setOpen(!1,C(b,e)),O?.events.emit(`floating.closed`,e))}let t=f.current??(_?T.select(`domReferenceElement`):null);if(!h(t))return;function r(e){if(k.openChangeTimeout.clear(),k.blockMouseMove=!1,s&&!A(k.pointerType))return;let t=le(F.current),n=G(P.current,`open`,k.pointerType),r=l(e),i=e.currentTarget??null,o=T.select(`domReferenceElement`),c=i;if(h(r)&&!T.context.triggerElements.hasElement(r)){for(let e of T.context.triggerElements.elements())if(a(e,r)){c=e;break}}h(i)&&h(o)&&!T.context.triggerElements.hasElement(i)&&a(i,o)&&(c=o);let u=c!=null&&B(o,c,r),d=T.select(`open`),f=te.current?.()??T.select(`transitionStatus`)===`ending`,p=!d&&f&&j.current,m=!u&&h(c)&&h(o)&&a(o,c)&&p,g=t>0&&!n,_=u&&(d||p)||m,v=!d||u;if(_){R()&&T.setOpen(!0,C(b,e,c));return}g||(n?k.openChangeTimeout.start(n,()=>{v&&R()&&T.setOpen(!0,C(b,e,c))}):v&&R()&&T.setOpen(!0,C(b,e,c)))}function i(t){if(L()){H();return}V();let n=T.select(`domReferenceElement`),r=u(n);k.restTimeout.clear(),k.restTimeoutPending=!1;let i=E.current.floatingContext??v?.();if(!o(t.relatedTarget,T.context.triggerElements)){if(M.current&&i){T.select(`open`)||k.openChangeTimeout.clear();let n=f.current;k.handler=M.current({...i,tree:O,x:t.clientX,y:t.clientY,onClose(){H(),V(),I.current&&!L()&&n===T.select(`domReferenceElement`)&&e(t,!0)}}),r.addEventListener(`mousemove`,k.handler),k.handler(t);return}(k.pointerType!==`touch`||!a(T.select(`floatingElement`),t.relatedTarget))&&e(t)}}function c(e){a(t,e.relatedTarget)||(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1)}let p=w?g(t,`mouseout`,c):void 0;return d?m(g(t,`mousemove`,r,{once:!0}),g(t,`mouseenter`,r),g(t,`mouseleave`,i),p):m(g(t,`mouseenter`,r),g(t,`mouseleave`,i),p)},[V,H,E,P,T,n,M,k,_,B,L,s,d,F,f,O,I,v,te,R,w]),W.useMemo(()=>{if(!n)return;function e(e){k.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=T.select(`domReferenceElement`),i=T.select(`open`),a=B(r,n,e.target);if(s&&!A(k.pointerType))return;if(i&&a&&k.handleCloseOptions?.blockPointerEvents){let e=T.select(`floatingElement`);if(e){let t=k.handleCloseOptions?.getScope?.()??n.ownerDocument.body;me(k,{scopeElement:t,referenceElement:n,floatingElement:e})}}let o=le(F.current);if(i&&!a||o===0||!a&&k.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;k.restTimeout.clear();function c(){if(k.restTimeoutPending=!1,L())return;let e=T.select(`open`);!k.blockMouseMove&&(!e||a)&&R()&&T.setOpen(!0,C(b,t,n))}k.pointerType===`touch`?_e.flushSync(()=>{c()}):a&&i?c():(k.restTimeoutPending=!0,k.restTimeout.start(o,c))}}},[n,k,L,B,s,T,F,R])}var be=.1,xe=be*be,J=.5;function Y(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function X(e,t,n,r,i,a,o,s,c,l){let u=!1;return Y(e,t,n,r,i,a)&&(u=!u),Y(e,t,i,a,o,s)&&(u=!u),Y(e,t,o,s,c,l)&&(u=!u),Y(e,t,c,l,n,r)&&(u=!u),u}function Se(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Z(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Ce(e={}){let{blockPointerEvents:t=!1}=e,n=new c,r=({x:e,y:t,placement:r,elements:i,onClose:o,nodeId:s,tree:c})=>{let u=r?.split(`-`)[0],d=!1,f=null,p=null,m=typeof performance<`u`?performance.now():0;function g(e,t){let n=performance.now(),r=n-m;if(f===null||p===null||r===0)return f=e,p=t,m=n,!1;let i=e-f,a=t-p,o=i*i+a*a,s=r*r*xe;return f=e,p=t,m=n,o<s}function _(){n.clear(),o()}return function(r){n.clear();let o=i.domReference,f=i.floating;if(!o||!f||u==null||e==null||t==null)return;let{clientX:p,clientY:m}=r,v=l(r),y=r.type===`mouseleave`,b=a(f,v),x=a(o,v);if(b&&(d=!0,!y))return;if(x&&(d=!1,!y)){d=!0;return}if(y&&h(r.relatedTarget)&&a(f,r.relatedTarget))return;function S(){return!!(c&&T(c.nodesRef.current,s).length>0)}function C(){S()||_()}if(S())return;let w=o.getBoundingClientRect(),E=f.getBoundingClientRect(),D=e>E.right-E.width/2,O=t>E.bottom-E.height/2,k=E.width>w.width,A=E.height>w.height,j=(k?w:E).left,M=(k?w:E).right,N=(A?w:E).top,P=(A?w:E).bottom;if(u===`top`&&t>=w.bottom-1||u===`bottom`&&t<=w.top+1||u===`left`&&e>=w.right-1||u===`right`&&e<=w.left+1){C();return}let F=!1;switch(u){case`top`:F=Z(p,m,j,w.top+1,M,E.bottom-1);break;case`bottom`:F=Z(p,m,j,E.top+1,M,w.bottom-1);break;case`left`:F=Z(p,m,E.right-1,P,w.left+1,N);break;case`right`:F=Z(p,m,w.right-1,P,E.left+1,N)}if(F)return;if(d&&!Se(p,m,w)){C();return}if(!y&&g(p,m)){C();return}let I=!1;switch(u){case`top`:{let n=k?J/2:J*4,r=k||D?e+n:e-n,i=k?e-n:D?e+n:e-n,a=t+J+1,o=D||k?E.bottom-J:E.top,s=D?k?E.bottom-J:E.top:E.bottom-J;I=X(p,m,r,a,i,a,E.left,o,E.right,s);break}case`bottom`:{let n=k?J/2:J*4,r=k||D?e+n:e-n,i=k?e-n:D?e+n:e-n,a=t-J,o=D||k?E.top+J:E.bottom,s=D?k?E.top+J:E.bottom:E.top+J;I=X(p,m,r,a,i,a,E.left,o,E.right,s);break}case`left`:{let n=A?J/2:J*4,r=A||O?t+n:t-n,i=A?t-n:O?t+n:t-n,a=e+J+1,o=O||A?E.right-J:E.left,s=O?A?E.right-J:E.left:E.right-J;I=X(p,m,o,E.top,s,E.bottom,a,r,a,i);break}case`right`:{let n=A?J/2:J*4,r=A||O?t+n:t-n,i=A?t-n:O?t+n:t-n,a=e-J,o=O||A?E.left+J:E.right,s=O?A?E.left+J:E.right:E.left+J;I=X(p,m,a,r,a,i,o,E.top,s,E.bottom);break}}I?d||n.start(40,C):C()}};return r.__options={...e,blockPointerEvents:t},r}var we=V(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Te=V(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),Ee=V(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),De=V(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),Oe=V(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),ke=V(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Ae=V(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),je=V(`wind`,[[`path`,{d:`M12.8 19.6A2 2 0 1 0 14 16H2`,key:`148xed`}],[`path`,{d:`M17.5 8a2.5 2.5 0 1 1 2 4H2`,key:`1u4tom`}],[`path`,{d:`M9.8 4.4A2 2 0 1 1 11 8H2`,key:`75valh`}]]),Me=V(`zap`,[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]),Ne=`h-8 shrink-0 cursor-pointer rounded-full border-border/45 bg-background/65 px-3 text-[0.6875rem] font-semibold text-foreground/75 shadow-sm transition-[background-color,border-color,box-shadow,opacity,transform] duration-150 hover:bg-foreground/5 active:scale-[0.96] disabled:opacity-50`,Pe=`relative after:absolute after:top-1/2 after:left-1/2 after:size-10 after:-translate-x-1/2 after:-translate-y-1/2`,Fe=`relative after:absolute after:inset-x-0 after:-top-1.5 after:-bottom-1.5`,Ie=`relative inline-flex h-9 items-center gap-1.5 rounded-[10px] border border-border/70 px-3 text-label font-medium whitespace-nowrap shadow-sm backdrop-blur transition-colors`,Le=`bg-sidebar text-foreground/55 hover:bg-background hover:text-foreground/75`,Re=`bg-background text-foreground/75`;`${Le}`,`${Re}`;var ze=`relative z-10 overflow-visible`,Be=`h-full min-h-0 w-[min(360px,calc(100vw-1.5rem))] overflow-hidden rounded-md border border-border/70 bg-background/95 shadow-lg backdrop-blur`,Ve=d(`flex min-w-0 rounded-[4px] border`,{variants:{tone:{default:`border-border/30 bg-background/30`,muted:`border-border/20 bg-foreground/1.5`,inset:`border-border/60 bg-foreground/2`,dashed:`border-dashed border-border/25 bg-background/10`},padding:{sm:`p-2`,md:`px-2.5 py-2`,lg:`p-2.5`},interactive:{true:`transition-[border-color,background-color,box-shadow] duration-200 hover:border-border/45 hover:bg-foreground/2 hover:shadow-sm`,lift:`transition-[border-color,background-color,box-shadow,transform] duration-200 hover:-translate-y-px hover:border-border/45 hover:bg-foreground/3.5 hover:shadow-sm`,false:``}},defaultVariants:{tone:`default`,padding:`sm`,interactive:!1}}),Q=r();function He({className:e,...t}){return(0,Q.jsx)(ne,{"data-slot":`spinner`,role:`status`,"aria-label":`Loading`,className:B(`size-4 animate-spin`,e),...t})}function Ue(e){return j(`alert-dialog`,e)}var We=4;function Ge({...e}){return(0,Q.jsx)(Ue,{"data-slot":`alert-dialog`,...e})}function Ke({...e}){return(0,Q.jsx)(ee,{"data-slot":`alert-dialog-portal`,...e})}function qe({className:e,...t}){return(0,Q.jsx)(M,{"data-slot":`alert-dialog-backdrop`,className:B(`fixed inset-0 isolate z-[60] bg-black/10 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function Je({className:e,children:t,...n}){let r=O(),i=Math.min(r+We,8);return(0,Q.jsxs)(Ke,{children:[(0,Q.jsx)(qe,{}),(0,Q.jsx)(E,{"data-slot":`alert-dialog-content`,className:B(`fixed top-1/2 left-1/2 z-[60] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-6 text-sm text-popover-foreground outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,w(i),e),...n,children:(0,Q.jsx)(k,{value:i,children:t})})]})}function Ye({className:e,...t}){return(0,Q.jsx)(F,{"data-slot":`alert-dialog-title`,className:B(`font-heading text-base leading-none font-medium`,e),...t})}function Xe({className:e,...t}){return(0,Q.jsx)(D,{"data-slot":`alert-dialog-description`,className:B(`text-sm text-pretty text-muted-foreground`,e),...t})}function Ze({className:e,...t}){return(0,Q.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:B(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function Qe({...e}){return(0,Q.jsx)(P,{"data-slot":`alert-dialog-cancel`,render:(0,Q.jsx)(p,{variant:`outline`}),...e})}function $e({...e}){return(0,Q.jsx)(P,{"data-slot":`alert-dialog-action`,render:(0,Q.jsx)(p,{variant:`destructive`}),...e})}var et={"amazon-bedrock":{icon:Oe,placeholder:`AKIA... (AWS access key id)`,help:`Amazon Bedrock uses standard AWS credentials (AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY) plus AWS_REGION. This field sets AWS_ACCESS_KEY_ID in .env.local.`},openai:{icon:U,placeholder:`sk-proj-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENAI_API_KEY environment variable.`},"openai-chat-completions":{icon:U,placeholder:`sk-... or nvapi-...`,help:`OpenAI-compatible Chat Completions root (e.g. https://opencode.ai/zen/v1). Paste …/chat/completions if you want — it is normalized. Requires API key, base URL, and model name.`},"openai-chat-completions-model":{icon:U,placeholder:`meta/llama-3.1-70b-instruct`,help:`Gateway model name registered when /models is empty or incomplete.`},anthropic:{icon:H,placeholder:`sk-ant-...`,help:`Stored securely in your root .env.local file. Overrides the active ANTHROPIC_API_KEY environment variable.`},"google-vertex":{icon:ae,placeholder:`Path to service account JSON, or credentials text...`,help:`Stored securely in your root .env.local file. Overrides the active GOOGLE_APPLICATION_CREDENTIALS environment variable.`},google:{icon:Te,placeholder:`AIzaSy...`,help:`Stored securely in your root .env.local file. Overrides the active GEMINI_API_KEY environment variable.`},mistral:{icon:je,placeholder:`Your Mistral API key...`,help:`Stored securely in your root .env.local file. Overrides the active MISTRAL_API_KEY environment variable.`},groq:{icon:Me,placeholder:`gsk_...`,help:`Stored securely in your root .env.local file. Overrides the active GROQ_API_KEY environment variable.`},openrouter:{icon:re,placeholder:`sk-or-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENROUTER_API_KEY environment variable.`},"vercel-ai-gateway":{icon:ie,placeholder:`Your AI Gateway API key...`,help:`Stored securely in your root .env.local file. Overrides the active AI_GATEWAY_API_KEY environment variable.`},"github-copilot":{icon:H,placeholder:`OAuth subscription`,help:`GitHub Copilot uses device-code OAuth. Sign in from Settings; credentials are stored in auth.json.`},"openai-codex":{icon:U,placeholder:`OAuth subscription`,help:`OpenAI Codex uses ChatGPT OAuth. Sign in from Settings; credentials are stored in auth.json.`},ollama:{icon:Ee,placeholder:`http://localhost:11434 (default)`,help:`Configure local Ollama execution endpoints. Overrides the active OLLAMA_BASE_URL environment variable.`},custom:{icon:oe,placeholder:`sk-... / provider key`,help:`Register any OpenAI-, Anthropic-, or Google-compatible endpoint through Pi's native custom-provider mechanism. Requires a name, API key, https base URL, API family, and at least one model id. Deployed accounts only.`}},$=`size-4`;function tt({className:e}){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,className:B($,e),fill:`currentColor`,"aria-hidden":!0,children:(0,Q.jsx)(`path`,{d:`M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.771.771 0 0 0 .78 0l5.843-3.368v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646zM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.676l5.814 3.354-2.02 1.168a.076.076 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.079.079 0 0 0-.041-.067zm2.01-3.023l-.141-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zM8.306 12.683l-2.02-1.163a.08.08 0 0 1-.038-.057V6.074a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.795.795 0 0 0-.392.681zm1.098-2.016l2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5z`})})}function nt({className:e}){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,className:B($,e),fill:`currentColor`,"aria-hidden":!0,children:(0,Q.jsx)(`path`,{d:`M17.305 14.256h-3.778l-2.28-7.23h-.005l-2.32 7.23H5.145L9.93 3h4.14l4.235 11.256zm-8.48 2.37h6.37l1.16 3.374h3.465L14.18 3h-4.36L4.15 20h3.465l1.21-3.374z`})})}function rt({className:e}){return(0,Q.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:B($,e),fill:`currentColor`,"aria-hidden":!0,children:[(0,Q.jsx)(`path`,{d:`M21.6 12.23c0-.71-.06-1.4-.18-2.05H12v3.87h5.38a4.6 4.6 0 0 1-2 3.02v2.5h3.24c1.89-1.74 2.98-4.3 2.98-7.34z`}),(0,Q.jsx)(`path`,{d:`M12 22c2.7 0 4.96-.89 6.61-2.42l-3.24-2.5c-.9.6-2.04.96-3.37.96-2.59 0-4.78-1.75-5.56-4.1H3.1v2.58A9.99 9.99 0 0 0 12 22z`}),(0,Q.jsx)(`path`,{d:`M6.44 13.94A5.99 5.99 0 0 1 6.12 12c0-.67.12-1.33.32-1.94V7.48H3.1A9.99 9.99 0 0 0 2 12c0 1.61.39 3.14 1.1 4.52l3.34-2.58z`}),(0,Q.jsx)(`path`,{d:`M12 5.96c1.47 0 2.79.5 3.82 1.5l2.87-2.87C16.95 2.99 14.7 2 12 2A9.99 9.99 0 0 0 3.1 7.48l3.34 2.58C7.22 7.71 9.41 5.96 12 5.96z`})]})}function it({className:e}){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,className:B($,e),fill:`currentColor`,"aria-hidden":!0,children:(0,Q.jsx)(`path`,{d:`M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2.2c-3.3.7-4-1.4-4-1.4-.5-1.4-1.3-1.8-1.3-1.8-1.1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1.1 1.8 2.8 1.3 3.5 1 .1-.8.4-1.3.8-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.3.5-2.4 1.2-3.2-.1-.3-.5-1.5.1-3.2 0 0 1-.3 3.3 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.7.2 2.9.1 3.2.8.8 1.2 1.9 1.2 3.2 0 4.6-2.9 5.6-5.5 5.9.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6A12 12 0 0 0 12 .3z`})})}function at({provider:e,api:t,className:n}){let r=e.toLowerCase();if(L(r)||r===`custom`)return t===`anthropic-messages`?(0,Q.jsx)(nt,{className:n}):t===`google-genai`?(0,Q.jsx)(rt,{className:n}):(0,Q.jsx)(tt,{className:n});if(r===`openai`||r===`openai-codex`||te(r))return(0,Q.jsx)(tt,{className:n});if(r===`anthropic`)return(0,Q.jsx)(nt,{className:n});if(r===`google`||r===`google-vertex`)return(0,Q.jsx)(rt,{className:n});if(r===`github-copilot`||r===`github`)return(0,Q.jsx)(it,{className:n});let i=e in et?et[e].icon:Ee;return(0,Q.jsx)(i,{className:B($,n),"aria-hidden":!0})}function ot(e){return R.find(t=>t.id===e)?.name??e}export{fe as A,De as C,ye as D,Ce as E,ge as O,ke as S,we as T,Pe as _,$e as a,Ve as b,Xe as c,He as d,ze as f,Ne as g,Le as h,Ge as i,G as j,he as k,Ze as l,Ie as m,at as n,Qe as o,Re as p,et as r,Je as s,ot as t,Ye as u,Fe as v,Ee as w,Ae as x,Be as y};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./bundle-mjs-DKHVkVWu.js";import{t as n}from"./react-dom-Bwxum3ti.js";import{t as r}from"./jsx-runtime-NZYk81nU.js";import{$ as i,B as a,F as o,N as s,Q as c,V as l,et as u,n as d,st as f,t as p,tt as m}from"./button-BR2WWrFo.js";import{G as h,P as g,at as _,ct as v,et as y,h as b,it as x,rt as S,t as C}from"./createBaseUIEventDetails-DV0dQrBX.js";import{_ as w,ct as T,d as E,f as D,g as O,h as k,it as A,l as j,m as M,nt as N,p as P,s as F,tt as I,u as ee}from"./dialog-BEZuZhzk.js";import{a as te,r as L,t as R}from"./provider-catalog-D8G66gwc.js";import{r as z}from"./useBaseUiId-CHqXB2UQ.js";import{t as B}from"./utils-Eg7xtNmV.js";import{t as V}from"./createLucideIcon-DwxZHm0M.js";import{t as H}from"./bot-Bs7QWJ2q.js";import{t as ne}from"./loader-circle-DjfHXUPB.js";import{n as re,r as ie,t as ae}from"./shield-check-CkA2viVW.js";import{t as oe}from"./plug-Dt6VN0zF.js";import{t as U}from"./sparkles-DuclzqlE.js";var W=e(t(),1),se=f();function ce(e,t){return t!=null&&!A(t)?0:typeof e==`function`?e():e}function G(e,t,n){let r=ce(e,n);return typeof r==`number`?r:r?.[t]}function le(e){return typeof e==`function`?e():e}function ue(e,t){return t||e===`click`||e===`mousedown`}function de(e){return e?.includes(`mouse`)&&e!==`mousedown`}function fe(e){let t=W.useCallback(t=>e===void 0?v:e.subscribeStore(t),[e]),n=W.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,se.useSyncExternalStore)(t,n,()=>e?.serverStore)}var pe=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new c,this.restTimeout=new c,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},K=new WeakMap;function q(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&K.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),K.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function me(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=K.get(n);a&&a!==e&&q(a),q(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,K.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function he(e){let t=e.context.dataRef.current,n=x(()=>t.hoverInteractionState??pe.create()).current;return t.hoverInteractionState||=n,_(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function ge(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:c}=t,d=`rootStore`in e?e.rootStore:e,f=d.useState(`open`),p=d.useState(`floatingElement`),_=d.useState(`domReferenceElement`),{dataRef:v}=d.context,x=N(),w=I(),E=he(d),D=i(),O=y(()=>ue(v.current.openEvent?.type,E.interactedInside)),k=y(()=>de(v.current.openEvent?.type)),A=y(()=>{q(E)});S(()=>{f||(E.pointerType=void 0,E.restTimeoutPending=!1,E.interactedInside=!1,A())},[f,E,A]),W.useEffect(()=>A,[A]),S(()=>{if(n&&f&&E.handleCloseOptions?.blockPointerEvents&&k()&&h(_)&&p){let e=_,t=p,n=u(p),r=x?.nodesRef.current.find(e=>e.id===w)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=E.pointerEventsScopeElement===t?null:E.pointerEventsScopeElement,a=r===t?null:r,o=E.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return me(E,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{A()}}},[n,f,_,p,E,k,x,w,A]),W.useEffect(()=>{if(!n)return;function e(){return!!(x&&w&&T(x.nodesRef.current,w).length>0)}function t(e){let t=G(r,`close`,E.pointerType),n=()=>{d.setOpen(!1,C(b,e)),x?.events.emit(`floating.closed`,e)};t?E.openChangeTimeout.start(t,n):(E.openChangeTimeout.clear(),n())}function i(e){let t=l(e);if(!s(t)){E.interactedInside=!1;return}E.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function u(){E.openChangeTimeout.clear(),D.clear(),x?.events.off(`floating.closed`,_),A()}function f(n){if(e()&&x){x.events.on(`floating.closed`,_);return}if(o(n.relatedTarget,d.context.triggerElements))return;let r=v.current.floatingContext?.nodeId??c,i=n.relatedTarget;if(!(x&&r&&h(i)&&T(x.nodesRef.current,r,!1).some(e=>a(e.context?.elements.floating,i)))){if(E.handler){E.handler(n);return}A(),k()&&!O()&&t(n)}}function _(t){!x||!w||e()||D.start(0,()=>{x.events.off(`floating.closed`,_),d.setOpen(!1,C(b,t)),x.events.emit(`floating.closed`,t)})}let y=p;return m(y&&g(y,`mouseenter`,u),y&&g(y,`mouseleave`,f),y&&g(y,`pointerdown`,i,!0),()=>{x?.events.off(`floating.closed`,_)})},[n,p,d,v,r,c,k,O,A,E,x,w,D])}var _e=e(n(),1),ve={current:null};function ye(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:s=!1,restMs:c=0,move:d=!0,triggerElementRef:f=ve,externalTree:p,isActiveTrigger:_=!0,getHandleCloseContext:v,isClosing:x,shouldOpen:S,guardStaleOpen:w=!1}=t,T=`rootStore`in e?e.rootStore:e,{dataRef:E,events:D}=T.context,O=N(p),k=he(T),j=W.useRef(!1),M=z(i),P=z(r),F=z(c),I=z(n),ee=z(S),te=z(x),L=y(()=>ue(E.current.openEvent?.type,k.interactedInside)),R=y(()=>ee.current?.()!==!1),B=y((e,t,n)=>{let r=T.context.triggerElements;if(r.hasElement(t))return!e||!a(e,t);if(!h(n))return!1;let i=n;return r.hasMatchingElement(e=>a(e,i))&&(!e||!a(e,i))}),V=y(()=>{k.handler&&=(u(T.select(`domReferenceElement`)).removeEventListener(`mousemove`,k.handler),void 0)}),H=y(()=>{q(k)});return _&&(k.handleCloseOptions=M.current?.__options),W.useEffect(()=>V,[V]),W.useEffect(()=>{if(!n)return;function e(e){e.open?j.current=!1:(j.current=e.reason===b,V(),k.openChangeTimeout.clear(),k.restTimeout.clear(),k.blockMouseMove=!0,k.restTimeoutPending=!1)}return D.on(`openchange`,e),()=>{D.off(`openchange`,e)}},[n,D,k,V]),W.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=G(P.current,`close`,k.pointerType);n?k.openChangeTimeout.start(n,()=>{T.setOpen(!1,C(b,e)),O?.events.emit(`floating.closed`,e)}):t&&(k.openChangeTimeout.clear(),T.setOpen(!1,C(b,e)),O?.events.emit(`floating.closed`,e))}let t=f.current??(_?T.select(`domReferenceElement`):null);if(!h(t))return;function r(e){if(k.openChangeTimeout.clear(),k.blockMouseMove=!1,s&&!A(k.pointerType))return;let t=le(F.current),n=G(P.current,`open`,k.pointerType),r=l(e),i=e.currentTarget??null,o=T.select(`domReferenceElement`),c=i;if(h(r)&&!T.context.triggerElements.hasElement(r)){for(let e of T.context.triggerElements.elements())if(a(e,r)){c=e;break}}h(i)&&h(o)&&!T.context.triggerElements.hasElement(i)&&a(i,o)&&(c=o);let u=c!=null&&B(o,c,r),d=T.select(`open`),f=te.current?.()??T.select(`transitionStatus`)===`ending`,p=!d&&f&&j.current,m=!u&&h(c)&&h(o)&&a(o,c)&&p,g=t>0&&!n,_=u&&(d||p)||m,v=!d||u;if(_){R()&&T.setOpen(!0,C(b,e,c));return}g||(n?k.openChangeTimeout.start(n,()=>{v&&R()&&T.setOpen(!0,C(b,e,c))}):v&&R()&&T.setOpen(!0,C(b,e,c)))}function i(t){if(L()){H();return}V();let n=T.select(`domReferenceElement`),r=u(n);k.restTimeout.clear(),k.restTimeoutPending=!1;let i=E.current.floatingContext??v?.();if(!o(t.relatedTarget,T.context.triggerElements)){if(M.current&&i){T.select(`open`)||k.openChangeTimeout.clear();let n=f.current;k.handler=M.current({...i,tree:O,x:t.clientX,y:t.clientY,onClose(){H(),V(),I.current&&!L()&&n===T.select(`domReferenceElement`)&&e(t,!0)}}),r.addEventListener(`mousemove`,k.handler),k.handler(t);return}(k.pointerType!==`touch`||!a(T.select(`floatingElement`),t.relatedTarget))&&e(t)}}function c(e){a(t,e.relatedTarget)||(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1)}let p=w?g(t,`mouseout`,c):void 0;return d?m(g(t,`mousemove`,r,{once:!0}),g(t,`mouseenter`,r),g(t,`mouseleave`,i),p):m(g(t,`mouseenter`,r),g(t,`mouseleave`,i),p)},[V,H,E,P,T,n,M,k,_,B,L,s,d,F,f,O,I,v,te,R,w]),W.useMemo(()=>{if(!n)return;function e(e){k.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=T.select(`domReferenceElement`),i=T.select(`open`),a=B(r,n,e.target);if(s&&!A(k.pointerType))return;if(i&&a&&k.handleCloseOptions?.blockPointerEvents){let e=T.select(`floatingElement`);if(e){let t=k.handleCloseOptions?.getScope?.()??n.ownerDocument.body;me(k,{scopeElement:t,referenceElement:n,floatingElement:e})}}let o=le(F.current);if(i&&!a||o===0||!a&&k.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;k.restTimeout.clear();function c(){if(k.restTimeoutPending=!1,L())return;let e=T.select(`open`);!k.blockMouseMove&&(!e||a)&&R()&&T.setOpen(!0,C(b,t,n))}k.pointerType===`touch`?_e.flushSync(()=>{c()}):a&&i?c():(k.restTimeoutPending=!0,k.restTimeout.start(o,c))}}},[n,k,L,B,s,T,F,R])}var be=.1,xe=be*be,J=.5;function Y(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function X(e,t,n,r,i,a,o,s,c,l){let u=!1;return Y(e,t,n,r,i,a)&&(u=!u),Y(e,t,i,a,o,s)&&(u=!u),Y(e,t,o,s,c,l)&&(u=!u),Y(e,t,c,l,n,r)&&(u=!u),u}function Se(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Z(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Ce(e={}){let{blockPointerEvents:t=!1}=e,n=new c,r=({x:e,y:t,placement:r,elements:i,onClose:o,nodeId:s,tree:c})=>{let u=r?.split(`-`)[0],d=!1,f=null,p=null,m=typeof performance<`u`?performance.now():0;function g(e,t){let n=performance.now(),r=n-m;if(f===null||p===null||r===0)return f=e,p=t,m=n,!1;let i=e-f,a=t-p,o=i*i+a*a,s=r*r*xe;return f=e,p=t,m=n,o<s}function _(){n.clear(),o()}return function(r){n.clear();let o=i.domReference,f=i.floating;if(!o||!f||u==null||e==null||t==null)return;let{clientX:p,clientY:m}=r,v=l(r),y=r.type===`mouseleave`,b=a(f,v),x=a(o,v);if(b&&(d=!0,!y))return;if(x&&(d=!1,!y)){d=!0;return}if(y&&h(r.relatedTarget)&&a(f,r.relatedTarget))return;function S(){return!!(c&&T(c.nodesRef.current,s).length>0)}function C(){S()||_()}if(S())return;let w=o.getBoundingClientRect(),E=f.getBoundingClientRect(),D=e>E.right-E.width/2,O=t>E.bottom-E.height/2,k=E.width>w.width,A=E.height>w.height,j=(k?w:E).left,M=(k?w:E).right,N=(A?w:E).top,P=(A?w:E).bottom;if(u===`top`&&t>=w.bottom-1||u===`bottom`&&t<=w.top+1||u===`left`&&e>=w.right-1||u===`right`&&e<=w.left+1){C();return}let F=!1;switch(u){case`top`:F=Z(p,m,j,w.top+1,M,E.bottom-1);break;case`bottom`:F=Z(p,m,j,E.top+1,M,w.bottom-1);break;case`left`:F=Z(p,m,E.right-1,P,w.left+1,N);break;case`right`:F=Z(p,m,w.right-1,P,E.left+1,N)}if(F)return;if(d&&!Se(p,m,w)){C();return}if(!y&&g(p,m)){C();return}let I=!1;switch(u){case`top`:{let n=k?J/2:J*4,r=k||D?e+n:e-n,i=k?e-n:D?e+n:e-n,a=t+J+1,o=D||k?E.bottom-J:E.top,s=D?k?E.bottom-J:E.top:E.bottom-J;I=X(p,m,r,a,i,a,E.left,o,E.right,s);break}case`bottom`:{let n=k?J/2:J*4,r=k||D?e+n:e-n,i=k?e-n:D?e+n:e-n,a=t-J,o=D||k?E.top+J:E.bottom,s=D?k?E.top+J:E.bottom:E.top+J;I=X(p,m,r,a,i,a,E.left,o,E.right,s);break}case`left`:{let n=A?J/2:J*4,r=A||O?t+n:t-n,i=A?t-n:O?t+n:t-n,a=e+J+1,o=O||A?E.right-J:E.left,s=O?A?E.right-J:E.left:E.right-J;I=X(p,m,o,E.top,s,E.bottom,a,r,a,i);break}case`right`:{let n=A?J/2:J*4,r=A||O?t+n:t-n,i=A?t-n:O?t+n:t-n,a=e-J,o=O||A?E.left+J:E.right,s=O?A?E.left+J:E.right:E.left+J;I=X(p,m,a,r,a,i,o,E.top,s,E.bottom);break}}I?d||n.start(40,C):C()}};return r.__options={...e,blockPointerEvents:t},r}var we=V(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),Te=V(`brain`,[[`path`,{d:`M12 18V5`,key:`adv99a`}],[`path`,{d:`M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4`,key:`1e3is1`}],[`path`,{d:`M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5`,key:`1gqd8o`}],[`path`,{d:`M17.997 5.125a4 4 0 0 1 2.526 5.77`,key:`iwvgf7`}],[`path`,{d:`M18 18a4 4 0 0 0 2-7.464`,key:`efp6ie`}],[`path`,{d:`M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517`,key:`1gq6am`}],[`path`,{d:`M6 18a4 4 0 0 1-2-7.464`,key:`k1g0md`}],[`path`,{d:`M6.003 5.125a4 4 0 0 0-2.526 5.77`,key:`q97ue3`}]]),Ee=V(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),De=V(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Oe=V(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),ke=V(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Ae=V(`wind`,[[`path`,{d:`M12.8 19.6A2 2 0 1 0 14 16H2`,key:`148xed`}],[`path`,{d:`M17.5 8a2.5 2.5 0 1 1 2 4H2`,key:`1u4tom`}],[`path`,{d:`M9.8 4.4A2 2 0 1 1 11 8H2`,key:`75valh`}]]),je=V(`zap`,[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]),Me=`h-8 shrink-0 cursor-pointer rounded-full border-border/45 bg-background/65 px-3 text-[0.6875rem] font-semibold text-foreground/75 shadow-sm transition-[background-color,border-color,box-shadow,opacity,transform] duration-150 hover:bg-foreground/5 active:scale-[0.96] disabled:opacity-50`,Ne=`relative after:absolute after:top-1/2 after:left-1/2 after:size-10 after:-translate-x-1/2 after:-translate-y-1/2`,Pe=`relative after:absolute after:inset-x-0 after:-top-1.5 after:-bottom-1.5`,Fe=`relative inline-flex h-9 items-center gap-1.5 rounded-[10px] border border-border/70 px-3 text-label font-medium whitespace-nowrap shadow-sm backdrop-blur transition-colors`,Ie=`bg-sidebar text-foreground/55 hover:bg-background hover:text-foreground/75`,Le=`bg-background text-foreground/75`;`${Ie}`,`${Le}`;var Re=`relative z-10 overflow-visible`,ze=`h-full min-h-0 w-[min(360px,calc(100vw-1.5rem))] overflow-hidden rounded-md border border-border/70 bg-background/95 shadow-lg backdrop-blur`,Be=d(`flex min-w-0 rounded-[4px] border`,{variants:{tone:{default:`border-border/30 bg-background/30`,muted:`border-border/20 bg-foreground/1.5`,inset:`border-border/60 bg-foreground/2`,dashed:`border-dashed border-border/25 bg-background/10`},padding:{sm:`p-2`,md:`px-2.5 py-2`,lg:`p-2.5`},interactive:{true:`transition-[border-color,background-color,box-shadow] duration-200 hover:border-border/45 hover:bg-foreground/2 hover:shadow-sm`,lift:`transition-[border-color,background-color,box-shadow,transform] duration-200 hover:-translate-y-px hover:border-border/45 hover:bg-foreground/3.5 hover:shadow-sm`,false:``}},defaultVariants:{tone:`default`,padding:`sm`,interactive:!1}}),Q=r();function Ve({className:e,...t}){return(0,Q.jsx)(ne,{"data-slot":`spinner`,role:`status`,"aria-label":`Loading`,className:B(`size-4 animate-spin`,e),...t})}function He(e){return j(`alert-dialog`,e)}var Ue=4;function We({...e}){return(0,Q.jsx)(He,{"data-slot":`alert-dialog`,...e})}function Ge({...e}){return(0,Q.jsx)(ee,{"data-slot":`alert-dialog-portal`,...e})}function Ke({className:e,...t}){return(0,Q.jsx)(M,{"data-slot":`alert-dialog-backdrop`,className:B(`fixed inset-0 isolate z-[60] bg-black/10 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function qe({className:e,children:t,...n}){let r=O(),i=Math.min(r+Ue,8);return(0,Q.jsxs)(Ge,{children:[(0,Q.jsx)(Ke,{}),(0,Q.jsx)(E,{"data-slot":`alert-dialog-content`,className:B(`fixed top-1/2 left-1/2 z-[60] grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-6 text-sm text-popover-foreground outline-none sm:max-w-md data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,w(i),e),...n,children:(0,Q.jsx)(k,{value:i,children:t})})]})}function Je({className:e,...t}){return(0,Q.jsx)(F,{"data-slot":`alert-dialog-title`,className:B(`font-heading text-base leading-none font-medium`,e),...t})}function Ye({className:e,...t}){return(0,Q.jsx)(D,{"data-slot":`alert-dialog-description`,className:B(`text-sm text-pretty text-muted-foreground`,e),...t})}function Xe({className:e,...t}){return(0,Q.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:B(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function Ze({...e}){return(0,Q.jsx)(P,{"data-slot":`alert-dialog-cancel`,render:(0,Q.jsx)(p,{variant:`outline`}),...e})}function Qe({...e}){return(0,Q.jsx)(P,{"data-slot":`alert-dialog-action`,render:(0,Q.jsx)(p,{variant:`destructive`}),...e})}var $e={"amazon-bedrock":{icon:De,placeholder:`AKIA... (AWS access key id)`,help:`Amazon Bedrock uses standard AWS credentials (AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY) plus AWS_REGION. This field sets AWS_ACCESS_KEY_ID in .env.local.`},openai:{icon:U,placeholder:`sk-proj-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENAI_API_KEY environment variable.`},"openai-chat-completions":{icon:U,placeholder:`sk-... or nvapi-...`,help:`OpenAI-compatible Chat Completions root (e.g. https://opencode.ai/zen/v1). Paste …/chat/completions if you want — it is normalized. Requires API key, base URL, and model name.`},"openai-chat-completions-model":{icon:U,placeholder:`meta/llama-3.1-70b-instruct`,help:`Gateway model name registered when /models is empty or incomplete.`},anthropic:{icon:H,placeholder:`sk-ant-...`,help:`Stored securely in your root .env.local file. Overrides the active ANTHROPIC_API_KEY environment variable.`},"google-vertex":{icon:ae,placeholder:`Path to service account JSON, or credentials text...`,help:`Stored securely in your root .env.local file. Overrides the active GOOGLE_APPLICATION_CREDENTIALS environment variable.`},google:{icon:Te,placeholder:`AIzaSy...`,help:`Stored securely in your root .env.local file. Overrides the active GEMINI_API_KEY environment variable.`},mistral:{icon:Ae,placeholder:`Your Mistral API key...`,help:`Stored securely in your root .env.local file. Overrides the active MISTRAL_API_KEY environment variable.`},groq:{icon:je,placeholder:`gsk_...`,help:`Stored securely in your root .env.local file. Overrides the active GROQ_API_KEY environment variable.`},openrouter:{icon:re,placeholder:`sk-or-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENROUTER_API_KEY environment variable.`},"vercel-ai-gateway":{icon:ie,placeholder:`Your AI Gateway API key...`,help:`Stored securely in your root .env.local file. Overrides the active AI_GATEWAY_API_KEY environment variable.`},"github-copilot":{icon:H,placeholder:`OAuth subscription`,help:`GitHub Copilot uses device-code OAuth. Sign in from Settings; credentials are stored in auth.json.`},"openai-codex":{icon:U,placeholder:`OAuth subscription`,help:`OpenAI Codex uses ChatGPT OAuth. Sign in from Settings; credentials are stored in auth.json.`},ollama:{icon:Ee,placeholder:`http://localhost:11434 (default)`,help:`Configure local Ollama execution endpoints. Overrides the active OLLAMA_BASE_URL environment variable.`},custom:{icon:oe,placeholder:`sk-... / provider key`,help:`Register any OpenAI-, Anthropic-, or Google-compatible endpoint through Pi's native custom-provider mechanism. Requires a name, API key, https base URL, API family, and at least one model id. Deployed accounts only.`}},$=`size-4`;function et({className:e}){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,className:B($,e),fill:`currentColor`,"aria-hidden":!0,children:(0,Q.jsx)(`path`,{d:`M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.771.771 0 0 0 .78 0l5.843-3.368v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646zM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.676l5.814 3.354-2.02 1.168a.076.076 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855l-5.833-3.387L15.119 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.079.079 0 0 0-.041-.067zm2.01-3.023l-.141-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zM8.306 12.683l-2.02-1.163a.08.08 0 0 1-.038-.057V6.074a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.795.795 0 0 0-.392.681zm1.098-2.016l2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5z`})})}function tt({className:e}){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,className:B($,e),fill:`currentColor`,"aria-hidden":!0,children:(0,Q.jsx)(`path`,{d:`M17.305 14.256h-3.778l-2.28-7.23h-.005l-2.32 7.23H5.145L9.93 3h4.14l4.235 11.256zm-8.48 2.37h6.37l1.16 3.374h3.465L14.18 3h-4.36L4.15 20h3.465l1.21-3.374z`})})}function nt({className:e}){return(0,Q.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:B($,e),fill:`currentColor`,"aria-hidden":!0,children:[(0,Q.jsx)(`path`,{d:`M21.6 12.23c0-.71-.06-1.4-.18-2.05H12v3.87h5.38a4.6 4.6 0 0 1-2 3.02v2.5h3.24c1.89-1.74 2.98-4.3 2.98-7.34z`}),(0,Q.jsx)(`path`,{d:`M12 22c2.7 0 4.96-.89 6.61-2.42l-3.24-2.5c-.9.6-2.04.96-3.37.96-2.59 0-4.78-1.75-5.56-4.1H3.1v2.58A9.99 9.99 0 0 0 12 22z`}),(0,Q.jsx)(`path`,{d:`M6.44 13.94A5.99 5.99 0 0 1 6.12 12c0-.67.12-1.33.32-1.94V7.48H3.1A9.99 9.99 0 0 0 2 12c0 1.61.39 3.14 1.1 4.52l3.34-2.58z`}),(0,Q.jsx)(`path`,{d:`M12 5.96c1.47 0 2.79.5 3.82 1.5l2.87-2.87C16.95 2.99 14.7 2 12 2A9.99 9.99 0 0 0 3.1 7.48l3.34 2.58C7.22 7.71 9.41 5.96 12 5.96z`})]})}function rt({className:e}){return(0,Q.jsx)(`svg`,{viewBox:`0 0 24 24`,className:B($,e),fill:`currentColor`,"aria-hidden":!0,children:(0,Q.jsx)(`path`,{d:`M12 .3a12 12 0 0 0-3.8 23.4c.6.1.8-.3.8-.6v-2.2c-3.3.7-4-1.4-4-1.4-.5-1.4-1.3-1.8-1.3-1.8-1.1-.7.1-.7.1-.7 1.2.1 1.8 1.2 1.8 1.2 1.1 1.8 2.8 1.3 3.5 1 .1-.8.4-1.3.8-1.6-2.7-.3-5.5-1.3-5.5-6 0-1.3.5-2.4 1.2-3.2-.1-.3-.5-1.5.1-3.2 0 0 1-.3 3.3 1.2a11.5 11.5 0 0 1 6 0c2.3-1.5 3.3-1.2 3.3-1.2.6 1.7.2 2.9.1 3.2.8.8 1.2 1.9 1.2 3.2 0 4.6-2.9 5.6-5.5 5.9.4.4.8 1.1.8 2.2v3.3c0 .3.2.7.8.6A12 12 0 0 0 12 .3z`})})}function it({provider:e,api:t,className:n}){let r=e.toLowerCase();if(L(r)||r===`custom`)return t===`anthropic-messages`?(0,Q.jsx)(tt,{className:n}):t===`google-genai`?(0,Q.jsx)(nt,{className:n}):(0,Q.jsx)(et,{className:n});if(r===`openai`||r===`openai-codex`||te(r))return(0,Q.jsx)(et,{className:n});if(r===`anthropic`)return(0,Q.jsx)(tt,{className:n});if(r===`google`||r===`google-vertex`)return(0,Q.jsx)(nt,{className:n});if(r===`github-copilot`||r===`github`)return(0,Q.jsx)(rt,{className:n});let i=e in $e?$e[e].icon:Ee;return(0,Q.jsx)(i,{className:B($,n),"aria-hidden":!0})}function at(e){return R.find(t=>t.id===e)?.name??e}export{G as A,Ee as C,ge as D,ye as E,he as O,Oe as S,Ce as T,Ne as _,Qe as a,Be as b,Ye as c,Ve as d,Re as f,Me as g,Ie as h,We as i,fe as k,Xe as l,Fe as m,it as n,Ze as o,Le as p,$e as r,qe as s,at as t,Je as u,Pe as v,we as w,ke as x,ze as y};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/artifacts-panel-CQmFEF_H.js","assets/rolldown-runtime-hePW80VL.js","assets/bundle-mjs-DKHVkVWu.js","assets/jsx-runtime-NZYk81nU.js","assets/button-BR2WWrFo.js","assets/react-dom-Bwxum3ti.js","assets/createBaseUIEventDetails-DV0dQrBX.js","assets/utils-Eg7xtNmV.js","assets/createLucideIcon-DwxZHm0M.js","assets/tool-result-DfnPN0FQ.js","assets/ease-u56MhKYS.js","assets/layout-gyLzPvVv.js","assets/use-reduced-motion-eORd7fqW.js","assets/check-JjHKAZas.js","assets/chevron-down-BEVGmnSb.js","assets/loader-circle-DjfHXUPB.js","assets/circle-x-CkKCB__4.js","assets/action-swap-roll-BB8DFMuf.js","assets/rotate-ccw-WNFNkKQD.js","assets/square-terminal-BYTN_I86.js","assets/wrench-BJNNe07k.js","assets/preload-helper-Czpn1I53.js","assets/agent-disclosure-B8SnhQXL.js","assets/chevron-right-DrJxToLs.js","assets/package-CdcJFPf2.js","assets/openui-renderer-J3dhPpL4.js","assets/dialog-BEZuZhzk.js","assets/useBaseUiId-CHqXB2UQ.js","assets/x-CsRC_tCI.js","assets/provider-catalog-D8G66gwc.js","assets/useControlled-CJJ9BOQB.js","assets/input-0wwjWjKq.js","assets/chevron-up-CnSvySGH.js","assets/card-BKl76a3R.js","assets/chunk-YOKDWASO-BAf618wr.js","assets/lib-ChrQ49PO.js","assets/character-entities-legacy-Wut6vMuj.js","assets/openui-utils-DawGoQNp.js","assets/safe-external-url-D3PJJIcM.js","assets/chat-yh02zgA7.js","assets/switch-9rTeg6J6.js","assets/markdown-DInPmRUG.js","assets/cn-C8c0S2mI.js","assets/dist-BPaFisIZ.js","assets/collapsible-BoXtZZWN.js","assets/prime-agent-artifacts-C-g1VPiW.js","assets/artifacts-utils-N_kUFbz2.js","assets/resources-panel-D867-goy.js","assets/resource-helpers-Q2T0YCMO.js","assets/file-text-T-NcAlZs.js","assets/plug-Dt6VN0zF.js","assets/circle-alert-CONlFReH.js","assets/skeleton-loaders-C9vHwAYV.js","assets/skeleton-CkR2VmWc.js","assets/session-insights-panel-YnaXvTpi.js","assets/repl-panel-DsPX04Xr.js","assets/ipython-tool-ldJ9F1Cw.js","assets/triangle-alert-CU-gd7ui.js","assets/subagents-panel-BMp2Ego0.js","assets/bot-Bs7QWJ2q.js","assets/subagent-utils-DDH5qm9Z.js","assets/subagent-transcript-D8wmQxXe.js","assets/citations-C_tPOJE_.js","assets/earth-DGZXAN5r.js","assets/shield-check-CkA2viVW.js","assets/virtualized-turn-list-DMJENRY0.js","assets/image-BbPmlw-n.js","assets/notify-DgMKgZZW.js","assets/toast-Bt9p2OL4.js","assets/fleet-pi-tool-renderer-BEDIO3al.js","assets/eye-B0DFz5hL.js","assets/search-eWVnAJsb.js","assets/sparkles-DuclzqlE.js","assets/terminal-DOS1s1gm.js","assets/dist-CZDnnosQ.js","assets/workspace-path-nav-C0AQNZyy.js","assets/surfaces-DI-U-_2a.js","assets/range-BWOHiLNe.js","assets/fleet-tool-timeline-C8heL7ae.js","assets/refresh-cw-IThTJ3j-.js","assets/fleet-subagent-list-iKUtLJKZ.js","assets/workspace-panel-G6yMpKJ8.js","assets/horizontal-resize-qK6eRhIG.js","assets/safe-storage-s25GrfpH.js","assets/folder-BC5p7qK7.js","assets/hard-drive-CHqgr7VQ.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./bundle-mjs-DKHVkVWu.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./createLucideIcon-DwxZHm0M.js";import{t as i}from"./bot-Bs7QWJ2q.js";import{t as a}from"./folder-BC5p7qK7.js";import{t as o}from"./package-CdcJFPf2.js";import{t as s}from"./square-terminal-BYTN_I86.js";import{t as c}from"./preload-helper-Czpn1I53.js";import{i as l,n as u}from"./right-panel-context-DHlNWJsF.js";import{t as d}from"./skeleton-CkR2VmWc.js";var f=r(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),p=r(`library`,[[`path`,{d:`m16 6 4 14`,key:`ji33uf`}],[`path`,{d:`M12 6v14`,key:`1n7gus`}],[`path`,{d:`M8 8v12`,key:`1gg7y9`}],[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),m=e(t(),1),h=n(),g=(0,m.lazy)(()=>c(async()=>{let{ArtifactsPanelContent:e}=await import(`./artifacts-panel-CQmFEF_H.js`);return{ArtifactsPanelContent:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])).then(({ArtifactsPanelContent:e})=>({default:e}))),_=(0,m.lazy)(()=>c(async()=>{let{ResourcesPanelContent:e}=await import(`./resources-panel-D867-goy.js`);return{ResourcesPanelContent:e}},__vite__mapDeps([47,3,1,48,8,2,49,24,50,51,52,53,7])).then(({ResourcesPanelContent:e})=>({default:e}))),v=(0,m.lazy)(()=>c(async()=>{let{SessionInsightsPanel:e}=await import(`./session-insights-panel-YnaXvTpi.js`);return{SessionInsightsPanel:e}},__vite__mapDeps([54,3,1])).then(({SessionInsightsPanel:e})=>({default:e}))),y=(0,m.lazy)(()=>c(async()=>{let{ReplPanelContent:e}=await import(`./repl-panel-DsPX04Xr.js`);return{ReplPanelContent:e}},__vite__mapDeps([55,1,2,3,56,7,8,42,19,57])).then(({ReplPanelContent:e})=>({default:e}))),b=(0,m.lazy)(()=>c(async()=>{let{SubagentsPanelContent:e}=await import(`./subagents-panel-BMp2Ego0.js`);return{SubagentsPanelContent:e}},__vite__mapDeps([58,1,2,3,4,5,6,7,59,8,23,60,51,15,16,61,62,10,11,12,14,63,64,21,22,38,65,13,17,49,66,28,42,67,68,57,37,69,9,18,19,20,32,56,70,71,72,73,74,35,36,75,44,27,30,76,77,78,79,80,45])).then(({SubagentsPanelContent:e})=>({default:e}))),x=(0,m.lazy)(()=>c(async()=>{let{WorkspacePanelContent:e}=await import(`./workspace-panel-G6yMpKJ8.js`);return{WorkspacePanelContent:e}},__vite__mapDeps([81,1,2,3,10,11,12,7,48,8,49,24,50,23,51,82,83,84,85,75,41,21,34,5,35,42,52,53])).then(({WorkspacePanelContent:e})=>({default:e})));function S(){return(0,h.jsxs)(`div`,{className:`flex min-h-32 flex-col gap-3 p-4`,"aria-label":`Loading panel`,children:[(0,h.jsx)(d,{className:`h-5 w-32`}),(0,h.jsx)(d,{className:`h-20 w-full`})]})}function C(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(v,{activityLabel:e.activityLabel,artifactRuns:e.artifactRuns,chatMode:e.chatMode,messages:e.messages,planLabel:e.planLabel,presentation:e.presentation,queue:e.queue,selectedModelKey:e.selectedModelKey,sessionId:e.sessionId,status:e.status,thinkingLevel:e.thinkingLevel})})}function w(){let e=u(),t=l();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(_,{error:e.resourcesError,loading:e.resourcesLoading,resources:e.resources,workspace:t.workspaceTree})})}function T(){let e=l();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(x,{error:e.workspaceError,loadWorkspaceFile:e.loadWorkspaceFile,loading:e.workspaceLoading,onSelectedPathChange:e.setSelectedWorkspacePath,selectedPath:e.selectedWorkspacePath,workspace:e.workspaceTree})})}function E(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(g,{artifactRuns:e.artifactRuns,messages:e.messages,onOpenUIAction:e.onOpenUIAction,selectedArtifactId:e.selectedArtifactId,status:e.status})})}function D(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(y,{artifactRuns:e.artifactRuns,selectedArtifactId:e.selectedArtifactId,kernelDiagnostics:e.presentation.kernelDiagnostics})})}function O(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(b,{agents:e.presentation.rlmChildren,loadSession:e.loadSubagentSession,onOpenTab:e.onOpenSubagentTab,parentSessionId:e.sessionId,tree:e.presentation.rlmTree})})}var k={resources:{id:`resources`,order:0,title:`Resources`,ariaLabel:`Resources`,commandLabel:`Open Resources`,commandKeywords:[`resources`,`skills`,`panels`],icon:p,dataTestid:`pi-resources-canvas`,mobileDataTestid:`pi-resources-mobile-panel`,showInLauncher:!0,badgeSource:`resources`,loadingSource:`resources`,refreshSource:`resources`,component:w},workspace:{id:`workspace`,order:1,title:`Workspace`,ariaLabel:`Workspace`,commandLabel:`Open Workspace`,commandKeywords:[`workspace`,`files`,`panels`],icon:a,dataTestid:`pi-workspace-canvas`,mobileDataTestid:`pi-workspace-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:`workspace`,refreshSource:`workspace`,component:T},artifacts:{id:`artifacts`,order:2,title:`Artifacts`,ariaLabel:`Artifacts`,commandLabel:`Open Artifacts`,commandKeywords:[`artifacts`,`reports`,`datasets`,`panels`],icon:o,dataTestid:`pi-artifacts-canvas`,mobileDataTestid:`pi-artifacts-mobile-panel`,showInLauncher:!0,badgeSource:`artifacts`,loadingSource:void 0,refreshSource:void 0,component:E},repl:{id:`repl`,order:3,title:`REPL`,ariaLabel:`REPL runs`,commandLabel:`Open REPL`,commandKeywords:[`repl`,`ipython`,`python`,`cells`,`panels`],icon:s,dataTestid:`pi-repl-canvas`,mobileDataTestid:`pi-repl-mobile-panel`,showInLauncher:!0,badgeSource:`repl`,loadingSource:void 0,refreshSource:void 0,component:D},subagents:{id:`subagents`,order:4,title:`Subagents`,ariaLabel:`Subagents`,commandLabel:`Open Subagents`,commandKeywords:[`subagents`,`agents`,`threads`,`delegation`,`panels`],icon:i,dataTestid:`pi-subagents-canvas`,mobileDataTestid:`pi-subagents-mobile-panel`,showInLauncher:!1,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:O},"session-insights":{id:`session-insights`,order:5,title:`Session insights`,ariaLabel:`Session insights`,commandLabel:`Open Session Insights`,commandKeywords:[`session`,`insights`,`activity`,`panels`],icon:f,dataTestid:`pi-session-insights-canvas`,mobileDataTestid:`pi-session-insights-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:C}},A=Object.values(k).sort((e,t)=>e.order-t.order).filter(e=>e.showInLauncher!==!1);function j(e){return k[e]}export{j as n,p as r,A as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/artifacts-panel-CJ75gQub.js","assets/rolldown-runtime-hePW80VL.js","assets/bundle-mjs-DKHVkVWu.js","assets/jsx-runtime-NZYk81nU.js","assets/button-BR2WWrFo.js","assets/react-dom-Bwxum3ti.js","assets/createBaseUIEventDetails-DV0dQrBX.js","assets/utils-Eg7xtNmV.js","assets/createLucideIcon-DwxZHm0M.js","assets/tool-result-DfnPN0FQ.js","assets/ease-u56MhKYS.js","assets/layout-gyLzPvVv.js","assets/use-reduced-motion-eORd7fqW.js","assets/check-JjHKAZas.js","assets/chevron-down-BEVGmnSb.js","assets/loader-circle-DjfHXUPB.js","assets/circle-x-CkKCB__4.js","assets/action-swap-roll-BB8DFMuf.js","assets/rotate-ccw-WNFNkKQD.js","assets/square-terminal-BYTN_I86.js","assets/wrench-BJNNe07k.js","assets/preload-helper-Czpn1I53.js","assets/agent-disclosure-B8SnhQXL.js","assets/chevron-right-DrJxToLs.js","assets/package-CdcJFPf2.js","assets/openui-renderer-Bf60nxNi.js","assets/dialog-BEZuZhzk.js","assets/useBaseUiId-CHqXB2UQ.js","assets/x-CsRC_tCI.js","assets/provider-catalog-D8G66gwc.js","assets/useControlled-CJJ9BOQB.js","assets/input-0wwjWjKq.js","assets/chevron-up-CnSvySGH.js","assets/card-BKl76a3R.js","assets/chunk-YOKDWASO-BAf618wr.js","assets/lib-ChrQ49PO.js","assets/character-entities-legacy-Wut6vMuj.js","assets/openui-utils-DawGoQNp.js","assets/safe-external-url-D3PJJIcM.js","assets/chat-Ci2cEQrR.js","assets/switch-9rTeg6J6.js","assets/markdown-DInPmRUG.js","assets/cn-C8c0S2mI.js","assets/dist-BPaFisIZ.js","assets/collapsible-BoXtZZWN.js","assets/prime-agent-artifacts-C-g1VPiW.js","assets/artifacts-utils-N_kUFbz2.js","assets/resources-panel-D867-goy.js","assets/resource-helpers-Q2T0YCMO.js","assets/file-text-T-NcAlZs.js","assets/plug-Dt6VN0zF.js","assets/circle-alert-CONlFReH.js","assets/skeleton-loaders-C9vHwAYV.js","assets/skeleton-CkR2VmWc.js","assets/session-insights-panel-YnaXvTpi.js","assets/repl-panel-DsPX04Xr.js","assets/ipython-tool-ldJ9F1Cw.js","assets/triangle-alert-CU-gd7ui.js","assets/subagents-panel-CjXEdimj.js","assets/bot-Bs7QWJ2q.js","assets/subagent-utils-DDH5qm9Z.js","assets/subagent-transcript-CnI-mqN0.js","assets/citations-C_tPOJE_.js","assets/earth-DGZXAN5r.js","assets/shield-check-CkA2viVW.js","assets/virtualized-turn-list--Vynre4D.js","assets/image-BbPmlw-n.js","assets/notify-DgMKgZZW.js","assets/toast-Bt9p2OL4.js","assets/fleet-pi-tool-renderer-BEDIO3al.js","assets/eye-B0DFz5hL.js","assets/search-eWVnAJsb.js","assets/sparkles-DuclzqlE.js","assets/terminal-DOS1s1gm.js","assets/dist-CZDnnosQ.js","assets/workspace-path-nav-C0AQNZyy.js","assets/surfaces-DI-U-_2a.js","assets/range-BWOHiLNe.js","assets/fleet-tool-timeline-C8heL7ae.js","assets/refresh-cw-IThTJ3j-.js","assets/fleet-subagent-list-iKUtLJKZ.js","assets/workspace-panel-CPPIznT9.js","assets/horizontal-resize-CwoDojST.js","assets/safe-storage-s25GrfpH.js","assets/folder-BC5p7qK7.js","assets/hard-drive-CHqgr7VQ.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t}from"./bundle-mjs-DKHVkVWu.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./createLucideIcon-DwxZHm0M.js";import{t as i}from"./bot-Bs7QWJ2q.js";import{t as a}from"./folder-BC5p7qK7.js";import{t as o}from"./package-CdcJFPf2.js";import{t as s}from"./square-terminal-BYTN_I86.js";import{t as c}from"./preload-helper-Czpn1I53.js";import{i as l,n as u}from"./right-panel-context-DHlNWJsF.js";import{t as d}from"./skeleton-CkR2VmWc.js";var f=r(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),p=r(`library`,[[`path`,{d:`m16 6 4 14`,key:`ji33uf`}],[`path`,{d:`M12 6v14`,key:`1n7gus`}],[`path`,{d:`M8 8v12`,key:`1gg7y9`}],[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),m=e(t(),1),h=n(),g=(0,m.lazy)(()=>c(async()=>{let{ArtifactsPanelContent:e}=await import(`./artifacts-panel-CJ75gQub.js`);return{ArtifactsPanelContent:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46])).then(({ArtifactsPanelContent:e})=>({default:e}))),_=(0,m.lazy)(()=>c(async()=>{let{ResourcesPanelContent:e}=await import(`./resources-panel-D867-goy.js`);return{ResourcesPanelContent:e}},__vite__mapDeps([47,3,1,48,8,2,49,24,50,51,52,53,7])).then(({ResourcesPanelContent:e})=>({default:e}))),v=(0,m.lazy)(()=>c(async()=>{let{SessionInsightsPanel:e}=await import(`./session-insights-panel-YnaXvTpi.js`);return{SessionInsightsPanel:e}},__vite__mapDeps([54,3,1])).then(({SessionInsightsPanel:e})=>({default:e}))),y=(0,m.lazy)(()=>c(async()=>{let{ReplPanelContent:e}=await import(`./repl-panel-DsPX04Xr.js`);return{ReplPanelContent:e}},__vite__mapDeps([55,1,2,3,56,7,8,42,19,57])).then(({ReplPanelContent:e})=>({default:e}))),b=(0,m.lazy)(()=>c(async()=>{let{SubagentsPanelContent:e}=await import(`./subagents-panel-CjXEdimj.js`);return{SubagentsPanelContent:e}},__vite__mapDeps([58,1,2,3,4,5,6,7,59,8,23,60,51,15,16,61,62,10,11,12,14,63,64,21,22,38,65,13,17,49,66,28,42,67,68,57,37,69,9,18,19,20,32,56,70,71,72,73,74,35,36,75,44,27,30,76,77,78,79,80,45])).then(({SubagentsPanelContent:e})=>({default:e}))),x=(0,m.lazy)(()=>c(async()=>{let{WorkspacePanelContent:e}=await import(`./workspace-panel-CPPIznT9.js`);return{WorkspacePanelContent:e}},__vite__mapDeps([81,1,2,3,10,11,12,7,48,8,49,24,50,23,51,82,83,84,85,75,41,21,34,5,35,42,52,53])).then(({WorkspacePanelContent:e})=>({default:e})));function S(){return(0,h.jsxs)(`div`,{className:`flex min-h-32 flex-col gap-3 p-4`,"aria-label":`Loading panel`,children:[(0,h.jsx)(d,{className:`h-5 w-32`}),(0,h.jsx)(d,{className:`h-20 w-full`})]})}function C(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(v,{activityLabel:e.activityLabel,artifactRuns:e.artifactRuns,chatMode:e.chatMode,messages:e.messages,planLabel:e.planLabel,presentation:e.presentation,queue:e.queue,selectedModelKey:e.selectedModelKey,sessionId:e.sessionId,status:e.status,thinkingLevel:e.thinkingLevel})})}function w(){let e=u(),t=l();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(_,{error:e.resourcesError,loading:e.resourcesLoading,resources:e.resources,workspace:t.workspaceTree})})}function T(){let e=l();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(x,{error:e.workspaceError,loadWorkspaceFile:e.loadWorkspaceFile,loading:e.workspaceLoading,onSelectedPathChange:e.setSelectedWorkspacePath,selectedPath:e.selectedWorkspacePath,workspace:e.workspaceTree})})}function E(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(g,{artifactRuns:e.artifactRuns,messages:e.messages,onOpenUIAction:e.onOpenUIAction,selectedArtifactId:e.selectedArtifactId,status:e.status})})}function D(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(y,{artifactRuns:e.artifactRuns,selectedArtifactId:e.selectedArtifactId,kernelDiagnostics:e.presentation.kernelDiagnostics})})}function O(){let e=u();return(0,h.jsx)(m.Suspense,{fallback:(0,h.jsx)(S,{}),children:(0,h.jsx)(b,{agents:e.presentation.rlmChildren,loadSession:e.loadSubagentSession,onOpenTab:e.onOpenSubagentTab,parentSessionId:e.sessionId,tree:e.presentation.rlmTree})})}var k={resources:{id:`resources`,order:0,title:`Resources`,ariaLabel:`Resources`,commandLabel:`Open Resources`,commandKeywords:[`resources`,`skills`,`panels`],icon:p,dataTestid:`pi-resources-canvas`,mobileDataTestid:`pi-resources-mobile-panel`,showInLauncher:!0,badgeSource:`resources`,loadingSource:`resources`,refreshSource:`resources`,component:w},workspace:{id:`workspace`,order:1,title:`Workspace`,ariaLabel:`Workspace`,commandLabel:`Open Workspace`,commandKeywords:[`workspace`,`files`,`panels`],icon:a,dataTestid:`pi-workspace-canvas`,mobileDataTestid:`pi-workspace-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:`workspace`,refreshSource:`workspace`,component:T},artifacts:{id:`artifacts`,order:2,title:`Artifacts`,ariaLabel:`Artifacts`,commandLabel:`Open Artifacts`,commandKeywords:[`artifacts`,`reports`,`datasets`,`panels`],icon:o,dataTestid:`pi-artifacts-canvas`,mobileDataTestid:`pi-artifacts-mobile-panel`,showInLauncher:!0,badgeSource:`artifacts`,loadingSource:void 0,refreshSource:void 0,component:E},repl:{id:`repl`,order:3,title:`REPL`,ariaLabel:`REPL runs`,commandLabel:`Open REPL`,commandKeywords:[`repl`,`ipython`,`python`,`cells`,`panels`],icon:s,dataTestid:`pi-repl-canvas`,mobileDataTestid:`pi-repl-mobile-panel`,showInLauncher:!0,badgeSource:`repl`,loadingSource:void 0,refreshSource:void 0,component:D},subagents:{id:`subagents`,order:4,title:`Subagents`,ariaLabel:`Subagents`,commandLabel:`Open Subagents`,commandKeywords:[`subagents`,`agents`,`threads`,`delegation`,`panels`],icon:i,dataTestid:`pi-subagents-canvas`,mobileDataTestid:`pi-subagents-mobile-panel`,showInLauncher:!1,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:O},"session-insights":{id:`session-insights`,order:5,title:`Session insights`,ariaLabel:`Session insights`,commandLabel:`Open Session Insights`,commandKeywords:[`session`,`insights`,`activity`,`panels`],icon:f,dataTestid:`pi-session-insights-canvas`,mobileDataTestid:`pi-session-insights-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:C}},A=Object.values(k).sort((e,t)=>e.order-t.order).filter(e=>e.showInLauncher!==!1);function j(e){return k[e]}export{j as n,p as r,A as t};