@qredence/fleet 0.7.4 → 0.8.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 (165) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +5 -4
  3. package/bin/fleet-prime.mjs +33 -6
  4. package/bin/prime-runtime.mjs +79 -0
  5. package/dist/runtime-manifest.json +32 -0
  6. package/dist/web/client/assets/DialogTitle-RY2UDuCY.js +1 -0
  7. package/dist/web/client/assets/FloatingPortal-XC0MCNnD.js +1 -0
  8. package/dist/web/client/assets/action-swap-BWRUNKQA.js +1 -0
  9. package/dist/web/client/assets/{alert-dialog-DtXvVhsF.js → alert-dialog-DGNvg0B1.js} +1 -1
  10. package/dist/web/client/assets/arrow-up-right-CG9RNk4p.js +1 -0
  11. package/dist/web/client/assets/{artifacts-panel-Bseg97yQ.js → artifacts-panel-BGXpKRJ7.js} +1 -1
  12. package/dist/web/client/assets/{badge-C--lf3bb.js → badge-DM06QVqB.js} +6 -6
  13. package/dist/web/client/assets/button-CWYjn8Zk.js +1 -0
  14. package/dist/web/client/assets/{card-Hngi3HGC.js → card-Dj1SnGUU.js} +1 -1
  15. package/dist/web/client/assets/{chat-command-palette-D_rm1r9d.js → chat-command-palette-PenyaZBw.js} +1 -1
  16. package/dist/web/client/assets/code-block-pKKmFZ5w.js +3 -0
  17. package/dist/web/client/assets/collapsible-Bk6zCsRX.js +1 -0
  18. package/dist/web/client/assets/{command-CmtCIDdH.js → command-imgUMV3r.js} +1 -1
  19. package/dist/web/client/assets/{create-project-dialog-m-9aoobN.js → create-project-dialog-C00d5yCq.js} +1 -1
  20. package/dist/web/client/assets/createBaseUIEventDetails-DIxvaz-Y.js +1 -0
  21. package/dist/web/client/assets/{dialog-Ddouieuu.js → dialog-zCNOQI63.js} +1 -1
  22. package/dist/web/client/assets/eye-iNSvs0UA.js +1 -0
  23. package/dist/web/client/assets/file-code-corner-BkDULqko.js +1 -0
  24. package/dist/web/client/assets/{fork-picker-dialog-DfGlB17w.js → fork-picker-dialog-Cgi48NnT.js} +1 -1
  25. package/dist/web/client/assets/globals-BuMuB_ea.css +2 -0
  26. package/dist/web/client/assets/{index-Bz5W4EOn.js → index-BqBdQGWs.js} +3 -3
  27. package/dist/web/client/assets/input-7g8_nw-Z.js +1 -0
  28. package/dist/web/client/assets/{input-group-EPMGh55u.js → input-group-Nq03Qums.js} +1 -1
  29. package/dist/web/client/assets/{ipython-tool-CMhnRVrC.js → ipython-tool-bieUhw9K.js} +1 -1
  30. package/dist/web/client/assets/markdown-CvBfbPCn.js +2 -0
  31. package/dist/web/client/assets/markdown-code-rFOkzN5N.js +4 -0
  32. package/dist/web/client/assets/{message-queue-Bg2MiJHM.js → message-queue-sSljtjYz.js} +1 -1
  33. package/dist/web/client/assets/{model-selector-list-BiU_7ivt.js → model-selector-list-Cp687pdm.js} +1 -1
  34. package/dist/web/client/assets/{notify-DhtmUPfE.js → notify-Cqdu6EV8.js} +1 -1
  35. package/dist/web/client/assets/{openui-renderer-MIB3JKYa.js → openui-renderer-BdYTcn-_.js} +50 -50
  36. package/dist/web/client/assets/{prompt-input-Dy-DSPqF.js → prompt-input-CoV1gTUQ.js} +1 -1
  37. package/dist/web/client/assets/{prompt-suggestions-CrpAiKeB.js → prompt-suggestions-CAY5JI-C.js} +1 -1
  38. package/dist/web/client/assets/provider-label-QrVOwKBO.js +1 -0
  39. package/dist/web/client/assets/reasoning-line-DGdPUMwT.js +1 -0
  40. package/dist/web/client/assets/rehype-katex-DITkIpVl.js +259 -0
  41. package/dist/web/client/assets/{repl-panel-DN5kZAcB.js → repl-panel-5xgkDXO5.js} +1 -1
  42. package/dist/web/client/assets/{resources-panel-DD6iWOF3.js → resources-panel-aJCKt9eF.js} +1 -1
  43. package/dist/web/client/assets/right-panel-registry-BaLZiKny.js +2 -0
  44. package/dist/web/client/assets/routes-BkFkhfO3.js +16 -0
  45. package/dist/web/client/assets/select-BhV4ikeN.js +1 -0
  46. package/dist/web/client/assets/session-activity-panel-Bc4-HSfb.js +1 -0
  47. package/dist/web/client/assets/session-reasoning-panel-CjJJK_bq.js +1 -0
  48. package/dist/web/client/assets/session-tool-renderer-C7mYeUOs.js +166 -0
  49. package/dist/web/client/assets/{session-tree-panel-BBwP_EK2.js → session-tree-panel-By9m9tGB.js} +1 -1
  50. package/dist/web/client/assets/settings-dialog-Dpt4Ha_m.js +2 -0
  51. package/dist/web/client/assets/shield-check-7HDd-2Fn.js +1 -0
  52. package/dist/web/client/assets/{skeleton-DNAr5ULI.js → skeleton-B_Lq2XFl.js} +1 -1
  53. package/dist/web/client/assets/{skeleton-loaders-B28mF4tJ.js → skeleton-loaders-DWc1eDL3.js} +1 -1
  54. package/dist/web/client/assets/sparkles-BwVa9zQJ.js +1 -0
  55. package/dist/web/client/assets/{spinner-CSBXk3Lo.js → spinner-B5TaKP7k.js} +1 -1
  56. package/dist/web/client/assets/{subagent-chat-panel-DhvBO4dQ.js → subagent-chat-panel-DsPmLZSf.js} +1 -1
  57. package/dist/web/client/assets/subagent-transcript-CNQ9wGk2.js +1 -0
  58. package/dist/web/client/assets/{subagents-panel-DRo8Xs6j.js → subagents-panel-gQ9BLfV3.js} +1 -1
  59. package/dist/web/client/assets/surfaces-BUjUJTyD.js +1 -0
  60. package/dist/web/client/assets/switch-C7Myu-Dt.js +1 -0
  61. package/dist/web/client/assets/toast-DlbKi6K-.js +1 -0
  62. package/dist/web/client/assets/tool-output-normalizer-CADgEiI4.js +4 -0
  63. package/dist/web/client/assets/tool-part-normalizer-CYK62WZM.js +4 -0
  64. package/dist/web/client/assets/tool-result-bjAGZ2qm.js +5 -0
  65. package/dist/web/client/assets/tool-timeline-eNqH1zj7.js +2 -0
  66. package/dist/web/client/assets/trace-IsV5RRvM.js +1 -0
  67. package/dist/web/client/assets/ui-preferences-B-PNDkyY.js +1 -0
  68. package/dist/web/client/assets/use-hover-capable-CLq8BADD.js +1 -0
  69. package/dist/web/client/assets/useBaseUiId-lKfDDIcw.js +1 -0
  70. package/dist/web/client/assets/useButton-CvcmqA2s.js +1 -0
  71. package/dist/web/client/assets/useRender-Bbk_fl72.js +1 -0
  72. package/dist/web/client/assets/{utils-CFDGLzf6.js → utils-oBThwhjm.js} +1 -1
  73. package/dist/web/client/assets/{workspace-panel-DdZutYnd.js → workspace-panel-Da5I4p_t.js} +1 -1
  74. package/dist/web/client/assets/workspace-path-nav-D-77sJ_A.js +2 -0
  75. package/dist/web/client/assets/wrench-BXX_Ah2s.js +1 -0
  76. package/dist/web/client/bundle-budget.json +6 -6
  77. package/dist/web/server/{_tanstack-start-manifest_v-YlngJGUa-YTWBGR7L.js → _tanstack-start-manifest_v-BiNPG4xt-BZTMSM2I.js} +33 -28
  78. package/dist/web/server/{artifacts-panel-COSC8o7j-GKW2HH2G.js → artifacts-panel-CqGBNU4q-UHNMC7PK.js} +23 -27
  79. package/dist/web/server/{chat-command-palette-CuOWdzkk-PKZQ5EZP.js → chat-command-palette-B94-zIEz-ES2ZB4ZF.js} +8 -10
  80. package/dist/web/server/{chunk-GLSR4ZI2.js → chunk-2FHYWKDN.js} +669 -833
  81. package/dist/web/server/{chunk-EBC7QORX.js → chunk-5GUEYYYO.js} +3680 -2098
  82. package/dist/web/server/{chunk-GLH2GWMG.js → chunk-7L5PCCYR.js} +411 -306
  83. package/dist/web/server/{chunk-KHHXJZK7.js → chunk-ABMGW6QH.js} +2784 -1662
  84. package/dist/web/server/{chunk-36CAMOVG.js → chunk-BAHZXA4D.js} +6 -6
  85. package/dist/web/server/{chunk-IN2ATSEG.js → chunk-CZLGB3NE.js} +2 -2
  86. package/dist/web/server/{chunk-WCKKN5BR.js → chunk-E6T36NM5.js} +347 -583
  87. package/dist/web/server/{chunk-ORCOCCER.js → chunk-EAKPTSWR.js} +4 -4
  88. package/dist/web/server/chunk-EL2JCDAM.js +270 -0
  89. package/dist/web/server/{chunk-6GTTTYSE.js → chunk-FB2QLQTN.js} +67 -73
  90. package/dist/web/server/{chunk-LLO4MNGE.js → chunk-K67IDUAI.js} +24 -26
  91. package/dist/web/server/{chunk-YU6RHHK6.js → chunk-LQM6QR7S.js} +10 -12
  92. package/dist/web/server/chunk-LTTBT3J7.js +129 -0
  93. package/dist/web/server/{chunk-TMQ3MT3D.js → chunk-OAYEN3JV.js} +2 -0
  94. package/dist/web/server/{chunk-ZUZPJNLY.js → chunk-OSPDNT7S.js} +829 -642
  95. package/dist/web/server/{chunk-XA7EOCHM.js → chunk-SGAQVAYL.js} +2 -2
  96. package/dist/web/server/chunk-SI5IQSG4.js +206 -0
  97. package/dist/web/server/{chunk-AKSDWYJY.js → chunk-SYS5FDNA.js} +5 -5
  98. package/dist/web/server/{chunk-QSM3BRMA.js → chunk-WSK55TKE.js} +169 -156
  99. package/dist/web/server/{chunk-BUKOEXE7.js → chunk-YQO36OP6.js} +2 -2
  100. package/dist/web/server/{create-project-dialog-0-arQpsX-ZELQKHS5.js → create-project-dialog-CFPX6Ihl-EO4XTINS.js} +12 -14
  101. package/dist/web/server/{dist-7G2NZPF4.js → dist-GQUZLXN5.js} +2 -2
  102. package/dist/web/server/{dist-E5637ZAY.js → dist-MN5NWCX6.js} +1 -1
  103. package/dist/web/server/{fork-picker-dialog-fj9p33Mq-I5SA3GLJ.js → fork-picker-dialog-B2RBFzoZ-R6GXPSPL.js} +6 -8
  104. package/dist/web/server/{markdown-CShfYRVO-RBTK7TRB.js → markdown-BvCfOB26-VDH4YOQD.js} +9 -6
  105. package/dist/web/server/{markdown-code-BDV_2b2T-6JYA5FWZ.js → markdown-code-SYc-BQvp-MR4FXT5C.js} +48 -9
  106. package/dist/web/server/{message-queue-BBC843IU-GY4ZIMM4.js → message-queue-D32rLiJo-HEBRGH5B.js} +6 -8
  107. package/dist/web/server/{model-selector-list-DE6aLNXt-LJZMCYOI.js → model-selector-list-DKzt_xEN-5ZPU6XDY.js} +8 -10
  108. package/dist/web/server/{openui-renderer-C3aqSKuS-PWLWJFYO.js → openui-renderer-CeVtOdYl-PY37PCJI.js} +12 -14
  109. package/dist/web/server/{prompt-suggestions-CpTK_fHV-UKJDTLVM.js → prompt-suggestions-CpTK_fHV-Q4ILLZKC.js} +1 -1
  110. package/dist/web/server/{rehype-katex-IDPYWU6M.js → rehype-katex-CYHGKI6Q.js} +490 -843
  111. package/dist/web/server/{repl-panel-1kSS1UGd-U64BPA7X.js → repl-panel-1kSS1UGd-DDM5ADGZ.js} +3 -3
  112. package/dist/web/server/{resources-panel-DWb0eGKa-K4EM3H7Y.js → resources-panel-S4NHlpz7-NF7WYYSR.js} +7 -9
  113. package/dist/web/server/{router-DZYr-9uT-AEXHEFXF.js → router-DVKxZik_-254GZAJW.js} +5 -6
  114. package/dist/web/server/{routes-vYxWRhis-AAZ73SNP.js → routes-BTxAklRp-UM7ZTLLP.js} +50 -30
  115. package/dist/web/server/server.js +2 -2
  116. package/dist/web/server/session-activity-panel-Bz2GrdMk-PCOXG46X.js +173 -0
  117. package/dist/web/server/session-reasoning-panel-CpiTdyQz-O3B5CDKS.js +62 -0
  118. package/dist/web/server/{session-tool-renderer-Dtt74Mts-7YYNSWRV.js → session-tool-renderer-BZiOxtt1-T3ZGAQKX.js} +10 -13
  119. package/dist/web/server/{session-tree-panel-HNl6R9VZ-4JUF34M7.js → session-tree-panel-CzkE0RFB-P4KWA7S2.js} +7 -9
  120. package/dist/web/server/{settings-dialog-DGZBA5Z_-6HYFMPNZ.js → settings-dialog-BUgVNpr1-THSYIOZL.js} +18 -21
  121. package/dist/web/server/{subagent-chat-panel-DuB4hqUk-LDCAJOCL.js → subagent-chat-panel-mw3kEFfK-CDYX7LST.js} +13 -16
  122. package/dist/web/server/{subagents-panel-wAvx3-Rs-L6UTDFUX.js → subagents-panel-2ZJfYrXG-NDJKHJHD.js} +15 -18
  123. package/dist/web/server/{workspace-panel-CPzJZwgv-YS7PTI5C.js → workspace-panel-xznrPDLt-QCJRZOF3.js} +7 -9
  124. package/package.json +2 -2
  125. package/dist/web/client/assets/DialogTitle-D-zqaHvF.js +0 -1
  126. package/dist/web/client/assets/FloatingPortal-73ZRZeD9.js +0 -1
  127. package/dist/web/client/assets/action-swap-BcFwS6is.js +0 -1
  128. package/dist/web/client/assets/button-BJZe4vNJ.js +0 -1
  129. package/dist/web/client/assets/chevron-up-CqeJYyZO.js +0 -1
  130. package/dist/web/client/assets/collapsible-DauSnbYp.js +0 -1
  131. package/dist/web/client/assets/createBaseUIEventDetails-DklXWq23.js +0 -1
  132. package/dist/web/client/assets/eye-Cs0lNChA.js +0 -1
  133. package/dist/web/client/assets/globals-C961mr-b.css +0 -2
  134. package/dist/web/client/assets/input-Def1xOZz.js +0 -1
  135. package/dist/web/client/assets/markdown-Big27m-v.js +0 -2
  136. package/dist/web/client/assets/markdown-code-7L4RiS50.js +0 -3
  137. package/dist/web/client/assets/provider-label-B_vy60P0.js +0 -1
  138. package/dist/web/client/assets/rehype-katex-A4PtQgTX.js +0 -259
  139. package/dist/web/client/assets/right-panel-registry-hKJN__3l.js +0 -2
  140. package/dist/web/client/assets/routes-C3h32Lj_.js +0 -16
  141. package/dist/web/client/assets/select-Buvv1tIo.js +0 -1
  142. package/dist/web/client/assets/session-reasoning-panel-DmEbXOrR.js +0 -1
  143. package/dist/web/client/assets/session-tool-renderer-Daol5fJw.js +0 -169
  144. package/dist/web/client/assets/settings-dialog-DYbx3xuq.js +0 -2
  145. package/dist/web/client/assets/sparkles-D_ANe-HY.js +0 -1
  146. package/dist/web/client/assets/subagent-transcript-Bx-rHni-.js +0 -1
  147. package/dist/web/client/assets/surfaces-B8xTOFeK.js +0 -1
  148. package/dist/web/client/assets/switch-CDfAwEvs.js +0 -1
  149. package/dist/web/client/assets/terminal-Ceucj7us.js +0 -1
  150. package/dist/web/client/assets/toast-9zXN-yVk.js +0 -1
  151. package/dist/web/client/assets/tool-part-normalizer-NbPs9kd1.js +0 -4
  152. package/dist/web/client/assets/tool-result-BccnO34D.js +0 -4
  153. package/dist/web/client/assets/tool-timeline-DlBZyd4j.js +0 -1
  154. package/dist/web/client/assets/ui-preferences-1YaENqef.js +0 -1
  155. package/dist/web/client/assets/use-hover-capable-MwFjBLZQ.js +0 -1
  156. package/dist/web/client/assets/workspace-path-nav-BRwuLsFl.js +0 -2
  157. package/dist/web/client/assets/wrench-BYnD147U.js +0 -1
  158. package/dist/web/server/chunk-CHSKEU3V.js +0 -166
  159. package/dist/web/server/chunk-OO7NBFQQ.js +0 -15
  160. package/dist/web/server/chunk-OXEAXEWD.js +0 -13
  161. package/dist/web/server/chunk-SIJVVYQT.js +0 -234
  162. package/dist/web/server/chunk-UQV2NU63.js +0 -163
  163. package/dist/web/server/chunk-VUBITQ5X.js +0 -653
  164. package/dist/web/server/session-reasoning-panel-XXU2yIOW-XXCKHISS.js +0 -192
  165. package/dist/web/server/tool-timeline-BKWsrZHK-3LGCOTPH.js +0 -12
@@ -1 +0,0 @@
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{$ as r,Q as i,W as a}from"./FloatingPortal-73ZRZeD9.js";import{t as o}from"./utils-CFDGLzf6.js";import{T as s,ct as c,et as l,f as u,it as d,nt as f,rt as p,st as m,t as h}from"./createBaseUIEventDetails-DklXWq23.js";import{f as g}from"./surfaces-B8xTOFeK.js";import{t as _}from"./useControlled-CkQSkSv1.js";var v=e(t(),1);function y(e,t){let n=v.useRef(e),r=l(t);p(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}var b=`data-valid`,x=`data-invalid`,S={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},C={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},w={valid(e){return e===null?null:e?{[b]:``}:{[x]:``}}},T={invalid:void 0,name:void 0,validityData:{state:S,errors:[],error:``,value:``,initialValue:null},setValidityData:c,disabled:void 0,setTouched:c,setDirty:c,setFilled:c,setFocused:c,validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:C,registerFieldControl:c,validation:{getValidationProps:(e,t=m)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:c,getInputControl:()=>null,commit:async()=>{},change:c}},E=v.createContext(T);function D(e=!0){let t=v.useContext(E);if(t.setValidityData===c&&!e)throw Error(f(28));return t}var O=v.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:c,validationMode:`onSubmit`,submitCountRef:{current:0}});function k(){return v.useContext(O)}var A=v.createContext({controlId:void 0,registerControlId:c,resetControlId:c,labelId:void 0,setLabelId:c,messageIds:[],setMessageIds:c,getDescriptionProps:e=>e});function j(){return v.useContext(A)}function M(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=j(),o=g(),s=d(()=>Symbol()),u=v.useRef(!1),f=v.useRef(!1),m=l(()=>{!u.current||i===c||(u.current=!1,i(s.current,void 0))});return p(()=>{if(!n||i===c){m();return}let e;if(t!==void 0)f.current=!0,e=t;else if(f.current)e=o;else{a();return}if(e===void 0){m();return}u.current=!0,i(s.current,e)},[t,n,i,a,o,s,m]),p(()=>m,[m]),(n?r:void 0)??t??o}function N(e,t,n,r,i=!0,a){let{registerFieldControl:o}=D(),s=d(()=>Symbol());p(()=>{let c=s.current;if(!i){o(c,void 0);return}o(c,{controlRef:e,getValue:r,id:t,name:a,value:n})},[e,i,r,t,a,o,s,n]),p(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var P=v.forwardRef(function(e,t){let{render:n,className:o,id:c,name:d,value:f,disabled:m=!1,onValueChange:g,defaultValue:b,autoFocus:x=!1,style:S,...C}=e,{state:T,name:E,disabled:O,setTouched:A,setDirty:P,validityData:F,setFocused:I,setFilled:L,validationMode:R,validation:z}=D(),{clearErrors:B,elementRef:V,submitCountRef:H}=k(),U=O||m,W=E??d,G={...T,disabled:U},{labelId:K}=j(),q=M({id:c}),[J]=_({controlled:f,default:b,name:`FieldControl`,state:`value`}),Y=f!==void 0,X=Y?J:void 0,Z=X==null?void 0:String(X),Q=l(()=>z.inputRef.current?.value);N(z.inputRef,q,Z,Q,!U,d),p(()=>{let e=Z??z.inputRef.current?.value;e!==void 0&&L(e!==``)},[Z,z.inputRef,L]),y(Z,()=>{Z!==void 0&&(B(W),P(Z!==(F.initialValue??``)),z.change(Z))});let $=v.useRef(null),ee=i();return p(()=>{x&&$.current===a(r($.current))&&I(!0)},[x,I]),s(`input`,e,{ref:[t,$],state:G,props:[{id:q,disabled:U,name:W,ref:z.inputRef,"aria-labelledby":K,autoFocus:x,...Y?{value:X}:{defaultValue:b},onChange(e){let t=e.currentTarget.value,n=h(u,e.nativeEvent);g?.(t,n),!Y&&(P(t!==(F.initialValue??``)),L(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(B(W),z.change(t)))},onFocus(){I(!0)},onBlur(e){if(A(!0),I(!1),R===`onBlur`){let t=e.currentTarget.value;z.commit(t),Y&&queueMicrotask(()=>{let e=z.inputRef.current?.value;e!==void 0&&e!==t&&e!==(F.initialValue??``)&&z.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){A(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===V.current&&!e.defaultPrevented){let t=e.currentTarget,n=H.current;ee.start(0,()=>{H.current===n&&z.commit(t.value)})}else z.commit(t)}}},C,e=>z.getValidationProps(U,e)],stateAttributesMapping:w})}),F=n(),I=v.forwardRef(function(e,t){return(0,F.jsx)(P,{ref:t,...e})});function L({className:e,type:t,...n}){return(0,F.jsx)(I,{type:t,"data-slot":`input`,className:o(`h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,e),...n})}export{k as a,w as c,j as i,y as l,N as n,D as o,M as r,S as s,L as t};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdown-code-7L4RiS50.js","assets/jsx-runtime-NZYk81nU.js","assets/rolldown-runtime-hePW80VL.js","assets/chunk-D32TOXHM-BM74MRmz.js","assets/react-Cvdyeg_0.js","assets/react-dom-B7th3XGm.js","assets/clsx-DB0hHKMi.js","assets/preload-helper-BLdHbfdN.js","assets/space-separated-tokens-Ciu5hotc.js","assets/lib-CJ9xR_xY.js","assets/lib-BvGd2E-G.js","assets/dist-CprW0Qol.js","assets/character-entities-legacy-Wut6vMuj.js"])))=>i.map(i=>d[i]);
2
- import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{t as n}from"./react-Cvdyeg_0.js";import{t as r}from"./jsx-runtime-NZYk81nU.js";import{t as i}from"./utils-CFDGLzf6.js";import{t as a}from"./preload-helper-BLdHbfdN.js";import{i as o}from"./chunk-D32TOXHM-BM74MRmz.js";var s=t(n(),1),c=e({Markdown:()=>y,MarkdownFrame:()=>_,fixNumberedListBreaks:()=>d,markdownComponents:()=>g,normalizeCodeFenceLanguages:()=>p}),l=r(),u=(0,s.lazy)(()=>a(async()=>{let{HighlightedMarkdown:e}=await import(`./markdown-code-7L4RiS50.js`);return{HighlightedMarkdown:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(({HighlightedMarkdown:e})=>({default:e})));function d(e){return e.replace(/^(\d+)\.\s*\n+\s*\n*/gm,`$1. `)}var f=new Set([`bash`,`diff`,`html`,`js`,`json`,`jsx`,`md`,`markdown`,`sh`,`shell`,`text`,`ts`,`tsx`,`yml`,`yaml`]);function p(e){return e.replace(/```([^\n]*)/g,(e,t)=>{let n=String(t||``).trim().toLowerCase();if(!n)return"```";let r=n.split(/\s+/)[0];return f.has(r)?`\`\`\`${r}`:"```text"})}var m=/^(https?:|mailto:)/i;function h(e,t){if(!(0,s.isValidElement)(e))return!1;let n=e.props;if(typeof n!=`object`||!n)return!1;let r=`node`in n?n.node:void 0,i=typeof r==`object`&&r&&`tagName`in r?r.tagName:void 0;return i===`img`?t:i===`code`&&`data-block`in n||`children`in n&&h(n.children,t)}var g={h1:({children:e,...t})=>(0,l.jsx)(`h1`,{...t,children:e}),h2:({children:e,...t})=>(0,l.jsx)(`h2`,{...t,children:e}),h3:({children:e,...t})=>(0,l.jsx)(`h3`,{...t,children:e}),h4:({children:e,...t})=>(0,l.jsx)(`h4`,{...t,children:e}),p:({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(e=>e!=null&&e!==``);return r.some(e=>h(e,r.length===1))?(0,l.jsx)(s.Fragment,{children:e}):(0,l.jsx)(`p`,{...n,children:e})},ul:({children:e,...t})=>(0,l.jsx)(`ul`,{...t,children:e}),ol:({children:e,...t})=>(0,l.jsx)(`ol`,{...t,children:e}),li:({children:e,...t})=>(0,l.jsx)(`li`,{...t,children:e}),strong:({children:e,...t})=>(0,l.jsx)(`strong`,{...t,children:e}),a:({href:e,children:t,...n})=>{if(typeof e!=`string`||!m.test(e))return(0,l.jsx)(`span`,{children:t});let r=e.startsWith(`http`);return(0,l.jsx)(`a`,{...n,href:e,target:r?`_blank`:void 0,rel:r?`noopener noreferrer`:void 0,children:t})},blockquote:({children:e,...t})=>(0,l.jsx)(`blockquote`,{...t,children:e}),hr:({...e})=>(0,l.jsx)(`hr`,{...e}),table:({children:e,...t})=>(0,l.jsx)(`div`,{className:`typeset-scroll`,children:(0,l.jsx)(`table`,{...t,children:e})}),th:({children:e,...t})=>(0,l.jsx)(`th`,{...t,children:e}),td:({children:e,...t})=>(0,l.jsx)(`td`,{...t,children:e})};function _({children:e,className:t}){return(0,l.jsx)(`div`,{className:i(`typeset typeset-chat`,`overflow-hidden wrap-break-word`,t),children:e})}function v({content:e,className:t,codeControls:n}){let r=(0,s.useMemo)(()=>p(d(e)),[e]);return(0,l.jsx)(_,{className:t,children:(0,l.jsx)(o,{components:g,controls:{code:n},children:r})})}function y(e){return e.isStreaming||!e.content.includes("```")?(0,l.jsx)(v,{...e}):(0,l.jsx)(s.Suspense,{fallback:(0,l.jsx)(v,{...e}),children:(0,l.jsx)(u,{...e})})}export{c as a,g as i,_ as n,p as o,d as r,y as t};
@@ -1,3 +0,0 @@
1
- import{t as e}from"./jsx-runtime-NZYk81nU.js";import{i as t}from"./chunk-D32TOXHM-BM74MRmz.js";import{c as n,n as r,r as i,s as a}from"./dist-CprW0Qol.js";import{i as o,n as s,o as c,r as l}from"./markdown-Big27m-v.js";var u=r({forgiving:!0}),d=Object.fromEntries(n.flatMap(e=>(e.aliases??[]).map(t=>[t,e.id]))),f=new Set(Object.keys(a)),p=e=>{let t=e.trim().toLowerCase();return d[t]||(f.has(t),t)},m=new Map,h=3e5,g=5e3,_=64,v=new Map,y=0,b=(e,t)=>{let n=t.tokens.length+Math.ceil(e.length/_);for(let e of t.tokens)n+=e.length;return n},x=e=>{let t=v.get(e);return t&&(v.delete(e),v.set(e,t)),t?.result},S=e=>{let t=v.get(e);t&&(v.delete(e),y-=t.cost)},C=(e,t)=>{S(e);let n=b(e,t);for(v.set(e,{cost:n,result:t}),y+=n;(y>h||v.size>g)&&v.size>1;)S(v.keys().next().value)},w=new Map,T=4,E=(e,t)=>{let n=w.get(e);if(!n)return;let r=n.findIndex(e=>t.startsWith(e.prefix));return r===-1?void 0:n.splice(r,1)[0]},D=(e,t)=>{let n=w.get(e);n||(n=[],w.set(e,n)),n.unshift(t),n.length>T&&n.pop()},O=(e,t)=>{if(t!==0)for(let n of e)for(let e of n)e.offset+=t},k=(e,t,n,r,i)=>{let a=E(n,t),o=a?a.prefix:``,s=a?a.rows:[],c=a?.grammarState,l=t.lastIndexOf(`
2
- `)+1;if(l>o.length){let a=e.codeToTokens(t.slice(o.length,l),{lang:r,themes:i,grammarState:c}),u=a.tokens;u.pop(),O(u,o.length),s=s.concat(u),c=a.grammarState,o=t.slice(0,l),D(n,{grammarState:c,prefix:o,rows:s})}else a&&D(n,a);let u=e.codeToTokens(t.slice(l),{lang:r,themes:i,grammarState:c});return O(u.tokens,l),{...u,tokens:s.concat(u.tokens)}},A=e=>typeof e==`string`?e:e.name??`custom`,j=(e,t)=>`${e}-${A(t[0])}-${A(t[1])}`,M=(e,t,n)=>`${t}:${n[0]}:${n[1]}
3
- ${e}`,N=(e,t)=>{let n=j(e,t);if(m.has(n))return m.get(n);let r=i({themes:t,langs:[e],engine:u});return m.set(n,r),r};function P(e={}){let t=e.themes??[`github-light`,`github-dark`];return{name:`shiki`,type:`code-highlighter`,supportsLanguage(e){let t=p(e);return f.has(t)},getSupportedLanguages(){return Array.from(f)},getThemes(){return t},highlight({code:e,language:t,themes:n,isIncomplete:r=!1},i){let a=p(t),o=[A(n[0]),A(n[1])],s=f.has(a)?a:`text`,c=M(e,s,o);return x(c)||(N(s,n).then(t=>{let l=t.getLoadedLanguages().includes(a)?a:`text`,u=x(c);u||(u=k(t,e,`${j(s,n)}:${l}`,l,{light:o[0],dark:o[1]}),r||C(c,u)),i?.(u)}).catch(e=>{console.error(`[Streamdown Code] Failed to highlight code:`,e)}),null)}}}P();var F=e(),I=P({themes:[`github-light`,`github-dark`]});function L({content:e,className:n,codeControls:r}){let i=c(l(e));return(0,F.jsx)(s,{className:n,children:(0,F.jsx)(t,{components:o,controls:{code:r},plugins:{code:I},children:i})})}export{L as HighlightedMarkdown};
@@ -1 +0,0 @@
1
- import{t as e}from"./jsx-runtime-NZYk81nU.js";import{t}from"./utils-CFDGLzf6.js";import{g as n,m as r,v as i}from"./select-Buvv1tIo.js";import{t as a}from"./createLucideIcon-CQY2ECfR.js";import{t as o}from"./bot-DETalD3q.js";import{t as s}from"./git-branch-DZEh2mM2.js";import{i as c,n as l,t as u}from"./sparkles-D_ANe-HY.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: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:o,placeholder:`sk-ant-…`,help:`Stored securely in your root .env.local file. Overrides the active ANTHROPIC_API_KEY environment variable.`},"google-vertex":{icon:l,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:s,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:u,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};