@qredence/fleet 0.6.6 → 0.7.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 (87) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/web/client/assets/{action-swap-roll-Dbquwd1Y.js → action-swap-roll-BfVrBOVd.js} +1 -1
  3. package/dist/web/client/assets/{alert-dialog-C6Dkg1x6.js → alert-dialog-FCppNafx.js} +1 -1
  4. package/dist/web/client/assets/{artifacts-panel-8a_tn7Yb.js → artifacts-panel-Qd6JlHzz.js} +1 -1
  5. package/dist/web/client/assets/button-BJyg7l5W.js +1 -0
  6. package/dist/web/client/assets/{chat-command-palette-DhidLnw7.js → chat-command-palette-CPlJp2cO.js} +1 -1
  7. package/dist/web/client/assets/{citations-BYiDBo21.js → citations-BhyqbxcZ.js} +1 -1
  8. package/dist/web/client/assets/{command-Cre9BsOI.js → command-Bo31U-UD.js} +1 -1
  9. package/dist/web/client/assets/create-project-dialog-SDyXTpl-.js +1 -0
  10. package/dist/web/client/assets/{dialog-0KDCsqw0.js → dialog-DLIPvl1s.js} +1 -1
  11. package/dist/web/client/assets/ease-DKi-MOH5.js +1 -0
  12. package/dist/web/client/assets/{fork-picker-dialog-BPSqUjKu.js → fork-picker-dialog-BDleMADF.js} +1 -1
  13. package/dist/web/client/assets/globals-DZbMyHfg.css +2 -0
  14. package/dist/web/client/assets/index-D3HpiAnD.js +12 -0
  15. package/dist/web/client/assets/input-Ce8yLnXY.js +1 -0
  16. package/dist/web/client/assets/{input-group-Fky3fte_.js → input-group-BZLQiZOA.js} +1 -1
  17. package/dist/web/client/assets/is-ref-object-BD8OGh9C.js +1 -0
  18. package/dist/web/client/assets/{layout-constants-CC0ANQOP.js → layout-constants-Bl6XCvhY.js} +1 -1
  19. package/dist/web/client/assets/{message-queue-BUJK6bPQ.js → message-queue-CiptKSb6.js} +1 -1
  20. package/dist/web/client/assets/{model-selector-list-yOj8BeKr.js → model-selector-list-BHQ-Q8b9.js} +1 -1
  21. package/dist/web/client/assets/{notify-GSsGEKtR.js → notify-BC0a76VJ.js} +1 -1
  22. package/dist/web/client/assets/{openui-renderer-xe2-ekvP.js → openui-renderer-CH9K7_8t.js} +3 -3
  23. package/dist/web/client/assets/{prompt-input-BhVQxoyh.js → prompt-input-IwZOepG7.js} +1 -1
  24. package/dist/web/client/assets/{provider-label-BW_awXvw.js → provider-label-DNZOLldn.js} +1 -1
  25. package/dist/web/client/assets/{right-panel-registry-BpfG1iZV.js → right-panel-registry-BJG8ubHt.js} +2 -2
  26. package/dist/web/client/assets/routes-BXFQmjL9.js +16 -0
  27. package/dist/web/client/assets/select-COK0Kaq2.js +1 -0
  28. package/dist/web/client/assets/{session-tool-renderer-CNcxpGsk.js → session-tool-renderer-mOZdkbiU.js} +1 -1
  29. package/dist/web/client/assets/{session-tree-panel-BIEUJ1Zs.js → session-tree-panel-deGRKAhX.js} +1 -1
  30. package/dist/web/client/assets/settings-dialog-BU1Tw0CQ.js +2 -0
  31. package/dist/web/client/assets/{subagent-chat-panel-DA1GvHt8.js → subagent-chat-panel-DQEnhU2t.js} +1 -1
  32. package/dist/web/client/assets/{subagent-transcript-BGctBTbY.js → subagent-transcript-CCpg3uL6.js} +1 -1
  33. package/dist/web/client/assets/{subagent-utils-HbymlalM.js → subagent-utils-DTV2RcFl.js} +2 -2
  34. package/dist/web/client/assets/{subagents-panel-BJIdWRcV.js → subagents-panel-B-X7WPUU.js} +1 -1
  35. package/dist/web/client/assets/surface-context-DWplCCcO.js +1 -0
  36. package/dist/web/client/assets/{switch-DIbInrPR.js → switch-DQETDDJT.js} +1 -1
  37. package/dist/web/client/assets/toast-BFeqSeaR.js +1 -0
  38. package/dist/web/client/assets/{tool-result-PSnAt_3f.js → tool-result-C5Ixe-AJ.js} +1 -1
  39. package/dist/web/client/assets/{use-presence-D2YmRKr3.js → use-presence-rcUnm8Z7.js} +1 -1
  40. package/dist/web/client/assets/use-reduced-motion-BgG7f9xw.js +9 -0
  41. package/dist/web/client/assets/{workspace-panel-D3CMFw8W.js → workspace-panel-DDjQuELx.js} +1 -1
  42. package/dist/web/client/bundle-budget.json +5 -5
  43. package/dist/web/server/{_tanstack-start-manifest_v-MhCuqEzO-S6MEB7L5.js → _tanstack-start-manifest_v-vL58CVrY-7SDCWIHD.js} +23 -23
  44. package/dist/web/server/{artifacts-panel-BVfcZuA2-PB4RCSHV.js → artifacts-panel-CozDO7ak-5T4W7RME.js} +9 -9
  45. package/dist/web/server/{chat-command-palette-DlJDToBH-MVI6V743.js → chat-command-palette-CLE-L0qp-ZZNKVTSS.js} +5 -5
  46. package/dist/web/server/{chunk-MM4HQ5EO.js → chunk-54UEKLGD.js} +7 -7
  47. package/dist/web/server/{chunk-3VMFSSWK.js → chunk-B4EBMF5J.js} +2 -2
  48. package/dist/web/server/{chunk-RQHQK66C.js → chunk-D7GSWBRI.js} +2 -2
  49. package/dist/web/server/{chunk-JT53AAM5.js → chunk-E4YWFQX5.js} +1442 -1063
  50. package/dist/web/server/{chunk-VF3NJAD6.js → chunk-EUWNVEIC.js} +497 -556
  51. package/dist/web/server/{chunk-KUBURZOL.js → chunk-GRGV5FVO.js} +4 -4
  52. package/dist/web/server/{chunk-4QFOBBX5.js → chunk-NHV77NOI.js} +2 -2
  53. package/dist/web/server/{chunk-RWQWBZNI.js → chunk-QCDSLD3L.js} +6 -6
  54. package/dist/web/server/{chunk-MSXGQVHG.js → chunk-RVDWGK6U.js} +5 -5
  55. package/dist/web/server/{chunk-SAIH5YPC.js → chunk-RYU7I34A.js} +4 -4
  56. package/dist/web/server/{chunk-WBPESYPV.js → chunk-SLRV7YNY.js} +3 -3
  57. package/dist/web/server/{chunk-44MTKAFZ.js → chunk-XJHYJLGU.js} +4 -4
  58. package/dist/web/server/{create-project-dialog-UPz5_Ysf-FS6BL74M.js → create-project-dialog-CReZdM5g-2V7C5J67.js} +75 -14
  59. package/dist/web/server/{fork-picker-dialog-CZBpezXS-64KP23PO.js → fork-picker-dialog-CXcLEaor-6SVM5RJO.js} +3 -3
  60. package/dist/web/server/{message-queue-D_Q3coUY-I3EJZXWR.js → message-queue-Q_Q6hbqc-AOV2PSCX.js} +3 -3
  61. package/dist/web/server/{model-selector-list-q6WkkOwQ-OT46QU5P.js → model-selector-list-BOKU5_Z3-III72ZT2.js} +5 -5
  62. package/dist/web/server/{openui-renderer-BqI6m6VI-HXEIYIYZ.js → openui-renderer-VuQOQeAP-XBOR3XGN.js} +5 -5
  63. package/dist/web/server/{resources-panel-BKZ0M0RP-CMATPQQP.js → resources-panel-Cnz-X1bx-TT5KVROR.js} +4 -4
  64. package/dist/web/server/{router-BfuEp_JW-DNQ33L5J.js → router-C437aaqv-72HBLLJI.js} +2 -2
  65. package/dist/web/server/{routes-NdG3DsXJ-QKZT7TKM.js → routes-BkVN3m9i-PYNMNLQ5.js} +36 -34
  66. package/dist/web/server/server.js +2 -2
  67. package/dist/web/server/{session-reasoning-panel-Dc-AnjdD-7KAZLD74.js → session-reasoning-panel-2_TR5nKM-KA5OY7ZV.js} +4 -4
  68. package/dist/web/server/{session-tool-renderer-DaR8U5rb-TXWACWT7.js → session-tool-renderer-BFEWy2Pk-JTSYUPO5.js} +5 -5
  69. package/dist/web/server/{session-tree-panel-V3l8WdmE-YBRDLHWU.js → session-tree-panel-3y9LVA0A-4V4TJX62.js} +5 -5
  70. package/dist/web/server/{settings-dialog-C8U1VX75-6A2V6HSW.js → settings-dialog-DgZ8Z5e4-6T5AS2EB.js} +190 -119
  71. package/dist/web/server/{subagent-chat-panel-B9CtFTP5-6QDZ4RQY.js → subagent-chat-panel-B0pmAxCp-DKXNAOUU.js} +7 -7
  72. package/dist/web/server/{subagents-panel-Dw6yP5X4-BMN45GDD.js → subagents-panel-FUUT0t1i-5ZKJ2QAJ.js} +8 -8
  73. package/dist/web/server/{workspace-panel-C246J-eO-2WGJWVE6.js → workspace-panel-BbI1N4f8-WYOEVH4G.js} +4 -4
  74. package/package.json +1 -1
  75. package/dist/web/client/assets/button-BrwYi6QP.js +0 -1
  76. package/dist/web/client/assets/create-project-dialog-DVOaxTzt.js +0 -1
  77. package/dist/web/client/assets/ease-2UPBQU5v.js +0 -1
  78. package/dist/web/client/assets/globals-CD6JXJJh.css +0 -2
  79. package/dist/web/client/assets/index-BEG-7vN-.js +0 -12
  80. package/dist/web/client/assets/input-tWLSIxES.js +0 -1
  81. package/dist/web/client/assets/is-ref-object-CEXqIz6L.js +0 -1
  82. package/dist/web/client/assets/routes-BIp_deev.js +0 -16
  83. package/dist/web/client/assets/select-Buvrx1fi.js +0 -1
  84. package/dist/web/client/assets/settings-dialog-DAB6RL4u.js +0 -2
  85. package/dist/web/client/assets/surface-context-A-BjVzO_.js +0 -1
  86. package/dist/web/client/assets/toast-CS0pnDlS.js +0 -1
  87. package/dist/web/client/assets/use-reduced-motion-CaQBb3Qc.js +0 -9
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./button-BrwYi6QP.js";import{t as i}from"./utils-Dpy9ZFOr.js";import{c as a,d as o}from"./ease-2UPBQU5v.js";import{n as s,t as c}from"./use-reduced-motion-CaQBb3Qc.js";import{t as l}from"./arrow-up-DCwrqIrK.js";import{t as u}from"./square-BbTF3gLc.js";var d=e(t(),1),f=`px-2 text-sm leading-6 whitespace-pre-wrap [overflow-wrap:break-word]`,p=`text-transparent`,m=`text-foreground/55`,h={focused:!1,composing:!1,caretStart:null,caretEnd:null};function g(e,t){return e.focused===t.focused&&e.composing===t.composing&&e.caretStart===t.caretStart&&e.caretEnd===t.caretEnd}function _(e){let{completion:t,value:n,editing:r}=e;if(!t||t.forValue!==n)return null;let i=t.text;return i.length===0||i.trim().length===0||t.mode!==`replace`&&n.endsWith(i)||n.length===0||e.streaming||e.disabled||e.triggerOpen||e.dismissed&&e.dismissed.forValue===n&&e.dismissed.text===i||!r.focused||r.composing||r.caretStart===null||r.caretEnd===null||r.caretStart!==r.caretEnd||r.caretStart!==n.length?null:{text:i,mode:t.mode}}function v(e,t,n=`append`){return n===`replace`?t:`${e}${t}`}function y(e,t){if(t)return t.mode===`append`||/\s$/.test(e)?t.text:` ${t.text}`}var b=n();function x({value:e,defaultValue:t=``,onValueChange:n,onSubmit:h,loading:g=!1,submitWhileLoading:_=!1,onStop:v,minRows:y=2,maxRows:x=8,leadingAction:S,className:C,disabled:w,placeholder:T=`Ask the agent to do something…`,"aria-label":E=`Prompt`,"aria-describedby":D,onKeyDown:O,onScroll:k,ghostText:A,onTextareaRef:j,...M}){let N=c()??!1,P=(0,d.useRef)(null),F=(0,d.useRef)(null),I=(0,d.useRef)(null),L=(0,d.useId)(),R=(0,d.useId)(),[z,B]=(0,d.useState)(void 0),[V,H]=(0,d.useState)(t),U=e??V,W=!!U.trim()&&!w&&(!g||_),G=!!w||g&&!_,K=[L,R,D].filter(Boolean).join(` `),q=(0,d.useCallback)(()=>{let e=P.current,t=I.current;t&&e&&(t.scrollTop=e.scrollTop,B(t=>t===e.clientWidth?t:e.clientWidth))},[]);(0,d.useLayoutEffect)(()=>{q()},[q,A,U]);let J=(0,d.useCallback)(()=>{let e=P.current,t=F.current;if(!e||!t||e.value!==U)return;let n=`${Math.min(Math.max(t.scrollHeight,y*24),x*24)}px`;e.style.height!==n&&(e.style.height=n)},[U,x,y]);(0,d.useLayoutEffect)(()=>{J()},[J]);let Y=(0,d.useRef)(J);(0,d.useEffect)(()=>{Y.current=J}),(0,d.useEffect)(()=>{let e=P.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>{Y.current(),q()});return t.observe(e),()=>t.disconnect()},[q]),(0,d.useEffect)(()=>(j?.(P.current),()=>j?.(null)),[j]);let X=t=>{e===void 0&&H(t),n?.(t)},Z=t=>{t?.preventDefault();let n=U.trim();!n||w||g&&!_||(h?.(n),e===void 0&&H(``),P.current?.focus({preventScroll:!0}))},Q=e=>{O?.(e),!(e.defaultPrevented||e.key!==`Enter`||e.shiftKey||e.nativeEvent.isComposing)&&(e.preventDefault(),Z())};return(0,b.jsxs)(`form`,{"aria-label":`Message composer`,onSubmit:Z,className:i(`relative w-full rounded-chat-input border border-border/70 bg-sidebar p-2 text-[color:var(--foreground)] shadow-sm transition-[border-color,box-shadow] focus-within:border-chat-input-focus-outline/45 focus-within:ring-2 focus-within:ring-chat-input-focus-outline/25`,w&&`opacity-60`,C),children:[(0,b.jsx)(`div`,{ref:F,"data-slot":`composer-measure`,"aria-hidden":`true`,className:i(`pointer-events-none invisible absolute inset-x-2 top-0`,f),children:`${U}\u200b`}),(0,b.jsx)(`p`,{id:L,className:`sr-only`,children:`Enter to send. Shift+Enter for a new line. Tab accepts an inline suggestion or menu item. Escape dismisses suggestions.`}),(0,b.jsx)(`p`,{id:R,className:`sr-only`,"aria-live":`polite`,children:A?`Suggestion available. Press Tab to accept.`:``}),(0,b.jsxs)(`div`,{className:`relative`,children:[A?(0,b.jsx)(`div`,{"data-slot":`composer-ghost-layer`,"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 select-none overflow-hidden`,children:(0,b.jsxs)(`div`,{ref:I,"data-slot":`composer-ghost-mirror`,className:i(`h-full overflow-hidden pt-1.5`,f,p),style:z===void 0?void 0:{width:`${z}px`},children:[U,(0,b.jsx)(`span`,{"data-slot":`composer-ghost`,className:m,children:A})]})}):null,(0,b.jsx)(`textarea`,{ref:P,value:U,disabled:w,placeholder:T,"aria-label":E,"aria-describedby":K,autoComplete:`off`,rows:y,...M,onChange:e=>X(e.target.value),onKeyDown:Q,onScroll:e=>{k?.(e),q()},className:i(`block w-full resize-none overflow-y-auto bg-transparent pt-1.5 text-foreground outline-none placeholder:text-foreground/70`,f)})]}),(0,b.jsxs)(`div`,{className:`mt-1 flex min-h-8 items-center gap-1.5`,children:[S?(0,b.jsx)(`div`,{role:`group`,"aria-label":`Composer options`,className:`flex min-w-0 items-center gap-1.5`,children:S}):null,g&&v?(0,b.jsx)(r,{type:`button`,size:`icon`,"aria-label":`Stop generating`,onClick:v,className:`ms-auto size-8 rounded-full`,children:(0,b.jsx)(u,{"aria-hidden":`true`,className:`size-3 fill-current`})}):null,!g||W||_?(0,b.jsx)(r,{type:`submit`,size:`icon`,disabled:G||!U.trim(),"aria-label":g?`Send follow-up`:`Send prompt`,className:i(`size-8 rounded-full`,!g&&`ms-auto`,W&&`border-transparent bg-chat-input-accent text-white hover:bg-chat-input-accent/90 focus-visible:border-chat-input-accent focus-visible:ring-chat-input-accent/40`),children:(0,b.jsx)(s,{initial:!1,mode:`popLayout`,children:(0,b.jsx)(o.span,{initial:N?{opacity:1}:{opacity:0,y:3,scale:.8},animate:{opacity:1,y:0,scale:1},exit:N?{opacity:0}:{opacity:0,y:-3,scale:.8},transition:N?{duration:0}:a,className:`grid place-items-center`,children:(0,b.jsx)(l,{"aria-hidden":`true`,className:`size-4`})},`send`)})}):null]})]})}export{g as a,_ as i,h as n,v as o,y as r,x as t};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./button-BJyg7l5W.js";import{t as i}from"./utils-Dpy9ZFOr.js";import{c as a,d as o}from"./ease-DKi-MOH5.js";import{n as s,t as c}from"./use-reduced-motion-BgG7f9xw.js";import{t as l}from"./arrow-up-DCwrqIrK.js";import{t as u}from"./square-BbTF3gLc.js";var d=e(t(),1),f=`px-2 text-sm leading-6 whitespace-pre-wrap [overflow-wrap:break-word]`,p=`text-transparent`,m=`text-foreground/55`,h={focused:!1,composing:!1,caretStart:null,caretEnd:null};function g(e,t){return e.focused===t.focused&&e.composing===t.composing&&e.caretStart===t.caretStart&&e.caretEnd===t.caretEnd}function _(e){let{completion:t,value:n,editing:r}=e;if(!t||t.forValue!==n)return null;let i=t.text;return i.length===0||i.trim().length===0||t.mode!==`replace`&&n.endsWith(i)||n.length===0||e.streaming||e.disabled||e.triggerOpen||e.dismissed&&e.dismissed.forValue===n&&e.dismissed.text===i||!r.focused||r.composing||r.caretStart===null||r.caretEnd===null||r.caretStart!==r.caretEnd||r.caretStart!==n.length?null:{text:i,mode:t.mode}}function v(e,t,n=`append`){return n===`replace`?t:`${e}${t}`}function y(e,t){if(t)return t.mode===`append`||/\s$/.test(e)?t.text:` ${t.text}`}var b=n();function x({value:e,defaultValue:t=``,onValueChange:n,onSubmit:h,loading:g=!1,submitWhileLoading:_=!1,onStop:v,minRows:y=2,maxRows:x=8,leadingAction:S,className:C,disabled:w,placeholder:T=`Ask the agent to do something…`,"aria-label":E=`Prompt`,"aria-describedby":D,onKeyDown:O,onScroll:k,ghostText:A,onTextareaRef:j,...M}){let N=c()??!1,P=(0,d.useRef)(null),F=(0,d.useRef)(null),I=(0,d.useRef)(null),L=(0,d.useId)(),R=(0,d.useId)(),[z,B]=(0,d.useState)(void 0),[V,H]=(0,d.useState)(t),U=e??V,W=!!U.trim()&&!w&&(!g||_),G=!!w||g&&!_,K=[L,R,D].filter(Boolean).join(` `),q=(0,d.useCallback)(()=>{let e=P.current,t=I.current;t&&e&&(t.scrollTop=e.scrollTop,B(t=>t===e.clientWidth?t:e.clientWidth))},[]);(0,d.useLayoutEffect)(()=>{q()},[q,A,U]);let J=(0,d.useCallback)(()=>{let e=P.current,t=F.current;if(!e||!t||e.value!==U)return;let n=`${Math.min(Math.max(t.scrollHeight,y*24),x*24)}px`;e.style.height!==n&&(e.style.height=n)},[U,x,y]);(0,d.useLayoutEffect)(()=>{J()},[J]);let Y=(0,d.useRef)(J);(0,d.useEffect)(()=>{Y.current=J}),(0,d.useEffect)(()=>{let e=P.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>{Y.current(),q()});return t.observe(e),()=>t.disconnect()},[q]),(0,d.useEffect)(()=>(j?.(P.current),()=>j?.(null)),[j]);let X=t=>{e===void 0&&H(t),n?.(t)},Z=t=>{t?.preventDefault();let n=U.trim();!n||w||g&&!_||(h?.(n),e===void 0&&H(``),P.current?.focus({preventScroll:!0}))},Q=e=>{O?.(e),!(e.defaultPrevented||e.key!==`Enter`||e.shiftKey||e.nativeEvent.isComposing)&&(e.preventDefault(),Z())};return(0,b.jsxs)(`form`,{"aria-label":`Message composer`,onSubmit:Z,className:i(`relative w-full rounded-chat-input border border-border/70 bg-sidebar p-2 text-[color:var(--foreground)] shadow-sm transition-[border-color,box-shadow] focus-within:border-chat-input-focus-outline/45 focus-within:ring-2 focus-within:ring-chat-input-focus-outline/25`,w&&`opacity-60`,C),children:[(0,b.jsx)(`div`,{ref:F,"data-slot":`composer-measure`,"aria-hidden":`true`,className:i(`pointer-events-none invisible absolute inset-x-2 top-0`,f),children:`${U}\u200b`}),(0,b.jsx)(`p`,{id:L,className:`sr-only`,children:`Enter to send. Shift+Enter for a new line. Tab accepts an inline suggestion or menu item. Escape dismisses suggestions.`}),(0,b.jsx)(`p`,{id:R,className:`sr-only`,"aria-live":`polite`,children:A?`Suggestion available. Press Tab to accept.`:``}),(0,b.jsxs)(`div`,{className:`relative`,children:[A?(0,b.jsx)(`div`,{"data-slot":`composer-ghost-layer`,"aria-hidden":`true`,className:`pointer-events-none absolute inset-0 select-none overflow-hidden`,children:(0,b.jsxs)(`div`,{ref:I,"data-slot":`composer-ghost-mirror`,className:i(`h-full overflow-hidden pt-1.5`,f,p),style:z===void 0?void 0:{width:`${z}px`},children:[U,(0,b.jsx)(`span`,{"data-slot":`composer-ghost`,className:m,children:A})]})}):null,(0,b.jsx)(`textarea`,{ref:P,value:U,disabled:w,placeholder:T,"aria-label":E,"aria-describedby":K,autoComplete:`off`,rows:y,...M,onChange:e=>X(e.target.value),onKeyDown:Q,onScroll:e=>{k?.(e),q()},className:i(`block w-full resize-none overflow-y-auto bg-transparent pt-1.5 text-foreground outline-none placeholder:text-foreground/70`,f)})]}),(0,b.jsxs)(`div`,{className:`mt-1 flex min-h-8 items-center gap-1.5`,children:[S?(0,b.jsx)(`div`,{role:`group`,"aria-label":`Composer options`,className:`flex min-w-0 items-center gap-1.5`,children:S}):null,g&&v?(0,b.jsx)(r,{type:`button`,size:`icon`,"aria-label":`Stop generating`,onClick:v,className:`ms-auto size-8 rounded-full`,children:(0,b.jsx)(u,{"aria-hidden":`true`,className:`size-3 fill-current`})}):null,!g||W||_?(0,b.jsx)(r,{type:`submit`,size:`icon`,disabled:G||!U.trim(),"aria-label":g?`Send follow-up`:`Send prompt`,className:i(`size-8 rounded-full`,!g&&`ms-auto`,W&&`border-transparent bg-chat-input-accent text-white hover:bg-chat-input-accent/90 focus-visible:border-chat-input-accent focus-visible:ring-chat-input-accent/40`),children:(0,b.jsx)(s,{initial:!1,mode:`popLayout`,children:(0,b.jsx)(o.span,{initial:N?{opacity:1}:{opacity:0,y:3,scale:.8},animate:{opacity:1,y:0,scale:1},exit:N?{opacity:0}:{opacity:0,y:-3,scale:.8},transition:N?{duration:0}:a,className:`grid place-items-center`,children:(0,b.jsx)(l,{"aria-hidden":`true`,className:`size-4`})},`send`)})}):null]})]})}export{g as a,_ as i,h as n,v as o,y as r,x as t};
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./utils-Dpy9ZFOr.js";import{g as n,m as r,v as i}from"./select-Buvrx1fi.js";import{t as a}from"./createLucideIcon-CQY2ECfR.js";import{t as o}from"./bot-DETalD3q.js";import{n as s,r as c,t as l}from"./sparkles-C4VQyMox.js";import{t as u}from"./git-branch-DZEh2mM2.js";import{t as d}from"./plug-wCz-036u.js";var f={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};f.node;var p=a(f),m={name:`brain`,size:24,node:[[`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`}]]};m.node;var h=a(m),g={name:`cpu`,size:24,node:[[`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`}]]};g.node;var _=a(g),v={name:`server`,size:24,node:[[`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`}]]};v.node;var y=a(v),b={name:`settings`,size:24,node:[[`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`}]]};b.node;var x=a(b),S={name:`trash`,size:24,node:[[`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`}]],aliases:[`trash-2`]};S.node;var C=a(S),w={name:`wind`,size:24,node:[[`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`}]]};w.node;var T=a(w),E={name:`zap`,size:24,node:[[`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`}]]};E.node;var D=a(E),O={"amazon-bedrock":{icon:y,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:l,placeholder:`sk-proj-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENAI_API_KEY environment variable.`},"openai-chat-completions":{icon:l,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:l,placeholder:`meta/llama-3.1-70b-instruct`,help:`Gateway model name registered when /models is empty or incomplete.`},anthropic:{icon:o,placeholder:`sk-ant-...`,help:`Stored securely in your root .env.local file. Overrides the active ANTHROPIC_API_KEY environment variable.`},"google-vertex":{icon:s,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:h,placeholder:`AIzaSy...`,help:`Stored securely in your root .env.local file. Overrides the active GEMINI_API_KEY environment variable.`},mistral:{icon:T,placeholder:`Your Mistral API key...`,help:`Stored securely in your root .env.local file. Overrides the active MISTRAL_API_KEY environment variable.`},groq:{icon:D,placeholder:`gsk_...`,help:`Stored securely in your root .env.local file. Overrides the active GROQ_API_KEY environment variable.`},openrouter:{icon:c,placeholder:`sk-or-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENROUTER_API_KEY environment variable.`},"vercel-ai-gateway":{icon:u,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:o,placeholder:`OAuth subscription`,help:`GitHub Copilot uses device-code OAuth. Sign in from Settings; credentials are stored in auth.json.`},"openai-codex":{icon:l,placeholder:`OAuth subscription`,help:`OpenAI Codex uses ChatGPT OAuth. Sign in from Settings; credentials are stored in auth.json.`},ollama:{icon:_,placeholder:`http://localhost:11434 (default)`,help:`Configure local Ollama execution endpoints. Overrides the active OLLAMA_BASE_URL environment variable.`},custom:{icon:d,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.`}},k=e(),A=`size-4`;function j({className:e}){return(0,k.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:(0,k.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 M({className:e}){return(0,k.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:(0,k.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 N({className:e}){return(0,k.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:[(0,k.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,k.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,k.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,k.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 P({className:e}){return(0,k.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:(0,k.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 F({provider:e,api:r,className:a}){let o=e.toLowerCase();if(n(o)||o===`custom`)return r===`anthropic-messages`?(0,k.jsx)(M,{className:a}):r===`google-genai`?(0,k.jsx)(N,{className:a}):(0,k.jsx)(j,{className:a});if(o===`openai`||o===`openai-codex`||i(o))return(0,k.jsx)(j,{className:a});if(o===`anthropic`)return(0,k.jsx)(M,{className:a});if(o===`google`||o===`google-vertex`)return(0,k.jsx)(N,{className:a});if(o===`github-copilot`||o===`github`)return(0,k.jsx)(P,{className:a});let s=e in O?O[e].icon:_;return(0,k.jsx)(s,{className:t(A,a),"aria-hidden":!0})}function I(e){return r.find(t=>t.id===e)?.name??e}export{x as a,C as i,F as n,_ as o,O as r,p as s,I as t};
1
+ import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./utils-Dpy9ZFOr.js";import{g as n,m as r,v as i}from"./select-COK0Kaq2.js";import{t as a}from"./createLucideIcon-CQY2ECfR.js";import{t as o}from"./bot-DETalD3q.js";import{n as s,r as c,t as l}from"./sparkles-C4VQyMox.js";import{t as u}from"./git-branch-DZEh2mM2.js";import{t as d}from"./plug-wCz-036u.js";var f={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};f.node;var p=a(f),m={name:`brain`,size:24,node:[[`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`}]]};m.node;var h=a(m),g={name:`cpu`,size:24,node:[[`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`}]]};g.node;var _=a(g),v={name:`server`,size:24,node:[[`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`}]]};v.node;var y=a(v),b={name:`settings`,size:24,node:[[`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`}]]};b.node;var x=a(b),S={name:`trash`,size:24,node:[[`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`}]],aliases:[`trash-2`]};S.node;var C=a(S),w={name:`wind`,size:24,node:[[`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`}]]};w.node;var T=a(w),E={name:`zap`,size:24,node:[[`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`}]]};E.node;var D=a(E),O={"amazon-bedrock":{icon:y,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:l,placeholder:`sk-proj-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENAI_API_KEY environment variable.`},"openai-chat-completions":{icon:l,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:l,placeholder:`meta/llama-3.1-70b-instruct`,help:`Gateway model name registered when /models is empty or incomplete.`},anthropic:{icon:o,placeholder:`sk-ant-...`,help:`Stored securely in your root .env.local file. Overrides the active ANTHROPIC_API_KEY environment variable.`},"google-vertex":{icon:s,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:h,placeholder:`AIzaSy...`,help:`Stored securely in your root .env.local file. Overrides the active GEMINI_API_KEY environment variable.`},mistral:{icon:T,placeholder:`Your Mistral API key...`,help:`Stored securely in your root .env.local file. Overrides the active MISTRAL_API_KEY environment variable.`},groq:{icon:D,placeholder:`gsk_...`,help:`Stored securely in your root .env.local file. Overrides the active GROQ_API_KEY environment variable.`},openrouter:{icon:c,placeholder:`sk-or-...`,help:`Stored securely in your root .env.local file. Overrides the active OPENROUTER_API_KEY environment variable.`},"vercel-ai-gateway":{icon:u,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:o,placeholder:`OAuth subscription`,help:`GitHub Copilot uses device-code OAuth. Sign in from Settings; credentials are stored in auth.json.`},"openai-codex":{icon:l,placeholder:`OAuth subscription`,help:`OpenAI Codex uses ChatGPT OAuth. Sign in from Settings; credentials are stored in auth.json.`},ollama:{icon:_,placeholder:`http://localhost:11434 (default)`,help:`Configure local Ollama execution endpoints. Overrides the active OLLAMA_BASE_URL environment variable.`},custom:{icon:d,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.`}},k=e(),A=`size-4`;function j({className:e}){return(0,k.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:(0,k.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 M({className:e}){return(0,k.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:(0,k.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 N({className:e}){return(0,k.jsxs)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:[(0,k.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,k.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,k.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,k.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 P({className:e}){return(0,k.jsx)(`svg`,{viewBox:`0 0 24 24`,className:t(A,e),fill:`currentColor`,"aria-hidden":!0,children:(0,k.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 F({provider:e,api:r,className:a}){let o=e.toLowerCase();if(n(o)||o===`custom`)return r===`anthropic-messages`?(0,k.jsx)(M,{className:a}):r===`google-genai`?(0,k.jsx)(N,{className:a}):(0,k.jsx)(j,{className:a});if(o===`openai`||o===`openai-codex`||i(o))return(0,k.jsx)(j,{className:a});if(o===`anthropic`)return(0,k.jsx)(M,{className:a});if(o===`google`||o===`google-vertex`)return(0,k.jsx)(N,{className:a});if(o===`github-copilot`||o===`github`)return(0,k.jsx)(P,{className:a});let s=e in O?O[e].icon:_;return(0,k.jsx)(s,{className:t(A,a),"aria-hidden":!0})}function I(e){return r.find(t=>t.id===e)?.name??e}export{x as a,C as i,F as n,_ as o,O as r,p as s,I as t};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/artifacts-panel-8a_tn7Yb.js","assets/rolldown-runtime-hePW80VL.js","assets/react-Cvdyeg_0.js","assets/jsx-runtime-NZYk81nU.js","assets/button-BrwYi6QP.js","assets/react-dom-B7th3XGm.js","assets/utils-Dpy9ZFOr.js","assets/createBaseUIEventDetails-DklXWq23.js","assets/dist-BogNzeK9.js","assets/clsx-DB0hHKMi.js","assets/createLucideIcon-CQY2ECfR.js","assets/tool-result-PSnAt_3f.js","assets/ease-2UPBQU5v.js","assets/is-ref-object-CEXqIz6L.js","assets/use-reduced-motion-CaQBb3Qc.js","assets/use-presence-D2YmRKr3.js","assets/check-BTwIaCtI.js","assets/chevron-down-Bse1ggZM.js","assets/circle-check-DBhaebaM.js","assets/action-swap-roll-Dbquwd1Y.js","assets/loader-circle-BmKYM_C4.js","assets/rotate-ccw-DLkfsmG9.js","assets/square-terminal-BLq2bQVF.js","assets/wrench-BYnD147U.js","assets/preload-helper-Czpn1I53.js","assets/chevron-right-BPCB1mOg.js","assets/package-BkC-HSi-.js","assets/openui-renderer-xe2-ekvP.js","assets/card-BScRdZNS.js","assets/select-Buvrx1fi.js","assets/surface-context-A-BjVzO_.js","assets/useBaseUiId-BlzQUkVG.js","assets/input-tWLSIxES.js","assets/useControlled-CkQSkSv1.js","assets/safe-external-url-BnEhm9A0.js","assets/chunk-YOKDWASO-C8deEx7Z.js","assets/lib-ChrQ49PO.js","assets/character-entities-legacy-Wut6vMuj.js","assets/badge-BjFxrtmB.js","assets/dist-BJJVCio8.js","assets/markdown-C-Y9gskI.js","assets/switch-DIbInrPR.js","assets/dialog-0KDCsqw0.js","assets/x-DEU6H3M-.js","assets/openui-utils-DawGoQNp.js","assets/prime-agent-artifacts-C-g1VPiW.js","assets/collapsible-DsbKpD_Y.js","assets/resources-panel-kp_UjnpX.js","assets/resource-helpers-CKbSmzpw.js","assets/file-text-cqOanUYv.js","assets/plug-wCz-036u.js","assets/skeleton-loaders-DOKGa7CW.js","assets/skeleton-D5Y9nBfp.js","assets/session-insights-panel-B0rl37lo.js","assets/repl-panel-UQN9UFG7.js","assets/ipython-tool-CuSGRhXl.js","assets/triangle-alert-BuzmrrqI.js","assets/subagents-panel-BJIdWRcV.js","assets/bot-DETalD3q.js","assets/subagent-utils-HbymlalM.js","assets/citations-BYiDBo21.js","assets/sparkles-C4VQyMox.js","assets/tokens-CtP2s1Y3.js","assets/workspace-path-nav-DmxBrMV6.js","assets/notify-GSsGEKtR.js","assets/toast-CS0pnDlS.js","assets/subagent-transcript-BGctBTbY.js","assets/session-tool-renderer-CNcxpGsk.js","assets/eye-iNSvs0UA.js","assets/git-branch-DZEh2mM2.js","assets/search-Cb6fFWew.js","assets/terminal-Ceucj7us.js","assets/dist-CZDnnosQ.js","assets/range-BWOHiLNe.js","assets/surfaces-BULKVm-B.js","assets/tool-timeline-B4ci1oJg.js","assets/refresh-cw-CqPE3kNY.js","assets/workspace-panel-D3CMFw8W.js","assets/layout-constants-CC0ANQOP.js","assets/safe-storage-s25GrfpH.js","assets/chat-helpers-Bj7_hES7.js","assets/folder-COBtkKZa.js","assets/hard-drive-B3opVeEB.js","assets/session-tree-panel-BIEUJ1Zs.js","assets/alert-dialog-C6Dkg1x6.js"])))=>i.map(i=>d[i]);
2
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./createLucideIcon-CQY2ECfR.js";import{t as i}from"./bot-DETalD3q.js";import{t as a}from"./folder-COBtkKZa.js";import{t as o}from"./git-branch-DZEh2mM2.js";import{t as s}from"./package-BkC-HSi-.js";import{i as c,n as l}from"./right-panel-context-DHKWoetk.js";import{t as u}from"./square-terminal-BLq2bQVF.js";import{t as d}from"./preload-helper-Czpn1I53.js";import{t as f}from"./skeleton-D5Y9nBfp.js";var p={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};p.node;var m=r(p),h={name:`library`,size:24,node:[[`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`}]]};h.node;var g=r(h),_=e(t(),1),v=n(),y=(0,_.lazy)(()=>d(async()=>{let{ArtifactsPanelContent:e}=await import(`./artifacts-panel-8a_tn7Yb.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}))),b=(0,_.lazy)(()=>d(async()=>{let{ResourcesPanelContent:e}=await import(`./resources-panel-kp_UjnpX.js`);return{ResourcesPanelContent:e}},__vite__mapDeps([47,3,1,48,10,2,49,26,50,51,52,6])).then(({ResourcesPanelContent:e})=>({default:e}))),x=(0,_.lazy)(()=>d(async()=>{let{SessionInsightsPanel:e}=await import(`./session-insights-panel-B0rl37lo.js`);return{SessionInsightsPanel:e}},__vite__mapDeps([53,3,1])).then(({SessionInsightsPanel:e})=>({default:e}))),S=(0,_.lazy)(()=>d(async()=>{let{ReplPanelContent:e}=await import(`./repl-panel-UQN9UFG7.js`);return{ReplPanelContent:e}},__vite__mapDeps([54,1,2,3,55,6,10,22,56])).then(({ReplPanelContent:e})=>({default:e}))),C=(0,_.lazy)(()=>d(async()=>{let{SubagentsPanelContent:e}=await import(`./subagents-panel-BJIdWRcV.js`);return{SubagentsPanelContent:e}},__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,58,10,59,12,13,14,15,60,17,34,19,61,16,25,49,18,20,43,24,44,62,63,64,65,56,66,67,11,21,22,23,55,68,69,70,71,72,36,37,46,31,33,73,74,75,76,45])).then(({SubagentsPanelContent:e})=>({default:e}))),w=(0,_.lazy)(()=>d(async()=>{let{WorkspacePanelContent:e}=await import(`./workspace-panel-D3CMFw8W.js`);return{WorkspacePanelContent:e}},__vite__mapDeps([77,1,2,3,6,12,13,14,15,48,10,49,26,50,25,78,79,80,81,82,63,24,51,52])).then(({WorkspacePanelContent:e})=>({default:e}))),T=(0,_.lazy)(()=>d(async()=>{let{SessionTreePanel:e}=await import(`./session-tree-panel-BIEUJ1Zs.js`);return{SessionTreePanel:e}},__vite__mapDeps([83,1,2,3,4,5,6,7,8,9,69,10,84,30,31])).then(({SessionTreePanel:e})=>({default:e})));function E(){return(0,v.jsxs)(`div`,{className:`flex min-h-32 flex-col gap-3 p-4`,"aria-label":`Loading panel`,children:[(0,v.jsx)(f,{className:`h-5 w-32`}),(0,v.jsx)(f,{className:`h-20 w-full`})]})}function D(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(x,{activityLabel:e.activityLabel,artifactRuns:e.artifactRuns,chatMode:e.chatMode,transcriptSummary:e.transcriptSummary,planLabel:e.planLabel,presentation:e.presentation,queue:e.queue,selectedModelKey:e.selectedModelKey,sessionId:e.sessionId,status:e.status,thinkingLevel:e.thinkingLevel})})}function O(){let e=l(),t=c();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(b,{error:e.resourcesError,loading:e.resourcesLoading,resources:e.resources,workspace:t.workspaceTree})})}function k(){let e=c();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(w,{error:e.workspaceError,loadWorkspaceFile:e.loadWorkspaceFile,loading:e.workspaceLoading,onSelectedPathChange:e.setSelectedWorkspacePath,selectedPath:e.selectedWorkspacePath,workspace:e.workspaceTree})})}function A(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(y,{artifactRuns:e.artifactRuns,openUIBlocks:e.transcriptSummary.openUIBlocks,onOpenUIAction:e.onOpenUIAction,selectedArtifactId:e.selectedArtifactId,status:e.status})})}function j(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(S,{artifactRuns:e.artifactRuns,selectedArtifactId:e.selectedArtifactId,kernelDiagnostics:e.presentation.kernelDiagnostics})})}function M(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(C,{agents:e.presentation.rlmChildren,loadSession:e.loadSubagentSession,onOpenTab:e.onOpenSubagentTab,parentSessionId:e.sessionId,tree:e.presentation.rlmTree})})}function N(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(T,{sessionId:e.sessionId,snapshot:e.sessionTreeSnapshot,loading:e.sessionTreeLoading,error:e.sessionTreeError,isStreaming:e.isSessionTreeStreaming,selectedEntryId:e.selectedSessionTreeEntryId,onSelectEntry:e.selectSessionTreeEntry,onRefresh:e.refreshSessionTree,onRewind:e.rewindSessionTree})})}var P={resources:{id:`resources`,order:0,title:`Resources`,ariaLabel:`Resources`,commandLabel:`Open Resources`,commandKeywords:[`resources`,`skills`,`panels`],icon:g,dataTestid:`pi-resources-canvas`,mobileDataTestid:`pi-resources-mobile-panel`,showInLauncher:!0,badgeSource:`resources`,loadingSource:`resources`,refreshSource:`resources`,component:O},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:k},artifacts:{id:`artifacts`,order:2,title:`Artifacts`,ariaLabel:`Artifacts`,commandLabel:`Open Artifacts`,commandKeywords:[`artifacts`,`reports`,`datasets`,`panels`],icon:s,dataTestid:`pi-artifacts-canvas`,mobileDataTestid:`pi-artifacts-mobile-panel`,showInLauncher:!0,badgeSource:`artifacts`,loadingSource:void 0,refreshSource:void 0,component:A},repl:{id:`repl`,order:3,title:`REPL`,ariaLabel:`REPL runs`,commandLabel:`Open REPL`,commandKeywords:[`repl`,`ipython`,`python`,`cells`,`panels`],icon:u,dataTestid:`pi-repl-canvas`,mobileDataTestid:`pi-repl-mobile-panel`,showInLauncher:!0,badgeSource:`repl`,loadingSource:void 0,refreshSource:void 0,component:j},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:M},"session-insights":{id:`session-insights`,order:5,title:`Session insights`,ariaLabel:`Session insights`,commandLabel:`Open Session Insights`,commandKeywords:[`session`,`insights`,`activity`,`panels`],icon:m,dataTestid:`pi-session-insights-canvas`,mobileDataTestid:`pi-session-insights-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:D},"session-tree":{id:`session-tree`,order:6,title:`Session tree`,ariaLabel:`Session tree`,commandLabel:`Open Session Tree`,commandKeywords:[`session`,`tree`,`branch`,`rewind`,`history`,`panels`],icon:o,dataTestid:`pi-session-tree-canvas`,mobileDataTestid:`pi-session-tree-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:N}},F=Object.values(P).sort((e,t)=>e.order-t.order).filter(e=>e.showInLauncher!==!1);function I(e){return P[e]}export{I as n,g as r,F as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/artifacts-panel-Qd6JlHzz.js","assets/rolldown-runtime-hePW80VL.js","assets/react-Cvdyeg_0.js","assets/jsx-runtime-NZYk81nU.js","assets/button-BJyg7l5W.js","assets/react-dom-B7th3XGm.js","assets/utils-Dpy9ZFOr.js","assets/createBaseUIEventDetails-DklXWq23.js","assets/dist-BogNzeK9.js","assets/clsx-DB0hHKMi.js","assets/createLucideIcon-CQY2ECfR.js","assets/tool-result-C5Ixe-AJ.js","assets/ease-DKi-MOH5.js","assets/is-ref-object-BD8OGh9C.js","assets/use-reduced-motion-BgG7f9xw.js","assets/use-presence-rcUnm8Z7.js","assets/check-BTwIaCtI.js","assets/chevron-down-Bse1ggZM.js","assets/circle-check-DBhaebaM.js","assets/action-swap-roll-BfVrBOVd.js","assets/loader-circle-BmKYM_C4.js","assets/rotate-ccw-DLkfsmG9.js","assets/square-terminal-BLq2bQVF.js","assets/wrench-BYnD147U.js","assets/preload-helper-Czpn1I53.js","assets/chevron-right-BPCB1mOg.js","assets/package-BkC-HSi-.js","assets/openui-renderer-CH9K7_8t.js","assets/card-BScRdZNS.js","assets/select-COK0Kaq2.js","assets/surface-context-DWplCCcO.js","assets/useBaseUiId-BlzQUkVG.js","assets/input-Ce8yLnXY.js","assets/useControlled-CkQSkSv1.js","assets/safe-external-url-BnEhm9A0.js","assets/chunk-YOKDWASO-C8deEx7Z.js","assets/lib-ChrQ49PO.js","assets/character-entities-legacy-Wut6vMuj.js","assets/badge-BjFxrtmB.js","assets/dist-BJJVCio8.js","assets/markdown-C-Y9gskI.js","assets/switch-DQETDDJT.js","assets/dialog-DLIPvl1s.js","assets/x-DEU6H3M-.js","assets/openui-utils-DawGoQNp.js","assets/prime-agent-artifacts-C-g1VPiW.js","assets/collapsible-DsbKpD_Y.js","assets/resources-panel-kp_UjnpX.js","assets/resource-helpers-CKbSmzpw.js","assets/file-text-cqOanUYv.js","assets/plug-wCz-036u.js","assets/skeleton-loaders-DOKGa7CW.js","assets/skeleton-D5Y9nBfp.js","assets/session-insights-panel-B0rl37lo.js","assets/repl-panel-UQN9UFG7.js","assets/ipython-tool-CuSGRhXl.js","assets/triangle-alert-BuzmrrqI.js","assets/subagents-panel-B-X7WPUU.js","assets/bot-DETalD3q.js","assets/subagent-utils-DTV2RcFl.js","assets/citations-BhyqbxcZ.js","assets/sparkles-C4VQyMox.js","assets/tokens-CtP2s1Y3.js","assets/workspace-path-nav-DmxBrMV6.js","assets/notify-BC0a76VJ.js","assets/toast-BFeqSeaR.js","assets/subagent-transcript-CCpg3uL6.js","assets/session-tool-renderer-mOZdkbiU.js","assets/eye-iNSvs0UA.js","assets/git-branch-DZEh2mM2.js","assets/search-Cb6fFWew.js","assets/terminal-Ceucj7us.js","assets/dist-CZDnnosQ.js","assets/range-BWOHiLNe.js","assets/surfaces-BULKVm-B.js","assets/tool-timeline-B4ci1oJg.js","assets/refresh-cw-CqPE3kNY.js","assets/workspace-panel-DDjQuELx.js","assets/layout-constants-Bl6XCvhY.js","assets/safe-storage-s25GrfpH.js","assets/chat-helpers-Bj7_hES7.js","assets/folder-COBtkKZa.js","assets/hard-drive-B3opVeEB.js","assets/session-tree-panel-deGRKAhX.js","assets/alert-dialog-FCppNafx.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-Cvdyeg_0.js";import{t as n}from"./jsx-runtime-NZYk81nU.js";import{t as r}from"./createLucideIcon-CQY2ECfR.js";import{t as i}from"./bot-DETalD3q.js";import{t as a}from"./folder-COBtkKZa.js";import{t as o}from"./git-branch-DZEh2mM2.js";import{t as s}from"./package-BkC-HSi-.js";import{i as c,n as l}from"./right-panel-context-DHKWoetk.js";import{t as u}from"./square-terminal-BLq2bQVF.js";import{t as d}from"./preload-helper-Czpn1I53.js";import{t as f}from"./skeleton-D5Y9nBfp.js";var p={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};p.node;var m=r(p),h={name:`library`,size:24,node:[[`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`}]]};h.node;var g=r(h),_=e(t(),1),v=n(),y=(0,_.lazy)(()=>d(async()=>{let{ArtifactsPanelContent:e}=await import(`./artifacts-panel-Qd6JlHzz.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}))),b=(0,_.lazy)(()=>d(async()=>{let{ResourcesPanelContent:e}=await import(`./resources-panel-kp_UjnpX.js`);return{ResourcesPanelContent:e}},__vite__mapDeps([47,3,1,48,10,2,49,26,50,51,52,6])).then(({ResourcesPanelContent:e})=>({default:e}))),x=(0,_.lazy)(()=>d(async()=>{let{SessionInsightsPanel:e}=await import(`./session-insights-panel-B0rl37lo.js`);return{SessionInsightsPanel:e}},__vite__mapDeps([53,3,1])).then(({SessionInsightsPanel:e})=>({default:e}))),S=(0,_.lazy)(()=>d(async()=>{let{ReplPanelContent:e}=await import(`./repl-panel-UQN9UFG7.js`);return{ReplPanelContent:e}},__vite__mapDeps([54,1,2,3,55,6,10,22,56])).then(({ReplPanelContent:e})=>({default:e}))),C=(0,_.lazy)(()=>d(async()=>{let{SubagentsPanelContent:e}=await import(`./subagents-panel-B-X7WPUU.js`);return{SubagentsPanelContent:e}},__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,58,10,59,12,13,14,15,60,17,34,19,61,16,25,49,18,20,43,24,44,62,63,64,65,56,66,67,11,21,22,23,55,68,69,70,71,72,36,37,46,31,33,73,74,75,76,45])).then(({SubagentsPanelContent:e})=>({default:e}))),w=(0,_.lazy)(()=>d(async()=>{let{WorkspacePanelContent:e}=await import(`./workspace-panel-DDjQuELx.js`);return{WorkspacePanelContent:e}},__vite__mapDeps([77,1,2,3,6,12,13,14,15,48,10,49,26,50,25,78,79,80,81,82,63,24,51,52])).then(({WorkspacePanelContent:e})=>({default:e}))),T=(0,_.lazy)(()=>d(async()=>{let{SessionTreePanel:e}=await import(`./session-tree-panel-deGRKAhX.js`);return{SessionTreePanel:e}},__vite__mapDeps([83,1,2,3,4,5,6,7,8,9,69,10,84,30,31])).then(({SessionTreePanel:e})=>({default:e})));function E(){return(0,v.jsxs)(`div`,{className:`flex min-h-32 flex-col gap-3 p-4`,"aria-label":`Loading panel`,children:[(0,v.jsx)(f,{className:`h-5 w-32`}),(0,v.jsx)(f,{className:`h-20 w-full`})]})}function D(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(x,{activityLabel:e.activityLabel,artifactRuns:e.artifactRuns,chatMode:e.chatMode,transcriptSummary:e.transcriptSummary,planLabel:e.planLabel,presentation:e.presentation,queue:e.queue,selectedModelKey:e.selectedModelKey,sessionId:e.sessionId,status:e.status,thinkingLevel:e.thinkingLevel})})}function O(){let e=l(),t=c();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(b,{error:e.resourcesError,loading:e.resourcesLoading,resources:e.resources,workspace:t.workspaceTree})})}function k(){let e=c();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(w,{error:e.workspaceError,loadWorkspaceFile:e.loadWorkspaceFile,loading:e.workspaceLoading,onSelectedPathChange:e.setSelectedWorkspacePath,selectedPath:e.selectedWorkspacePath,workspace:e.workspaceTree})})}function A(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(y,{artifactRuns:e.artifactRuns,openUIBlocks:e.transcriptSummary.openUIBlocks,onOpenUIAction:e.onOpenUIAction,selectedArtifactId:e.selectedArtifactId,status:e.status})})}function j(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(S,{artifactRuns:e.artifactRuns,selectedArtifactId:e.selectedArtifactId,kernelDiagnostics:e.presentation.kernelDiagnostics})})}function M(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(C,{agents:e.presentation.rlmChildren,loadSession:e.loadSubagentSession,onOpenTab:e.onOpenSubagentTab,parentSessionId:e.sessionId,tree:e.presentation.rlmTree})})}function N(){let e=l();return(0,v.jsx)(_.Suspense,{fallback:(0,v.jsx)(E,{}),children:(0,v.jsx)(T,{sessionId:e.sessionId,snapshot:e.sessionTreeSnapshot,loading:e.sessionTreeLoading,error:e.sessionTreeError,isStreaming:e.isSessionTreeStreaming,selectedEntryId:e.selectedSessionTreeEntryId,onSelectEntry:e.selectSessionTreeEntry,onRefresh:e.refreshSessionTree,onRewind:e.rewindSessionTree})})}var P={resources:{id:`resources`,order:0,title:`Resources`,ariaLabel:`Resources`,commandLabel:`Open Resources`,commandKeywords:[`resources`,`skills`,`panels`],icon:g,dataTestid:`pi-resources-canvas`,mobileDataTestid:`pi-resources-mobile-panel`,showInLauncher:!0,badgeSource:`resources`,loadingSource:`resources`,refreshSource:`resources`,component:O},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:k},artifacts:{id:`artifacts`,order:2,title:`Artifacts`,ariaLabel:`Artifacts`,commandLabel:`Open Artifacts`,commandKeywords:[`artifacts`,`reports`,`datasets`,`panels`],icon:s,dataTestid:`pi-artifacts-canvas`,mobileDataTestid:`pi-artifacts-mobile-panel`,showInLauncher:!0,badgeSource:`artifacts`,loadingSource:void 0,refreshSource:void 0,component:A},repl:{id:`repl`,order:3,title:`REPL`,ariaLabel:`REPL runs`,commandLabel:`Open REPL`,commandKeywords:[`repl`,`ipython`,`python`,`cells`,`panels`],icon:u,dataTestid:`pi-repl-canvas`,mobileDataTestid:`pi-repl-mobile-panel`,showInLauncher:!0,badgeSource:`repl`,loadingSource:void 0,refreshSource:void 0,component:j},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:M},"session-insights":{id:`session-insights`,order:5,title:`Session insights`,ariaLabel:`Session insights`,commandLabel:`Open Session Insights`,commandKeywords:[`session`,`insights`,`activity`,`panels`],icon:m,dataTestid:`pi-session-insights-canvas`,mobileDataTestid:`pi-session-insights-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:D},"session-tree":{id:`session-tree`,order:6,title:`Session tree`,ariaLabel:`Session tree`,commandLabel:`Open Session Tree`,commandKeywords:[`session`,`tree`,`branch`,`rewind`,`history`,`panels`],icon:o,dataTestid:`pi-session-tree-canvas`,mobileDataTestid:`pi-session-tree-mobile-panel`,showInLauncher:!0,badgeSource:void 0,loadingSource:void 0,refreshSource:void 0,component:N}},F=Object.values(P).sort((e,t)=>e.order-t.order).filter(e=>e.showInLauncher!==!1);function I(e){return P[e]}export{I as n,g as r,F as t};