nolune 0.4.0 → 0.4.2

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 (541) hide show
  1. package/DESIGN.md +52 -12
  2. package/dist/chunks/{run-57FDIVMS.js → run-XM7YIEAW.js} +29 -7
  3. package/dist/cli.js +1 -1
  4. package/package.json +1 -1
  5. package/packages/web/build/client/_app/immutable/assets/0.DTnuPoms.css +2 -0
  6. package/packages/web/build/client/_app/immutable/assets/0.DTnuPoms.css.br +0 -0
  7. package/packages/web/build/client/_app/immutable/assets/{0.BTfoEJ25.css.gz → 0.DTnuPoms.css.gz} +0 -0
  8. package/packages/web/build/client/_app/immutable/chunks/{CyhdXPeH.js → AwlnAPt_.js} +5 -5
  9. package/packages/web/build/client/_app/immutable/chunks/AwlnAPt_.js.br +0 -0
  10. package/packages/web/build/client/_app/immutable/chunks/AwlnAPt_.js.gz +0 -0
  11. package/packages/web/build/client/_app/immutable/chunks/{CmyxQKzb.js → B0psERp-.js} +1 -1
  12. package/packages/web/build/client/_app/immutable/chunks/B0psERp-.js.br +0 -0
  13. package/packages/web/build/client/_app/immutable/chunks/B0psERp-.js.gz +0 -0
  14. package/packages/web/build/client/_app/immutable/chunks/{CfRpJkOC.js → B4dOTQGI.js} +1 -1
  15. package/packages/web/build/client/_app/immutable/chunks/B4dOTQGI.js.br +2 -0
  16. package/packages/web/build/client/_app/immutable/chunks/B4dOTQGI.js.gz +0 -0
  17. package/packages/web/build/client/_app/immutable/chunks/{BeEDfwJw.js → B6dKebLF.js} +1 -1
  18. package/packages/web/build/client/_app/immutable/chunks/B6dKebLF.js.br +0 -0
  19. package/packages/web/build/client/_app/immutable/chunks/B6dKebLF.js.gz +0 -0
  20. package/packages/web/build/client/_app/immutable/chunks/{BMnPy1wx.js → B7tXsaud.js} +1 -1
  21. package/packages/web/build/client/_app/immutable/chunks/B7tXsaud.js.br +0 -0
  22. package/packages/web/build/client/_app/immutable/chunks/B7tXsaud.js.gz +0 -0
  23. package/packages/web/build/client/_app/immutable/chunks/{B_rmELop.js → BCb2FcX-.js} +1 -1
  24. package/packages/web/build/client/_app/immutable/chunks/BCb2FcX-.js.br +0 -0
  25. package/packages/web/build/client/_app/immutable/chunks/BCb2FcX-.js.gz +0 -0
  26. package/packages/web/build/client/_app/immutable/chunks/{YSHpe8tA.js → BEHPE67f.js} +1 -1
  27. package/packages/web/build/client/_app/immutable/chunks/BEHPE67f.js.br +2 -0
  28. package/packages/web/build/client/_app/immutable/chunks/BEHPE67f.js.gz +0 -0
  29. package/packages/web/build/client/_app/immutable/chunks/{B8ruKwpA.js → BGRx4LH4.js} +1 -1
  30. package/packages/web/build/client/_app/immutable/chunks/BGRx4LH4.js.br +1 -0
  31. package/packages/web/build/client/_app/immutable/chunks/BGRx4LH4.js.gz +0 -0
  32. package/packages/web/build/client/_app/immutable/chunks/{DlC7O5v6.js → BQcXnbnC.js} +1 -1
  33. package/packages/web/build/client/_app/immutable/chunks/BQcXnbnC.js.br +0 -0
  34. package/packages/web/build/client/_app/immutable/chunks/BQcXnbnC.js.gz +0 -0
  35. package/packages/web/build/client/_app/immutable/chunks/{Cxq4KwT3.js → BU1lfrAt.js} +1 -1
  36. package/packages/web/build/client/_app/immutable/chunks/BU1lfrAt.js.br +0 -0
  37. package/packages/web/build/client/_app/immutable/chunks/BU1lfrAt.js.gz +0 -0
  38. package/packages/web/build/client/_app/immutable/chunks/{CNAdDeCg.js → BUCG0TDu.js} +1 -1
  39. package/packages/web/build/client/_app/immutable/chunks/BUCG0TDu.js.br +0 -0
  40. package/packages/web/build/client/_app/immutable/chunks/BUCG0TDu.js.gz +0 -0
  41. package/packages/web/build/client/_app/immutable/chunks/{CtAqtu_r.js → BVy43h-D.js} +1 -1
  42. package/packages/web/build/client/_app/immutable/chunks/BVy43h-D.js.br +0 -0
  43. package/packages/web/build/client/_app/immutable/chunks/BVy43h-D.js.gz +0 -0
  44. package/packages/web/build/client/_app/immutable/chunks/{BPKK0etX.js → BhOcmMP6.js} +1 -1
  45. package/packages/web/build/client/_app/immutable/chunks/BhOcmMP6.js.br +0 -0
  46. package/packages/web/build/client/_app/immutable/chunks/BhOcmMP6.js.gz +0 -0
  47. package/packages/web/build/client/_app/immutable/chunks/{0CkPnC0U.js → BnPnx1BS.js} +1 -1
  48. package/packages/web/build/client/_app/immutable/chunks/BnPnx1BS.js.br +0 -0
  49. package/packages/web/build/client/_app/immutable/chunks/BnPnx1BS.js.gz +0 -0
  50. package/packages/web/build/client/_app/immutable/chunks/{DKOg5jTJ.js → BtJh6BW0.js} +1 -1
  51. package/packages/web/build/client/_app/immutable/chunks/BtJh6BW0.js.br +0 -0
  52. package/packages/web/build/client/_app/immutable/chunks/BtJh6BW0.js.gz +0 -0
  53. package/packages/web/build/client/_app/immutable/chunks/{Cd7ZmOZV.js → C238of6k.js} +1 -1
  54. package/packages/web/build/client/_app/immutable/chunks/C238of6k.js.br +0 -0
  55. package/packages/web/build/client/_app/immutable/chunks/C238of6k.js.gz +0 -0
  56. package/packages/web/build/client/_app/immutable/chunks/{DdXAYCzx.js → C3AiOJdj.js} +1 -1
  57. package/packages/web/build/client/_app/immutable/chunks/C3AiOJdj.js.br +0 -0
  58. package/packages/web/build/client/_app/immutable/chunks/C3AiOJdj.js.gz +0 -0
  59. package/packages/web/build/client/_app/immutable/chunks/{pcmzLgTE.js → C4Xqr7Fj.js} +1 -1
  60. package/packages/web/build/client/_app/immutable/chunks/C4Xqr7Fj.js.br +0 -0
  61. package/packages/web/build/client/_app/immutable/chunks/C4Xqr7Fj.js.gz +0 -0
  62. package/packages/web/build/client/_app/immutable/chunks/{CPXn603x.js → C5iI_OsH.js} +1 -1
  63. package/packages/web/build/client/_app/immutable/chunks/C5iI_OsH.js.br +0 -0
  64. package/packages/web/build/client/_app/immutable/chunks/C5iI_OsH.js.gz +0 -0
  65. package/packages/web/build/client/_app/immutable/chunks/{xKSkWfAF.js → CA_XVn89.js} +1 -1
  66. package/packages/web/build/client/_app/immutable/chunks/CA_XVn89.js.br +2 -0
  67. package/packages/web/build/client/_app/immutable/chunks/CA_XVn89.js.gz +0 -0
  68. package/packages/web/build/client/_app/immutable/chunks/{Dh4mEeLQ.js → CAz7hU5S.js} +1 -1
  69. package/packages/web/build/client/_app/immutable/chunks/CAz7hU5S.js.br +0 -0
  70. package/packages/web/build/client/_app/immutable/chunks/CAz7hU5S.js.gz +0 -0
  71. package/packages/web/build/client/_app/immutable/chunks/{D5KiHwN1.js → CCibcuvE.js} +1 -1
  72. package/packages/web/build/client/_app/immutable/chunks/CCibcuvE.js.br +0 -0
  73. package/packages/web/build/client/_app/immutable/chunks/CCibcuvE.js.gz +0 -0
  74. package/packages/web/build/client/_app/immutable/chunks/{8UkoxCih.js → CE2DpKar.js} +2 -2
  75. package/packages/web/build/client/_app/immutable/chunks/CE2DpKar.js.br +0 -0
  76. package/packages/web/build/client/_app/immutable/chunks/CE2DpKar.js.gz +0 -0
  77. package/packages/web/build/client/_app/immutable/chunks/{CBl3Um_l.js → CGiFplSA.js} +1 -1
  78. package/packages/web/build/client/_app/immutable/chunks/CGiFplSA.js.br +0 -0
  79. package/packages/web/build/client/_app/immutable/chunks/CGiFplSA.js.gz +0 -0
  80. package/packages/web/build/client/_app/immutable/chunks/{mIRGGBc6.js → CQSR9BkJ.js} +1 -1
  81. package/packages/web/build/client/_app/immutable/chunks/CQSR9BkJ.js.br +0 -0
  82. package/packages/web/build/client/_app/immutable/chunks/CQSR9BkJ.js.gz +0 -0
  83. package/packages/web/build/client/_app/immutable/chunks/{DkDi6YxC.js → CXS58JOV.js} +1 -1
  84. package/packages/web/build/client/_app/immutable/chunks/CXS58JOV.js.br +0 -0
  85. package/packages/web/build/client/_app/immutable/chunks/CXS58JOV.js.gz +0 -0
  86. package/packages/web/build/client/_app/immutable/chunks/{CHB_7hVn.js → C_rGKciz.js} +1 -1
  87. package/packages/web/build/client/_app/immutable/chunks/C_rGKciz.js.br +0 -0
  88. package/packages/web/build/client/_app/immutable/chunks/C_rGKciz.js.gz +0 -0
  89. package/packages/web/build/client/_app/immutable/chunks/{CdG3AH1Q.js → CaahyXtC.js} +1 -1
  90. package/packages/web/build/client/_app/immutable/chunks/CaahyXtC.js.br +0 -0
  91. package/packages/web/build/client/_app/immutable/chunks/CaahyXtC.js.gz +0 -0
  92. package/packages/web/build/client/_app/immutable/chunks/{63KEjKgF.js → CfHYzoiD.js} +1 -1
  93. package/packages/web/build/client/_app/immutable/chunks/CfHYzoiD.js.br +0 -0
  94. package/packages/web/build/client/_app/immutable/chunks/CfHYzoiD.js.gz +0 -0
  95. package/packages/web/build/client/_app/immutable/chunks/{BVzfpEZz.js → ClEpdm9X.js} +1 -1
  96. package/packages/web/build/client/_app/immutable/chunks/ClEpdm9X.js.br +3 -0
  97. package/packages/web/build/client/_app/immutable/chunks/ClEpdm9X.js.gz +0 -0
  98. package/packages/web/build/client/_app/immutable/chunks/{BtBTCj8x.js → ClSwhmjL.js} +1 -1
  99. package/packages/web/build/client/_app/immutable/chunks/ClSwhmjL.js.br +0 -0
  100. package/packages/web/build/client/_app/immutable/chunks/ClSwhmjL.js.gz +0 -0
  101. package/packages/web/build/client/_app/immutable/chunks/{BTCoWUwK.js → ClppYdjP.js} +1 -1
  102. package/packages/web/build/client/_app/immutable/chunks/ClppYdjP.js.br +0 -0
  103. package/packages/web/build/client/_app/immutable/chunks/ClppYdjP.js.gz +0 -0
  104. package/packages/web/build/client/_app/immutable/chunks/{BC1vm_Fv.js → CmM-4RFG.js} +1 -1
  105. package/packages/web/build/client/_app/immutable/chunks/CmM-4RFG.js.br +0 -0
  106. package/packages/web/build/client/_app/immutable/chunks/CmM-4RFG.js.gz +0 -0
  107. package/packages/web/build/client/_app/immutable/chunks/{CqvXydBN.js → CpXfakoi.js} +1 -1
  108. package/packages/web/build/client/_app/immutable/chunks/CpXfakoi.js.br +0 -0
  109. package/packages/web/build/client/_app/immutable/chunks/CpXfakoi.js.gz +0 -0
  110. package/packages/web/build/client/_app/immutable/chunks/{bT_6u-am.js → CrCk-NyX.js} +1 -1
  111. package/packages/web/build/client/_app/immutable/chunks/CrCk-NyX.js.br +0 -0
  112. package/packages/web/build/client/_app/immutable/chunks/CrCk-NyX.js.gz +0 -0
  113. package/packages/web/build/client/_app/immutable/chunks/{BBuQNTxW.js → CywApwhc.js} +1 -1
  114. package/packages/web/build/client/_app/immutable/chunks/CywApwhc.js.br +0 -0
  115. package/packages/web/build/client/_app/immutable/chunks/CywApwhc.js.gz +0 -0
  116. package/packages/web/build/client/_app/immutable/chunks/{7t7uPQet.js → D31s_g8n.js} +2 -2
  117. package/packages/web/build/client/_app/immutable/chunks/D31s_g8n.js.br +0 -0
  118. package/packages/web/build/client/_app/immutable/chunks/D31s_g8n.js.gz +0 -0
  119. package/packages/web/build/client/_app/immutable/chunks/{T_LoDQZ8.js → DDRoGIP9.js} +1 -1
  120. package/packages/web/build/client/_app/immutable/chunks/DDRoGIP9.js.br +0 -0
  121. package/packages/web/build/client/_app/immutable/chunks/DDRoGIP9.js.gz +0 -0
  122. package/packages/web/build/client/_app/immutable/chunks/{BU_hkWVh.js → DGcS8KSS.js} +1 -1
  123. package/packages/web/build/client/_app/immutable/chunks/DGcS8KSS.js.br +0 -0
  124. package/packages/web/build/client/_app/immutable/chunks/DGcS8KSS.js.gz +0 -0
  125. package/packages/web/build/client/_app/immutable/chunks/{DUB9Upnc.js → DK1UHLR-.js} +1 -1
  126. package/packages/web/build/client/_app/immutable/chunks/DK1UHLR-.js.br +0 -0
  127. package/packages/web/build/client/_app/immutable/chunks/DK1UHLR-.js.gz +0 -0
  128. package/packages/web/build/client/_app/immutable/chunks/{T94IbSnz.js → DZk-gkAU.js} +1 -1
  129. package/packages/web/build/client/_app/immutable/chunks/DZk-gkAU.js.br +0 -0
  130. package/packages/web/build/client/_app/immutable/chunks/DZk-gkAU.js.gz +0 -0
  131. package/packages/web/build/client/_app/immutable/chunks/{GpmZ3O-G.js → DeP17kbD.js} +1 -1
  132. package/packages/web/build/client/_app/immutable/chunks/DeP17kbD.js.br +0 -0
  133. package/packages/web/build/client/_app/immutable/chunks/DeP17kbD.js.gz +0 -0
  134. package/packages/web/build/client/_app/immutable/chunks/{yHKvOvH3.js → DelhG4NG.js} +1 -1
  135. package/packages/web/build/client/_app/immutable/chunks/DelhG4NG.js.br +0 -0
  136. package/packages/web/build/client/_app/immutable/chunks/DelhG4NG.js.gz +0 -0
  137. package/packages/web/build/client/_app/immutable/chunks/{BKqaGVP4.js → DmAdEzQs.js} +1 -1
  138. package/packages/web/build/client/_app/immutable/chunks/DmAdEzQs.js.br +0 -0
  139. package/packages/web/build/client/_app/immutable/chunks/DmAdEzQs.js.gz +0 -0
  140. package/packages/web/build/client/_app/immutable/chunks/{DDzx5zu6.js → DuG8sfLq.js} +1 -1
  141. package/packages/web/build/client/_app/immutable/chunks/DuG8sfLq.js.br +0 -0
  142. package/packages/web/build/client/_app/immutable/chunks/DuG8sfLq.js.gz +0 -0
  143. package/packages/web/build/client/_app/immutable/chunks/{FSGbsJ1X.js → GTRzOEzD.js} +1 -1
  144. package/packages/web/build/client/_app/immutable/chunks/GTRzOEzD.js.br +0 -0
  145. package/packages/web/build/client/_app/immutable/chunks/GTRzOEzD.js.gz +0 -0
  146. package/packages/web/build/client/_app/immutable/chunks/{DnWuWNGA.js → IjF4KE1B.js} +1 -1
  147. package/packages/web/build/client/_app/immutable/chunks/IjF4KE1B.js.br +0 -0
  148. package/packages/web/build/client/_app/immutable/chunks/IjF4KE1B.js.gz +0 -0
  149. package/packages/web/build/client/_app/immutable/chunks/{BfmbbzDN.js → MApZQR0b.js} +1 -1
  150. package/packages/web/build/client/_app/immutable/chunks/MApZQR0b.js.br +0 -0
  151. package/packages/web/build/client/_app/immutable/chunks/MApZQR0b.js.gz +0 -0
  152. package/packages/web/build/client/_app/immutable/chunks/{383CdCvq.js → N3oV-8Ie.js} +1 -1
  153. package/packages/web/build/client/_app/immutable/chunks/N3oV-8Ie.js.br +0 -0
  154. package/packages/web/build/client/_app/immutable/chunks/N3oV-8Ie.js.gz +0 -0
  155. package/packages/web/build/client/_app/immutable/chunks/{CIEGjRN1.js → iiqQqDMt.js} +1 -1
  156. package/packages/web/build/client/_app/immutable/chunks/iiqQqDMt.js.br +0 -0
  157. package/packages/web/build/client/_app/immutable/chunks/iiqQqDMt.js.gz +0 -0
  158. package/packages/web/build/client/_app/immutable/chunks/{XNSVhFq3.js → k3ZB4WVm.js} +1 -1
  159. package/packages/web/build/client/_app/immutable/chunks/k3ZB4WVm.js.br +0 -0
  160. package/packages/web/build/client/_app/immutable/chunks/k3ZB4WVm.js.gz +0 -0
  161. package/packages/web/build/client/_app/immutable/chunks/{BMYHD-Yy.js → pAzEohwE.js} +1 -1
  162. package/packages/web/build/client/_app/immutable/chunks/pAzEohwE.js.br +2 -0
  163. package/packages/web/build/client/_app/immutable/chunks/pAzEohwE.js.gz +0 -0
  164. package/packages/web/build/client/_app/immutable/chunks/{DsGCMQUF.js → vmc6srO5.js} +1 -1
  165. package/packages/web/build/client/_app/immutable/chunks/vmc6srO5.js.br +2 -0
  166. package/packages/web/build/client/_app/immutable/chunks/vmc6srO5.js.gz +0 -0
  167. package/packages/web/build/client/_app/immutable/chunks/{DIkRlUCG.js → ypBpP4nr.js} +1 -1
  168. package/packages/web/build/client/_app/immutable/chunks/ypBpP4nr.js.br +0 -0
  169. package/packages/web/build/client/_app/immutable/chunks/ypBpP4nr.js.gz +0 -0
  170. package/packages/web/build/client/_app/immutable/entry/{app.CmiSyUhD.js → app.D9io9O7v.js} +2 -2
  171. package/packages/web/build/client/_app/immutable/entry/app.D9io9O7v.js.br +0 -0
  172. package/packages/web/build/client/_app/immutable/entry/app.D9io9O7v.js.gz +0 -0
  173. package/packages/web/build/client/_app/immutable/entry/start.BgaOwPMP.js +1 -0
  174. package/packages/web/build/client/_app/immutable/entry/start.BgaOwPMP.js.br +1 -0
  175. package/packages/web/build/client/_app/immutable/entry/start.BgaOwPMP.js.gz +0 -0
  176. package/packages/web/build/client/_app/immutable/nodes/{0.Cx2Nt1tl.js → 0.C9CR-5kd.js} +1 -1
  177. package/packages/web/build/client/_app/immutable/nodes/0.C9CR-5kd.js.br +0 -0
  178. package/packages/web/build/client/_app/immutable/nodes/0.C9CR-5kd.js.gz +0 -0
  179. package/packages/web/build/client/_app/immutable/nodes/{1.mKvnEvz3.js → 1.DikBrROv.js} +1 -1
  180. package/packages/web/build/client/_app/immutable/nodes/1.DikBrROv.js.br +0 -0
  181. package/packages/web/build/client/_app/immutable/nodes/1.DikBrROv.js.gz +0 -0
  182. package/packages/web/build/client/_app/immutable/nodes/{10.PFvIfDDe.js → 10.3t9WnHvs.js} +1 -1
  183. package/packages/web/build/client/_app/immutable/nodes/10.3t9WnHvs.js.br +0 -0
  184. package/packages/web/build/client/_app/immutable/nodes/10.3t9WnHvs.js.gz +0 -0
  185. package/packages/web/build/client/_app/immutable/nodes/11.Op2wvZXP.js +4 -0
  186. package/packages/web/build/client/_app/immutable/nodes/11.Op2wvZXP.js.br +0 -0
  187. package/packages/web/build/client/_app/immutable/nodes/11.Op2wvZXP.js.gz +0 -0
  188. package/packages/web/build/client/_app/immutable/nodes/{12.BXMPGR7n.js → 12.CjrjNFKj.js} +1 -1
  189. package/packages/web/build/client/_app/immutable/nodes/12.CjrjNFKj.js.br +0 -0
  190. package/packages/web/build/client/_app/immutable/nodes/12.CjrjNFKj.js.gz +0 -0
  191. package/packages/web/build/client/_app/immutable/nodes/{13.DFqcL__B.js → 13.CiddqUIq.js} +1 -1
  192. package/packages/web/build/client/_app/immutable/nodes/13.CiddqUIq.js.br +0 -0
  193. package/packages/web/build/client/_app/immutable/nodes/13.CiddqUIq.js.gz +0 -0
  194. package/packages/web/build/client/_app/immutable/nodes/{14.lLDIO-cr.js → 14.D189pX_R.js} +1 -1
  195. package/packages/web/build/client/_app/immutable/nodes/14.D189pX_R.js.br +0 -0
  196. package/packages/web/build/client/_app/immutable/nodes/14.D189pX_R.js.gz +0 -0
  197. package/packages/web/build/client/_app/immutable/nodes/{15.CdvDW_CH.js → 15.L9U9QVzo.js} +1 -1
  198. package/packages/web/build/client/_app/immutable/nodes/15.L9U9QVzo.js.br +0 -0
  199. package/packages/web/build/client/_app/immutable/nodes/15.L9U9QVzo.js.gz +0 -0
  200. package/packages/web/build/client/_app/immutable/nodes/{16.0-eYPyAZ.js → 16.DSMrlY8n.js} +1 -1
  201. package/packages/web/build/client/_app/immutable/nodes/16.DSMrlY8n.js.br +0 -0
  202. package/packages/web/build/client/_app/immutable/nodes/16.DSMrlY8n.js.gz +0 -0
  203. package/packages/web/build/client/_app/immutable/nodes/{17.CHtcHvSr.js → 17.Bbk_u6OJ.js} +1 -1
  204. package/packages/web/build/client/_app/immutable/nodes/17.Bbk_u6OJ.js.br +0 -0
  205. package/packages/web/build/client/_app/immutable/nodes/17.Bbk_u6OJ.js.gz +0 -0
  206. package/packages/web/build/client/_app/immutable/nodes/{18.CPrgOD7O.js → 18.DV_cA_3-.js} +1 -1
  207. package/packages/web/build/client/_app/immutable/nodes/18.DV_cA_3-.js.br +0 -0
  208. package/packages/web/build/client/_app/immutable/nodes/18.DV_cA_3-.js.gz +0 -0
  209. package/packages/web/build/client/_app/immutable/nodes/{2.CXN61hY3.js → 2.DJvpS8CT.js} +1 -1
  210. package/packages/web/build/client/_app/immutable/nodes/2.DJvpS8CT.js.br +0 -0
  211. package/packages/web/build/client/_app/immutable/nodes/2.DJvpS8CT.js.gz +0 -0
  212. package/packages/web/build/client/_app/immutable/nodes/{4.DRX2YsLZ.js → 4.v0gFXgkE.js} +1 -1
  213. package/packages/web/build/client/_app/immutable/nodes/4.v0gFXgkE.js.br +0 -0
  214. package/packages/web/build/client/_app/immutable/nodes/4.v0gFXgkE.js.gz +0 -0
  215. package/packages/web/build/client/_app/immutable/nodes/{5.DIvw1O7N.js → 5.CvNd-aT1.js} +1 -1
  216. package/packages/web/build/client/_app/immutable/nodes/5.CvNd-aT1.js.br +0 -0
  217. package/packages/web/build/client/_app/immutable/nodes/5.CvNd-aT1.js.gz +0 -0
  218. package/packages/web/build/client/_app/immutable/nodes/{6.tJFXgj7k.js → 6.Cwb-H-e-.js} +1 -1
  219. package/packages/web/build/client/_app/immutable/nodes/6.Cwb-H-e-.js.br +0 -0
  220. package/packages/web/build/client/_app/immutable/nodes/6.Cwb-H-e-.js.gz +0 -0
  221. package/packages/web/build/client/_app/immutable/nodes/{7.BhQ8HFTI.js → 7.BesKsRyM.js} +1 -1
  222. package/packages/web/build/client/_app/immutable/nodes/7.BesKsRyM.js.br +0 -0
  223. package/packages/web/build/client/_app/immutable/nodes/7.BesKsRyM.js.gz +0 -0
  224. package/packages/web/build/client/_app/immutable/nodes/{8.BhDo_F5Y.js → 8.IWTTmi0T.js} +1 -1
  225. package/packages/web/build/client/_app/immutable/nodes/8.IWTTmi0T.js.br +0 -0
  226. package/packages/web/build/client/_app/immutable/nodes/8.IWTTmi0T.js.gz +0 -0
  227. package/packages/web/build/client/_app/immutable/nodes/{9.CYluA9Fx.js → 9.BksbXEiN.js} +1 -1
  228. package/packages/web/build/client/_app/immutable/nodes/9.BksbXEiN.js.br +0 -0
  229. package/packages/web/build/client/_app/immutable/nodes/9.BksbXEiN.js.gz +0 -0
  230. package/packages/web/build/client/_app/version.json +1 -1
  231. package/packages/web/build/client/_app/version.json.br +0 -0
  232. package/packages/web/build/client/_app/version.json.gz +0 -0
  233. package/packages/web/build/handler.js +4 -4
  234. package/packages/web/build/index.js +4 -4
  235. package/packages/web/build/server/chunks/chunks/{AssistantAvatar.js-C6ouYhFj.js → AssistantAvatar.js-BOElnrYl.js} +4 -4
  236. package/packages/web/build/server/chunks/chunks/{AvatarPicker.js-Dh6uJ0YS.js → AvatarPicker.js-CLhSkMaB.js} +6 -6
  237. package/packages/web/build/server/chunks/chunks/{Composer.js-Bhzoyc77.js → Composer.js-BbcT-FLv.js} +7 -7
  238. package/packages/web/build/server/chunks/chunks/{ComposerDock.js-BWStX--0.js → ComposerDock.js-B26-qji-.js} +2 -2
  239. package/packages/web/build/server/chunks/chunks/{CopyButton.js-CyKwVziA.js → CopyButton.js-Bg6aJO9i.js} +4 -4
  240. package/packages/web/build/server/chunks/chunks/{DotGrid.js-rxfz8TRy.js → DotGrid.js-DEty8Ftx.js} +3 -3
  241. package/packages/web/build/server/chunks/chunks/{MemoryChangeItem.js-BbXEwo_e.js → MemoryChangeItem.js-XSzCkKCr.js} +9 -9
  242. package/packages/web/build/server/chunks/chunks/{ModelMenu.js-CfS7uQyt.js → ModelMenu.js-DyvxWk4C.js} +9 -9
  243. package/packages/web/build/server/chunks/chunks/{MoveToFolderMenu.js-DyhjEq1t.js → MoveToFolderMenu.js-BkRCW9eh.js} +8 -8
  244. package/packages/web/build/server/chunks/chunks/{NewChatForm.js-CytbQz66.js → NewChatForm.js-40tqChFh.js} +11 -11
  245. package/packages/web/build/server/chunks/chunks/{NewFolderDialog.js-BgUsRi8d.js → NewFolderDialog.js-C6CjVSY0.js} +6 -6
  246. package/packages/web/build/server/chunks/chunks/{Notifications.js-wImTLCEI.js → Notifications.js-CQqL8zeJ.js} +8 -8
  247. package/packages/web/build/server/chunks/chunks/{PageHeader.js-COmRBQKn.js → PageHeader.js-BgCv8CGm.js} +8 -8
  248. package/packages/web/build/server/chunks/chunks/{RenameFolderDialog.js-C0eQMZ95.js → RenameFolderDialog.js-BgF-2T2D.js} +8 -8
  249. package/packages/web/build/server/chunks/chunks/{StepIcon.js-BdUvCI-b.js → StepIcon.js-ClUo5irL.js} +3 -3
  250. package/packages/web/build/server/chunks/chunks/{TopBar.js-DQNZSUb_.js → TopBar.js-nYKfnv4T.js} +5 -5
  251. package/packages/web/build/server/chunks/chunks/{TypedText.js-BkktG6PP.js → TypedText.js-DM0Ozjdc.js} +3 -3
  252. package/packages/web/build/server/chunks/chunks/{UserAvatar.js-BueRY_7M.js → UserAvatar.js-DKnmWp86.js} +3 -3
  253. package/packages/web/build/server/chunks/chunks/{UserMenu.js-Bjlqo20D.js → UserMenu.js-CLVbCOpM.js} +19 -19
  254. package/packages/web/build/server/chunks/chunks/{access.js-MEV99oxr.js → access.js-CMaS81rW.js} +3 -3
  255. package/packages/web/build/server/chunks/chunks/{accounts.js-CwPuZbNZ.js → accounts.js--GU4-Jf5.js} +2 -2
  256. package/packages/web/build/server/chunks/chunks/{alert-dialog.js-DTeiOhPp.js → alert-dialog.js-CZD6TyzD.js} +6 -6
  257. package/packages/web/build/server/chunks/chunks/{auth.js-DSZaNVcT.js → auth.js-CjtH41kh.js} +3 -3
  258. package/packages/web/build/server/chunks/chunks/{badge.js-R_bmDgHG.js → badge.js-DhrZz9tJ.js} +4 -4
  259. package/packages/web/build/server/chunks/chunks/{camera.js-BSOU0lJn.js → camera.js-DMildJpv.js} +2 -2
  260. package/packages/web/build/server/chunks/chunks/{check.js-DF62U3rV.js → check.js-CgqvmEKJ.js} +2 -2
  261. package/packages/web/build/server/chunks/chunks/{chevron-left.js-BMVrTjCW.js → chevron-left.js-DrLivp1c.js} +2 -2
  262. package/packages/web/build/server/chunks/chunks/{chevron-right.js-DzX_dEQc.js → chevron-right.js-BVi8OuAb.js} +2 -2
  263. package/packages/web/build/server/chunks/chunks/{chevrons-up-down.js-RsB5ZQnX.js → chevrons-up-down.js-BKkCIwCT.js} +2 -2
  264. package/packages/web/build/server/chunks/chunks/{client.js-CDiYfs8I.js → client.js-Dg5neIp5.js} +2 -2
  265. package/packages/web/build/server/chunks/chunks/{clock.js-D9QiB1c5.js → clock.js-BK9UDxCS.js} +2 -2
  266. package/packages/web/build/server/chunks/chunks/{collapsible.js-knAsppgW.js → collapsible.js-QcUf1Ekr.js} +3 -3
  267. package/packages/web/build/server/chunks/chunks/{command.js-CoL-g1oR.js → command.js-qzkTIb4n.js} +9 -9
  268. package/packages/web/build/server/chunks/chunks/{dialog.js-1YQYqJNO.js → dialog.js-DATXmio9.js} +8 -8
  269. package/packages/web/build/server/chunks/chunks/{dist.js-CJcPriqu.js → dist.js-CHzkIw-w.js} +3 -3
  270. package/packages/web/build/server/chunks/chunks/{download.js-DGtNY62p.js → download.js-CrFy9e4X.js} +2 -2
  271. package/packages/web/build/server/chunks/chunks/{dropdown-menu.js-Dg5o_TY7.js → dropdown-menu.js-BMbh502s.js} +9 -9
  272. package/packages/web/build/server/chunks/chunks/{eraser.js-DyB6JAFd.js → eraser.js-BU4dlvFH.js} +2 -2
  273. package/packages/web/build/server/chunks/chunks/{folder-input.js-3Fw2cedQ.js → folder-input.js-DkjPvOkW.js} +2 -2
  274. package/packages/web/build/server/chunks/chunks/{forms.js-ByB1sEfL.js → forms.js-JM_GpxQF.js} +3 -3
  275. package/packages/web/build/server/chunks/chunks/{hidden-input.js-hdLLOkF9.js → hidden-input.js-CIt9W_5y.js} +2 -2
  276. package/packages/web/build/server/chunks/chunks/{i18n.js-BJ1t-tRk.js → i18n.js-Cakuk6U0.js} +16 -1
  277. package/packages/web/build/server/chunks/chunks/{internal2.js-Dc6Su8gz.js → internal2.js-CM6RC5j4.js} +3 -3
  278. package/packages/web/build/server/chunks/chunks/{key-round.js-BG8KurAs.js → key-round.js-BFVR2_CE.js} +2 -2
  279. package/packages/web/build/server/chunks/chunks/{message-circle.js-CIYARy2F.js → message-circle.js-D49Sk0Wt.js} +2 -2
  280. package/packages/web/build/server/chunks/chunks/{motion.js-BB9zpypn.js → motion.js-BGVcte_O.js} +2 -2
  281. package/packages/web/build/server/chunks/chunks/{paths.js-BbQAQ3al.js → paths.js-vTKfgV_W.js} +2 -2
  282. package/packages/web/build/server/chunks/chunks/{pencil.js-BimOkKUF.js → pencil.js-DrsRjIqk.js} +2 -2
  283. package/packages/web/build/server/chunks/chunks/{plus.js-Bjx-r8Fd.js → plus.js-E-pmHa3v.js} +2 -2
  284. package/packages/web/build/server/chunks/chunks/{select.js-B_VyDz52.js → select.js-CADiX1B7.js} +10 -10
  285. package/packages/web/build/server/chunks/chunks/{shield-check.js-KPxjKir3.js → shield-check.js-CifO8sPn.js} +2 -2
  286. package/packages/web/build/server/chunks/chunks/{sidebar.js-JweLoiFM.js → sidebar.js-CjZAbET4.js} +7 -7
  287. package/packages/web/build/server/chunks/chunks/{square-pen.js-Bch46v7o.js → square-pen.js-CMKwoVdr.js} +2 -2
  288. package/packages/web/build/server/chunks/chunks/{src.js-By1ympQX.js → src.js-DlynI0hv.js} +328 -43
  289. package/packages/web/build/server/chunks/chunks/{state.js-Cc40pHn4.js → state.js-DjG_xJ6v.js} +2 -2
  290. package/packages/web/build/server/chunks/chunks/{switch.js-C6G7NxB4.js → switch.js-BykxjriZ.js} +5 -5
  291. package/packages/web/build/server/chunks/chunks/{terminal.js-e1aZBkI1.js → terminal.js-D6dBIpDn.js} +2 -2
  292. package/packages/web/build/server/chunks/chunks/{textarea.js-CWk8fI7W.js → textarea.js-B5-NW0l1.js} +3 -3
  293. package/packages/web/build/server/chunks/chunks/{tooltip.js-TDhWLmLB.js → tooltip.js-CefNT6DH.js} +4 -4
  294. package/packages/web/build/server/chunks/chunks/{utils2.js-DuMjoPpv.js → utils2.js-D1jvsxxx.js} +2 -2
  295. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/commands/{_server.ts.js-BUdKgGE5.js → _server.ts.js-DkJz0GER.js} +4 -4
  296. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/continue/{_server.ts.js-JUQNzkwL.js → _server.ts.js-DwqrktqL.js} +4 -4
  297. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/effort/{_server.ts.js-0HrRnyVd.js → _server.ts.js-BmjT-Ztn.js} +4 -4
  298. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/events/{_server.ts.js-Fd5TUWQl.js → _server.ts.js-B5EB81bi.js} +4 -4
  299. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/folder/{_server.ts.js-D7TLE8fM.js → _server.ts.js-Dw0QpRlp.js} +4 -4
  300. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/media/_mediaId_/{_server.ts.js-trGpeYuv.js → _server.ts.js-Bx0OedB1.js} +4 -4
  301. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/messages/{_server.ts.js-Cj42Eqpu.js → _server.ts.js-DDYKj9gS.js} +4 -4
  302. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/preset/{_server.ts.js-CGSBpTtH.js → _server.ts.js-DEJaoQV0.js} +4 -4
  303. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/stop/{_server.ts.js-BF6x11dT.js → _server.ts.js-Dw7fPXTJ.js} +4 -4
  304. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/typing/{_server.ts.js-CZF1e0JF.js → _server.ts.js-KhlfQb5X.js} +4 -4
  305. package/packages/web/build/server/chunks/entries/endpoints/api/card/changes/_id_/keep/{_server.ts.js-ToCgvTHB.js → _server.ts.js-CpO5Tw0v.js} +4 -4
  306. package/packages/web/build/server/chunks/entries/endpoints/api/chatgpt/sign-in/{_server.ts.js-BqCdSgku.js → _server.ts.js-CGa-3Tfb.js} +4 -4
  307. package/packages/web/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-CbtmJhWO.js → _server.ts.js-BBNo5Duy.js} +4 -4
  308. package/packages/web/build/server/chunks/entries/endpoints/api/hooks/_token_/{_server.ts.js-B24UQgy8.js → _server.ts.js-DB0HkrPc.js} +2 -2
  309. package/packages/web/build/server/chunks/entries/endpoints/api/me/{_server.ts.js-Dr42RbxS.js → _server.ts.js-b6-lm_Ed.js} +5 -5
  310. package/packages/web/build/server/chunks/entries/endpoints/api/me/picture/{_server.ts.js-DejpXj_X.js → _server.ts.js-CXaSRFEH.js} +4 -4
  311. package/packages/web/build/server/chunks/entries/endpoints/api/models/{_server.ts.js-BW6vfx0M.js → _server.ts.js-lvH7AJAs.js} +4 -4
  312. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/_id_/continue/{_server.ts.js-B6nzEuvX.js → _server.ts.js-DApMRDk0.js} +4 -4
  313. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/_id_/dismiss/{_server.ts.js-zEnupBQa.js → _server.ts.js-CrvUxZUu.js} +4 -4
  314. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/clear/{_server.ts.js-BfN93TIh.js → _server.ts.js-UXu_qsCl.js} +4 -4
  315. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/seen/{_server.ts.js-wt_ytrYV.js → _server.ts.js-DtA3xn3g.js} +4 -4
  316. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_folder_/files/_file_/{_server.ts.js-DHgnYoko.js → _server.ts.js-DysFASqZ.js} +4 -4
  317. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/folders/{_server.ts.js-I4ay6EVe.js → _server.ts.js-BDEdyBpH.js} +4 -4
  318. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/memory/_id_/undo/{_server.ts.js-BNQZ8SJB.js → _server.ts.js-BZEyhdCW.js} +4 -4
  319. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/running/{_server.ts.js-CHCUhPy0.js → _server.ts.js-NEH54dIz.js} +4 -4
  320. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/suggestions/{_server.ts.js-CZW8C439.js → _server.ts.js-BhqMxAjp.js} +4 -4
  321. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/templates/_id_/cover/{_server.ts.js-DmLQWK_v.js → _server.ts.js-rw9q81We.js} +4 -4
  322. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/_id_/{_server.ts.js-IF3LoJVy.js → _server.ts.js-B9fQriGr.js} +4 -4
  323. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/{_server.ts.js-B2gMGzM1.js → _server.ts.js-D4v_ixwU.js} +4 -4
  324. package/packages/web/build/server/chunks/entries/endpoints/api/pictures/_sha256_/{_server.ts.js-DMMjPwus.js → _server.ts.js-YGGiBW89.js} +4 -4
  325. package/packages/web/build/server/chunks/entries/endpoints/logout/{_server.ts.js-Dv8ACUIe.js → _server.ts.js-D85x_95g.js} +4 -4
  326. package/packages/web/build/server/chunks/entries/fallbacks/{error.svelte.js-B57x2daG.js → error.svelte.js-Cb-94Mjg.js} +4 -4
  327. package/packages/web/build/server/chunks/entries/{hooks.server.js-CmYecjEj.js → hooks.server.js-b1SYQXEi.js} +5 -5
  328. package/packages/web/build/server/chunks/entries/pages/{_layout.server.ts.js-_lmcaO0x.js → _layout.server.ts.js-vgQ7FD_z.js} +2 -2
  329. package/packages/web/build/server/chunks/entries/pages/{_layout.svelte.js-C15Vv6XL.js → _layout.svelte.js-BhzEqF95.js} +8 -8
  330. package/packages/web/build/server/chunks/entries/pages/{_page.server.ts.js-Dryp7rFb.js → _page.server.ts.js-BybKXqua.js} +3 -3
  331. package/packages/web/build/server/chunks/entries/pages/admin/{_page.server.ts.js-Dp1bxhp1.js → _page.server.ts.js-Co8N9XsI.js} +4 -4
  332. package/packages/web/build/server/chunks/entries/pages/admin/{_page.svelte.js-Wf_Yn6WZ.js → _page.svelte.js-C9m37bww.js} +37 -37
  333. package/packages/web/build/server/chunks/entries/pages/admin/people/{_page.server.ts.js-CruloyXg.js → _page.server.ts.js-DsxljIFN.js} +5 -5
  334. package/packages/web/build/server/chunks/entries/pages/admin/people/{_page.svelte.js-SeJZxU0o.js → _page.svelte.js-CL25VFst.js} +29 -29
  335. package/packages/web/build/server/chunks/entries/pages/card/{_page.server.ts.js-Bg9-ENj6.js → _page.server.ts.js-fZyd9NoG.js} +4 -4
  336. package/packages/web/build/server/chunks/entries/pages/card/{_page.svelte.js-BfpVeAf-.js → _page.svelte.js-BtRHLxTx.js} +32 -32
  337. package/packages/web/build/server/chunks/entries/pages/invite/_token_/{_page.server.ts.js-lndAbDmS.js → _page.server.ts.js-B8OQFrQp.js} +5 -5
  338. package/packages/web/build/server/chunks/entries/pages/invite/_token_/{_page.svelte.js-COfpDKES.js → _page.svelte.js-hd2quW3N.js} +7 -7
  339. package/packages/web/build/server/chunks/entries/pages/login/{_page.server.ts.js-kqOmJbLu.js → _page.server.ts.js-DOcT1tgp.js} +3 -3
  340. package/packages/web/build/server/chunks/entries/pages/login/{_page.svelte.js-BzwZRPwR.js → _page.svelte.js-C5Auxspy.js} +6 -6
  341. package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_layout.server.ts.js-hs-tr7yL.js → _layout.server.ts.js-BvbpH7aa.js} +4 -4
  342. package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_layout.svelte.js-DmBoowEF.js → _layout.svelte.js-B10sZUKN.js} +36 -36
  343. package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_page.server.ts.js-CiM8kGoj.js → _page.server.ts.js-C3Y9wk8O.js} +4 -4
  344. package/packages/web/build/server/chunks/entries/pages/p/_slug_/{_page.svelte.js-BdKHl9Yn.js → _page.svelte.js-CoRMdrPQ.js} +23 -23
  345. package/packages/web/build/server/chunks/entries/pages/p/_slug_/automations/{_page.server.ts.js-CRrjrgm8.js → _page.server.ts.js-BbMLCUDA.js} +4 -4
  346. package/packages/web/build/server/chunks/entries/pages/p/_slug_/automations/{_page.svelte.js-B5ANpdwf.js → _page.svelte.js-DPU6YXHJ.js} +22 -22
  347. package/packages/web/build/server/chunks/entries/pages/p/_slug_/c/_id_/{_page.server.ts.js-Bs8H4bpR.js → _page.server.ts.js-DRgVXOxV.js} +4 -4
  348. package/packages/web/build/server/chunks/entries/pages/p/_slug_/c/_id_/{_page.svelte.js-wo5u1WMt.js → _page.svelte.js-Ck3wDf_F.js} +154 -54
  349. package/packages/web/build/server/chunks/entries/pages/p/_slug_/f/_folder_/{_page.server.ts.js-BSVnvjdU.js → _page.server.ts.js-DJVR3n50.js} +4 -4
  350. package/packages/web/build/server/chunks/entries/pages/p/_slug_/f/_folder_/{_page.svelte.js-OFW8eM9A.js → _page.svelte.js-CLG-0wVy.js} +29 -29
  351. package/packages/web/build/server/chunks/entries/pages/p/_slug_/images/{_page.server.ts.js-YZtGEBqQ.js → _page.server.ts.js-BbBFc7eX.js} +4 -4
  352. package/packages/web/build/server/chunks/entries/pages/p/_slug_/images/{_page.svelte.js-TFVrf9Qc.js → _page.svelte.js-Ta37_M_i.js} +28 -28
  353. package/packages/web/build/server/chunks/entries/pages/p/_slug_/memory/{_page.server.ts.js-1TmIoI1D.js → _page.server.ts.js-CkQszCsV.js} +4 -4
  354. package/packages/web/build/server/chunks/entries/pages/p/_slug_/memory/{_page.svelte.js-DX0MQQje.js → _page.svelte.js-DxgpLCGC.js} +29 -29
  355. package/packages/web/build/server/chunks/entries/pages/p/_slug_/settings/{_page.server.ts.js-DbFXgvlY.js → _page.server.ts.js-ryYts05B.js} +4 -4
  356. package/packages/web/build/server/chunks/entries/pages/p/_slug_/settings/{_page.svelte.js-BwILBd17.js → _page.svelte.js-BvTcTRJQ.js} +22 -22
  357. package/packages/web/build/server/chunks/entries/pages/p/_slug_/skills/{_page.server.ts.js-CEWTqmAh.js → _page.server.ts.js-BzVe8LHd.js} +4 -4
  358. package/packages/web/build/server/chunks/entries/pages/p/_slug_/skills/{_page.svelte.js-k_QMzo5H.js → _page.svelte.js-CJHcqQH5.js} +16 -16
  359. package/packages/web/build/server/chunks/entries/pages/p/_slug_/welcome/{_page.server.ts.js-BXfVUOog.js → _page.server.ts.js-onzZAX1Z.js} +4 -4
  360. package/packages/web/build/server/chunks/entries/pages/p/_slug_/welcome/{_page@.svelte.js-DQ6fVTeH.js → _page@.svelte.js-BnGdU_h4.js} +9 -9
  361. package/packages/web/build/server/chunks/entries/pages/profiles/{_page.server.ts.js-DoGUx-pM.js → _page.server.ts.js-hGcjHBhU.js} +4 -4
  362. package/packages/web/build/server/chunks/entries/pages/profiles/{_page.svelte.js-C_75aOkM.js → _page.svelte.js-BzuBRwOF.js} +27 -27
  363. package/packages/web/build/server/chunks/{handler-Bdx21Q9q.js → handler-D2eW2iLl.js} +3 -3
  364. package/packages/web/build/server/chunks/{index.js-EgFfPiJZ.js → index.js-DqF1GLH4.js} +2 -2
  365. package/packages/web/build/server/chunks/{manifest.js-DombPeWO.js → manifest.js-B7llprKy.js} +52 -52
  366. package/packages/web/build/server/chunks/nodes/{0.js-DSkmy8nQ.js → 0.js-CIzCXL5D.js} +6 -6
  367. package/packages/web/build/server/chunks/nodes/{1.js-DO-ELnNJ.js → 1.js-DRjbmxYH.js} +3 -3
  368. package/packages/web/build/server/chunks/nodes/{10.js-BkIA--zy.js → 10.js-CDm72w6Y.js} +7 -7
  369. package/packages/web/build/server/chunks/nodes/11.js-OnJr6Cw4.js +44 -0
  370. package/packages/web/build/server/chunks/nodes/12.js-CSZo_AVI.js +44 -0
  371. package/packages/web/build/server/chunks/nodes/{13.js-DH6Q8BO-.js → 13.js-B4R788aB.js} +7 -7
  372. package/packages/web/build/server/chunks/nodes/{14.js-Bc0k34qo.js → 14.js-l-KO8B-h.js} +7 -7
  373. package/packages/web/build/server/chunks/nodes/{15.js-DhiwEUCE.js → 15.js-CAtECzGW.js} +7 -7
  374. package/packages/web/build/server/chunks/nodes/{16.js-GgaC_-zn.js → 16.js-CmTEXhAq.js} +7 -7
  375. package/packages/web/build/server/chunks/nodes/{17.js-fO9dDIMx.js → 17.js-Gg-NPBzB.js} +7 -7
  376. package/packages/web/build/server/chunks/nodes/{18.js-DOPytEsE.js → 18.js-BLTnO9SS.js} +7 -7
  377. package/packages/web/build/server/chunks/nodes/2.js-CDq1qE_r.js +46 -0
  378. package/packages/web/build/server/chunks/nodes/{3.js-Bp-F3sec.js → 3.js-BVsDtBU2.js} +5 -5
  379. package/packages/web/build/server/chunks/nodes/4.js-Cpe8-dWC.js +45 -0
  380. package/packages/web/build/server/chunks/nodes/{5.js-esb4kB6X.js → 5.js-DFdbH2Du.js} +8 -8
  381. package/packages/web/build/server/chunks/nodes/6.js-yJdLU7lq.js +44 -0
  382. package/packages/web/build/server/chunks/nodes/{7.js-DHHX8tWm.js → 7.js-BoganRn1.js} +9 -9
  383. package/packages/web/build/server/chunks/nodes/{8.js-5U-SgkIq.js → 8.js-Diubq0AZ.js} +8 -8
  384. package/packages/web/build/server/chunks/nodes/{9.js-D-v_bOS3.js → 9.js-DXoagKbS.js} +7 -7
  385. package/packages/web/build/client/_app/immutable/assets/0.BTfoEJ25.css +0 -2
  386. package/packages/web/build/client/_app/immutable/assets/0.BTfoEJ25.css.br +0 -0
  387. package/packages/web/build/client/_app/immutable/chunks/0CkPnC0U.js.br +0 -0
  388. package/packages/web/build/client/_app/immutable/chunks/0CkPnC0U.js.gz +0 -0
  389. package/packages/web/build/client/_app/immutable/chunks/383CdCvq.js.br +0 -3
  390. package/packages/web/build/client/_app/immutable/chunks/383CdCvq.js.gz +0 -0
  391. package/packages/web/build/client/_app/immutable/chunks/63KEjKgF.js.br +0 -0
  392. package/packages/web/build/client/_app/immutable/chunks/63KEjKgF.js.gz +0 -0
  393. package/packages/web/build/client/_app/immutable/chunks/7t7uPQet.js.br +0 -0
  394. package/packages/web/build/client/_app/immutable/chunks/7t7uPQet.js.gz +0 -0
  395. package/packages/web/build/client/_app/immutable/chunks/8UkoxCih.js.br +0 -0
  396. package/packages/web/build/client/_app/immutable/chunks/8UkoxCih.js.gz +0 -0
  397. package/packages/web/build/client/_app/immutable/chunks/B8ruKwpA.js.br +0 -2
  398. package/packages/web/build/client/_app/immutable/chunks/B8ruKwpA.js.gz +0 -0
  399. package/packages/web/build/client/_app/immutable/chunks/BBuQNTxW.js.br +0 -0
  400. package/packages/web/build/client/_app/immutable/chunks/BBuQNTxW.js.gz +0 -0
  401. package/packages/web/build/client/_app/immutable/chunks/BC1vm_Fv.js.br +0 -0
  402. package/packages/web/build/client/_app/immutable/chunks/BC1vm_Fv.js.gz +0 -0
  403. package/packages/web/build/client/_app/immutable/chunks/BKqaGVP4.js.br +0 -0
  404. package/packages/web/build/client/_app/immutable/chunks/BKqaGVP4.js.gz +0 -0
  405. package/packages/web/build/client/_app/immutable/chunks/BMYHD-Yy.js.br +0 -0
  406. package/packages/web/build/client/_app/immutable/chunks/BMYHD-Yy.js.gz +0 -0
  407. package/packages/web/build/client/_app/immutable/chunks/BMnPy1wx.js.br +0 -0
  408. package/packages/web/build/client/_app/immutable/chunks/BMnPy1wx.js.gz +0 -0
  409. package/packages/web/build/client/_app/immutable/chunks/BPKK0etX.js.br +0 -0
  410. package/packages/web/build/client/_app/immutable/chunks/BPKK0etX.js.gz +0 -0
  411. package/packages/web/build/client/_app/immutable/chunks/BTCoWUwK.js.br +0 -0
  412. package/packages/web/build/client/_app/immutable/chunks/BTCoWUwK.js.gz +0 -0
  413. package/packages/web/build/client/_app/immutable/chunks/BU_hkWVh.js.br +0 -0
  414. package/packages/web/build/client/_app/immutable/chunks/BU_hkWVh.js.gz +0 -0
  415. package/packages/web/build/client/_app/immutable/chunks/BVzfpEZz.js.br +0 -2
  416. package/packages/web/build/client/_app/immutable/chunks/BVzfpEZz.js.gz +0 -0
  417. package/packages/web/build/client/_app/immutable/chunks/B_rmELop.js.br +0 -0
  418. package/packages/web/build/client/_app/immutable/chunks/B_rmELop.js.gz +0 -0
  419. package/packages/web/build/client/_app/immutable/chunks/BeEDfwJw.js.br +0 -0
  420. package/packages/web/build/client/_app/immutable/chunks/BeEDfwJw.js.gz +0 -0
  421. package/packages/web/build/client/_app/immutable/chunks/BfmbbzDN.js.br +0 -0
  422. package/packages/web/build/client/_app/immutable/chunks/BfmbbzDN.js.gz +0 -0
  423. package/packages/web/build/client/_app/immutable/chunks/BtBTCj8x.js.br +0 -0
  424. package/packages/web/build/client/_app/immutable/chunks/BtBTCj8x.js.gz +0 -0
  425. package/packages/web/build/client/_app/immutable/chunks/CBl3Um_l.js.br +0 -0
  426. package/packages/web/build/client/_app/immutable/chunks/CBl3Um_l.js.gz +0 -0
  427. package/packages/web/build/client/_app/immutable/chunks/CHB_7hVn.js.br +0 -0
  428. package/packages/web/build/client/_app/immutable/chunks/CHB_7hVn.js.gz +0 -0
  429. package/packages/web/build/client/_app/immutable/chunks/CIEGjRN1.js.br +0 -0
  430. package/packages/web/build/client/_app/immutable/chunks/CIEGjRN1.js.gz +0 -0
  431. package/packages/web/build/client/_app/immutable/chunks/CNAdDeCg.js.br +0 -0
  432. package/packages/web/build/client/_app/immutable/chunks/CNAdDeCg.js.gz +0 -0
  433. package/packages/web/build/client/_app/immutable/chunks/CPXn603x.js.br +0 -0
  434. package/packages/web/build/client/_app/immutable/chunks/CPXn603x.js.gz +0 -0
  435. package/packages/web/build/client/_app/immutable/chunks/Cd7ZmOZV.js.br +0 -0
  436. package/packages/web/build/client/_app/immutable/chunks/Cd7ZmOZV.js.gz +0 -0
  437. package/packages/web/build/client/_app/immutable/chunks/CdG3AH1Q.js.br +0 -0
  438. package/packages/web/build/client/_app/immutable/chunks/CdG3AH1Q.js.gz +0 -0
  439. package/packages/web/build/client/_app/immutable/chunks/CfRpJkOC.js.br +0 -1
  440. package/packages/web/build/client/_app/immutable/chunks/CfRpJkOC.js.gz +0 -0
  441. package/packages/web/build/client/_app/immutable/chunks/CmyxQKzb.js.br +0 -0
  442. package/packages/web/build/client/_app/immutable/chunks/CmyxQKzb.js.gz +0 -0
  443. package/packages/web/build/client/_app/immutable/chunks/CqvXydBN.js.br +0 -2
  444. package/packages/web/build/client/_app/immutable/chunks/CqvXydBN.js.gz +0 -0
  445. package/packages/web/build/client/_app/immutable/chunks/CtAqtu_r.js.br +0 -0
  446. package/packages/web/build/client/_app/immutable/chunks/CtAqtu_r.js.gz +0 -0
  447. package/packages/web/build/client/_app/immutable/chunks/Cxq4KwT3.js.br +0 -0
  448. package/packages/web/build/client/_app/immutable/chunks/Cxq4KwT3.js.gz +0 -0
  449. package/packages/web/build/client/_app/immutable/chunks/CyhdXPeH.js.br +0 -0
  450. package/packages/web/build/client/_app/immutable/chunks/CyhdXPeH.js.gz +0 -0
  451. package/packages/web/build/client/_app/immutable/chunks/D5KiHwN1.js.br +0 -0
  452. package/packages/web/build/client/_app/immutable/chunks/D5KiHwN1.js.gz +0 -0
  453. package/packages/web/build/client/_app/immutable/chunks/DDzx5zu6.js.br +0 -0
  454. package/packages/web/build/client/_app/immutable/chunks/DDzx5zu6.js.gz +0 -0
  455. package/packages/web/build/client/_app/immutable/chunks/DIkRlUCG.js.br +0 -0
  456. package/packages/web/build/client/_app/immutable/chunks/DIkRlUCG.js.gz +0 -0
  457. package/packages/web/build/client/_app/immutable/chunks/DKOg5jTJ.js.br +0 -0
  458. package/packages/web/build/client/_app/immutable/chunks/DKOg5jTJ.js.gz +0 -0
  459. package/packages/web/build/client/_app/immutable/chunks/DUB9Upnc.js.br +0 -0
  460. package/packages/web/build/client/_app/immutable/chunks/DUB9Upnc.js.gz +0 -0
  461. package/packages/web/build/client/_app/immutable/chunks/DdXAYCzx.js.br +0 -0
  462. package/packages/web/build/client/_app/immutable/chunks/DdXAYCzx.js.gz +0 -0
  463. package/packages/web/build/client/_app/immutable/chunks/Dh4mEeLQ.js.br +0 -0
  464. package/packages/web/build/client/_app/immutable/chunks/Dh4mEeLQ.js.gz +0 -0
  465. package/packages/web/build/client/_app/immutable/chunks/DkDi6YxC.js.br +0 -0
  466. package/packages/web/build/client/_app/immutable/chunks/DkDi6YxC.js.gz +0 -0
  467. package/packages/web/build/client/_app/immutable/chunks/DlC7O5v6.js.br +0 -0
  468. package/packages/web/build/client/_app/immutable/chunks/DlC7O5v6.js.gz +0 -0
  469. package/packages/web/build/client/_app/immutable/chunks/DnWuWNGA.js.br +0 -0
  470. package/packages/web/build/client/_app/immutable/chunks/DnWuWNGA.js.gz +0 -0
  471. package/packages/web/build/client/_app/immutable/chunks/DsGCMQUF.js.br +0 -2
  472. package/packages/web/build/client/_app/immutable/chunks/DsGCMQUF.js.gz +0 -0
  473. package/packages/web/build/client/_app/immutable/chunks/FSGbsJ1X.js.br +0 -0
  474. package/packages/web/build/client/_app/immutable/chunks/FSGbsJ1X.js.gz +0 -0
  475. package/packages/web/build/client/_app/immutable/chunks/GpmZ3O-G.js.br +0 -0
  476. package/packages/web/build/client/_app/immutable/chunks/GpmZ3O-G.js.gz +0 -0
  477. package/packages/web/build/client/_app/immutable/chunks/T94IbSnz.js.br +0 -0
  478. package/packages/web/build/client/_app/immutable/chunks/T94IbSnz.js.gz +0 -0
  479. package/packages/web/build/client/_app/immutable/chunks/T_LoDQZ8.js.br +0 -0
  480. package/packages/web/build/client/_app/immutable/chunks/T_LoDQZ8.js.gz +0 -0
  481. package/packages/web/build/client/_app/immutable/chunks/XNSVhFq3.js.br +0 -0
  482. package/packages/web/build/client/_app/immutable/chunks/XNSVhFq3.js.gz +0 -0
  483. package/packages/web/build/client/_app/immutable/chunks/YSHpe8tA.js.br +0 -2
  484. package/packages/web/build/client/_app/immutable/chunks/YSHpe8tA.js.gz +0 -0
  485. package/packages/web/build/client/_app/immutable/chunks/bT_6u-am.js.br +0 -0
  486. package/packages/web/build/client/_app/immutable/chunks/bT_6u-am.js.gz +0 -0
  487. package/packages/web/build/client/_app/immutable/chunks/mIRGGBc6.js.br +0 -0
  488. package/packages/web/build/client/_app/immutable/chunks/mIRGGBc6.js.gz +0 -0
  489. package/packages/web/build/client/_app/immutable/chunks/pcmzLgTE.js.br +0 -0
  490. package/packages/web/build/client/_app/immutable/chunks/pcmzLgTE.js.gz +0 -0
  491. package/packages/web/build/client/_app/immutable/chunks/xKSkWfAF.js.br +0 -0
  492. package/packages/web/build/client/_app/immutable/chunks/xKSkWfAF.js.gz +0 -0
  493. package/packages/web/build/client/_app/immutable/chunks/yHKvOvH3.js.br +0 -0
  494. package/packages/web/build/client/_app/immutable/chunks/yHKvOvH3.js.gz +0 -0
  495. package/packages/web/build/client/_app/immutable/entry/app.CmiSyUhD.js.br +0 -0
  496. package/packages/web/build/client/_app/immutable/entry/app.CmiSyUhD.js.gz +0 -0
  497. package/packages/web/build/client/_app/immutable/entry/start.B7o1VStc.js +0 -1
  498. package/packages/web/build/client/_app/immutable/entry/start.B7o1VStc.js.br +0 -0
  499. package/packages/web/build/client/_app/immutable/entry/start.B7o1VStc.js.gz +0 -0
  500. package/packages/web/build/client/_app/immutable/nodes/0.Cx2Nt1tl.js.br +0 -0
  501. package/packages/web/build/client/_app/immutable/nodes/0.Cx2Nt1tl.js.gz +0 -0
  502. package/packages/web/build/client/_app/immutable/nodes/1.mKvnEvz3.js.br +0 -0
  503. package/packages/web/build/client/_app/immutable/nodes/1.mKvnEvz3.js.gz +0 -0
  504. package/packages/web/build/client/_app/immutable/nodes/10.PFvIfDDe.js.br +0 -0
  505. package/packages/web/build/client/_app/immutable/nodes/10.PFvIfDDe.js.gz +0 -0
  506. package/packages/web/build/client/_app/immutable/nodes/11.DMa3IixK.js +0 -4
  507. package/packages/web/build/client/_app/immutable/nodes/11.DMa3IixK.js.br +0 -0
  508. package/packages/web/build/client/_app/immutable/nodes/11.DMa3IixK.js.gz +0 -0
  509. package/packages/web/build/client/_app/immutable/nodes/12.BXMPGR7n.js.br +0 -0
  510. package/packages/web/build/client/_app/immutable/nodes/12.BXMPGR7n.js.gz +0 -0
  511. package/packages/web/build/client/_app/immutable/nodes/13.DFqcL__B.js.br +0 -0
  512. package/packages/web/build/client/_app/immutable/nodes/13.DFqcL__B.js.gz +0 -0
  513. package/packages/web/build/client/_app/immutable/nodes/14.lLDIO-cr.js.br +0 -0
  514. package/packages/web/build/client/_app/immutable/nodes/14.lLDIO-cr.js.gz +0 -0
  515. package/packages/web/build/client/_app/immutable/nodes/15.CdvDW_CH.js.br +0 -0
  516. package/packages/web/build/client/_app/immutable/nodes/15.CdvDW_CH.js.gz +0 -0
  517. package/packages/web/build/client/_app/immutable/nodes/16.0-eYPyAZ.js.br +0 -0
  518. package/packages/web/build/client/_app/immutable/nodes/16.0-eYPyAZ.js.gz +0 -0
  519. package/packages/web/build/client/_app/immutable/nodes/17.CHtcHvSr.js.br +0 -0
  520. package/packages/web/build/client/_app/immutable/nodes/17.CHtcHvSr.js.gz +0 -0
  521. package/packages/web/build/client/_app/immutable/nodes/18.CPrgOD7O.js.br +0 -0
  522. package/packages/web/build/client/_app/immutable/nodes/18.CPrgOD7O.js.gz +0 -0
  523. package/packages/web/build/client/_app/immutable/nodes/2.CXN61hY3.js.br +0 -0
  524. package/packages/web/build/client/_app/immutable/nodes/2.CXN61hY3.js.gz +0 -0
  525. package/packages/web/build/client/_app/immutable/nodes/4.DRX2YsLZ.js.br +0 -0
  526. package/packages/web/build/client/_app/immutable/nodes/4.DRX2YsLZ.js.gz +0 -0
  527. package/packages/web/build/client/_app/immutable/nodes/5.DIvw1O7N.js.br +0 -0
  528. package/packages/web/build/client/_app/immutable/nodes/5.DIvw1O7N.js.gz +0 -0
  529. package/packages/web/build/client/_app/immutable/nodes/6.tJFXgj7k.js.br +0 -0
  530. package/packages/web/build/client/_app/immutable/nodes/6.tJFXgj7k.js.gz +0 -0
  531. package/packages/web/build/client/_app/immutable/nodes/7.BhQ8HFTI.js.br +0 -0
  532. package/packages/web/build/client/_app/immutable/nodes/7.BhQ8HFTI.js.gz +0 -0
  533. package/packages/web/build/client/_app/immutable/nodes/8.BhDo_F5Y.js.br +0 -0
  534. package/packages/web/build/client/_app/immutable/nodes/8.BhDo_F5Y.js.gz +0 -0
  535. package/packages/web/build/client/_app/immutable/nodes/9.CYluA9Fx.js.br +0 -0
  536. package/packages/web/build/client/_app/immutable/nodes/9.CYluA9Fx.js.gz +0 -0
  537. package/packages/web/build/server/chunks/nodes/11.js-B-sqv4rv.js +0 -44
  538. package/packages/web/build/server/chunks/nodes/12.js-BvlY14n6.js +0 -44
  539. package/packages/web/build/server/chunks/nodes/2.js-C7plyqC8.js +0 -46
  540. package/packages/web/build/server/chunks/nodes/4.js-Mjaj33wu.js +0 -45
  541. package/packages/web/build/server/chunks/nodes/6.js-B_-hSrZx.js +0 -44
@@ -2,7 +2,7 @@ import { _ as __exportAll, a as __commonJSMin, b as __require } from './rolldown
2
2
  import { i as isAvatar, A as AVATARS, d as defaultAvatar } from './avatars.js-qKyBQC6I.js';
3
3
  import { m as mediaRefs, i as isRemoteHref } from './media-refs.js-q0nPxUYL.js';
4
4
  import { P as PERSON_NOTE_GUIDE, i as isCardPath, c as categoryGuide, C as CARDS_FOLDER, n as noteName, a as categoryOf, b as categoryProblem, t as titleIn, d as isAliasLine, e as aliasesOf, f as nameKey, w as whoIn } from './memory-categories.js-DDXxnICw.js';
5
- import { c as cacheHitRate, p as promptTokens } from './usage.js-DNQuJpUU.js';
5
+ import { p as promptTokens, c as cacheHitRate } from './usage.js-DNQuJpUU.js';
6
6
  import { E as EXPORT_PROMPT, p as parseMemoryExport, a as projectName } from './memory-export.js-JzBYtuXI.js';
7
7
  import { a as articleBefore } from './articles.js-DI9tx0xR.js';
8
8
  import './schedule.js-CGJAo63f.js';
@@ -447,7 +447,7 @@ function str$1(value) {
447
447
  }
448
448
  /**
449
449
  * A reply in any provider's shape as nolune's blocks, in order: Anthropic's content blocks (`text`,
450
- * `thinking`, `tool_use`), OpenAI's output items (`message`, `reasoning`, `function_call`), or
450
+ * `thinking`, `tool_use`, `compaction`), OpenAI's output items (`message`, `reasoning`, `function_call`), or
451
451
  * OpenRouter's pieces: reasoning details (`reasoning.text`, `reasoning.summary`,
452
452
  * `reasoning.encrypted`) and tool calls (`function`) around a `text` block. They use different
453
453
  * type names, so no provider needs to be known. Anything else is skipped.
@@ -476,6 +476,12 @@ function replyBlocks(content) {
476
476
  input: block.input
477
477
  });
478
478
  break;
479
+ case "compaction":
480
+ if (str$1(block.content)) blocks.push({
481
+ type: "compaction",
482
+ summary: str$1(block.content)
483
+ });
484
+ break;
479
485
  case "message":
480
486
  for (const part of Array.isArray(block.content) ? block.content : []) if (part?.type === "output_text") blocks.push({
481
487
  type: "text",
@@ -550,6 +556,21 @@ function portableReply(blocks) {
550
556
  }];
551
557
  });
552
558
  }
559
+ /**
560
+ * A reply without its compaction summary, for a model that gets the summary as a message instead
561
+ * (requestMessages): only Claude, with compaction on, takes the block itself.
562
+ */
563
+ function withoutCompaction(reply) {
564
+ const native = reply.native && {
565
+ ...reply.native,
566
+ content: reply.native.content.filter((b) => b?.type !== "compaction")
567
+ };
568
+ return {
569
+ ...reply,
570
+ blocks: reply.blocks.filter((b) => b.type !== "compaction"),
571
+ ...native ? { native } : {}
572
+ };
573
+ }
553
574
  /** Whether a picture or PDF is kept by another provider than `provider`, which can't open it. */
554
575
  function heldElsewhere(block, provider) {
555
576
  return block.source.type === "uploaded" && block.source.provider !== null && block.source.provider !== provider;
@@ -561,6 +582,16 @@ function heldElsewhereNote(block) {
561
582
  text: `[${block.type === "image" ? "Picture" : "PDF"} not shown: it went to the model this chat used before, and this model can't open that copy. The line before this says where its file is${block.type === "image" ? "; `nolune view` shows it again" : ""}.]`
562
583
  };
563
584
  }
585
+ /**
586
+ * What a model reads of a summary of the conversation before it (compaction.ts): a message of its
587
+ * own, in place of everything it summarizes.
588
+ */
589
+ function compactionNote(summary) {
590
+ return {
591
+ type: "text",
592
+ text: `[Earlier in this conversation, summarized to fit the context window:]\n\n${summary}`
593
+ };
594
+ }
564
595
  /** What a model reads instead of a picture or PDF it can't take. */
565
596
  function unreadableNote(block, model) {
566
597
  return {
@@ -1274,6 +1305,13 @@ var WEB_RECENT = {
1274
1305
  month: "qdr:m",
1275
1306
  year: "qdr:y"
1276
1307
  };
1308
+ /** A snippet longer than this is cut: the page itself is a `nolune web read` away. */
1309
+ var MAX_SNIPPET = 400;
1310
+ /** On one line and within MAX_SNIPPET, whatever the search sent. */
1311
+ function snippet(text) {
1312
+ const line = text.replace(/\s+/g, " ").trim();
1313
+ return line.length > MAX_SNIPPET ? `${line.slice(0, 399).trimEnd()}…` : line;
1314
+ }
1277
1315
  async function searchWeb(query, options = {}) {
1278
1316
  const limit = options.limit ?? 5;
1279
1317
  const data = await call("the search", options, (firecrawl) => firecrawl.search(query, {
@@ -1281,6 +1319,7 @@ async function searchWeb(query, options = {}) {
1281
1319
  sources: [options.news ? "news" : "web"],
1282
1320
  ...options.recent ? { tbs: WEB_RECENT[options.recent] } : {},
1283
1321
  ...options.country ? { country: options.country.toUpperCase() } : {},
1322
+ highlights: false,
1284
1323
  timeout: TIMEOUT_MS$1
1285
1324
  }));
1286
1325
  return {
@@ -1290,7 +1329,7 @@ async function searchWeb(query, options = {}) {
1290
1329
  return [{
1291
1330
  title: r.title?.trim() || r.url,
1292
1331
  url: r.url,
1293
- text: (r.description ?? r.snippet ?? "").trim(),
1332
+ text: snippet(r.description ?? r.snippet ?? ""),
1294
1333
  date: r.date?.trim() || null
1295
1334
  }];
1296
1335
  }).slice(0, limit),
@@ -1497,10 +1536,23 @@ function fileBlock(block) {
1497
1536
  function supportsAdaptiveThinking(model) {
1498
1537
  return !model.startsWith("claude-haiku-");
1499
1538
  }
1539
+ /** Compaction at a token threshold, in beta: Claude summarizes the conversation on the server. */
1540
+ var COMPACTION_BETA = "compact-2026-01-12";
1541
+ /**
1542
+ * Whether the model compacts conversations on the server (compaction.ts): every one since Opus
1543
+ * and Sonnet 4.6, a new one too, but not Haiku 4.5 or anything older.
1544
+ */
1545
+ function supportsCompaction(model) {
1546
+ return !/^claude-(3|haiku-|(opus|sonnet)-4-([015]|\d{8})(-|$))/.test(model);
1547
+ }
1500
1548
  /**
1501
1549
  * One model call. The request shape must stay identical across calls in a conversation (only
1502
1550
  * `messages` grows), otherwise the prompt cache is lost: `tools`, `system` and `cacheTtl` are the
1503
1551
  * conversation's own, fixed when it was created. `api`: Anthropic, or a custom provider.
1552
+ *
1553
+ * With `compactAt`, Claude summarizes the conversation on the server first once a request is that
1554
+ * many tokens (compaction.ts), and the reply starts with the summary: a `compaction` block, which
1555
+ * goes back with the reply. Only on Anthropic, with a model that can.
1504
1556
  */
1505
1557
  async function streamTurn$1(opts, api = ANTHROPIC) {
1506
1558
  const claude = api.provider === "anthropic";
@@ -1509,7 +1561,8 @@ async function streamTurn$1(opts, api = ANTHROPIC) {
1509
1561
  type: "ephemeral",
1510
1562
  ttl: opts.cacheTtl
1511
1563
  };
1512
- const stream = (await api.client()).messages.stream({
1564
+ const client = await api.client();
1565
+ const params = {
1513
1566
  model: api.modelName(opts.model),
1514
1567
  max_tokens: claude ? 64e3 : SERVER_MAX_TOKENS,
1515
1568
  ...claude ? {
@@ -1529,10 +1582,22 @@ async function streamTurn$1(opts, api = ANTHROPIC) {
1529
1582
  output_config: { effort: opts.effort }
1530
1583
  } : {},
1531
1584
  messages: toAnthropicMessages(opts.messages, api.provider)
1532
- }, { signal: opts.signal });
1585
+ };
1586
+ const compactAt = claude && supportsCompaction(opts.model) ? opts.compactAt : null;
1587
+ const stream = compactAt ? client.beta.messages.stream({
1588
+ ...params,
1589
+ betas: [COMPACTION_BETA],
1590
+ context_management: { edits: [{
1591
+ type: "compact_20260112",
1592
+ trigger: {
1593
+ type: "input_tokens",
1594
+ value: compactAt
1595
+ }
1596
+ }] }
1597
+ }, { signal: opts.signal }) : client.messages.stream(params, { signal: opts.signal });
1533
1598
  for await (const event of stream) if (event.type === "content_block_start") {
1534
1599
  const b = event.content_block;
1535
- const block = b.type === "text" || b.type === "thinking" ? { type: b.type } : b.type === "tool_use" ? {
1600
+ const block = b.type === "text" || b.type === "thinking" || b.type === "compaction" ? { type: b.type } : b.type === "tool_use" ? {
1536
1601
  type: "tool",
1537
1602
  id: b.id
1538
1603
  } : null;
@@ -1552,6 +1617,11 @@ async function streamTurn$1(opts, api = ANTHROPIC) {
1552
1617
  index: event.index,
1553
1618
  text: event.delta.thinking
1554
1619
  });
1620
+ else if (event.delta.type === "compaction_delta" && event.delta.content) opts.onEvent({
1621
+ type: "delta",
1622
+ index: event.index,
1623
+ text: event.delta.content
1624
+ });
1555
1625
  }
1556
1626
  return stream.finalMessage();
1557
1627
  }
@@ -4123,9 +4193,11 @@ function fromContent(content, stopReason, usage) {
4123
4193
  * `messages` grows), otherwise the prompt cache is lost: `tools`, `system` and `cacheTtl` are the
4124
4194
  * conversation's own, fixed when it was created. `cacheKey` (the conversation's id) keeps a
4125
4195
  * conversation's calls together in OpenAI's cache, and on one provider behind OpenRouter.
4196
+ * `compactAt`: on Anthropic, the request size at which Claude summarizes the conversation on the
4197
+ * server first (compaction.ts); other providers' chats are summarized by the runner.
4126
4198
  */
4127
4199
  async function streamTurn(opts) {
4128
- const { provider, cacheKey, ...request } = opts;
4200
+ const { provider, cacheKey, compactAt, ...request } = opts;
4129
4201
  if (isAgentPlan(provider)) throw new Error("Chats on the Claude plan run whole turns through runPlanTurn");
4130
4202
  if (provider === "openrouter") {
4131
4203
  const reply = await streamTurn$2({
@@ -4150,15 +4222,38 @@ async function streamTurn(opts) {
4150
4222
  });
4151
4223
  return fromContent(response.output ?? [], stopReason(response), summarizeUsage(response.usage));
4152
4224
  }
4153
- const message = provider === "custom-anthropic" ? await streamMessage(request) : await streamTurn$1(request);
4225
+ const message = provider === "custom-anthropic" ? await streamMessage(request) : await streamTurn$1({
4226
+ ...request,
4227
+ compactAt
4228
+ });
4154
4229
  return fromContent(message.content, message.stop_reason, summarizeAnthropicUsage(message.usage));
4155
4230
  }
4231
+ /**
4232
+ * The usage of a call to Claude. One that summarized the conversation first reports that apart
4233
+ * (`iterations`), and its own numbers from the summary on.
4234
+ */
4156
4235
  function summarizeAnthropicUsage(usage) {
4236
+ const summarized = {
4237
+ input: 0,
4238
+ cacheRead: 0,
4239
+ cacheWrite: 0,
4240
+ output: 0
4241
+ };
4242
+ let compacted = false;
4243
+ for (const step of "iterations" in usage && usage.iterations || []) {
4244
+ if (step.type !== "compaction") continue;
4245
+ compacted = true;
4246
+ summarized.input += step.input_tokens;
4247
+ summarized.cacheRead += step.cache_read_input_tokens;
4248
+ summarized.cacheWrite += step.cache_creation_input_tokens;
4249
+ summarized.output += step.output_tokens;
4250
+ }
4157
4251
  return {
4158
4252
  input: usage.input_tokens,
4159
4253
  cacheRead: usage.cache_read_input_tokens ?? 0,
4160
4254
  cacheWrite: usage.cache_creation_input_tokens ?? 0,
4161
- output: usage.output_tokens
4255
+ output: usage.output_tokens,
4256
+ ...compacted ? { compaction: summarized } : {}
4162
4257
  };
4163
4258
  }
4164
4259
  /**
@@ -9193,13 +9288,15 @@ var message = sqliteTable("message", {
9193
9288
  /**
9194
9289
  * Written by the gateway, not a person: `trigger`, the first message of a background run;
9195
9290
  * `agent_message`, a subagent's task or a steer from the agent that started it;
9196
- * `task_result`, what a background command printed, once it ended.
9291
+ * `task_result`, what a background command printed, once it ended; `compaction`, the chat's
9292
+ * model's summary of the conversation so far, which the requests after it start from.
9197
9293
  */
9198
9294
  kind: text$1("kind", { enum: [
9199
9295
  "human",
9200
9296
  "trigger",
9201
9297
  "agent_message",
9202
9298
  "task_result",
9299
+ "compaction",
9203
9300
  "tool_results",
9204
9301
  "assistant"
9205
9302
  ] }).notNull(),
@@ -9211,7 +9308,8 @@ var message = sqliteTable("message", {
9211
9308
  senderName: text$1("sender_name"),
9212
9309
  /**
9213
9310
  * What the human typed (without the "Name: " prefix). Trigger rows: the trigger's prompt.
9214
- * Agent messages: what the agent wrote. Task results: the command's output.
9311
+ * Agent messages: what the agent wrote. Task results: the command's output. Compactions: the
9312
+ * summary.
9215
9313
  */
9216
9314
  text: text$1("text"),
9217
9315
  /**
@@ -10776,7 +10874,7 @@ async function pruneProviderFiles() {
10776
10874
  }
10777
10875
  /** Share of the model's context window that the PDFs of one conversation may fill, together. */
10778
10876
  var DOCUMENT_SHARE = .25;
10779
- var DEFAULT_CONTEXT_WINDOW = 2e5;
10877
+ var DEFAULT_CONTEXT_WINDOW$1 = 2e5;
10780
10878
  /**
10781
10879
  * Chats on the plans and OpenRouter can't count a PDF's tokens (that takes Anthropic's or
10782
10880
  * OpenAI's API with a key), so they estimate: Anthropic puts a page's text at 1,500 to 3,000 tokens, and
@@ -11000,7 +11098,7 @@ function pdfPageCount(data) {
11000
11098
  function estimatePdf(conv, data, room) {
11001
11099
  const pages = pdfPageCount(data);
11002
11100
  if (pages === null) return { problem: "nolune couldn't tell how many pages it has (it may be encrypted)" };
11003
- const maxPages = maxPdfPages(conv.contextWindow ?? DEFAULT_CONTEXT_WINDOW);
11101
+ const maxPages = maxPdfPages(conv.contextWindow ?? DEFAULT_CONTEXT_WINDOW$1);
11004
11102
  if (pages > maxPages) return { problem: `it has ${pages} pages, more than the model takes at once (${maxPages})` };
11005
11103
  const tokens = pages * TOKENS_PER_PDF_PAGE;
11006
11104
  if (tokens > room) return { problem: `at ${pages} pages it's about ${tokens.toLocaleString("en-US")} tokens, more than this conversation has room for (${Math.max(0, room).toLocaleString("en-US")})` };
@@ -11073,7 +11171,7 @@ async function prepareMessage(input) {
11073
11171
  const dir = attachmentsDir(input.profileSlug);
11074
11172
  const images = imageUse(input.earlier.map(readMessage), !hasFileStore(conv.provider));
11075
11173
  let documentTokens = input.earlier.flatMap((row) => parseAttachments(row.attachments)).reduce((sum, a) => sum + (a.sentAs === "document" ? a.tokens ?? 0 : 0), 0);
11076
- const documentBudget = Math.floor((conv.contextWindow ?? DEFAULT_CONTEXT_WINDOW) * DOCUMENT_SHARE);
11174
+ const documentBudget = Math.floor((conv.contextWindow ?? DEFAULT_CONTEXT_WINDOW$1) * DOCUMENT_SHARE);
11077
11175
  const prepared = {
11078
11176
  content: [],
11079
11177
  attachments: [],
@@ -20060,19 +20158,25 @@ function setCommandMode(id, commandMode) {
20060
20158
  }
20061
20159
  /** Why a conversation can't switch to a model, in words for the person switching. */
20062
20160
  var ModelSwitchError = class extends Error {};
20063
- /** The prompt and reply of the conversation's latest model call, in tokens, or 0 before one. */
20161
+ /**
20162
+ * The prompt and reply of the conversation's latest model call, in tokens, or 0 before one. After
20163
+ * a summary of the conversation that no call has read yet, the summary.
20164
+ */
20064
20165
  function contextUsed(conversationId) {
20065
- const last = getDb().select({ usage: message.usage }).from(message).where(and(eq(message.conversationId, conversationId), eq(message.role, "assistant"), isNotNull(message.usage))).orderBy(desc(message.seq)).limit(1).get();
20166
+ const last = getDb().select({
20167
+ kind: message.kind,
20168
+ usage: message.usage
20169
+ }).from(message).where(and(eq(message.conversationId, conversationId), or(eq(message.role, "assistant"), eq(message.kind, "compaction")), isNotNull(message.usage))).orderBy(desc(message.seq)).limit(1).get();
20066
20170
  if (!last?.usage) return 0;
20067
20171
  const usage = JSON.parse(last.usage);
20068
- return promptTokens(usage) + usage.output;
20172
+ return last.kind === "compaction" ? usage.output : promptTokens(usage) + usage.output;
20069
20173
  }
20070
20174
  /**
20071
20175
  * Switches the conversation to another model preset, from its next model call on (a turn in
20072
20176
  * progress goes on with the new model too). The new model has none of the conversation cached, so
20073
20177
  * that call reads it all again once. Another provider gets earlier replies and files translated
20074
- * (requestMessages). Refused when the conversation is already larger than the new model's window,
20075
- * which it could never shrink back into: history is never edited.
20178
+ * (requestMessages). Refused when the conversation is already larger than the new model's window:
20179
+ * its first call would fail before it could summarize anything (compaction.ts).
20076
20180
  */
20077
20181
  function setPreset(id, presetId) {
20078
20182
  const conv = getConversation(id);
@@ -20282,18 +20386,45 @@ function rowCalls(row) {
20282
20386
  return readRow(row).blocks.filter((b) => b.type === "tool_call");
20283
20387
  }
20284
20388
  /**
20285
- * The transcript for a model call, in nolune's format: every row, with its replies marked when
20286
- * they're from before the system prompt was last built again (`promptChangedAtSeq`), and every
20287
- * tool call answered once (pairToolResults). Each provider's module turns it into its request
20288
- * (format.ts), and does it the same way on every call, so the prefix stays byte-identical.
20389
+ * The summary of the conversation before the row, if it has one (compaction.ts): a compaction
20390
+ * row's, or that of a reply Claude started by summarizing the conversation on the server.
20289
20391
  */
20290
- function requestMessages(rows, promptChangedAtSeq) {
20291
- return pairToolResults(rows.map((row) => {
20392
+ function compactionSummary(row) {
20393
+ if (row.kind === "compaction") return row.text ?? "";
20394
+ if (row.role !== "assistant" || !row.content.includes("\"compaction\"")) return null;
20395
+ const block = readRow(row).blocks.find((b) => b.type === "compaction");
20396
+ return block?.type === "compaction" ? block.summary : null;
20397
+ }
20398
+ /** Where the rows a model call gets start: at the latest summary of the ones before it, or 0. */
20399
+ function compactedFrom(rows) {
20400
+ return Math.max(0, rows.findLastIndex((row) => compactionSummary(row) !== null));
20401
+ }
20402
+ /**
20403
+ * The transcript for a model call, in nolune's format: every row from the latest summary of the
20404
+ * conversation on (compactedFrom), with its replies marked when they're from before the system
20405
+ * prompt was last built again (`promptChangedAtSeq`), and every tool call answered once
20406
+ * (pairToolResults). Each provider's module turns it into its request (format.ts), and does it the
20407
+ * same way on every call, so the prefix stays byte-identical.
20408
+ *
20409
+ * A reply that starts with Claude's summary goes as it came to the model that wrote it, when that
20410
+ * model compacts on the server (`compacting`, its id): the API takes the summary in place of what
20411
+ * came before. Any other model gets the summary as a message of its own, before the reply.
20412
+ */
20413
+ function requestMessages(rows, promptChangedAtSeq, compacting = null) {
20414
+ return pairToolResults(rows.slice(compactedFrom(rows)).flatMap((row) => {
20292
20415
  const read = readRow(row);
20293
- return row.role === "assistant" && promptChangedAtSeq !== null && row.seq !== null && row.seq <= promptChangedAtSeq ? {
20416
+ const message = row.role === "assistant" && promptChangedAtSeq !== null && row.seq !== null && row.seq <= promptChangedAtSeq ? {
20294
20417
  ...read,
20295
20418
  beforePromptChange: true
20296
20419
  } : read;
20420
+ const summary = row.role === "assistant" ? compactionSummary(row) : null;
20421
+ if (summary === null) return [message];
20422
+ const native = message.native;
20423
+ if (compacting !== null && (native?.provider ?? "anthropic") === "anthropic" && (native?.model ?? compacting) === compacting) return [message];
20424
+ return [{
20425
+ role: "user",
20426
+ blocks: [compactionNote(summary)]
20427
+ }, withoutCompaction(message)];
20297
20428
  }));
20298
20429
  }
20299
20430
  function noResult(callId) {
@@ -20361,10 +20492,11 @@ function replyText(row) {
20361
20492
  /**
20362
20493
  * Everything the model read that it didn't write: what people wrote, automation prompts and
20363
20494
  * events, and command output. A web picture in a reply is downloaded only if its link is in here.
20364
- * A subagent's task and steers are left out: another agent wrote them.
20495
+ * A subagent's task and steers are left out: another agent wrote them. So are summaries of the
20496
+ * conversation, which the model wrote.
20365
20497
  */
20366
20498
  function foundText(rows) {
20367
- return rows.filter((row) => row.kind !== "assistant" && row.kind !== "agent_message").flatMap((row) => readRow(row).blocks.map((b) => b.type === "tool_result" ? resultText(b.content) : b.type === "text" ? b.text : "")).join("\n");
20499
+ return rows.filter((row) => row.kind !== "assistant" && row.kind !== "agent_message" && row.kind !== "compaction").flatMap((row) => readRow(row).blocks.map((b) => b.type === "tool_result" ? resultText(b.content) : b.type === "text" ? b.text : "")).join("\n");
20368
20500
  }
20369
20501
  function displayAttachments(row, mediaRows) {
20370
20502
  return parseAttachments(row.attachments).flatMap((attachment) => {
@@ -20432,6 +20564,13 @@ function toDisplay$1(row, mediaRows = []) {
20432
20564
  createdAt
20433
20565
  };
20434
20566
  }
20567
+ if (row.kind === "compaction") return {
20568
+ id: row.id,
20569
+ kind: "compaction",
20570
+ summary: row.text ?? "",
20571
+ usage: row.usage ? JSON.parse(row.usage) : null,
20572
+ createdAt
20573
+ };
20435
20574
  if (row.kind === "human") return {
20436
20575
  id: row.id,
20437
20576
  kind: "human",
@@ -20454,7 +20593,11 @@ function toDisplay$1(row, mediaRows = []) {
20454
20593
  type: block.type === "text" ? "text" : "thinking",
20455
20594
  text: block.text
20456
20595
  });
20457
- } else if (block.type === "tool_call") {
20596
+ } else if (block.type === "compaction") blocks.push({
20597
+ type: "compaction",
20598
+ summary: block.summary
20599
+ });
20600
+ else if (block.type === "tool_call") {
20458
20601
  const input = block.input ?? {};
20459
20602
  const text = (key) => typeof input[key] === "string" && input[key].trim() ? { [key]: input[key].trim() } : {};
20460
20603
  blocks.push({
@@ -21948,6 +22091,52 @@ function takeInterruptedBackgroundCommands() {
21948
22091
  return leftover;
21949
22092
  }
21950
22093
  //#endregion
22094
+ //#region ../core/src/compaction.ts
22095
+ /** The share of the context window a conversation fills before it's summarized. */
22096
+ var COMPACT_SHARE = .85;
22097
+ /** Claude's threshold can't be lower. */
22098
+ var MIN_COMPACT_AT = 5e4;
22099
+ /** The window Claude's threshold is figured from when the preset doesn't know the model's. */
22100
+ var DEFAULT_CONTEXT_WINDOW = 2e5;
22101
+ /** Whether the chat's model summarizes the conversation on the server. */
22102
+ function compactsOnServer(provider, model) {
22103
+ return provider === "anthropic" && supportsCompaction(model);
22104
+ }
22105
+ /** The request size, in tokens, at which Claude summarizes the conversation on the server. */
22106
+ function serverCompactAt(contextWindow) {
22107
+ return Math.max(MIN_COMPACT_AT, Math.floor(COMPACT_SHARE * (contextWindow ?? DEFAULT_CONTEXT_WINDOW)));
22108
+ }
22109
+ /**
22110
+ * Whether the runner summarizes the conversation before its next model call: the model doesn't on
22111
+ * the server, its window is known, and the latest call read and wrote 85% of it or more. Never
22112
+ * right after a summary: a window that the conversation can't fit even then would only get one
22113
+ * summary after another.
22114
+ */
22115
+ function needsCompaction(conv, rows) {
22116
+ const window = conv.contextWindow;
22117
+ if (!window || isAgentPlan(conv.provider) || compactsOnServer(conv.provider, conv.model)) return false;
22118
+ const from = compactedFrom(rows);
22119
+ const calls = rows.slice(from).filter((row) => row.role === "assistant" && row.usage);
22120
+ const last = calls.at(-1);
22121
+ if (!last?.usage || from > 0 && calls.length < 2) return false;
22122
+ const usage = JSON.parse(last.usage);
22123
+ return promptTokens(usage) + usage.output >= COMPACT_SHARE * window;
22124
+ }
22125
+ /** What the runner asks the chat's model, as one more message after the conversation. */
22126
+ var SUMMARY_REQUEST = `[This conversation has grown too long for your context window, so it is being summarized now. The summary will take the place of everything above, which you won't see again. Don't run any commands: reply only with the summary, in the conversation's language. Write down everything you will need to go on as if nothing was lost: who asked for what and what they prefer, what was done and found, decisions made, the state of any work in progress and its next steps, and the exact details (names, paths, numbers, commands). Wrap the summary in <summary></summary>.]`;
22127
+ /**
22128
+ * The summary in the model's reply to SUMMARY_REQUEST, or null if it didn't write one. Without the
22129
+ * tags, the whole reply, unless the model went on to run a command: then its text was only what
22130
+ * it said first.
22131
+ */
22132
+ function summaryOf(reply) {
22133
+ if (reply.stopReason === "max_tokens" || reply.stopReason === "refusal") return null;
22134
+ const text = reply.texts.join("\n\n");
22135
+ const wrapped = /<summary>([\s\S]*?)<\/summary>/i.exec(text)?.[1];
22136
+ if (wrapped === void 0 && reply.stopReason === "tool_use") return null;
22137
+ return (wrapped ?? text.replace(/<\/?summary>/gi, "")).trim() || null;
22138
+ }
22139
+ //#endregion
21951
22140
  //#region ../core/src/memory-embeddings.ts
21952
22141
  var DEFAULT_EMBEDDING_MODEL = "text-embedding-3-small";
21953
22142
  /** OpenAI's model, as each provider names it. */
@@ -23147,7 +23336,7 @@ async function recall$1(conv, text, sender) {
23147
23336
  if (!slug || !text) return null;
23148
23337
  try {
23149
23338
  const rows = [...committedRows(conv.id), ...queuedRows(conv.id)];
23150
- const known = [conv.systemPrompt, ...rows.map((row) => messageText(readRow(row).blocks))];
23339
+ const known = [conv.systemPrompt, ...rows.slice(compactedFrom(rows)).map((row) => `${compactionSummary(row) ?? ""}\n${messageText(readRow(row).blocks)}`)];
23151
23340
  const words = memberWords({
23152
23341
  id: conv.profileId,
23153
23342
  slug
@@ -23464,7 +23653,8 @@ async function saveReply(conv, reply, signal, found) {
23464
23653
  const slug = profileSlug(conv.profileId);
23465
23654
  const media = slug ? await copyReplyMedia(reply.texts, profileDir(slug), signal, found) : [];
23466
23655
  const { usage } = reply;
23467
- console.log(usage ? `[nolune] ${conversationId.slice(0, 8)} ${conv.model} in=${usage.input} cache_read=${usage.cacheRead} cache_write=${usage.cacheWrite} hit=${Math.floor(cacheHitRate(usage) * 100)}% out=${usage.output} stop=${reply.stopReason}` : `[nolune] ${conversationId.slice(0, 8)} ${conv.model} stop=${reply.stopReason}`);
23656
+ const summarized = usage?.compaction ? ` (summarized the conversation first: in=${usage.compaction.input} cache_read=${usage.compaction.cacheRead} out=${usage.compaction.output})` : "";
23657
+ console.log(usage ? `[nolune] ${conversationId.slice(0, 8)} ${conv.model} in=${usage.input} cache_read=${usage.cacheRead} cache_write=${usage.cacheWrite} hit=${Math.floor(cacheHitRate(usage) * 100)}% out=${usage.output} stop=${reply.stopReason}${summarized}` : `[nolune] ${conversationId.slice(0, 8)} ${conv.model} stop=${reply.stopReason}`);
23468
23658
  const assistantRow = appendRow({
23469
23659
  conversationId,
23470
23660
  role: "assistant",
@@ -23533,8 +23723,14 @@ function planInput(conv, rows, newSessionId = conv.id) {
23533
23723
  if (session) input = rows.filter((row) => (row.seq ?? 0) > session.sentSeq && isPlanInput(row)).flatMap(content);
23534
23724
  else {
23535
23725
  const seen = rows.findLastIndex((row) => !isPlanInput(row)) + 1;
23536
- const earlier = rows.slice(0, seen).map((row) => row.role === "assistant" ? `You: ${plainText(row)}` : plainText(row)).filter((text) => text && text !== "You: ");
23537
- input = rows.slice(seen).flatMap(content);
23726
+ const from = compactedFrom(rows);
23727
+ const earlier = rows.slice(from, seen).map((row) => {
23728
+ if (row.role !== "assistant") return plainText(row);
23729
+ const said = plainText(row);
23730
+ const summary = compactionSummary(row);
23731
+ return [summary !== null && compactionNote(summary).text, said && `You: ${said}`].filter(Boolean).join("\n\n");
23732
+ }).filter(Boolean);
23733
+ input = rows.slice(Math.max(from, seen)).flatMap(content);
23538
23734
  if (earlier.length) input.unshift({
23539
23735
  type: "text",
23540
23736
  text: `[This chat started before you could see it. What was said so far, oldest first:]\n\n${earlier.join("\n\n")}`
@@ -23630,6 +23826,95 @@ async function planTurn(conv, rows, st, abort) {
23630
23826
  }
23631
23827
  }
23632
23828
  }
23829
+ /** What each model call of the chat sends besides its messages, the same call after call. */
23830
+ function modelCall(conv) {
23831
+ return {
23832
+ provider: conv.provider,
23833
+ model: conv.model,
23834
+ effort: conv.effort,
23835
+ system: conv.systemPrompt,
23836
+ tools: toolsFor(conv),
23837
+ cacheTtl: conv.cacheTtl,
23838
+ cacheKey: conv.id
23839
+ };
23840
+ }
23841
+ /**
23842
+ * The messages with their pictures and PDFs kept by reference, as this provider gets them, where
23843
+ * the model takes them.
23844
+ */
23845
+ async function providerMessages(conv, messages) {
23846
+ return resolveFiles(await readableMessages$1(conv.provider, conv.model, messages), conv.provider);
23847
+ }
23848
+ /**
23849
+ * Has the chat's model summarize the conversation, which would soon outgrow its context window
23850
+ * (compaction.ts), and saves the summary as a row of its own: the model calls after it start
23851
+ * there. The request is the conversation's next one with the ask at the end, so the provider's
23852
+ * cache still holds all the rest. The chat shows it as a step while the model writes. False when
23853
+ * the loop should end: stopped, or failed with `st.error`.
23854
+ */
23855
+ async function compact(conv, rows, st, abort) {
23856
+ const conversationId = conv.id;
23857
+ const block = {
23858
+ type: "compaction",
23859
+ text: ""
23860
+ };
23861
+ st.live = [block];
23862
+ emit(conversationId, {
23863
+ type: "live_block",
23864
+ index: 0,
23865
+ block
23866
+ });
23867
+ const ask = {
23868
+ role: "user",
23869
+ blocks: [{
23870
+ type: "text",
23871
+ text: SUMMARY_REQUEST
23872
+ }]
23873
+ };
23874
+ let reply;
23875
+ try {
23876
+ reply = await streamTurn({
23877
+ ...modelCall(conv),
23878
+ messages: await providerMessages(conv, [...requestMessages(rows, conv.promptChangedAtSeq), ask]),
23879
+ signal: abort.signal,
23880
+ onEvent: () => {}
23881
+ });
23882
+ } catch (err) {
23883
+ clearLive(conversationId);
23884
+ if (abort.signal.aborted || isAbortError(err)) {
23885
+ commitQueued(conversationId);
23886
+ return false;
23887
+ }
23888
+ st.error = describeApiError$1(err);
23889
+ console.error(`[nolune] ${conversationId.slice(0, 8)} summarizing failed:`, err);
23890
+ return false;
23891
+ }
23892
+ const summary = summaryOf(reply);
23893
+ const { usage } = reply;
23894
+ console.log(`[nolune] ${conversationId.slice(0, 8)} ${conv.model} summarized the conversation${usage ? ` in=${usage.input} cache_read=${usage.cacheRead} cache_write=${usage.cacheWrite} out=${usage.output}` : ""} stop=${reply.stopReason}${summary ? "" : " (no summary)"}`);
23895
+ if (!summary) {
23896
+ clearLive(conversationId);
23897
+ st.error = `${conv.presetName} didn't write the summary this chat needs to fit its context window. Try again, or switch to a model with a larger one.`;
23898
+ return false;
23899
+ }
23900
+ const row = appendRow({
23901
+ conversationId,
23902
+ role: "user",
23903
+ kind: "compaction",
23904
+ text: summary,
23905
+ blocks: [compactionNote(summary)],
23906
+ usage
23907
+ });
23908
+ st.live = [];
23909
+ st.toolOutput = null;
23910
+ emit(conversationId, {
23911
+ type: "message",
23912
+ message: toDisplay$1(row),
23913
+ replacesLive: true
23914
+ });
23915
+ touchConversation(conversationId);
23916
+ return true;
23917
+ }
23633
23918
  async function loop(conversationId) {
23634
23919
  const st = stateFor(conversationId);
23635
23920
  if (st.running) return;
@@ -23666,18 +23951,18 @@ async function loop(conversationId) {
23666
23951
  if (!queuedRows(conversationId).length) return;
23667
23952
  continue;
23668
23953
  }
23669
- const messages = requestMessages(rows, conv.promptChangedAtSeq);
23954
+ if (needsCompaction(conv, rows)) {
23955
+ if (!await compact(conv, rows, st, abort)) return;
23956
+ continue;
23957
+ }
23958
+ const onServer = compactsOnServer(conv.provider, conv.model);
23959
+ const messages = requestMessages(rows, conv.promptChangedAtSeq, onServer ? conv.model : null);
23670
23960
  let reply;
23671
23961
  try {
23672
23962
  reply = await streamTurn({
23673
- provider: conv.provider,
23674
- model: conv.model,
23675
- effort: conv.effort,
23676
- system: conv.systemPrompt,
23677
- tools: toolsFor(conv),
23678
- cacheTtl: conv.cacheTtl,
23679
- cacheKey: conv.id,
23680
- messages: await resolveFiles(await readableMessages$1(conv.provider, conv.model, messages), conv.provider),
23963
+ ...modelCall(conv),
23964
+ messages: await providerMessages(conv, messages),
23965
+ compactAt: onServer ? serverCompactAt(conv.contextWindow) : null,
23681
23966
  signal: abort.signal,
23682
23967
  onEvent: (event) => onStreamEvent(conversationId, event)
23683
23968
  });
@@ -26712,4 +26997,4 @@ function startUpdateChecks() {
26712
26997
  }
26713
26998
 
26714
26999
  export { setAdmin as $, recoverAfterRestart as A, startScheduler as B, Column as C, startUpdateChecks as D, paths as E, viewImage as F, profileSkillsDir as G, createSkill as H, getProfileBySlug as I, listProfileSkills as J, scanSkills as K, setSkillsEnabled as L, addPreset as M, effectiveContextWindow as N, isProvider$1 as O, listPresets as P, isCustomProvider as Q, splitModel as R, editPreset as S, Table as T, removePreset as U, ViewLimitError as V, setDefaultPreset as W, getDefaultPreset as X, generatePassword as Y, createUser as Z, setPassword as _, asc as a, profileCards as a$, deleteUser as a0, createInvite as a1, publicOrigin as a2, listUsers as a3, userPictureFile as a4, updateConfig as a5, findCustomProvider as a6, removeCustomProvider as a7, listCustomProviders as a8, API_KEYS as a9, runSubagent as aA, resolvePreset as aB, getTrigger as aC, queueWake as aD, MAX_SOUL_CHARS as aE, writeSoul as aF, readSoulFile as aG, MAX_CARD_CHARS as aH, cardOf as aI, cardFiles as aJ, findUser as aK, readCard as aL, MAX_PINNED_CHARS as aM, setLearnFromChats as aN, mergeProfileNotes as aO, moveProfileNote as aP, removeMemoryNote as aQ, writeMemoryNote as aR, forgetInCard as aS, forgetMemoryFact as aT, replaceInCard as aU, replaceInMemory as aV, factLines as aW, addToCard as aX, addMemoryFact as aY, profileCard as aZ, readMemoryNote as a_, isApiKeyProvider as aa, removeApiKey as ab, apiKeyStatuses as ac, claudeExecutable as ad, chatGptPlanStatus as ae, imageGenerationStatus as af, embeddingStatus as ag, describeCommandSafety as ah, describeUpdates as ai, isCommandMode as aj, saveCommandMode as ak, findPreset as al, saveSafetyPreset as am, forgetRelease as an, parseEmbeddingSetting as ao, saveEmbeddingSetting as ap, embeddingProblem as aq, initConfig as ar, configExists as as, listSubagents as at, getConversation as au, subagentLogPath as av, requestSubagentStop as aw, steerSubagent as ax, subagentResult as ay, EFFORTS as az, lt as b, startEmbeddingMemory as b$, searchMemory as b0, listMemoryFiles as b1, membersWithNotes as b2, profileMemoryDir as b3, isPinnedNote as b4, formatLocalTime as b5, updateTrigger as b6, describeWhen as b7, deleteTrigger as b8, setTriggerEnabled as b9, generateImages as bA, inspectImage as bB, findSubagent as bC, checkCardWrite as bD, recordAgentCardChanges as bE, findTrigger as bF, parseRunAt as bG, isFinished as bH, webhookUrl as bI, saveCustomProvider as bJ, IMAGE_BACKGROUNDS as bK, IMAGE_FORMATS as bL, startChatGptSignIn as bM, cancelChatGptSignIn as bN, finishChatGptSignIn as bO, chatGptSignInState as bP, cliCommand as bQ, parseImageModel as bR, availableUpdate as bS, listNotificationsForUser as bT, getConversationForUser as bU, getProfileForUser as bV, listConversations as bW, listFolders as bX, listMembers as bY, listProfilesForUser as bZ, DEFAULT_EMBEDDING_MODELS as b_, queueRun as ba, getPreset as bb, getProfile as bc, listRuns as bd, listProfiles as be, listTriggers as bf, createTrigger as bg, setProfileAvatar as bh, providerFor as bi, signOutChatGpt as bj, listChatGptModels as bk, checkCustomProvider as bl, CustomProviderError as bm, normalizeApiKey as bn, checkApiKey as bo, saveApiKey as bp, ApiKeyError as bq, claudePlanStatus as br, claudeSignInCommand as bs, appManaged as bt, MAX_MEDIA_BYTES as bu, WEB_RECENT as bv, searchWeb as bw, readWebPage as bx, parseImageSize as by, configuredImageModel as bz, count as c, CORE_NOTE as c$, embeddingState as c0, PlanError as c1, normalizeProviderUrl as c2, customProviderNameProblem as c3, isProviderUrl as c4, CHATGPT_USAGE_URL as c5, CLAUDE_INSTALL_COMMAND as c6, commandSafetyState as c7, findClaudeCode as c8, PROVIDERS$1 as c9, runTriggerNow as cA, listRunsBetween as cB, cronRunsBetween as cC, stopConversation as cD, deleteConversation as cE, renameConversation as cF, TitleError as cG, subagentByConversation as cH, heldFileProviders as cI, deleteFolder as cJ, removeFolderFile as cK, addFolderFiles as cL, setFolderInstructions as cM, renameFolder as cN, MAX_FOLDER_INSTRUCTIONS as cO, listFolderFiles as cP, isViewable as cQ, folderDir as cR, FolderError as cS, IMAGE_SHAPES as cT, resolveImageTemplate as cU, checkTemplateImages as cV, templateMessage as cW, scanImageTemplates as cX, profileImageTemplatesDir as cY, forgetMemoryFile as cZ, writeMemoryFile as c_, PROVIDER_LABELS as ca, UserNameError as cb, EmailError as cc, PasswordError as cd, revokeInvite as ce, listInvites as cf, findUserById as cg, bringToCard as ch, forgetCardFile as ci, writeCardFile as cj, MemoryConflictError as ck, cardCandidates as cl, cardChanges as cm, cardProfiles as cn, MemoryError as co, acceptInvite as cp, InviteError as cq, findInvite as cr, getFolder as cs, commandMode as ct, chatCommandChoice as cu, findUploads as cv, AttachmentError as cw, createConversation as cx, sendMessage as cy, currentSuggestions as cz, desc as d, recentMemoryChanges as d0, deleteProfile as d1, removeMember as d2, linkPersonNote as d3, addMemberWithNote as d4, SoulError as d5, renameProfile as d6, listPersonNotes as d7, reformatMemoryExport as d8, importMemoryExport as d9, setUserPicture as dA, PictureError as dB, listModels$1 as dC, describeApiError$1 as dD, dismissAllNotifications as dE, markNotificationsSeen as dF, continueNotification as dG, dismissNotification as dH, createFolder as dI, getFolderFile as dJ, undoMemoryChange as dK, MemoryUndoError as dL, onRunningChange as dM, runningConversationIds as dN, refreshSuggestions as dO, createUpload as dP, TooLargeError as dQ, deleteUpload as dR, isPlan as da, isModelKeyProvider as db, createProfile as dc, keepOnlyInProfile as dd, refreshMemoryLooks as de, changeCommandMode as df, isSubagentConversation as dg, kick as dh, changeEffort as di, getSnapshot as dj, subscribe as dk, moveConversation as dl, getMedia as dm, mediaFile as dn, SubagentError as dp, changeModel as dq, ModelSwitchError as dr, setTyping as ds, onNotificationsChanged as dt, onProfileChanged as du, onReleaseFound as dv, isMember as dw, fireWebhook as dx, renameUser as dy, clearUserPicture as dz, lte as e, isNotNull as f, getDb as g, ne as h, inArray as i, gt as j, gte as k, like as l, isNull as m, notInArray as n, eq as o, and as p, or as q, readConfig as r, sql as s, is as t, ilike as u, schema_exports as v, hashPassword as w, verifyPassword as x, getTableColumns as y, installCliShim as z };
26715
- //# sourceMappingURL=src.js-By1ympQX.js.map
27000
+ //# sourceMappingURL=src.js-DlynI0hv.js.map
@@ -1,6 +1,6 @@
1
1
  import { g as getContext } from './server.js-BAHAkSRU.js';
2
2
  import 'node:module';
3
- import './client.js-CDiYfs8I.js';
3
+ import './client.js-Dg5neIp5.js';
4
4
 
5
5
  //#endregion
6
6
  //#region ../../node_modules/.pnpm/@sveltejs+kit@2.70.3_@sveltejs+vite-plugin-svelte@7.3.1_svelte@5.57.1_@typescript-eslin_966400cae69c6a1acd67dc361e1b9dab/node_modules/@sveltejs/kit/src/runtime/app/state/server.js
@@ -64,4 +64,4 @@ var page = {
64
64
  }};
65
65
 
66
66
  export { page as p };
67
- //# sourceMappingURL=state.js-Cc40pHn4.js.map
67
+ //# sourceMappingURL=state.js-DjG_xJ6v.js.map
@@ -1,8 +1,8 @@
1
1
  import { ag as bind_props, af as spread_props, ai as props_id, aj as attributes, _ as derived } from './server.js-BAHAkSRU.js';
2
- import './client.js-CDiYfs8I.js';
3
- import { c as cn } from './utils2.js-DuMjoPpv.js';
4
- import { k as createId, n as noop, e as boxWith, C as Context, h as attachRef, j as boolToEmptyStrOrUndef, ab as getDataChecked, N as boolToStr, a3 as getAriaChecked, a7 as boolToTrueOrUndef, m as mergeProps, f as createBitsAttrs } from './tooltip.js-TDhWLmLB.js';
5
- import { H as Hidden_input } from './hidden-input.js-hdLLOkF9.js';
2
+ import './client.js-Dg5neIp5.js';
3
+ import { c as cn } from './utils2.js-D1jvsxxx.js';
4
+ import { k as createId, n as noop, e as boxWith, C as Context, h as attachRef, j as boolToEmptyStrOrUndef, ab as getDataChecked, N as boolToStr, a3 as getAriaChecked, a7 as boolToTrueOrUndef, m as mergeProps, f as createBitsAttrs } from './tooltip.js-CefNT6DH.js';
5
+ import { H as Hidden_input } from './hidden-input.js-CIt9W_5y.js';
6
6
 
7
7
  //#region ../../node_modules/.pnpm/bits-ui@2.19.3_@internationalized+date@3.12.4_@sveltejs+kit@2.70.3_@sveltejs+vite-plugi_97f94e1c53efcb5986aea767b23a2c5d/node_modules/bits-ui/dist/bits/switch/switch.svelte.js
8
8
  var switchAttrs = createBitsAttrs({
@@ -280,4 +280,4 @@ function Switch($$renderer, $$props) {
280
280
  }
281
281
 
282
282
  export { Switch as S };
283
- //# sourceMappingURL=switch.js-C6G7NxB4.js.map
283
+ //# sourceMappingURL=switch.js-BykxjriZ.js.map