nolune 0.4.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (937) hide show
  1. package/DESIGN.md +850 -40
  2. package/README.md +21 -11
  3. package/dist/chunks/chunk-2Z3QOLXA.js +19934 -0
  4. package/dist/chunks/chunk-YK5257ON.js +116 -0
  5. package/dist/chunks/run-UUFOUO2T.js +44529 -0
  6. package/dist/chunks/zod-EQ7NYDR4.js +524 -0
  7. package/dist/cli.js +2 -2
  8. package/package.json +1 -1
  9. package/packages/core/drizzle/0022_push_devices.sql +12 -0
  10. package/packages/core/drizzle/0023_background_command_pid.sql +2 -0
  11. package/packages/core/drizzle/meta/0022_snapshot.json +2509 -0
  12. package/packages/core/drizzle/meta/0023_snapshot.json +2523 -0
  13. package/packages/core/drizzle/meta/_journal.json +14 -0
  14. package/packages/core/skills/generate-images/SKILL.md +7 -2
  15. package/packages/core/skills/nolune/SKILL.md +41 -8
  16. package/packages/core/skills/subagents/SKILL.md +3 -1
  17. package/packages/web/build/client/_app/immutable/assets/0.DTPxyIYr.css +2 -0
  18. package/packages/web/build/client/_app/immutable/assets/0.DTPxyIYr.css.br +0 -0
  19. package/packages/web/build/client/_app/immutable/assets/0.DTPxyIYr.css.gz +0 -0
  20. package/packages/web/build/client/_app/immutable/assets/13.BMz9yqHy.css +1 -0
  21. package/packages/web/build/client/_app/immutable/assets/13.BMz9yqHy.css.br +0 -0
  22. package/packages/web/build/client/_app/immutable/assets/13.BMz9yqHy.css.gz +0 -0
  23. package/packages/web/build/client/_app/immutable/assets/KaTeX_AMS-Regular.BQhdFMY1.woff2 +0 -0
  24. package/packages/web/build/client/_app/immutable/assets/KaTeX_AMS-Regular.DMm9YOAa.woff +0 -0
  25. package/packages/web/build/client/_app/immutable/assets/KaTeX_AMS-Regular.DRggAlZN.ttf +0 -0
  26. package/packages/web/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.ATXxdsX0.ttf +0 -0
  27. package/packages/web/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.BEiXGLvX.woff +0 -0
  28. package/packages/web/build/client/_app/immutable/assets/KaTeX_Caligraphic-Bold.Dq_IR9rO.woff2 +0 -0
  29. package/packages/web/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.CTRA-rTL.woff +0 -0
  30. package/packages/web/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.Di6jR-x-.woff2 +0 -0
  31. package/packages/web/build/client/_app/immutable/assets/KaTeX_Caligraphic-Regular.wX97UBjC.ttf +0 -0
  32. package/packages/web/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.BdnERNNW.ttf +0 -0
  33. package/packages/web/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.BsDP51OF.woff +0 -0
  34. package/packages/web/build/client/_app/immutable/assets/KaTeX_Fraktur-Bold.CL6g_b3V.woff2 +0 -0
  35. package/packages/web/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.CB_wures.ttf +0 -0
  36. package/packages/web/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.CTYiF6lA.woff2 +0 -0
  37. package/packages/web/build/client/_app/immutable/assets/KaTeX_Fraktur-Regular.Dxdc4cR9.woff +0 -0
  38. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-Bold.Cx986IdX.woff2 +0 -0
  39. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-Bold.Jm3AIy58.woff +0 -0
  40. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-Bold.waoOVXN0.ttf +0 -0
  41. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.DxDJ3AOS.woff2 +0 -0
  42. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.DzxPMmG6.ttf +0 -0
  43. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-BoldItalic.SpSLRI95.woff +0 -0
  44. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-Italic.3WenGoN9.ttf +0 -0
  45. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-Italic.BMLOBm91.woff +0 -0
  46. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-Italic.NWA7e6Wa.woff2 +0 -0
  47. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-Regular.B22Nviop.woff2 +0 -0
  48. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-Regular.Dr94JaBh.woff +0 -0
  49. package/packages/web/build/client/_app/immutable/assets/KaTeX_Main-Regular.ypZvNtVU.ttf +0 -0
  50. package/packages/web/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.B3XSjfu4.ttf +0 -0
  51. package/packages/web/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.CZnvNsCZ.woff2 +0 -0
  52. package/packages/web/build/client/_app/immutable/assets/KaTeX_Math-BoldItalic.iY-2wyZ7.woff +0 -0
  53. package/packages/web/build/client/_app/immutable/assets/KaTeX_Math-Italic.DA0__PXp.woff +0 -0
  54. package/packages/web/build/client/_app/immutable/assets/KaTeX_Math-Italic.flOr_0UB.ttf +0 -0
  55. package/packages/web/build/client/_app/immutable/assets/KaTeX_Math-Italic.t53AETM-.woff2 +0 -0
  56. package/packages/web/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.CFMepnvq.ttf +0 -0
  57. package/packages/web/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.D1sUS0GD.woff2 +0 -0
  58. package/packages/web/build/client/_app/immutable/assets/KaTeX_SansSerif-Bold.DbIhKOiC.woff +0 -0
  59. package/packages/web/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.C3H0VqGB.woff2 +0 -0
  60. package/packages/web/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.DN2j7dab.woff +0 -0
  61. package/packages/web/build/client/_app/immutable/assets/KaTeX_SansSerif-Italic.YYjJ1zSn.ttf +0 -0
  62. package/packages/web/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.BNo7hRIc.ttf +0 -0
  63. package/packages/web/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.CS6fqUqJ.woff +0 -0
  64. package/packages/web/build/client/_app/immutable/assets/KaTeX_SansSerif-Regular.DDBCnlJ7.woff2 +0 -0
  65. package/packages/web/build/client/_app/immutable/assets/KaTeX_Script-Regular.C5JkGWo-.ttf +0 -0
  66. package/packages/web/build/client/_app/immutable/assets/KaTeX_Script-Regular.D3wIWfF6.woff2 +0 -0
  67. package/packages/web/build/client/_app/immutable/assets/KaTeX_Script-Regular.D5yQViql.woff +0 -0
  68. package/packages/web/build/client/_app/immutable/assets/KaTeX_Size1-Regular.C195tn64.woff +0 -0
  69. package/packages/web/build/client/_app/immutable/assets/KaTeX_Size1-Regular.Dbsnue_I.ttf +0 -0
  70. package/packages/web/build/client/_app/immutable/assets/KaTeX_Size1-Regular.mCD8mA8B.woff2 +0 -0
  71. package/packages/web/build/client/_app/immutable/assets/KaTeX_Size2-Regular.B7gKUWhC.ttf +0 -0
  72. package/packages/web/build/client/_app/immutable/assets/KaTeX_Size2-Regular.Dy4dx90m.woff2 +0 -0
  73. package/packages/web/build/client/_app/immutable/assets/KaTeX_Size2-Regular.oD1tc_U0.woff +0 -0
  74. package/packages/web/build/client/_app/immutable/assets/KaTeX_Size3-Regular.CTq5MqoE.woff +0 -0
  75. package/packages/web/build/client/_app/immutable/assets/KaTeX_Size3-Regular.DgpXs0kz.ttf +0 -0
  76. package/packages/web/build/client/_app/immutable/assets/KaTeX_Size4-Regular.BF-4gkZK.woff +0 -0
  77. package/packages/web/build/client/_app/immutable/assets/KaTeX_Size4-Regular.DWFBv043.ttf +0 -0
  78. package/packages/web/build/client/_app/immutable/assets/KaTeX_Size4-Regular.Dl5lxZxV.woff2 +0 -0
  79. package/packages/web/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.C0xS9mPB.woff +0 -0
  80. package/packages/web/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.CO6r4hn1.woff2 +0 -0
  81. package/packages/web/build/client/_app/immutable/assets/KaTeX_Typewriter-Regular.D3Ib7_Hf.ttf +0 -0
  82. package/packages/web/build/client/_app/immutable/assets/MemoryChangeItem.BWIhbozZ.css +1 -0
  83. package/packages/web/build/client/_app/immutable/assets/MemoryChangeItem.BWIhbozZ.css.br +0 -0
  84. package/packages/web/build/client/_app/immutable/assets/MemoryChangeItem.BWIhbozZ.css.gz +0 -0
  85. package/packages/web/build/client/_app/immutable/chunks/4PUAD6Hn.js +1 -0
  86. package/packages/web/build/client/_app/immutable/chunks/4PUAD6Hn.js.br +0 -0
  87. package/packages/web/build/client/_app/immutable/chunks/4PUAD6Hn.js.gz +0 -0
  88. package/packages/web/build/client/_app/immutable/chunks/5DnhI3WV.js +1 -0
  89. package/packages/web/build/client/_app/immutable/chunks/5DnhI3WV.js.br +0 -0
  90. package/packages/web/build/client/_app/immutable/chunks/5DnhI3WV.js.gz +0 -0
  91. package/packages/web/build/client/_app/immutable/chunks/9KY5PuID.js +1 -0
  92. package/packages/web/build/client/_app/immutable/chunks/9KY5PuID.js.br +0 -0
  93. package/packages/web/build/client/_app/immutable/chunks/9KY5PuID.js.gz +0 -0
  94. package/packages/web/build/client/_app/immutable/chunks/B3B6Llhi.js +1 -0
  95. package/packages/web/build/client/_app/immutable/chunks/B3B6Llhi.js.br +0 -0
  96. package/packages/web/build/client/_app/immutable/chunks/B3B6Llhi.js.gz +0 -0
  97. package/packages/web/build/client/_app/immutable/chunks/BEiyvTDv.js +2 -0
  98. package/packages/web/build/client/_app/immutable/chunks/BEiyvTDv.js.br +0 -0
  99. package/packages/web/build/client/_app/immutable/chunks/BEiyvTDv.js.gz +0 -0
  100. package/packages/web/build/client/_app/immutable/chunks/BEuWFR46.js +1 -0
  101. package/packages/web/build/client/_app/immutable/chunks/BEuWFR46.js.br +0 -0
  102. package/packages/web/build/client/_app/immutable/chunks/BEuWFR46.js.gz +0 -0
  103. package/packages/web/build/client/_app/immutable/chunks/BFs5OywM.js +1 -0
  104. package/packages/web/build/client/_app/immutable/chunks/BFs5OywM.js.br +2 -0
  105. package/packages/web/build/client/_app/immutable/chunks/BFs5OywM.js.gz +0 -0
  106. package/packages/web/build/client/_app/immutable/chunks/BHlj8PXn.js +1 -0
  107. package/packages/web/build/client/_app/immutable/chunks/BHlj8PXn.js.br +0 -0
  108. package/packages/web/build/client/_app/immutable/chunks/BHlj8PXn.js.gz +0 -0
  109. package/packages/web/build/client/_app/immutable/chunks/BNRbPhhf.js +1 -0
  110. package/packages/web/build/client/_app/immutable/chunks/BNRbPhhf.js.br +0 -0
  111. package/packages/web/build/client/_app/immutable/chunks/BNRbPhhf.js.gz +0 -0
  112. package/packages/web/build/client/_app/immutable/chunks/BOat6vK8.js +1 -0
  113. package/packages/web/build/client/_app/immutable/chunks/BOat6vK8.js.br +0 -0
  114. package/packages/web/build/client/_app/immutable/chunks/BOat6vK8.js.gz +0 -0
  115. package/packages/web/build/client/_app/immutable/chunks/BV31-W0q.js +1 -0
  116. package/packages/web/build/client/_app/immutable/chunks/BV31-W0q.js.br +0 -0
  117. package/packages/web/build/client/_app/immutable/chunks/BV31-W0q.js.gz +0 -0
  118. package/packages/web/build/client/_app/immutable/chunks/BX510Kfl.js +1 -0
  119. package/packages/web/build/client/_app/immutable/chunks/BX510Kfl.js.br +0 -0
  120. package/packages/web/build/client/_app/immutable/chunks/BX510Kfl.js.gz +0 -0
  121. package/packages/web/build/client/_app/immutable/chunks/BiJmfCpk.js +5 -0
  122. package/packages/web/build/client/_app/immutable/chunks/BiJmfCpk.js.br +0 -0
  123. package/packages/web/build/client/_app/immutable/chunks/BiJmfCpk.js.gz +0 -0
  124. package/packages/web/build/client/_app/immutable/chunks/Bj1mFvu3.js +1 -0
  125. package/packages/web/build/client/_app/immutable/chunks/Bj1mFvu3.js.br +0 -0
  126. package/packages/web/build/client/_app/immutable/chunks/Bj1mFvu3.js.gz +0 -0
  127. package/packages/web/build/client/_app/immutable/chunks/Bm7dan1t.js +31 -0
  128. package/packages/web/build/client/_app/immutable/chunks/Bm7dan1t.js.br +0 -0
  129. package/packages/web/build/client/_app/immutable/chunks/Bm7dan1t.js.gz +0 -0
  130. package/packages/web/build/client/_app/immutable/chunks/Bo_rsWL9.js +1 -0
  131. package/packages/web/build/client/_app/immutable/chunks/Bo_rsWL9.js.br +0 -0
  132. package/packages/web/build/client/_app/immutable/chunks/Bo_rsWL9.js.gz +0 -0
  133. package/packages/web/build/client/_app/immutable/chunks/BqRUHvKF.js +1 -0
  134. package/packages/web/build/client/_app/immutable/chunks/BqRUHvKF.js.br +0 -0
  135. package/packages/web/build/client/_app/immutable/chunks/BqRUHvKF.js.gz +0 -0
  136. package/packages/web/build/client/_app/immutable/chunks/BvYIXZ8H.js +1 -0
  137. package/packages/web/build/client/_app/immutable/chunks/BvYIXZ8H.js.br +0 -0
  138. package/packages/web/build/client/_app/immutable/chunks/BvYIXZ8H.js.gz +0 -0
  139. package/packages/web/build/client/_app/immutable/chunks/BxvcrS4t.js +1 -0
  140. package/packages/web/build/client/_app/immutable/chunks/BxvcrS4t.js.br +0 -0
  141. package/packages/web/build/client/_app/immutable/chunks/BxvcrS4t.js.gz +0 -0
  142. package/packages/web/build/client/_app/immutable/chunks/CDTqLtoU.js +1 -0
  143. package/packages/web/build/client/_app/immutable/chunks/CDTqLtoU.js.br +0 -0
  144. package/packages/web/build/client/_app/immutable/chunks/CDTqLtoU.js.gz +0 -0
  145. package/packages/web/build/client/_app/immutable/chunks/CGBW4BXA.js +1 -0
  146. package/packages/web/build/client/_app/immutable/chunks/CGBW4BXA.js.br +0 -0
  147. package/packages/web/build/client/_app/immutable/chunks/CGBW4BXA.js.gz +0 -0
  148. package/packages/web/build/client/_app/immutable/chunks/CGQ98Bzn.js +1 -0
  149. package/packages/web/build/client/_app/immutable/chunks/CGQ98Bzn.js.br +0 -0
  150. package/packages/web/build/client/_app/immutable/chunks/CGQ98Bzn.js.gz +0 -0
  151. package/packages/web/build/client/_app/immutable/chunks/CZifjVB9.js +67 -0
  152. package/packages/web/build/client/_app/immutable/chunks/CZifjVB9.js.br +0 -0
  153. package/packages/web/build/client/_app/immutable/chunks/CZifjVB9.js.gz +0 -0
  154. package/packages/web/build/client/_app/immutable/chunks/CcGIu5Vq.js +1 -0
  155. package/packages/web/build/client/_app/immutable/chunks/CcGIu5Vq.js.br +0 -0
  156. package/packages/web/build/client/_app/immutable/chunks/CcGIu5Vq.js.gz +0 -0
  157. package/packages/web/build/client/_app/immutable/chunks/Ck2bNKM1.js +1 -0
  158. package/packages/web/build/client/_app/immutable/chunks/Ck2bNKM1.js.br +0 -0
  159. package/packages/web/build/client/_app/immutable/chunks/Ck2bNKM1.js.gz +0 -0
  160. package/packages/web/build/client/_app/immutable/chunks/Cke9De8L.js +9 -0
  161. package/packages/web/build/client/_app/immutable/chunks/Cke9De8L.js.br +0 -0
  162. package/packages/web/build/client/_app/immutable/chunks/Cke9De8L.js.gz +0 -0
  163. package/packages/web/build/client/_app/immutable/chunks/CokZjUvP.js +327 -0
  164. package/packages/web/build/client/_app/immutable/chunks/CokZjUvP.js.br +0 -0
  165. package/packages/web/build/client/_app/immutable/chunks/CokZjUvP.js.gz +0 -0
  166. package/packages/web/build/client/_app/immutable/chunks/Cq-Be9D4.js +1 -0
  167. package/packages/web/build/client/_app/immutable/chunks/Cq-Be9D4.js.br +0 -0
  168. package/packages/web/build/client/_app/immutable/chunks/Cq-Be9D4.js.gz +0 -0
  169. package/packages/web/build/client/_app/immutable/chunks/CwTujmI2.js +1 -0
  170. package/packages/web/build/client/_app/immutable/chunks/CwTujmI2.js.br +0 -0
  171. package/packages/web/build/client/_app/immutable/chunks/CwTujmI2.js.gz +0 -0
  172. package/packages/web/build/client/_app/immutable/chunks/D-qajCIk.js +1 -0
  173. package/packages/web/build/client/_app/immutable/chunks/D-qajCIk.js.br +0 -0
  174. package/packages/web/build/client/_app/immutable/chunks/D-qajCIk.js.gz +0 -0
  175. package/packages/web/build/client/_app/immutable/chunks/D0gG26QQ.js +1 -0
  176. package/packages/web/build/client/_app/immutable/chunks/D0gG26QQ.js.br +0 -0
  177. package/packages/web/build/client/_app/immutable/chunks/D0gG26QQ.js.gz +0 -0
  178. package/packages/web/build/client/_app/immutable/chunks/D6PEWnLY.js +1 -0
  179. package/packages/web/build/client/_app/immutable/chunks/D6PEWnLY.js.br +0 -0
  180. package/packages/web/build/client/_app/immutable/chunks/D6PEWnLY.js.gz +0 -0
  181. package/packages/web/build/client/_app/immutable/chunks/D6S7I_wu.js +1 -0
  182. package/packages/web/build/client/_app/immutable/chunks/D6S7I_wu.js.br +0 -0
  183. package/packages/web/build/client/_app/immutable/chunks/D6S7I_wu.js.gz +0 -0
  184. package/packages/web/build/client/_app/immutable/chunks/DC4U80pb.js +1 -0
  185. package/packages/web/build/client/_app/immutable/chunks/DC4U80pb.js.br +3 -0
  186. package/packages/web/build/client/_app/immutable/chunks/DC4U80pb.js.gz +0 -0
  187. package/packages/web/build/client/_app/immutable/chunks/DIcXkfTb.js +1 -0
  188. package/packages/web/build/client/_app/immutable/chunks/DIcXkfTb.js.br +1 -0
  189. package/packages/web/build/client/_app/immutable/chunks/DIcXkfTb.js.gz +0 -0
  190. package/packages/web/build/client/_app/immutable/chunks/DJaeCx-L.js +1 -0
  191. package/packages/web/build/client/_app/immutable/chunks/DJaeCx-L.js.br +4 -0
  192. package/packages/web/build/client/_app/immutable/chunks/DJaeCx-L.js.gz +0 -0
  193. package/packages/web/build/client/_app/immutable/chunks/DMj7Nf4H.js +1 -0
  194. package/packages/web/build/client/_app/immutable/chunks/DMj7Nf4H.js.br +0 -0
  195. package/packages/web/build/client/_app/immutable/chunks/DMj7Nf4H.js.gz +0 -0
  196. package/packages/web/build/client/_app/immutable/chunks/DOvq77PD.js +1 -0
  197. package/packages/web/build/client/_app/immutable/chunks/DOvq77PD.js.br +0 -0
  198. package/packages/web/build/client/_app/immutable/chunks/DOvq77PD.js.gz +0 -0
  199. package/packages/web/build/client/_app/immutable/chunks/DTFYOzqo.js +1 -0
  200. package/packages/web/build/client/_app/immutable/chunks/DTFYOzqo.js.br +0 -0
  201. package/packages/web/build/client/_app/immutable/chunks/DTFYOzqo.js.gz +0 -0
  202. package/packages/web/build/client/_app/immutable/chunks/DcDwQDix.js +1 -0
  203. package/packages/web/build/client/_app/immutable/chunks/DcDwQDix.js.br +0 -0
  204. package/packages/web/build/client/_app/immutable/chunks/DcDwQDix.js.gz +0 -0
  205. package/packages/web/build/client/_app/immutable/chunks/DgZpnHfl.js +1 -0
  206. package/packages/web/build/client/_app/immutable/chunks/DgZpnHfl.js.br +0 -0
  207. package/packages/web/build/client/_app/immutable/chunks/DgZpnHfl.js.gz +0 -0
  208. package/packages/web/build/client/_app/immutable/chunks/DhgCoR6K.js +261 -0
  209. package/packages/web/build/client/_app/immutable/chunks/DhgCoR6K.js.br +0 -0
  210. package/packages/web/build/client/_app/immutable/chunks/DhgCoR6K.js.gz +0 -0
  211. package/packages/web/build/client/_app/immutable/chunks/DlQYf8zG.js +1 -0
  212. package/packages/web/build/client/_app/immutable/chunks/DlQYf8zG.js.br +0 -0
  213. package/packages/web/build/client/_app/immutable/chunks/DlQYf8zG.js.gz +0 -0
  214. package/packages/web/build/client/_app/immutable/chunks/Doe9BmDt.js +1 -0
  215. package/packages/web/build/client/_app/immutable/chunks/Doe9BmDt.js.br +0 -0
  216. package/packages/web/build/client/_app/immutable/chunks/Doe9BmDt.js.gz +0 -0
  217. package/packages/web/build/client/_app/immutable/chunks/Dtntqkaz.js +1 -0
  218. package/packages/web/build/client/_app/immutable/chunks/Dtntqkaz.js.br +0 -0
  219. package/packages/web/build/client/_app/immutable/chunks/Dtntqkaz.js.gz +0 -0
  220. package/packages/web/build/client/_app/immutable/chunks/DvW6dDDr.js +1 -0
  221. package/packages/web/build/client/_app/immutable/chunks/DvW6dDDr.js.br +0 -0
  222. package/packages/web/build/client/_app/immutable/chunks/DvW6dDDr.js.gz +0 -0
  223. package/packages/web/build/client/_app/immutable/chunks/DvwwtGJX.js +1 -0
  224. package/packages/web/build/client/_app/immutable/chunks/DvwwtGJX.js.br +0 -0
  225. package/packages/web/build/client/_app/immutable/chunks/DvwwtGJX.js.gz +0 -0
  226. package/packages/web/build/client/_app/immutable/chunks/GB5YcQWH.js +1 -0
  227. package/packages/web/build/client/_app/immutable/chunks/GB5YcQWH.js.br +0 -0
  228. package/packages/web/build/client/_app/immutable/chunks/GB5YcQWH.js.gz +0 -0
  229. package/packages/web/build/client/_app/immutable/chunks/N5ZTPF8d.js +1 -0
  230. package/packages/web/build/client/_app/immutable/chunks/N5ZTPF8d.js.br +0 -0
  231. package/packages/web/build/client/_app/immutable/chunks/N5ZTPF8d.js.gz +0 -0
  232. package/packages/web/build/client/_app/immutable/chunks/OszGRQS8.js +1 -0
  233. package/packages/web/build/client/_app/immutable/chunks/OszGRQS8.js.br +5 -0
  234. package/packages/web/build/client/_app/immutable/chunks/OszGRQS8.js.gz +0 -0
  235. package/packages/web/build/client/_app/immutable/chunks/PbrvVWdR.js +1 -0
  236. package/packages/web/build/client/_app/immutable/chunks/PbrvVWdR.js.br +0 -0
  237. package/packages/web/build/client/_app/immutable/chunks/PbrvVWdR.js.gz +0 -0
  238. package/packages/web/build/client/_app/immutable/chunks/crM_JIeq.js +1 -0
  239. package/packages/web/build/client/_app/immutable/chunks/crM_JIeq.js.br +0 -0
  240. package/packages/web/build/client/_app/immutable/chunks/crM_JIeq.js.gz +0 -0
  241. package/packages/web/build/client/_app/immutable/chunks/dJUISQ0D.js +1 -0
  242. package/packages/web/build/client/_app/immutable/chunks/dJUISQ0D.js.br +0 -0
  243. package/packages/web/build/client/_app/immutable/chunks/dJUISQ0D.js.gz +0 -0
  244. package/packages/web/build/client/_app/immutable/chunks/dp9f0HTI.js +1 -0
  245. package/packages/web/build/client/_app/immutable/chunks/dp9f0HTI.js.br +0 -0
  246. package/packages/web/build/client/_app/immutable/chunks/dp9f0HTI.js.gz +0 -0
  247. package/packages/web/build/client/_app/immutable/chunks/eVN8j5Zj.js +1 -0
  248. package/packages/web/build/client/_app/immutable/chunks/eVN8j5Zj.js.br +0 -0
  249. package/packages/web/build/client/_app/immutable/chunks/eVN8j5Zj.js.gz +0 -0
  250. package/packages/web/build/client/_app/immutable/chunks/m-CsyuMo.js +1 -0
  251. package/packages/web/build/client/_app/immutable/chunks/m-CsyuMo.js.br +0 -0
  252. package/packages/web/build/client/_app/immutable/chunks/m-CsyuMo.js.gz +0 -0
  253. package/packages/web/build/client/_app/immutable/chunks/nCUftdRl.js +1 -0
  254. package/packages/web/build/client/_app/immutable/chunks/nCUftdRl.js.br +0 -0
  255. package/packages/web/build/client/_app/immutable/chunks/nCUftdRl.js.gz +0 -0
  256. package/packages/web/build/client/_app/immutable/chunks/xWImVVsw.js +1 -0
  257. package/packages/web/build/client/_app/immutable/chunks/xWImVVsw.js.br +0 -0
  258. package/packages/web/build/client/_app/immutable/chunks/xWImVVsw.js.gz +0 -0
  259. package/packages/web/build/client/_app/immutable/chunks/zo8EncEu.js +1 -0
  260. package/packages/web/build/client/_app/immutable/chunks/zo8EncEu.js.br +0 -0
  261. package/packages/web/build/client/_app/immutable/chunks/zo8EncEu.js.gz +0 -0
  262. package/packages/web/build/client/_app/immutable/chunks/zuA9NU4f.js +1 -0
  263. package/packages/web/build/client/_app/immutable/chunks/zuA9NU4f.js.br +0 -0
  264. package/packages/web/build/client/_app/immutable/chunks/zuA9NU4f.js.gz +0 -0
  265. package/packages/web/build/client/_app/immutable/entry/app.D-KOuAJD.js +2 -0
  266. package/packages/web/build/client/_app/immutable/entry/app.D-KOuAJD.js.br +0 -0
  267. package/packages/web/build/client/_app/immutable/entry/app.D-KOuAJD.js.gz +0 -0
  268. package/packages/web/build/client/_app/immutable/entry/start.IVIfXqZa.js +1 -0
  269. package/packages/web/build/client/_app/immutable/entry/start.IVIfXqZa.js.br +0 -0
  270. package/packages/web/build/client/_app/immutable/entry/start.IVIfXqZa.js.gz +0 -0
  271. package/packages/web/build/client/_app/immutable/nodes/0.Dl7QTsEW.js +1 -0
  272. package/packages/web/build/client/_app/immutable/nodes/0.Dl7QTsEW.js.br +0 -0
  273. package/packages/web/build/client/_app/immutable/nodes/0.Dl7QTsEW.js.gz +0 -0
  274. package/packages/web/build/client/_app/immutable/nodes/1.C3FY3xx7.js +1 -0
  275. package/packages/web/build/client/_app/immutable/nodes/1.C3FY3xx7.js.br +3 -0
  276. package/packages/web/build/client/_app/immutable/nodes/1.C3FY3xx7.js.gz +0 -0
  277. package/packages/web/build/client/_app/immutable/nodes/10.DU8uzpk3.js +2 -0
  278. package/packages/web/build/client/_app/immutable/nodes/10.DU8uzpk3.js.br +0 -0
  279. package/packages/web/build/client/_app/immutable/nodes/10.DU8uzpk3.js.gz +0 -0
  280. package/packages/web/build/client/_app/immutable/nodes/11.CWXGNZsH.js +1 -0
  281. package/packages/web/build/client/_app/immutable/nodes/11.CWXGNZsH.js.br +0 -0
  282. package/packages/web/build/client/_app/immutable/nodes/11.CWXGNZsH.js.gz +0 -0
  283. package/packages/web/build/client/_app/immutable/nodes/12.D8oPN9It.js +1 -0
  284. package/packages/web/build/client/_app/immutable/nodes/12.D8oPN9It.js.br +0 -0
  285. package/packages/web/build/client/_app/immutable/nodes/12.D8oPN9It.js.gz +0 -0
  286. package/packages/web/build/client/_app/immutable/nodes/13.DlmupEgK.js +4 -0
  287. package/packages/web/build/client/_app/immutable/nodes/13.DlmupEgK.js.br +0 -0
  288. package/packages/web/build/client/_app/immutable/nodes/13.DlmupEgK.js.gz +0 -0
  289. package/packages/web/build/client/_app/immutable/nodes/14.DYXttXGs.js +1 -0
  290. package/packages/web/build/client/_app/immutable/nodes/14.DYXttXGs.js.br +0 -0
  291. package/packages/web/build/client/_app/immutable/nodes/14.DYXttXGs.js.gz +0 -0
  292. package/packages/web/build/client/_app/immutable/nodes/15.EZnTFds4.js +1 -0
  293. package/packages/web/build/client/_app/immutable/nodes/15.EZnTFds4.js.br +0 -0
  294. package/packages/web/build/client/_app/immutable/nodes/15.EZnTFds4.js.gz +0 -0
  295. package/packages/web/build/client/_app/immutable/nodes/16.DAKM59ho.js +2 -0
  296. package/packages/web/build/client/_app/immutable/nodes/16.DAKM59ho.js.br +0 -0
  297. package/packages/web/build/client/_app/immutable/nodes/16.DAKM59ho.js.gz +0 -0
  298. package/packages/web/build/client/_app/immutable/nodes/17.PkgTK81g.js +1 -0
  299. package/packages/web/build/client/_app/immutable/nodes/17.PkgTK81g.js.br +0 -0
  300. package/packages/web/build/client/_app/immutable/nodes/17.PkgTK81g.js.gz +0 -0
  301. package/packages/web/build/client/_app/immutable/nodes/18.vRqsEe52.js +1 -0
  302. package/packages/web/build/client/_app/immutable/nodes/18.vRqsEe52.js.br +0 -0
  303. package/packages/web/build/client/_app/immutable/nodes/18.vRqsEe52.js.gz +0 -0
  304. package/packages/web/build/client/_app/immutable/nodes/19.DBdb0Lg_.js +46 -0
  305. package/packages/web/build/client/_app/immutable/nodes/19.DBdb0Lg_.js.br +0 -0
  306. package/packages/web/build/client/_app/immutable/nodes/19.DBdb0Lg_.js.gz +0 -0
  307. package/packages/web/build/client/_app/immutable/nodes/2.DPQ3zIod.js +1 -0
  308. package/packages/web/build/client/_app/immutable/nodes/2.DPQ3zIod.js.br +0 -0
  309. package/packages/web/build/client/_app/immutable/nodes/2.DPQ3zIod.js.gz +0 -0
  310. package/packages/web/build/client/_app/immutable/nodes/20.BCcqHCci.js +1 -0
  311. package/packages/web/build/client/_app/immutable/nodes/20.BCcqHCci.js.br +0 -0
  312. package/packages/web/build/client/_app/immutable/nodes/20.BCcqHCci.js.gz +0 -0
  313. package/packages/web/build/client/_app/immutable/nodes/4.Gll3vIPZ.js +2 -0
  314. package/packages/web/build/client/_app/immutable/nodes/4.Gll3vIPZ.js.br +0 -0
  315. package/packages/web/build/client/_app/immutable/nodes/4.Gll3vIPZ.js.gz +0 -0
  316. package/packages/web/build/client/_app/immutable/nodes/5.CKcOR7bM.js +1 -0
  317. package/packages/web/build/client/_app/immutable/nodes/5.CKcOR7bM.js.br +0 -0
  318. package/packages/web/build/client/_app/immutable/nodes/5.CKcOR7bM.js.gz +0 -0
  319. package/packages/web/build/client/_app/immutable/nodes/6.BEyvFFIp.js +1 -0
  320. package/packages/web/build/client/_app/immutable/nodes/6.BEyvFFIp.js.br +0 -0
  321. package/packages/web/build/client/_app/immutable/nodes/6.BEyvFFIp.js.gz +0 -0
  322. package/packages/web/build/client/_app/immutable/nodes/7.B-JUQ_Vr.js +2 -0
  323. package/packages/web/build/client/_app/immutable/nodes/7.B-JUQ_Vr.js.br +0 -0
  324. package/packages/web/build/client/_app/immutable/nodes/7.B-JUQ_Vr.js.gz +0 -0
  325. package/packages/web/build/client/_app/immutable/nodes/8.DhFg-aY8.js +1 -0
  326. package/packages/web/build/client/_app/immutable/nodes/8.DhFg-aY8.js.br +0 -0
  327. package/packages/web/build/client/_app/immutable/nodes/8.DhFg-aY8.js.gz +0 -0
  328. package/packages/web/build/client/_app/immutable/nodes/9.DjKCQ1l3.js +1 -0
  329. package/packages/web/build/client/_app/immutable/nodes/9.DjKCQ1l3.js.br +0 -0
  330. package/packages/web/build/client/_app/immutable/nodes/9.DjKCQ1l3.js.gz +0 -0
  331. package/packages/web/build/client/_app/version.json +1 -1
  332. package/packages/web/build/client/_app/version.json.br +0 -0
  333. package/packages/web/build/client/_app/version.json.gz +0 -0
  334. package/packages/web/build/handler.js +4 -4
  335. package/packages/web/build/index.js +4 -4
  336. package/packages/web/build/server/chunks/chunks/AssistantAvatar.js-DiCVVVOX.js +293 -0
  337. package/packages/web/build/server/chunks/chunks/AvatarPicker.js-DfQIN8YI.js +135 -0
  338. package/packages/web/build/server/chunks/chunks/Composer.js-BD9XUuTX.js +332 -0
  339. package/packages/web/build/server/chunks/chunks/ComposerDock.js-DTvu7Y-J.js +58 -0
  340. package/packages/web/build/server/chunks/chunks/CopyButton.js-3lPgmWGZ.js +81 -0
  341. package/packages/web/build/server/chunks/chunks/DotGrid.js-DhkaOwvR.js +108 -0
  342. package/packages/web/build/server/chunks/chunks/MemoryChangeItem.js-CszZww43.js +15975 -0
  343. package/packages/web/build/server/chunks/chunks/ModelMenu.js--hauzhKu.js +684 -0
  344. package/packages/web/build/server/chunks/chunks/MoveToFolderMenu.js-C3-ONxWK.js +289 -0
  345. package/packages/web/build/server/chunks/chunks/NewChatForm.js-41aer8-y.js +306 -0
  346. package/packages/web/build/server/chunks/chunks/NewFolderDialog.js-BLDWgamm.js +193 -0
  347. package/packages/web/build/server/chunks/chunks/Notifications.js-D2m19ylY.js +763 -0
  348. package/packages/web/build/server/chunks/chunks/PageHeader.js-BTQt3nN6.js +70 -0
  349. package/packages/web/build/server/chunks/chunks/PlanUsageBars.js-Bjg4JeO1.js +111 -0
  350. package/packages/web/build/server/chunks/chunks/RenameFolderDialog.js-C4A6RwYh.js +259 -0
  351. package/packages/web/build/server/chunks/chunks/StepIcon.js-B1rGP1yW.js +38 -0
  352. package/packages/web/build/server/chunks/chunks/TopBar.js-iFEw-ZP1.js +37 -0
  353. package/packages/web/build/server/chunks/chunks/TypedText.js-CBDH4RYQ.js +62 -0
  354. package/packages/web/build/server/chunks/chunks/UserAvatar.js-DY0XLih9.js +23 -0
  355. package/packages/web/build/server/chunks/chunks/UserMenu.js-D2M71Qwt.js +1539 -0
  356. package/packages/web/build/server/chunks/chunks/access.js-BLcZsmEF.js +40 -0
  357. package/packages/web/build/server/chunks/chunks/accounts.js-7I_MmVRG.js +26 -0
  358. package/packages/web/build/server/chunks/chunks/alert-dialog.js-dXbEUmyf.js +504 -0
  359. package/packages/web/build/server/chunks/chunks/api.js-b7cn5PbW.js +40 -0
  360. package/packages/web/build/server/chunks/chunks/auth.js-D3TBJ-bo.js +20064 -0
  361. package/packages/web/build/server/chunks/chunks/automations.js-PTpqQWo0.js +198 -0
  362. package/packages/web/build/server/chunks/chunks/avatars.js-C3tB5SlK.js +506 -0
  363. package/packages/web/build/server/chunks/chunks/badge.js-CV8ujLk7.js +37 -0
  364. package/packages/web/build/server/chunks/chunks/button.js-DgaDzlsw.js +4025 -0
  365. package/packages/web/build/server/chunks/chunks/camera.js-D9wejCUZ.js +19 -0
  366. package/packages/web/build/server/chunks/chunks/chats.js-C_ParQQi.js +62 -0
  367. package/packages/web/build/server/chunks/chunks/check.js-CWziLHT9.js +15 -0
  368. package/packages/web/build/server/chunks/chunks/chevron-left.js-C0GGjrDT.js +15 -0
  369. package/packages/web/build/server/chunks/chunks/chevron-right.js-DAWR16mM.js +15 -0
  370. package/packages/web/build/server/chunks/chunks/chevrons-up-down.js-DEP-qqg4.js +15 -0
  371. package/packages/web/build/server/chunks/chunks/client.js-UAJMOZ3E.js +120 -0
  372. package/packages/web/build/server/chunks/chunks/clock.js-DoLCyX6L.js +19 -0
  373. package/packages/web/build/server/chunks/chunks/coerce.js-DyM7nUNl.js +8477 -0
  374. package/packages/web/build/server/chunks/chunks/collapsible.js-CWSyjrbz.js +410 -0
  375. package/packages/web/build/server/chunks/chunks/command.js-CIlfdltM.js +2231 -0
  376. package/packages/web/build/server/chunks/chunks/dialog.js-CuTPiEih.js +543 -0
  377. package/packages/web/build/server/chunks/chunks/dist.js-BmWeTHnS.js +600 -0
  378. package/packages/web/build/server/chunks/chunks/dist2.js-BbxQLlSx.js +347 -0
  379. package/packages/web/build/server/chunks/chunks/dist3.js-GCNglsxk.js +19547 -0
  380. package/packages/web/build/server/chunks/chunks/download.js-Dw_s_V8T.js +19 -0
  381. package/packages/web/build/server/chunks/chunks/dropdown-menu.js-klnL3AVI.js +2395 -0
  382. package/packages/web/build/server/chunks/chunks/eraser.js-B8-m3VQ3.js +15 -0
  383. package/packages/web/build/server/chunks/chunks/factory.js-DwhAilJf.js +2344 -0
  384. package/packages/web/build/server/chunks/chunks/folder-input.js-xU4i7Wj1.js +19 -0
  385. package/packages/web/build/server/chunks/chunks/forms.js-0RsYOm25.js +32 -0
  386. package/packages/web/build/server/chunks/chunks/hidden-input.js-DQrYkjSR.js +47 -0
  387. package/packages/web/build/server/chunks/chunks/i18n.js-DOMtD7OV.js +7498 -0
  388. package/packages/web/build/server/chunks/chunks/images.js-Cw521alT.js +124 -0
  389. package/packages/web/build/server/chunks/chunks/internal2.js-BmQF3qCw.js +1135 -0
  390. package/packages/web/build/server/chunks/chunks/ios.js-Dc1DLp61.js +12 -0
  391. package/packages/web/build/server/chunks/chunks/list-collapse.js-BHdkhU7D.js +21 -0
  392. package/packages/web/build/server/chunks/chunks/memory.js-cU4wowLn.js +42 -0
  393. package/packages/web/build/server/chunks/chunks/memory2.js-B4MEEi_Z.js +26 -0
  394. package/packages/web/build/server/chunks/chunks/message-circle.js-BZjpL54j.js +15 -0
  395. package/packages/web/build/server/chunks/chunks/moon-star.js-DATlVG-W.js +34 -0
  396. package/packages/web/build/server/chunks/chunks/motion.js-CtOKcu-x.js +224 -0
  397. package/packages/web/build/server/chunks/chunks/navigation.js-BgKL4O5J.js +2 -0
  398. package/packages/web/build/server/chunks/chunks/paths.js-CSblJkdx.js +19 -0
  399. package/packages/web/build/server/chunks/chunks/pencil.js-BBP970JE.js +15 -0
  400. package/packages/web/build/server/chunks/chunks/plan-usage.svelte.js-CuVZYFIH.js +27 -0
  401. package/packages/web/build/server/chunks/chunks/plus.js-AAFvEbhZ.js +15 -0
  402. package/packages/web/build/server/chunks/chunks/sdk.js-Jx-nl9-6.js +42918 -0
  403. package/packages/web/build/server/chunks/chunks/select.js-Cy8QwqOr.js +1964 -0
  404. package/packages/web/build/server/chunks/chunks/sidebar.js-f3cS5ugL.js +1498 -0
  405. package/packages/web/build/server/chunks/chunks/square-pen.js-BiHIfF48.js +20 -0
  406. package/packages/web/build/server/chunks/chunks/src.js-OCqmpAMD.js +43095 -0
  407. package/packages/web/build/server/chunks/chunks/state.js-DWKXB_zq.js +67 -0
  408. package/packages/web/build/server/chunks/chunks/switch.js-BO_aEltM.js +282 -0
  409. package/packages/web/build/server/chunks/chunks/terminal.js-W_lgKCde.js +15 -0
  410. package/packages/web/build/server/chunks/chunks/textarea.js-G8C1SPzx.js +24 -0
  411. package/packages/web/build/server/chunks/chunks/tint.js-CQnYLySf.js +146 -0
  412. package/packages/web/build/server/chunks/chunks/tooltip.js-CNshopM4.js +5862 -0
  413. package/packages/web/build/server/chunks/chunks/transcript.js-BZDJbNRI.js +267 -0
  414. package/packages/web/build/server/chunks/chunks/utils2.js-7mvaj0Jt.js +1165 -0
  415. package/packages/web/build/server/chunks/chunks/zod.js-CKsfx39Z.js +10352 -0
  416. package/packages/web/build/server/chunks/chunks/zod2.js-Ccq3O23H.js +5 -0
  417. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/_server.ts.js-BDDKHG1l.js +60 -0
  418. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/activity/_server.ts.js-GDXhPCE8.js +62 -0
  419. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/commands/_server.ts.js-Dw4dM1cn.js +56 -0
  420. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/compact/_server.ts.js-DIlzvAaT.js +54 -0
  421. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/continue/_server.ts.js-ClVUaSCp.js +47 -0
  422. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/effort/_server.ts.js-vchFw6_5.js +48 -0
  423. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/events/_server.ts.js-BD_hfnT_.js +75 -0
  424. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/folder/_server.ts.js-Hg5sAdUd.js +56 -0
  425. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/media/_mediaId_/_server.ts.js-BltgwP2L.js +53 -0
  426. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/messages/_server.ts.js-CcH8Kxjp.js +59 -0
  427. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/preset/_server.ts.js-DUVNriIz.js +52 -0
  428. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/stop/_server.ts.js--3yx-DoO.js +45 -0
  429. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/tools/_server.ts.js-6-x8ZmEo.js +53 -0
  430. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/transcript/_server.ts.js-DAu9zOJy.js +74 -0
  431. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/typing/_server.ts.js-BRyNNa9m.js +51 -0
  432. package/packages/web/build/server/chunks/entries/endpoints/api/card/changes/_id_/keep/_server.ts.js-CB_T-S_a.js +60 -0
  433. package/packages/web/build/server/chunks/entries/endpoints/api/chatgpt/sign-in/_server.ts.js-BxvRvNbI.js +75 -0
  434. package/packages/web/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DUNvDYk9.js +89 -0
  435. package/packages/web/build/server/chunks/entries/endpoints/api/hooks/_token_/_server.ts.js-hZxLZWb8.js +51 -0
  436. package/packages/web/build/server/chunks/entries/endpoints/api/me/_server.ts.js-Dqb5Fu2v.js +66 -0
  437. package/packages/web/build/server/chunks/entries/endpoints/api/me/picture/_server.ts.js--PNClZau.js +62 -0
  438. package/packages/web/build/server/chunks/entries/endpoints/api/models/_server.ts.js-DOZpKrMU.js +58 -0
  439. package/packages/web/build/server/chunks/entries/endpoints/api/nolune-plan/sign-in/_server.ts.js-BmoDszdu.js +78 -0
  440. package/packages/web/build/server/chunks/entries/endpoints/api/nolune-plan/usage/_server.ts.js-BA1Jw8lm.js +49 -0
  441. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/_id_/continue/_server.ts.js-DEIKGp_x.js +52 -0
  442. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/_id_/dismiss/_server.ts.js-rdqvWXF-.js +44 -0
  443. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/_server.ts.js-ElmEZbXP.js +42 -0
  444. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/clear/_server.ts.js-B2WJwUC1.js +45 -0
  445. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/seen/_server.ts.js-eo_dP1CX.js +45 -0
  446. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/_server.ts.js-Ddx3D0-M.js +46 -0
  447. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/automations/_id_/_server.ts.js-DO-1Nz4W.js +85 -0
  448. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/automations/_id_/run/_server.ts.js-C9HdWdoG.js +60 -0
  449. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/automations/_server.ts.js-CXt08BQW.js +49 -0
  450. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/chats/_server.ts.js-Cg31SY8j.js +91 -0
  451. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_folder_/_server.ts.js-Apm3R_Oc.js +96 -0
  452. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_folder_/files/_file_/_server.ts.js-DFvf5pAy.js +64 -0
  453. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_folder_/files/_server.ts.js-CvJ1he2a.js +69 -0
  454. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_server.ts.js-epz6RwOJ.js +67 -0
  455. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/images/_server.ts.js-6IqNsR8x.js +74 -0
  456. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/members/_server.ts.js-BD5lTTiu.js +62 -0
  457. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/members/_user_/_server.ts.js-BixJY3H5.js +67 -0
  458. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/memory/_id_/undo/_server.ts.js-c82dPky5.js +60 -0
  459. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/memory/_server.ts.js-y_nNK3OY.js +49 -0
  460. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/memory/learning/_server.ts.js-B1tP4nh8.js +48 -0
  461. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/memory/moves/_server.ts.js-CeRKDlWx.js +62 -0
  462. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/memory/notes/_server.ts.js-CJ1evniS.js +72 -0
  463. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/new-chat/_server.ts.js-CWoRuJ_a.js +67 -0
  464. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/running/_server.ts.js-Bh_cQWoi.js +81 -0
  465. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/settings/_server.ts.js-BqbDWift.js +79 -0
  466. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/skills/_server.ts.js-Bzr7Ln8I.js +66 -0
  467. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/suggestions/_server.ts.js-CebVSt0Y.js +55 -0
  468. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/templates/_id_/cover/_server.ts.js-OzVH7VFf.js +61 -0
  469. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/_id_/_server.ts.js-CMxAdbsX.js +46 -0
  470. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/_server.ts.js-CXouE2I7.js +73 -0
  471. package/packages/web/build/server/chunks/entries/endpoints/api/pictures/_sha256_/_server.ts.js-B2XdyrbF.js +56 -0
  472. package/packages/web/build/server/chunks/entries/endpoints/api/profiles/_server.ts.js-Dt2xMSgK.js +55 -0
  473. package/packages/web/build/server/chunks/entries/endpoints/api/push/_server.ts.js-c2JeodvM.js +63 -0
  474. package/packages/web/build/server/chunks/entries/endpoints/api/version/_server.ts.js-Begjkqmv.js +47 -0
  475. package/packages/web/build/server/chunks/entries/endpoints/logout/_server.ts.js-idjrT7dp.js +47 -0
  476. package/packages/web/build/server/chunks/entries/fallbacks/error.svelte.js-DlgTQda6.js +22 -0
  477. package/packages/web/build/server/chunks/entries/hooks.server.js-DGIhty0N.js +3463 -0
  478. package/packages/web/build/server/chunks/entries/pages/_layout.server.ts.js-CaMWskO2.js +45 -0
  479. package/packages/web/build/server/chunks/entries/pages/_layout.svelte.js-CInBfTlO.js +92 -0
  480. package/packages/web/build/server/chunks/entries/pages/_page.server.ts.js-hcuICfdX.js +27 -0
  481. package/packages/web/build/server/chunks/entries/pages/admin/_page.server.ts.js-BdH0Fb0C.js +414 -0
  482. package/packages/web/build/server/chunks/entries/pages/admin/_page.svelte.js-C-LvOC0D.js +2723 -0
  483. package/packages/web/build/server/chunks/entries/pages/admin/people/_page.server.ts.js-D3x7CWA2.js +130 -0
  484. package/packages/web/build/server/chunks/entries/pages/admin/people/_page.svelte.js-C-JgZqfh.js +575 -0
  485. package/packages/web/build/server/chunks/entries/pages/admin/services/_page.server.ts.js-DByyMwVK.js +223 -0
  486. package/packages/web/build/server/chunks/entries/pages/admin/services/_page.svelte.js-CkWT7WWB.js +745 -0
  487. package/packages/web/build/server/chunks/entries/pages/card/_page.server.ts.js-CSM5MY1g.js +75 -0
  488. package/packages/web/build/server/chunks/entries/pages/card/_page.svelte.js-DEUN4aif.js +373 -0
  489. package/packages/web/build/server/chunks/entries/pages/invite/_token_/_page.server.ts.js-Hg8pdoM0.js +63 -0
  490. package/packages/web/build/server/chunks/entries/pages/invite/_token_/_page.svelte.js-CdBKzpks.js +126 -0
  491. package/packages/web/build/server/chunks/entries/pages/login/_page.server.ts.js-BBCDF3vx.js +42 -0
  492. package/packages/web/build/server/chunks/entries/pages/login/_page.svelte.js-Rz05sb7N.js +77 -0
  493. package/packages/web/build/server/chunks/entries/pages/mcp/oauth/callback/_page.server.ts.js-DH5rfB74.js +59 -0
  494. package/packages/web/build/server/chunks/entries/pages/mcp/oauth/callback/_page.svelte.js-DIU0dKwJ.js +41 -0
  495. package/packages/web/build/server/chunks/entries/pages/p/_slug_/_layout.server.ts.js-D4_Irj4x.js +53 -0
  496. package/packages/web/build/server/chunks/entries/pages/p/_slug_/_layout.svelte.js-Bt_yKsQy.js +1901 -0
  497. package/packages/web/build/server/chunks/entries/pages/p/_slug_/_page.server.ts.js-WsLnbCGo.js +58 -0
  498. package/packages/web/build/server/chunks/entries/pages/p/_slug_/_page.svelte.js-BPNqXA7_.js +154 -0
  499. package/packages/web/build/server/chunks/entries/pages/p/_slug_/automations/_page.server.ts.js-BBByFA1j.js +85 -0
  500. package/packages/web/build/server/chunks/entries/pages/p/_slug_/automations/_page.svelte.js-V4mkZPcq.js +414 -0
  501. package/packages/web/build/server/chunks/entries/pages/p/_slug_/c/_id_/_page.server.ts.js-DU5DMrJo.js +73 -0
  502. package/packages/web/build/server/chunks/entries/pages/p/_slug_/c/_id_/_page.svelte.js-Dy4VZ3vg.js +2545 -0
  503. package/packages/web/build/server/chunks/entries/pages/p/_slug_/f/_folder_/_page.server.ts.js-Cxg3_T_H.js +103 -0
  504. package/packages/web/build/server/chunks/entries/pages/p/_slug_/f/_folder_/_page.svelte.js-7cnMQFtg.js +325 -0
  505. package/packages/web/build/server/chunks/entries/pages/p/_slug_/images/_page.server.ts.js-6r7H1qwP.js +45 -0
  506. package/packages/web/build/server/chunks/entries/pages/p/_slug_/images/_page.svelte.js-9Y_iZaMK.js +513 -0
  507. package/packages/web/build/server/chunks/entries/pages/p/_slug_/memory/_page.server.ts.js-DlMyiCYF.js +85 -0
  508. package/packages/web/build/server/chunks/entries/pages/p/_slug_/memory/_page.svelte.js-DawB9d5u.js +969 -0
  509. package/packages/web/build/server/chunks/entries/pages/p/_slug_/settings/_page.server.ts.js-CGL1lDNf.js +106 -0
  510. package/packages/web/build/server/chunks/entries/pages/p/_slug_/settings/_page.svelte.js-BXmRl2tD.js +585 -0
  511. package/packages/web/build/server/chunks/entries/pages/p/_slug_/skills/_page.server.ts.js-BOvkYTur.js +45 -0
  512. package/packages/web/build/server/chunks/entries/pages/p/_slug_/skills/_page.svelte.js-D1DRakEJ.js +132 -0
  513. package/packages/web/build/server/chunks/entries/pages/p/_slug_/welcome/_page.server.ts.js-C6gnoXOT.js +142 -0
  514. package/packages/web/build/server/chunks/entries/pages/p/_slug_/welcome/_page@.svelte.js-BG65rcFm.js +223 -0
  515. package/packages/web/build/server/chunks/entries/pages/profiles/_page.server.ts.js-DmWovIst.js +47 -0
  516. package/packages/web/build/server/chunks/entries/pages/profiles/_page.svelte.js-DVKymUZe.js +241 -0
  517. package/packages/web/build/server/chunks/handler-DYe7c_gy.js +1735 -0
  518. package/packages/web/build/server/chunks/index.js-jS0dbO4t.js +3700 -0
  519. package/packages/web/build/server/chunks/manifest.js-BgqcFT5h.js +599 -0
  520. package/packages/web/build/server/chunks/nodes/0.js-CX9FLBmF.js +46 -0
  521. package/packages/web/build/server/chunks/nodes/1.js-DRqBnMU0.js +9 -0
  522. package/packages/web/build/server/chunks/nodes/10.js-BVWgcD9i.js +44 -0
  523. package/packages/web/build/server/chunks/nodes/11.js-DwelFuZ4.js +50 -0
  524. package/packages/web/build/server/chunks/nodes/12.js-BJfkvADe.js +48 -0
  525. package/packages/web/build/server/chunks/nodes/13.js-CoDVyc7U.js +48 -0
  526. package/packages/web/build/server/chunks/nodes/14.js-D1QRfYIT.js +47 -0
  527. package/packages/web/build/server/chunks/nodes/15.js-CCAQV2IA.js +48 -0
  528. package/packages/web/build/server/chunks/nodes/16.js-CV5zTaaO.js +48 -0
  529. package/packages/web/build/server/chunks/nodes/17.js-9iB6Scpy.js +47 -0
  530. package/packages/web/build/server/chunks/nodes/18.js-CwnmxqR9.js +47 -0
  531. package/packages/web/build/server/chunks/nodes/19.js-ROtMXSrs.js +47 -0
  532. package/packages/web/build/server/chunks/nodes/2.js-Crv2kihA.js +49 -0
  533. package/packages/web/build/server/chunks/nodes/20.js-C25dCNsU.js +47 -0
  534. package/packages/web/build/server/chunks/nodes/3.js-BMHnrrJk.js +48 -0
  535. package/packages/web/build/server/chunks/nodes/4.js-CL0tEcdg.js +48 -0
  536. package/packages/web/build/server/chunks/nodes/5.js-CbwL2pfa.js +49 -0
  537. package/packages/web/build/server/chunks/nodes/6.js-DY4caScP.js +47 -0
  538. package/packages/web/build/server/chunks/nodes/7.js-BQpO5-aZ.js +47 -0
  539. package/packages/web/build/server/chunks/nodes/8.js-DNN_HejS.js +52 -0
  540. package/packages/web/build/server/chunks/nodes/9.js-DiPBM89-.js +51 -0
  541. package/dist/chunks/chunk-SAHRBQRY.js +0 -110
  542. package/dist/chunks/run-XM7YIEAW.js +0 -24454
  543. package/dist/chunks/zod-H7KMPIPH.js +0 -19934
  544. package/packages/web/build/client/_app/immutable/assets/0.DTnuPoms.css +0 -2
  545. package/packages/web/build/client/_app/immutable/assets/0.DTnuPoms.css.br +0 -0
  546. package/packages/web/build/client/_app/immutable/assets/0.DTnuPoms.css.gz +0 -0
  547. package/packages/web/build/client/_app/immutable/assets/11.DZmZHLub.css +0 -1
  548. package/packages/web/build/client/_app/immutable/assets/11.DZmZHLub.css.br +0 -6
  549. package/packages/web/build/client/_app/immutable/assets/11.DZmZHLub.css.gz +0 -0
  550. package/packages/web/build/client/_app/immutable/chunks/AwlnAPt_.js +0 -31
  551. package/packages/web/build/client/_app/immutable/chunks/AwlnAPt_.js.br +0 -0
  552. package/packages/web/build/client/_app/immutable/chunks/AwlnAPt_.js.gz +0 -0
  553. package/packages/web/build/client/_app/immutable/chunks/B0psERp-.js +0 -1
  554. package/packages/web/build/client/_app/immutable/chunks/B0psERp-.js.br +0 -0
  555. package/packages/web/build/client/_app/immutable/chunks/B0psERp-.js.gz +0 -0
  556. package/packages/web/build/client/_app/immutable/chunks/B4dOTQGI.js +0 -1
  557. package/packages/web/build/client/_app/immutable/chunks/B4dOTQGI.js.br +0 -3
  558. package/packages/web/build/client/_app/immutable/chunks/B4dOTQGI.js.gz +0 -0
  559. package/packages/web/build/client/_app/immutable/chunks/B6dKebLF.js +0 -1
  560. package/packages/web/build/client/_app/immutable/chunks/B6dKebLF.js.br +0 -0
  561. package/packages/web/build/client/_app/immutable/chunks/B6dKebLF.js.gz +0 -0
  562. package/packages/web/build/client/_app/immutable/chunks/B7tXsaud.js +0 -1
  563. package/packages/web/build/client/_app/immutable/chunks/B7tXsaud.js.br +0 -0
  564. package/packages/web/build/client/_app/immutable/chunks/B7tXsaud.js.gz +0 -0
  565. package/packages/web/build/client/_app/immutable/chunks/BCb2FcX-.js +0 -1
  566. package/packages/web/build/client/_app/immutable/chunks/BCb2FcX-.js.br +0 -0
  567. package/packages/web/build/client/_app/immutable/chunks/BCb2FcX-.js.gz +0 -0
  568. package/packages/web/build/client/_app/immutable/chunks/BEHPE67f.js +0 -1
  569. package/packages/web/build/client/_app/immutable/chunks/BEHPE67f.js.br +0 -4
  570. package/packages/web/build/client/_app/immutable/chunks/BEHPE67f.js.gz +0 -0
  571. package/packages/web/build/client/_app/immutable/chunks/BGRx4LH4.js +0 -1
  572. package/packages/web/build/client/_app/immutable/chunks/BGRx4LH4.js.br +0 -2
  573. package/packages/web/build/client/_app/immutable/chunks/BGRx4LH4.js.gz +0 -0
  574. package/packages/web/build/client/_app/immutable/chunks/BQcXnbnC.js +0 -1
  575. package/packages/web/build/client/_app/immutable/chunks/BQcXnbnC.js.br +0 -0
  576. package/packages/web/build/client/_app/immutable/chunks/BQcXnbnC.js.gz +0 -0
  577. package/packages/web/build/client/_app/immutable/chunks/BU1lfrAt.js +0 -1
  578. package/packages/web/build/client/_app/immutable/chunks/BU1lfrAt.js.br +0 -0
  579. package/packages/web/build/client/_app/immutable/chunks/BU1lfrAt.js.gz +0 -0
  580. package/packages/web/build/client/_app/immutable/chunks/BUCG0TDu.js +0 -1
  581. package/packages/web/build/client/_app/immutable/chunks/BUCG0TDu.js.br +0 -0
  582. package/packages/web/build/client/_app/immutable/chunks/BUCG0TDu.js.gz +0 -0
  583. package/packages/web/build/client/_app/immutable/chunks/BVy43h-D.js +0 -1
  584. package/packages/web/build/client/_app/immutable/chunks/BVy43h-D.js.br +0 -0
  585. package/packages/web/build/client/_app/immutable/chunks/BVy43h-D.js.gz +0 -0
  586. package/packages/web/build/client/_app/immutable/chunks/BhOcmMP6.js +0 -67
  587. package/packages/web/build/client/_app/immutable/chunks/BhOcmMP6.js.br +0 -0
  588. package/packages/web/build/client/_app/immutable/chunks/BhOcmMP6.js.gz +0 -0
  589. package/packages/web/build/client/_app/immutable/chunks/BnPnx1BS.js +0 -1
  590. package/packages/web/build/client/_app/immutable/chunks/BnPnx1BS.js.br +0 -0
  591. package/packages/web/build/client/_app/immutable/chunks/BnPnx1BS.js.gz +0 -0
  592. package/packages/web/build/client/_app/immutable/chunks/BtJh6BW0.js +0 -1
  593. package/packages/web/build/client/_app/immutable/chunks/BtJh6BW0.js.br +0 -0
  594. package/packages/web/build/client/_app/immutable/chunks/BtJh6BW0.js.gz +0 -0
  595. package/packages/web/build/client/_app/immutable/chunks/C238of6k.js +0 -1
  596. package/packages/web/build/client/_app/immutable/chunks/C238of6k.js.br +0 -0
  597. package/packages/web/build/client/_app/immutable/chunks/C238of6k.js.gz +0 -0
  598. package/packages/web/build/client/_app/immutable/chunks/C3AiOJdj.js +0 -5
  599. package/packages/web/build/client/_app/immutable/chunks/C3AiOJdj.js.br +0 -0
  600. package/packages/web/build/client/_app/immutable/chunks/C3AiOJdj.js.gz +0 -0
  601. package/packages/web/build/client/_app/immutable/chunks/C4Xqr7Fj.js +0 -1
  602. package/packages/web/build/client/_app/immutable/chunks/C4Xqr7Fj.js.br +0 -0
  603. package/packages/web/build/client/_app/immutable/chunks/C4Xqr7Fj.js.gz +0 -0
  604. package/packages/web/build/client/_app/immutable/chunks/C5iI_OsH.js +0 -1
  605. package/packages/web/build/client/_app/immutable/chunks/C5iI_OsH.js.br +0 -0
  606. package/packages/web/build/client/_app/immutable/chunks/C5iI_OsH.js.gz +0 -0
  607. package/packages/web/build/client/_app/immutable/chunks/CA_XVn89.js +0 -1
  608. package/packages/web/build/client/_app/immutable/chunks/CA_XVn89.js.br +0 -2
  609. package/packages/web/build/client/_app/immutable/chunks/CA_XVn89.js.gz +0 -0
  610. package/packages/web/build/client/_app/immutable/chunks/CAz7hU5S.js +0 -1
  611. package/packages/web/build/client/_app/immutable/chunks/CAz7hU5S.js.br +0 -0
  612. package/packages/web/build/client/_app/immutable/chunks/CAz7hU5S.js.gz +0 -0
  613. package/packages/web/build/client/_app/immutable/chunks/CCibcuvE.js +0 -1
  614. package/packages/web/build/client/_app/immutable/chunks/CCibcuvE.js.br +0 -0
  615. package/packages/web/build/client/_app/immutable/chunks/CCibcuvE.js.gz +0 -0
  616. package/packages/web/build/client/_app/immutable/chunks/CE2DpKar.js +0 -2
  617. package/packages/web/build/client/_app/immutable/chunks/CE2DpKar.js.br +0 -0
  618. package/packages/web/build/client/_app/immutable/chunks/CE2DpKar.js.gz +0 -0
  619. package/packages/web/build/client/_app/immutable/chunks/CGiFplSA.js +0 -1
  620. package/packages/web/build/client/_app/immutable/chunks/CGiFplSA.js.br +0 -0
  621. package/packages/web/build/client/_app/immutable/chunks/CGiFplSA.js.gz +0 -0
  622. package/packages/web/build/client/_app/immutable/chunks/CQSR9BkJ.js +0 -1
  623. package/packages/web/build/client/_app/immutable/chunks/CQSR9BkJ.js.br +0 -0
  624. package/packages/web/build/client/_app/immutable/chunks/CQSR9BkJ.js.gz +0 -0
  625. package/packages/web/build/client/_app/immutable/chunks/CXS58JOV.js +0 -1
  626. package/packages/web/build/client/_app/immutable/chunks/CXS58JOV.js.br +0 -0
  627. package/packages/web/build/client/_app/immutable/chunks/CXS58JOV.js.gz +0 -0
  628. package/packages/web/build/client/_app/immutable/chunks/C_rGKciz.js +0 -9
  629. package/packages/web/build/client/_app/immutable/chunks/C_rGKciz.js.br +0 -0
  630. package/packages/web/build/client/_app/immutable/chunks/C_rGKciz.js.gz +0 -0
  631. package/packages/web/build/client/_app/immutable/chunks/CaahyXtC.js +0 -1
  632. package/packages/web/build/client/_app/immutable/chunks/CaahyXtC.js.br +0 -0
  633. package/packages/web/build/client/_app/immutable/chunks/CaahyXtC.js.gz +0 -0
  634. package/packages/web/build/client/_app/immutable/chunks/CfHYzoiD.js +0 -1
  635. package/packages/web/build/client/_app/immutable/chunks/CfHYzoiD.js.br +0 -0
  636. package/packages/web/build/client/_app/immutable/chunks/CfHYzoiD.js.gz +0 -0
  637. package/packages/web/build/client/_app/immutable/chunks/ClEpdm9X.js +0 -1
  638. package/packages/web/build/client/_app/immutable/chunks/ClEpdm9X.js.br +0 -3
  639. package/packages/web/build/client/_app/immutable/chunks/ClEpdm9X.js.gz +0 -0
  640. package/packages/web/build/client/_app/immutable/chunks/ClSwhmjL.js +0 -1
  641. package/packages/web/build/client/_app/immutable/chunks/ClSwhmjL.js.br +0 -0
  642. package/packages/web/build/client/_app/immutable/chunks/ClSwhmjL.js.gz +0 -0
  643. package/packages/web/build/client/_app/immutable/chunks/ClppYdjP.js +0 -1
  644. package/packages/web/build/client/_app/immutable/chunks/ClppYdjP.js.br +0 -0
  645. package/packages/web/build/client/_app/immutable/chunks/ClppYdjP.js.gz +0 -0
  646. package/packages/web/build/client/_app/immutable/chunks/CmM-4RFG.js +0 -1
  647. package/packages/web/build/client/_app/immutable/chunks/CmM-4RFG.js.br +0 -0
  648. package/packages/web/build/client/_app/immutable/chunks/CmM-4RFG.js.gz +0 -0
  649. package/packages/web/build/client/_app/immutable/chunks/CpXfakoi.js +0 -1
  650. package/packages/web/build/client/_app/immutable/chunks/CpXfakoi.js.br +0 -0
  651. package/packages/web/build/client/_app/immutable/chunks/CpXfakoi.js.gz +0 -0
  652. package/packages/web/build/client/_app/immutable/chunks/CrCk-NyX.js +0 -1
  653. package/packages/web/build/client/_app/immutable/chunks/CrCk-NyX.js.br +0 -0
  654. package/packages/web/build/client/_app/immutable/chunks/CrCk-NyX.js.gz +0 -0
  655. package/packages/web/build/client/_app/immutable/chunks/CywApwhc.js +0 -1
  656. package/packages/web/build/client/_app/immutable/chunks/CywApwhc.js.br +0 -0
  657. package/packages/web/build/client/_app/immutable/chunks/CywApwhc.js.gz +0 -0
  658. package/packages/web/build/client/_app/immutable/chunks/D31s_g8n.js +0 -5
  659. package/packages/web/build/client/_app/immutable/chunks/D31s_g8n.js.br +0 -0
  660. package/packages/web/build/client/_app/immutable/chunks/D31s_g8n.js.gz +0 -0
  661. package/packages/web/build/client/_app/immutable/chunks/DDRoGIP9.js +0 -1
  662. package/packages/web/build/client/_app/immutable/chunks/DDRoGIP9.js.br +0 -0
  663. package/packages/web/build/client/_app/immutable/chunks/DDRoGIP9.js.gz +0 -0
  664. package/packages/web/build/client/_app/immutable/chunks/DGcS8KSS.js +0 -1
  665. package/packages/web/build/client/_app/immutable/chunks/DGcS8KSS.js.br +0 -0
  666. package/packages/web/build/client/_app/immutable/chunks/DGcS8KSS.js.gz +0 -0
  667. package/packages/web/build/client/_app/immutable/chunks/DK1UHLR-.js +0 -1
  668. package/packages/web/build/client/_app/immutable/chunks/DK1UHLR-.js.br +0 -0
  669. package/packages/web/build/client/_app/immutable/chunks/DK1UHLR-.js.gz +0 -0
  670. package/packages/web/build/client/_app/immutable/chunks/DZk-gkAU.js +0 -1
  671. package/packages/web/build/client/_app/immutable/chunks/DZk-gkAU.js.br +0 -0
  672. package/packages/web/build/client/_app/immutable/chunks/DZk-gkAU.js.gz +0 -0
  673. package/packages/web/build/client/_app/immutable/chunks/DeP17kbD.js +0 -318
  674. package/packages/web/build/client/_app/immutable/chunks/DeP17kbD.js.br +0 -0
  675. package/packages/web/build/client/_app/immutable/chunks/DeP17kbD.js.gz +0 -0
  676. package/packages/web/build/client/_app/immutable/chunks/DelhG4NG.js +0 -1
  677. package/packages/web/build/client/_app/immutable/chunks/DelhG4NG.js.br +0 -0
  678. package/packages/web/build/client/_app/immutable/chunks/DelhG4NG.js.gz +0 -0
  679. package/packages/web/build/client/_app/immutable/chunks/DmAdEzQs.js +0 -1
  680. package/packages/web/build/client/_app/immutable/chunks/DmAdEzQs.js.br +0 -0
  681. package/packages/web/build/client/_app/immutable/chunks/DmAdEzQs.js.gz +0 -0
  682. package/packages/web/build/client/_app/immutable/chunks/DuG8sfLq.js +0 -1
  683. package/packages/web/build/client/_app/immutable/chunks/DuG8sfLq.js.br +0 -0
  684. package/packages/web/build/client/_app/immutable/chunks/DuG8sfLq.js.gz +0 -0
  685. package/packages/web/build/client/_app/immutable/chunks/GTRzOEzD.js +0 -1
  686. package/packages/web/build/client/_app/immutable/chunks/GTRzOEzD.js.br +0 -0
  687. package/packages/web/build/client/_app/immutable/chunks/GTRzOEzD.js.gz +0 -0
  688. package/packages/web/build/client/_app/immutable/chunks/IjF4KE1B.js +0 -1
  689. package/packages/web/build/client/_app/immutable/chunks/IjF4KE1B.js.br +0 -0
  690. package/packages/web/build/client/_app/immutable/chunks/IjF4KE1B.js.gz +0 -0
  691. package/packages/web/build/client/_app/immutable/chunks/MApZQR0b.js +0 -1
  692. package/packages/web/build/client/_app/immutable/chunks/MApZQR0b.js.br +0 -0
  693. package/packages/web/build/client/_app/immutable/chunks/MApZQR0b.js.gz +0 -0
  694. package/packages/web/build/client/_app/immutable/chunks/N3oV-8Ie.js +0 -1
  695. package/packages/web/build/client/_app/immutable/chunks/N3oV-8Ie.js.br +0 -0
  696. package/packages/web/build/client/_app/immutable/chunks/N3oV-8Ie.js.gz +0 -0
  697. package/packages/web/build/client/_app/immutable/chunks/iiqQqDMt.js +0 -1
  698. package/packages/web/build/client/_app/immutable/chunks/iiqQqDMt.js.br +0 -0
  699. package/packages/web/build/client/_app/immutable/chunks/iiqQqDMt.js.gz +0 -0
  700. package/packages/web/build/client/_app/immutable/chunks/k3ZB4WVm.js +0 -1
  701. package/packages/web/build/client/_app/immutable/chunks/k3ZB4WVm.js.br +0 -0
  702. package/packages/web/build/client/_app/immutable/chunks/k3ZB4WVm.js.gz +0 -0
  703. package/packages/web/build/client/_app/immutable/chunks/pAzEohwE.js +0 -1
  704. package/packages/web/build/client/_app/immutable/chunks/pAzEohwE.js.br +0 -3
  705. package/packages/web/build/client/_app/immutable/chunks/pAzEohwE.js.gz +0 -0
  706. package/packages/web/build/client/_app/immutable/chunks/vmc6srO5.js +0 -1
  707. package/packages/web/build/client/_app/immutable/chunks/vmc6srO5.js.br +0 -4
  708. package/packages/web/build/client/_app/immutable/chunks/vmc6srO5.js.gz +0 -0
  709. package/packages/web/build/client/_app/immutable/chunks/ypBpP4nr.js +0 -1
  710. package/packages/web/build/client/_app/immutable/chunks/ypBpP4nr.js.br +0 -0
  711. package/packages/web/build/client/_app/immutable/chunks/ypBpP4nr.js.gz +0 -0
  712. package/packages/web/build/client/_app/immutable/entry/app.D9io9O7v.js +0 -2
  713. package/packages/web/build/client/_app/immutable/entry/app.D9io9O7v.js.br +0 -0
  714. package/packages/web/build/client/_app/immutable/entry/app.D9io9O7v.js.gz +0 -0
  715. package/packages/web/build/client/_app/immutable/entry/start.BgaOwPMP.js +0 -1
  716. package/packages/web/build/client/_app/immutable/entry/start.BgaOwPMP.js.br +0 -1
  717. package/packages/web/build/client/_app/immutable/entry/start.BgaOwPMP.js.gz +0 -0
  718. package/packages/web/build/client/_app/immutable/nodes/0.C9CR-5kd.js +0 -1
  719. package/packages/web/build/client/_app/immutable/nodes/0.C9CR-5kd.js.br +0 -0
  720. package/packages/web/build/client/_app/immutable/nodes/0.C9CR-5kd.js.gz +0 -0
  721. package/packages/web/build/client/_app/immutable/nodes/1.DikBrROv.js +0 -1
  722. package/packages/web/build/client/_app/immutable/nodes/1.DikBrROv.js.br +0 -0
  723. package/packages/web/build/client/_app/immutable/nodes/1.DikBrROv.js.gz +0 -0
  724. package/packages/web/build/client/_app/immutable/nodes/10.3t9WnHvs.js +0 -1
  725. package/packages/web/build/client/_app/immutable/nodes/10.3t9WnHvs.js.br +0 -0
  726. package/packages/web/build/client/_app/immutable/nodes/10.3t9WnHvs.js.gz +0 -0
  727. package/packages/web/build/client/_app/immutable/nodes/11.Op2wvZXP.js +0 -4
  728. package/packages/web/build/client/_app/immutable/nodes/11.Op2wvZXP.js.br +0 -0
  729. package/packages/web/build/client/_app/immutable/nodes/11.Op2wvZXP.js.gz +0 -0
  730. package/packages/web/build/client/_app/immutable/nodes/12.CjrjNFKj.js +0 -1
  731. package/packages/web/build/client/_app/immutable/nodes/12.CjrjNFKj.js.br +0 -0
  732. package/packages/web/build/client/_app/immutable/nodes/12.CjrjNFKj.js.gz +0 -0
  733. package/packages/web/build/client/_app/immutable/nodes/13.CiddqUIq.js +0 -1
  734. package/packages/web/build/client/_app/immutable/nodes/13.CiddqUIq.js.br +0 -0
  735. package/packages/web/build/client/_app/immutable/nodes/13.CiddqUIq.js.gz +0 -0
  736. package/packages/web/build/client/_app/immutable/nodes/14.D189pX_R.js +0 -2
  737. package/packages/web/build/client/_app/immutable/nodes/14.D189pX_R.js.br +0 -0
  738. package/packages/web/build/client/_app/immutable/nodes/14.D189pX_R.js.gz +0 -0
  739. package/packages/web/build/client/_app/immutable/nodes/15.L9U9QVzo.js +0 -1
  740. package/packages/web/build/client/_app/immutable/nodes/15.L9U9QVzo.js.br +0 -0
  741. package/packages/web/build/client/_app/immutable/nodes/15.L9U9QVzo.js.gz +0 -0
  742. package/packages/web/build/client/_app/immutable/nodes/16.DSMrlY8n.js +0 -1
  743. package/packages/web/build/client/_app/immutable/nodes/16.DSMrlY8n.js.br +0 -0
  744. package/packages/web/build/client/_app/immutable/nodes/16.DSMrlY8n.js.gz +0 -0
  745. package/packages/web/build/client/_app/immutable/nodes/17.Bbk_u6OJ.js +0 -46
  746. package/packages/web/build/client/_app/immutable/nodes/17.Bbk_u6OJ.js.br +0 -0
  747. package/packages/web/build/client/_app/immutable/nodes/17.Bbk_u6OJ.js.gz +0 -0
  748. package/packages/web/build/client/_app/immutable/nodes/18.DV_cA_3-.js +0 -1
  749. package/packages/web/build/client/_app/immutable/nodes/18.DV_cA_3-.js.br +0 -0
  750. package/packages/web/build/client/_app/immutable/nodes/18.DV_cA_3-.js.gz +0 -0
  751. package/packages/web/build/client/_app/immutable/nodes/2.DJvpS8CT.js +0 -1
  752. package/packages/web/build/client/_app/immutable/nodes/2.DJvpS8CT.js.br +0 -0
  753. package/packages/web/build/client/_app/immutable/nodes/2.DJvpS8CT.js.gz +0 -0
  754. package/packages/web/build/client/_app/immutable/nodes/4.v0gFXgkE.js +0 -2
  755. package/packages/web/build/client/_app/immutable/nodes/4.v0gFXgkE.js.br +0 -0
  756. package/packages/web/build/client/_app/immutable/nodes/4.v0gFXgkE.js.gz +0 -0
  757. package/packages/web/build/client/_app/immutable/nodes/5.CvNd-aT1.js +0 -1
  758. package/packages/web/build/client/_app/immutable/nodes/5.CvNd-aT1.js.br +0 -0
  759. package/packages/web/build/client/_app/immutable/nodes/5.CvNd-aT1.js.gz +0 -0
  760. package/packages/web/build/client/_app/immutable/nodes/6.Cwb-H-e-.js +0 -2
  761. package/packages/web/build/client/_app/immutable/nodes/6.Cwb-H-e-.js.br +0 -0
  762. package/packages/web/build/client/_app/immutable/nodes/6.Cwb-H-e-.js.gz +0 -0
  763. package/packages/web/build/client/_app/immutable/nodes/7.BesKsRyM.js +0 -1
  764. package/packages/web/build/client/_app/immutable/nodes/7.BesKsRyM.js.br +0 -0
  765. package/packages/web/build/client/_app/immutable/nodes/7.BesKsRyM.js.gz +0 -0
  766. package/packages/web/build/client/_app/immutable/nodes/8.IWTTmi0T.js +0 -1
  767. package/packages/web/build/client/_app/immutable/nodes/8.IWTTmi0T.js.br +0 -0
  768. package/packages/web/build/client/_app/immutable/nodes/8.IWTTmi0T.js.gz +0 -0
  769. package/packages/web/build/client/_app/immutable/nodes/9.BksbXEiN.js +0 -1
  770. package/packages/web/build/client/_app/immutable/nodes/9.BksbXEiN.js.br +0 -0
  771. package/packages/web/build/client/_app/immutable/nodes/9.BksbXEiN.js.gz +0 -0
  772. package/packages/web/build/server/chunks/chunks/AssistantAvatar.js-BOElnrYl.js +0 -294
  773. package/packages/web/build/server/chunks/chunks/AvatarPicker.js-CLhSkMaB.js +0 -136
  774. package/packages/web/build/server/chunks/chunks/Composer.js-BbcT-FLv.js +0 -333
  775. package/packages/web/build/server/chunks/chunks/ComposerDock.js-B26-qji-.js +0 -58
  776. package/packages/web/build/server/chunks/chunks/CopyButton.js-Bg6aJO9i.js +0 -81
  777. package/packages/web/build/server/chunks/chunks/DotGrid.js-DEty8Ftx.js +0 -108
  778. package/packages/web/build/server/chunks/chunks/MemoryChangeItem.js-XSzCkKCr.js +0 -2588
  779. package/packages/web/build/server/chunks/chunks/ModelMenu.js-DyvxWk4C.js +0 -650
  780. package/packages/web/build/server/chunks/chunks/MoveToFolderMenu.js-BkRCW9eh.js +0 -288
  781. package/packages/web/build/server/chunks/chunks/NewChatForm.js-40tqChFh.js +0 -307
  782. package/packages/web/build/server/chunks/chunks/NewFolderDialog.js-C6CjVSY0.js +0 -192
  783. package/packages/web/build/server/chunks/chunks/Notifications.js-CQqL8zeJ.js +0 -762
  784. package/packages/web/build/server/chunks/chunks/PageHeader.js-BgCv8CGm.js +0 -59
  785. package/packages/web/build/server/chunks/chunks/RenameFolderDialog.js-BgF-2T2D.js +0 -258
  786. package/packages/web/build/server/chunks/chunks/StepIcon.js-ClUo5irL.js +0 -38
  787. package/packages/web/build/server/chunks/chunks/TopBar.js-nYKfnv4T.js +0 -34
  788. package/packages/web/build/server/chunks/chunks/TypedText.js-DM0Ozjdc.js +0 -62
  789. package/packages/web/build/server/chunks/chunks/UserAvatar.js-DKnmWp86.js +0 -24
  790. package/packages/web/build/server/chunks/chunks/UserMenu.js-CLVbCOpM.js +0 -1499
  791. package/packages/web/build/server/chunks/chunks/access.js-CMaS81rW.js +0 -40
  792. package/packages/web/build/server/chunks/chunks/accounts.js--GU4-Jf5.js +0 -26
  793. package/packages/web/build/server/chunks/chunks/alert-dialog.js-CZD6TyzD.js +0 -505
  794. package/packages/web/build/server/chunks/chunks/auth.js-CjtH41kh.js +0 -20064
  795. package/packages/web/build/server/chunks/chunks/avatars.js-qKyBQC6I.js +0 -496
  796. package/packages/web/build/server/chunks/chunks/badge.js-DhrZz9tJ.js +0 -38
  797. package/packages/web/build/server/chunks/chunks/camera.js-DMildJpv.js +0 -19
  798. package/packages/web/build/server/chunks/chunks/check.js-CgqvmEKJ.js +0 -15
  799. package/packages/web/build/server/chunks/chunks/chevron-left.js-DrLivp1c.js +0 -15
  800. package/packages/web/build/server/chunks/chunks/chevron-right.js-BVi8OuAb.js +0 -15
  801. package/packages/web/build/server/chunks/chunks/chevrons-up-down.js-BKkCIwCT.js +0 -15
  802. package/packages/web/build/server/chunks/chunks/client.js-Dg5neIp5.js +0 -120
  803. package/packages/web/build/server/chunks/chunks/clock.js-BK9UDxCS.js +0 -19
  804. package/packages/web/build/server/chunks/chunks/collapsible.js-QcUf1Ekr.js +0 -410
  805. package/packages/web/build/server/chunks/chunks/command.js-qzkTIb4n.js +0 -2231
  806. package/packages/web/build/server/chunks/chunks/dialog.js-DATXmio9.js +0 -544
  807. package/packages/web/build/server/chunks/chunks/dist.js-CHzkIw-w.js +0 -600
  808. package/packages/web/build/server/chunks/chunks/dist2.js-BypRVH9n.js +0 -347
  809. package/packages/web/build/server/chunks/chunks/dist3.js-uSfOYmy-.js +0 -19547
  810. package/packages/web/build/server/chunks/chunks/download.js-CrFy9e4X.js +0 -19
  811. package/packages/web/build/server/chunks/chunks/dropdown-menu.js-BMbh502s.js +0 -2396
  812. package/packages/web/build/server/chunks/chunks/eraser.js-BU4dlvFH.js +0 -15
  813. package/packages/web/build/server/chunks/chunks/factory.js-CQLK42R-.js +0 -2344
  814. package/packages/web/build/server/chunks/chunks/folder-input.js-DkjPvOkW.js +0 -19
  815. package/packages/web/build/server/chunks/chunks/forms.js-JM_GpxQF.js +0 -4052
  816. package/packages/web/build/server/chunks/chunks/hidden-input.js-CIt9W_5y.js +0 -47
  817. package/packages/web/build/server/chunks/chunks/i18n.js-Cakuk6U0.js +0 -6543
  818. package/packages/web/build/server/chunks/chunks/internal2.js-CM6RC5j4.js +0 -1135
  819. package/packages/web/build/server/chunks/chunks/key-round.js-BFVR2_CE.js +0 -20
  820. package/packages/web/build/server/chunks/chunks/memory.js-B4MEEi_Z.js +0 -26
  821. package/packages/web/build/server/chunks/chunks/message-circle.js-D49Sk0Wt.js +0 -15
  822. package/packages/web/build/server/chunks/chunks/motion.js-BGVcte_O.js +0 -224
  823. package/packages/web/build/server/chunks/chunks/paths.js-vTKfgV_W.js +0 -19
  824. package/packages/web/build/server/chunks/chunks/pencil.js-DrsRjIqk.js +0 -15
  825. package/packages/web/build/server/chunks/chunks/plus.js-E-pmHa3v.js +0 -15
  826. package/packages/web/build/server/chunks/chunks/sdk.js-B2ztN1Lk.js +0 -42918
  827. package/packages/web/build/server/chunks/chunks/select.js-CADiX1B7.js +0 -1965
  828. package/packages/web/build/server/chunks/chunks/shield-check.js-CifO8sPn.js +0 -29
  829. package/packages/web/build/server/chunks/chunks/sidebar.js-CjZAbET4.js +0 -1498
  830. package/packages/web/build/server/chunks/chunks/square-pen.js-CMKwoVdr.js +0 -20
  831. package/packages/web/build/server/chunks/chunks/src.js-DlynI0hv.js +0 -27000
  832. package/packages/web/build/server/chunks/chunks/state.js-DjG_xJ6v.js +0 -67
  833. package/packages/web/build/server/chunks/chunks/switch.js-BykxjriZ.js +0 -283
  834. package/packages/web/build/server/chunks/chunks/terminal.js-D6dBIpDn.js +0 -15
  835. package/packages/web/build/server/chunks/chunks/textarea.js-B5-NW0l1.js +0 -25
  836. package/packages/web/build/server/chunks/chunks/tint.js-DjJ-o_oc.js +0 -165
  837. package/packages/web/build/server/chunks/chunks/tooltip.js-CefNT6DH.js +0 -5863
  838. package/packages/web/build/server/chunks/chunks/usage.js-DNQuJpUU.js +0 -27
  839. package/packages/web/build/server/chunks/chunks/utils2.js-D1jvsxxx.js +0 -1167
  840. package/packages/web/build/server/chunks/chunks/zod.js-CWybfdic.js +0 -18824
  841. package/packages/web/build/server/chunks/chunks/zod2.js-D_b3bp3T.js +0 -4
  842. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/commands/_server.ts.js-DkJz0GER.js +0 -53
  843. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/continue/_server.ts.js-DwqrktqL.js +0 -44
  844. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/effort/_server.ts.js-BmjT-Ztn.js +0 -45
  845. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/events/_server.ts.js-B5EB81bi.js +0 -72
  846. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/folder/_server.ts.js-Dw0QpRlp.js +0 -53
  847. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/media/_mediaId_/_server.ts.js-Bx0OedB1.js +0 -51
  848. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/messages/_server.ts.js-DDYKj9gS.js +0 -56
  849. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/preset/_server.ts.js-DEJaoQV0.js +0 -49
  850. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/stop/_server.ts.js-Dw7fPXTJ.js +0 -42
  851. package/packages/web/build/server/chunks/entries/endpoints/api/c/_id_/typing/_server.ts.js-KhlfQb5X.js +0 -48
  852. package/packages/web/build/server/chunks/entries/endpoints/api/card/changes/_id_/keep/_server.ts.js-CpO5Tw0v.js +0 -57
  853. package/packages/web/build/server/chunks/entries/endpoints/api/chatgpt/sign-in/_server.ts.js-CGa-3Tfb.js +0 -72
  854. package/packages/web/build/server/chunks/entries/endpoints/api/events/_server.ts.js-BBNo5Duy.js +0 -83
  855. package/packages/web/build/server/chunks/entries/endpoints/api/hooks/_token_/_server.ts.js-DB0HkrPc.js +0 -48
  856. package/packages/web/build/server/chunks/entries/endpoints/api/me/_server.ts.js-b6-lm_Ed.js +0 -51
  857. package/packages/web/build/server/chunks/entries/endpoints/api/me/picture/_server.ts.js-CXaSRFEH.js +0 -59
  858. package/packages/web/build/server/chunks/entries/endpoints/api/models/_server.ts.js-lvH7AJAs.js +0 -55
  859. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/_id_/continue/_server.ts.js-DApMRDk0.js +0 -49
  860. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/_id_/dismiss/_server.ts.js-CrvUxZUu.js +0 -41
  861. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/clear/_server.ts.js-UXu_qsCl.js +0 -42
  862. package/packages/web/build/server/chunks/entries/endpoints/api/notifications/seen/_server.ts.js-DtA3xn3g.js +0 -42
  863. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_folder_/files/_file_/_server.ts.js-DysFASqZ.js +0 -55
  864. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/folders/_server.ts.js-BDEdyBpH.js +0 -56
  865. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/memory/_id_/undo/_server.ts.js-BZEyhdCW.js +0 -57
  866. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/running/_server.ts.js-NEH54dIz.js +0 -78
  867. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/suggestions/_server.ts.js-BhqMxAjp.js +0 -52
  868. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/templates/_id_/cover/_server.ts.js-rw9q81We.js +0 -58
  869. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/_id_/_server.ts.js-B9fQriGr.js +0 -43
  870. package/packages/web/build/server/chunks/entries/endpoints/api/p/_slug_/uploads/_server.ts.js-D4v_ixwU.js +0 -71
  871. package/packages/web/build/server/chunks/entries/endpoints/api/pictures/_sha256_/_server.ts.js-YGGiBW89.js +0 -54
  872. package/packages/web/build/server/chunks/entries/endpoints/logout/_server.ts.js-D85x_95g.js +0 -45
  873. package/packages/web/build/server/chunks/entries/fallbacks/error.svelte.js-Cb-94Mjg.js +0 -22
  874. package/packages/web/build/server/chunks/entries/hooks.server.js-b1SYQXEi.js +0 -2983
  875. package/packages/web/build/server/chunks/entries/pages/_layout.server.ts.js-vgQ7FD_z.js +0 -41
  876. package/packages/web/build/server/chunks/entries/pages/_layout.svelte.js-BhzEqF95.js +0 -77
  877. package/packages/web/build/server/chunks/entries/pages/_page.server.ts.js-BybKXqua.js +0 -27
  878. package/packages/web/build/server/chunks/entries/pages/admin/_page.server.ts.js-Co8N9XsI.js +0 -345
  879. package/packages/web/build/server/chunks/entries/pages/admin/_page.svelte.js-C9m37bww.js +0 -2307
  880. package/packages/web/build/server/chunks/entries/pages/admin/people/_page.server.ts.js-DsxljIFN.js +0 -130
  881. package/packages/web/build/server/chunks/entries/pages/admin/people/_page.svelte.js-CL25VFst.js +0 -574
  882. package/packages/web/build/server/chunks/entries/pages/card/_page.server.ts.js-fZyd9NoG.js +0 -75
  883. package/packages/web/build/server/chunks/entries/pages/card/_page.svelte.js-BtRHLxTx.js +0 -372
  884. package/packages/web/build/server/chunks/entries/pages/invite/_token_/_page.server.ts.js-B8OQFrQp.js +0 -63
  885. package/packages/web/build/server/chunks/entries/pages/invite/_token_/_page.svelte.js-hd2quW3N.js +0 -125
  886. package/packages/web/build/server/chunks/entries/pages/login/_page.server.ts.js-DOcT1tgp.js +0 -42
  887. package/packages/web/build/server/chunks/entries/pages/login/_page.svelte.js-C5Auxspy.js +0 -74
  888. package/packages/web/build/server/chunks/entries/pages/p/_slug_/_layout.server.ts.js-BvbpH7aa.js +0 -53
  889. package/packages/web/build/server/chunks/entries/pages/p/_slug_/_layout.svelte.js-B10sZUKN.js +0 -1900
  890. package/packages/web/build/server/chunks/entries/pages/p/_slug_/_page.server.ts.js-C3Y9wk8O.js +0 -78
  891. package/packages/web/build/server/chunks/entries/pages/p/_slug_/_page.svelte.js-CoRMdrPQ.js +0 -152
  892. package/packages/web/build/server/chunks/entries/pages/p/_slug_/automations/_page.server.ts.js-BbMLCUDA.js +0 -269
  893. package/packages/web/build/server/chunks/entries/pages/p/_slug_/automations/_page.svelte.js-DPU6YXHJ.js +0 -414
  894. package/packages/web/build/server/chunks/entries/pages/p/_slug_/c/_id_/_page.server.ts.js-DRgVXOxV.js +0 -73
  895. package/packages/web/build/server/chunks/entries/pages/p/_slug_/c/_id_/_page.svelte.js-Ck3wDf_F.js +0 -2392
  896. package/packages/web/build/server/chunks/entries/pages/p/_slug_/f/_folder_/_page.server.ts.js-DJVR3n50.js +0 -102
  897. package/packages/web/build/server/chunks/entries/pages/p/_slug_/f/_folder_/_page.svelte.js-CLG-0wVy.js +0 -323
  898. package/packages/web/build/server/chunks/entries/pages/p/_slug_/images/_page.server.ts.js-BbBFc7eX.js +0 -145
  899. package/packages/web/build/server/chunks/entries/pages/p/_slug_/images/_page.svelte.js-Ta37_M_i.js +0 -513
  900. package/packages/web/build/server/chunks/entries/pages/p/_slug_/memory/_page.server.ts.js-CkQszCsV.js +0 -113
  901. package/packages/web/build/server/chunks/entries/pages/p/_slug_/memory/_page.svelte.js-DxgpLCGC.js +0 -968
  902. package/packages/web/build/server/chunks/entries/pages/p/_slug_/settings/_page.server.ts.js-ryYts05B.js +0 -106
  903. package/packages/web/build/server/chunks/entries/pages/p/_slug_/settings/_page.svelte.js-BvTcTRJQ.js +0 -584
  904. package/packages/web/build/server/chunks/entries/pages/p/_slug_/skills/_page.server.ts.js-BzVe8LHd.js +0 -45
  905. package/packages/web/build/server/chunks/entries/pages/p/_slug_/skills/_page.svelte.js-CJHcqQH5.js +0 -132
  906. package/packages/web/build/server/chunks/entries/pages/p/_slug_/welcome/_page.server.ts.js-onzZAX1Z.js +0 -134
  907. package/packages/web/build/server/chunks/entries/pages/p/_slug_/welcome/_page@.svelte.js-BnGdU_h4.js +0 -223
  908. package/packages/web/build/server/chunks/entries/pages/profiles/_page.server.ts.js-hGcjHBhU.js +0 -47
  909. package/packages/web/build/server/chunks/entries/pages/profiles/_page.svelte.js-BzuBRwOF.js +0 -240
  910. package/packages/web/build/server/chunks/handler-D2eW2iLl.js +0 -1735
  911. package/packages/web/build/server/chunks/index.js-DqF1GLH4.js +0 -3700
  912. package/packages/web/build/server/chunks/manifest.js-B7llprKy.js +0 -387
  913. package/packages/web/build/server/chunks/nodes/0.js-CIzCXL5D.js +0 -42
  914. package/packages/web/build/server/chunks/nodes/1.js-DRjbmxYH.js +0 -9
  915. package/packages/web/build/server/chunks/nodes/10.js-CDm72w6Y.js +0 -44
  916. package/packages/web/build/server/chunks/nodes/11.js-OnJr6Cw4.js +0 -44
  917. package/packages/web/build/server/chunks/nodes/12.js-CSZo_AVI.js +0 -44
  918. package/packages/web/build/server/chunks/nodes/13.js-B4R788aB.js +0 -44
  919. package/packages/web/build/server/chunks/nodes/14.js-l-KO8B-h.js +0 -44
  920. package/packages/web/build/server/chunks/nodes/15.js-CAtECzGW.js +0 -44
  921. package/packages/web/build/server/chunks/nodes/16.js-CmTEXhAq.js +0 -44
  922. package/packages/web/build/server/chunks/nodes/17.js-Gg-NPBzB.js +0 -44
  923. package/packages/web/build/server/chunks/nodes/18.js-BLTnO9SS.js +0 -44
  924. package/packages/web/build/server/chunks/nodes/2.js-CDq1qE_r.js +0 -46
  925. package/packages/web/build/server/chunks/nodes/3.js-BVsDtBU2.js +0 -45
  926. package/packages/web/build/server/chunks/nodes/4.js-Cpe8-dWC.js +0 -45
  927. package/packages/web/build/server/chunks/nodes/5.js-DFdbH2Du.js +0 -46
  928. package/packages/web/build/server/chunks/nodes/6.js-yJdLU7lq.js +0 -44
  929. package/packages/web/build/server/chunks/nodes/7.js-BoganRn1.js +0 -50
  930. package/packages/web/build/server/chunks/nodes/8.js-Diubq0AZ.js +0 -49
  931. package/packages/web/build/server/chunks/nodes/9.js-DXoagKbS.js +0 -46
  932. /package/packages/web/build/client/_app/immutable/assets/{13.DiHYpJ-g.css → 15.DiHYpJ-g.css} +0 -0
  933. /package/packages/web/build/client/_app/immutable/assets/{13.DiHYpJ-g.css.br → 15.DiHYpJ-g.css.br} +0 -0
  934. /package/packages/web/build/client/_app/immutable/assets/{13.DiHYpJ-g.css.gz → 15.DiHYpJ-g.css.gz} +0 -0
  935. /package/packages/web/build/client/_app/immutable/assets/{17.D8mCg27h.css → 19.D8mCg27h.css} +0 -0
  936. /package/packages/web/build/client/_app/immutable/assets/{17.D8mCg27h.css.br → 19.D8mCg27h.css.br} +0 -0
  937. /package/packages/web/build/client/_app/immutable/assets/{17.D8mCg27h.css.gz → 19.D8mCg27h.css.gz} +0 -0
@@ -0,0 +1,2545 @@
1
+ import { r as run, al as attr, ap as escape_html, au as attr_style, as as stringify, aq as ensure_array_like, at as attr_class, am as clsx, _ as derived, af as spread_props, ag as bind_props, aj as attributes } from '../../../../../../chunks/server.js-BAHAkSRU.js';
2
+ import { o as onDestroy } from '../../../../../../chunks/index-server.js-CZWDUWWu.js';
3
+ import { b as buildTranscript, r as replyText, p as promptTokens, c as cacheHitRate, a as cacheMissTokens, d as cacheTtlMs, e as cachesWholePrompt, f as resultStatus } from '../../../../../../chunks/transcript.js-BZDJbNRI.js';
4
+ import { g as getI18n } from '../../../../../../chunks/i18n.js-DOMtD7OV.js';
5
+ import { g as getPreferences } from '../../../../../../chunks/preferences.svelte.js-B5ab6njf.js';
6
+ import { r as resolve } from '../../../../../../chunks/paths.js-CSblJkdx.js';
7
+ import { a as invalidate } from '../../../../../../chunks/client.js-UAJMOZ3E.js';
8
+ import { p as page } from '../../../../../../chunks/state.js-DWKXB_zq.js';
9
+ import { a as Tooltip, b as Tooltip_trigger, d as Tooltip_content } from '../../../../../../chunks/tooltip.js-CNshopM4.js';
10
+ import { D as Dropdown_menu, a as Dropdown_menu_trigger, b as Dropdown_menu_content, c as Dropdown_menu_label, d as Dropdown_menu_separator, e as Dropdown_menu_item } from '../../../../../../chunks/dropdown-menu.js-klnL3AVI.js';
11
+ import { A as Alert_dialog, a as Alert_dialog_content, b as Alert_dialog_header, c as Alert_dialog_footer, d as Alert_dialog_title, e as Alert_dialog_description, f as Alert_dialog_cancel, g as Alert_dialog_action } from '../../../../../../chunks/alert-dialog.js-dXbEUmyf.js';
12
+ import { a as Dialog, e as Dialog_content, c as Dialog_title } from '../../../../../../chunks/dialog.js-CuTPiEih.js';
13
+ import { C as Collapsible, a as Collapsible_trigger, b as Collapsible_content } from '../../../../../../chunks/collapsible.js-CWSyjrbz.js';
14
+ import { c as cn } from '../../../../../../chunks/utils2.js-7mvaj0Jt.js';
15
+ import { p as planUsage } from '../../../../../../chunks/plan-usage.svelte.js-CuVZYFIH.js';
16
+ import { I as Icon, A as AssistantAvatar } from '../../../../../../chunks/AssistantAvatar.js-DiCVVVOX.js';
17
+ import { B as Button, b as buttonVariants } from '../../../../../../chunks/button.js-DgaDzlsw.js';
18
+ import { C as Clock } from '../../../../../../chunks/clock.js-DoLCyX6L.js';
19
+ import { R as RenameChatDialog, B as Brain, M as MoveToFolderMenu } from '../../../../../../chunks/MoveToFolderMenu.js-C3-ONxWK.js';
20
+ import { a as TypedText, E as Ellipsis, T as Trash } from '../../../../../../chunks/TypedText.js-CBDH4RYQ.js';
21
+ import { C as Chevron_right } from '../../../../../../chunks/chevron-right.js-DAWR16mM.js';
22
+ import { F as Folder, N as NewFolderDialog, m as moveChat } from '../../../../../../chunks/NewFolderDialog.js-BLDWgamm.js';
23
+ import { P as Pencil } from '../../../../../../chunks/pencil.js-BBP970JE.js';
24
+ import { e as errorMessage } from '../../../../../../chunks/http.js-B-SIUg23.js';
25
+ import { R as Rich } from '../../../../../../chunks/Rich.js-CJOjc61l.js';
26
+ import { U as UserAvatar } from '../../../../../../chunks/UserAvatar.js-DY0XLih9.js';
27
+ import { D as Download } from '../../../../../../chunks/download.js-Dw_s_V8T.js';
28
+ import { C as CopyButton } from '../../../../../../chunks/CopyButton.js-3lPgmWGZ.js';
29
+ import { f as formatTokens, b as formatBytes, c as formatPercent } from '../../../../../../chunks/format.js-bkxaohNm.js';
30
+ import { p as planLimits, u as usedPercent, w as whenItResets } from '../../../../../../chunks/PlanUsageBars.js-Bjg4JeO1.js';
31
+ import { L as List_collapse } from '../../../../../../chunks/list-collapse.js-BHdkhU7D.js';
32
+ import { M as MemoryChangeItem, a as Markdown } from '../../../../../../chunks/MemoryChangeItem.js-CszZww43.js';
33
+ import { a as memoryAnchor } from '../../../../../../chunks/memory2.js-B4MEEi_Z.js';
34
+ import { P as PageHeader } from '../../../../../../chunks/PageHeader.js-BTQt3nN6.js';
35
+ import { F as File, C as Composer, A as Attachments } from '../../../../../../chunks/Composer.js-BD9XUuTX.js';
36
+ import { M as ModelMenu, C as CommandModeMenu, s as shortModelName } from '../../../../../../chunks/ModelMenu.js--hauzhKu.js';
37
+ import { C as Chevron_left } from '../../../../../../chunks/chevron-left.js-C0GGjrDT.js';
38
+ import { S as StepIcon } from '../../../../../../chunks/StepIcon.js-B1rGP1yW.js';
39
+ import { L as Loader_circle, C as Circle_alert, a as ComposerDock } from '../../../../../../chunks/ComposerDock.js-DTvu7Y-J.js';
40
+ import '../../../../../../chunks/uneval.js-NmnccxCg.js';
41
+ import '../../../../../../chunks/rolldown-runtime.js-DAzahgG2.js';
42
+ import 'node:module';
43
+ import '../../../../../../chunks/schedule.js-CGJAo63f.js';
44
+ import '../../../../../../chunks/internal.js-BAV8263N.js';
45
+ import '../../../../../../chunks/internal2.js-BmQF3qCw.js';
46
+ import '../../../../../../chunks/routing.js-BuS-2pZB.js';
47
+ import '../../../../../../chunks/utils.js-CLRDf9Jk.js';
48
+ import '../../../../../../chunks/shared.js-1MmsW0Qq.js';
49
+ import '../../../../../../chunks/exports.js-B69d5EHv.js';
50
+ import '../../../../../../chunks/sidebar.js-f3cS5ugL.js';
51
+ import '../../../../../../chunks/check.js-CWziLHT9.js';
52
+ import '../../../../../../chunks/after-sleep.js-S6JAnXYn.js';
53
+ import '../../../../../../chunks/avatars.js-C3tB5SlK.js';
54
+ import '../../../../../../chunks/forms.js-0RsYOm25.js';
55
+ import '../../../../../../chunks/folder-input.js-xU4i7Wj1.js';
56
+ import '../../../../../../chunks/media-refs.js-q0nPxUYL.js';
57
+ import '../../../../../../chunks/plus.js-AAFvEbhZ.js';
58
+ import '../../../../../../chunks/icons.js-DqrSaQen.js';
59
+ import '../../../../../../chunks/memory-categories.js-DDXxnICw.js';
60
+ import '../../../../../../chunks/Notifications.js-D2m19ylY.js';
61
+ import '../../../../../../chunks/square-pen.js-BiHIfF48.js';
62
+ import '../../../../../../chunks/terminal.js-W_lgKCde.js';
63
+ import '../../../../../../chunks/LucideIcon.js-FY-zCtXz.js';
64
+
65
+ //#region ../../node_modules/.pnpm/@lucide+svelte@1.48.0_svelte@5.57.1_@typescript-eslint+types@8.70.1_/node_modules/@lucide/svelte/dist/icons/arrow-down.svelte
66
+ function Arrow_down($$renderer, $$props) {
67
+ let { $$slots, $$events, ...props } = $$props;
68
+ Icon($$renderer, spread_props([props, { icon: {
69
+ "name": "arrow-down",
70
+ "size": 24,
71
+ "node": [["path", { "d": "M12 5v14" }], ["path", { "d": "m19 12-7 7-7-7" }]]
72
+ } }]));
73
+ }
74
+ //#endregion
75
+ //#region ../../node_modules/.pnpm/@lucide+svelte@1.48.0_svelte@5.57.1_@typescript-eslint+types@8.70.1_/node_modules/@lucide/svelte/dist/icons/bot.svelte
76
+ function Bot($$renderer, $$props) {
77
+ let { $$slots, $$events, ...props } = $$props;
78
+ Icon($$renderer, spread_props([props, { icon: {
79
+ "name": "bot",
80
+ "size": 24,
81
+ "node": [
82
+ ["path", { "d": "M12 8V4H8" }],
83
+ ["rect", {
84
+ "width": "16",
85
+ "height": "12",
86
+ "x": "4",
87
+ "y": "8",
88
+ "rx": "2"
89
+ }],
90
+ ["path", { "d": "M2 14h2" }],
91
+ ["path", { "d": "M20 14h2" }],
92
+ ["path", { "d": "M15 13v2" }],
93
+ ["path", { "d": "M9 13v2" }]
94
+ ]
95
+ } }]));
96
+ }
97
+ //#endregion
98
+ //#region ../../node_modules/.pnpm/@lucide+svelte@1.48.0_svelte@5.57.1_@typescript-eslint+types@8.70.1_/node_modules/@lucide/svelte/dist/icons/info.svelte
99
+ function Info($$renderer, $$props) {
100
+ let { $$slots, $$events, ...props } = $$props;
101
+ Icon($$renderer, spread_props([props, { icon: {
102
+ "name": "info",
103
+ "size": 24,
104
+ "node": [
105
+ ["circle", {
106
+ "cx": "12",
107
+ "cy": "12",
108
+ "r": "10"
109
+ }],
110
+ ["path", { "d": "M12 16v-4" }],
111
+ ["path", { "d": "M12 8h.01" }]
112
+ ]
113
+ } }]));
114
+ }
115
+ //#endregion
116
+ //#region ../../node_modules/.pnpm/@lucide+svelte@1.48.0_svelte@5.57.1_@typescript-eslint+types@8.70.1_/node_modules/@lucide/svelte/dist/icons/refresh-cw.svelte
117
+ function Refresh_cw($$renderer, $$props) {
118
+ let { $$slots, $$events, ...props } = $$props;
119
+ Icon($$renderer, spread_props([props, { icon: {
120
+ "name": "refresh-cw",
121
+ "size": 24,
122
+ "node": [
123
+ ["path", { "d": "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" }],
124
+ ["path", { "d": "M21 3v5h-5" }],
125
+ ["path", { "d": "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" }],
126
+ ["path", { "d": "M8 16H3v5" }]
127
+ ]
128
+ } }]));
129
+ }
130
+ //#endregion
131
+ //#region ../../node_modules/.pnpm/@lucide+svelte@1.48.0_svelte@5.57.1_@typescript-eslint+types@8.70.1_/node_modules/@lucide/svelte/dist/icons/rotate-ccw.svelte
132
+ function Rotate_ccw($$renderer, $$props) {
133
+ let { $$slots, $$events, ...props } = $$props;
134
+ Icon($$renderer, spread_props([props, { icon: {
135
+ "name": "rotate-ccw",
136
+ "size": 24,
137
+ "node": [["path", { "d": "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }], ["path", { "d": "M3 3v5h5" }]]
138
+ } }]));
139
+ }
140
+ //#endregion
141
+ //#region ../../node_modules/.pnpm/@lucide+svelte@1.48.0_svelte@5.57.1_@typescript-eslint+types@8.70.1_/node_modules/@lucide/svelte/dist/icons/square-terminal.svelte
142
+ function Square_terminal($$renderer, $$props) {
143
+ let { $$slots, $$events, ...props } = $$props;
144
+ Icon($$renderer, spread_props([props, { icon: {
145
+ "name": "square-terminal",
146
+ "size": 24,
147
+ "node": [
148
+ ["path", { "d": "m7 11 2-2-2-2" }],
149
+ ["path", { "d": "M11 13h4" }],
150
+ ["rect", {
151
+ "width": "18",
152
+ "height": "18",
153
+ "x": "3",
154
+ "y": "3",
155
+ "rx": "2",
156
+ "ry": "2"
157
+ }]
158
+ ],
159
+ "aliases": ["terminal-square"]
160
+ } }]));
161
+ }
162
+ //#endregion
163
+ //#region src/lib/chat.svelte.ts
164
+ var ChatState = class {
165
+ /** Empty until the first snapshot arrives. */
166
+ title = "";
167
+ /** The model and reasoning level, which anyone in the profile can change. Null until then. */
168
+ model = null;
169
+ /** How its commands run, which anyone in the profile can change. Null until then. */
170
+ commands = null;
171
+ /** What reloading its tools would bring: skills and connected services that changed. */
172
+ toolChanges = null;
173
+ messages = [];
174
+ queued = [];
175
+ running = false;
176
+ error = null;
177
+ live = [];
178
+ toolOutput = null;
179
+ /** Background commands and subagents still working for this chat. */
180
+ background = [];
181
+ /** What the note-taker saved from this chat, each shown after the last message it read. */
182
+ memory = [];
183
+ /** Who is writing in the chat right now, this person included. */
184
+ typing = [];
185
+ connected = false;
186
+ loaded = false;
187
+ #results = derived(() => Object.fromEntries(this.messages.flatMap((m) => m.kind === "tool_results" ? m.results.map((r) => [r.id, r]) : [])));
188
+ get results() {
189
+ return this.#results();
190
+ }
191
+ set results($$value) {
192
+ return this.#results($$value);
193
+ }
194
+ apply(event) {
195
+ switch (event.type) {
196
+ case "snapshot":
197
+ this.title = event.snapshot.title;
198
+ this.model = event.snapshot.model;
199
+ this.commands = event.snapshot.commands;
200
+ this.toolChanges = event.snapshot.toolChanges;
201
+ this.messages = event.snapshot.messages;
202
+ this.queued = event.snapshot.queued;
203
+ this.running = event.snapshot.running;
204
+ this.error = event.snapshot.error;
205
+ this.live = event.snapshot.live;
206
+ this.toolOutput = event.snapshot.toolOutput;
207
+ this.background = event.snapshot.background;
208
+ this.memory = event.snapshot.memory;
209
+ this.typing = event.snapshot.typing;
210
+ this.loaded = true;
211
+ break;
212
+ case "title":
213
+ this.title = event.title;
214
+ break;
215
+ case "model":
216
+ this.model = event.model;
217
+ break;
218
+ case "commands":
219
+ this.commands = event.commands;
220
+ break;
221
+ case "tools":
222
+ this.toolChanges = event.changes;
223
+ break;
224
+ case "background":
225
+ this.background = event.background;
226
+ break;
227
+ case "memory":
228
+ this.memory = event.memory;
229
+ break;
230
+ case "typing":
231
+ this.typing = event.typing;
232
+ break;
233
+ case "status":
234
+ this.running = event.running;
235
+ this.error = event.error;
236
+ break;
237
+ case "queued":
238
+ this.queued = event.queued;
239
+ break;
240
+ case "message":
241
+ if (event.replacesLive) {
242
+ this.live = [];
243
+ this.toolOutput = null;
244
+ }
245
+ if (!this.messages.some((m) => m.id === event.message.id)) this.messages.push(event.message);
246
+ break;
247
+ case "live_block":
248
+ this.live[event.index] = event.block;
249
+ break;
250
+ case "live_delta": {
251
+ const block = this.live[event.index];
252
+ if (block) block.text += event.text;
253
+ break;
254
+ }
255
+ case "live_clear":
256
+ this.live = [];
257
+ this.toolOutput = null;
258
+ break;
259
+ case "tool_output":
260
+ if (this.toolOutput?.id !== event.id) this.toolOutput = {
261
+ id: event.id,
262
+ text: ""
263
+ };
264
+ this.toolOutput.text += event.chunk;
265
+ }
266
+ }
267
+ /** Opens the event stream. EventSource reconnects by itself; each reconnect starts with a snapshot. */
268
+ connect(conversationId) {
269
+ const source = new EventSource(`/api/c/${conversationId}/events`);
270
+ source.onopen = () => this.connected = true;
271
+ source.onerror = () => {
272
+ this.connected = false;
273
+ this.typing = [];
274
+ };
275
+ source.onmessage = (event) => this.apply(JSON.parse(event.data));
276
+ return () => source.close();
277
+ }
278
+ };
279
+ //#endregion
280
+ //#region src/lib/commands.ts
281
+ /** The command's first line, for the compact technical label. */
282
+ function firstLine(command, max = 120) {
283
+ const line = command.trim().split("\n")[0];
284
+ return line.length > max ? line.slice(0, max) + "…" : line;
285
+ }
286
+ //#endregion
287
+ //#region src/lib/transcript.ts
288
+ /**
289
+ * What work in progress is doing, as its collapsed group says it: the summary of the command that
290
+ * is running, summarizing the conversation, or Thinking. The live avatar shows the same on hover.
291
+ */
292
+ function activeStepLabel(part, results, technical, m) {
293
+ const last = part.steps.at(-1);
294
+ if (last?.type === "compaction" && !last.summary) return m.steps.summarizing;
295
+ if (last?.type === "command" && !results[last.id]) {
296
+ if (technical && last.command) return m.steps.running(firstLine(last.command, 80));
297
+ return last.summary ?? m.steps.runningACommand;
298
+ }
299
+ return m.steps.thinking;
300
+ }
301
+ function formatDuration(ms, m) {
302
+ const seconds = Math.round(ms / 1e3);
303
+ if (seconds < 1) return null;
304
+ if (seconds < 60) return m.time.seconds(seconds);
305
+ const minutes = Math.floor(seconds / 60);
306
+ if (minutes < 60) return m.time.minutesSeconds(minutes, seconds % 60);
307
+ return m.time.hoursMinutes(Math.floor(minutes / 60), minutes % 60);
308
+ }
309
+ /** Quiet this long after the last keystroke, someone has stopped typing, whatever the box holds. */
310
+ var TYPING_IDLE_MS = 5e3;
311
+ /**
312
+ * Tells the others in a chat whether this person is writing in its composer: that they are as they
313
+ * type, again every TYPING_REFRESH_MS while they go on, and that they stopped when the box is
314
+ * emptied, after TYPING_IDLE_MS of quiet, and when they leave. Sending the message stops it on the
315
+ * server by itself. Reports go out one at a time, in order, so a "typing" still on its way never
316
+ * lands after "stopped" or after the message (`settled`). A report that fails is dropped: the
317
+ * server forgets someone who stopped saying they're typing.
318
+ */
319
+ var TypingReporter = class {
320
+ #report;
321
+ /** When it last said they're typing, or null when it says they aren't. */
322
+ #announcedAt = null;
323
+ #idle;
324
+ #queue = Promise.resolve();
325
+ constructor(report) {
326
+ this.#report = report;
327
+ }
328
+ /** They changed what's in the box, which now holds `text`. */
329
+ input(text) {
330
+ if (!text.trim()) return this.stop();
331
+ clearTimeout(this.#idle);
332
+ this.#idle = setTimeout(() => this.stop(), TYPING_IDLE_MS);
333
+ const now = Date.now();
334
+ if (this.#announcedAt !== null && now - this.#announcedAt < 3e3) return;
335
+ this.#announcedAt = now;
336
+ this.#send(true);
337
+ }
338
+ /** They stopped typing: emptied the box, went quiet, or left. */
339
+ stop() {
340
+ clearTimeout(this.#idle);
341
+ if (this.#announcedAt === null) return;
342
+ this.#announcedAt = null;
343
+ this.#send(false);
344
+ }
345
+ /** Their message went out, which stopped it on the server already. */
346
+ sent() {
347
+ clearTimeout(this.#idle);
348
+ this.#announcedAt = null;
349
+ }
350
+ /** Resolves once every report so far has arrived, so a message sent next comes after them. */
351
+ async settled() {
352
+ await this.#queue;
353
+ }
354
+ #send(typing) {
355
+ this.#queue = this.#queue.then(() => this.#report(typing)).catch(() => {});
356
+ }
357
+ };
358
+ //#endregion
359
+ //#region src/lib/components/chat/PictureButton.svelte
360
+ function PictureButton($$renderer, $$props) {
361
+ $$renderer.component(($$renderer) => {
362
+ let { conversationId, picture } = $$props;
363
+ const { m } = getI18n();
364
+ /** Pictures in the chat are at most this tall; the viewer shows them full size. */
365
+ const MAX_HEIGHT = 192;
366
+ const url = derived(() => resolve("/api/c/[id]/media/[mediaId]", {
367
+ id: conversationId,
368
+ mediaId: picture.id
369
+ }));
370
+ /** The size it's shown at, so the chat doesn't jump while it loads. */
371
+ const size = derived(() => {
372
+ if (!picture.width || !picture.height) return {};
373
+ const scale = Math.min(1, MAX_HEIGHT / picture.height);
374
+ return {
375
+ width: Math.round(picture.width * scale),
376
+ height: Math.round(picture.height * scale)
377
+ };
378
+ });
379
+ $$renderer.push(`<button type="button" data-media-view=""${attr("data-name", picture.name)}${attr("data-download", `${stringify(url())}?download`)}${attr("aria-label", m.attachments.open(picture.name))} class="block max-w-full cursor-zoom-in overflow-hidden rounded-xl border"><img${attributes({
380
+ src: url(),
381
+ alt: picture.name,
382
+ ...size(),
383
+ loading: "lazy",
384
+ decoding: "async",
385
+ class: "block h-auto max-h-48 max-w-full bg-muted"
386
+ })} onload="this.__e=event" onerror="this.__e=event"/></button>`);
387
+ });
388
+ }
389
+ //#endregion
390
+ //#region src/lib/components/chat/CommandStep.svelte
391
+ function CommandStep($$renderer, $$props) {
392
+ $$renderer.component(($$renderer) => {
393
+ /** What the model said the command does, in plain words. */
394
+ /** Output streamed so far while the command runs. */
395
+ /** The agent is still working, so a command without a result is running, not abandoned. */
396
+ let { conversationId, command, cwd, summary, result, liveOutput, running } = $$props;
397
+ const prefs = getPreferences();
398
+ const { m } = getI18n();
399
+ let open = false;
400
+ const status = derived(() => result ? resultStatus(result) : running ? "running" : "not run");
401
+ /** Calls from before the model wrote summaries have none. */
402
+ const label = derived(() => summary ?? (command === null ? m.steps.gettingReady : status() === "running" ? m.steps.runningACommand : m.steps.ranACommand));
403
+ const output = derived(() => result?.output ?? liveOutput ?? "");
404
+ /** The technical label already shows a short command in full. */
405
+ const showCommand = derived(() => !prefs.technical || !command || command !== firstLine(command));
406
+ let $$settled = true;
407
+ let $$inner_renderer;
408
+ function $$render_inner($$renderer) {
409
+ if (Collapsible) {
410
+ $$renderer.push("<!--[-->");
411
+ Collapsible($$renderer, {
412
+ get open() {
413
+ return open;
414
+ },
415
+ set open($$value) {
416
+ open = $$value;
417
+ $$settled = false;
418
+ },
419
+ children: ($$renderer) => {
420
+ if (Collapsible_trigger) {
421
+ $$renderer.push("<!--[-->");
422
+ Collapsible_trigger($$renderer, {
423
+ class: "group/step flex w-full min-w-0 items-center gap-2 rounded-lg py-0.5 text-left text-sm text-muted-foreground hover:text-foreground",
424
+ children: ($$renderer) => {
425
+ if (prefs.technical) $$renderer.push(`<!--[0--><span class="min-w-0 truncate font-mono text-xs">${escape_html(command === null ? m.steps.preparing : `$ ${firstLine(command)}`)}</span>`);
426
+ else $$renderer.push(`<!--[-1--><span class="min-w-0 truncate">${escape_html(label())}</span>`);
427
+ $$renderer.push(`<!--]--> `);
428
+ if (status() === "running") {
429
+ $$renderer.push("<!--[0-->");
430
+ Loader_circle($$renderer, { class: "size-3.5 shrink-0 animate-spin" });
431
+ } else if (status() === "failed") $$renderer.push(`<!--[1--><span class="shrink-0 text-xs text-destructive">${escape_html(prefs.technical ? m.steps.failed : m.steps.didntWork)}</span>`);
432
+ else if (status() === "blocked") $$renderer.push(`<!--[2--><span class="shrink-0 text-xs text-warning">${escape_html(m.steps.statusBlocked)}</span>`);
433
+ else if (status() === "stopped" || status() === "not run") $$renderer.push(`<!--[3--><span class="shrink-0 text-xs">${escape_html(status() === "stopped" ? m.steps.statusStopped : m.steps.statusNotRun)}</span>`);
434
+ else $$renderer.push("<!--[-1-->");
435
+ $$renderer.push(`<!--]--> `);
436
+ Chevron_right($$renderer, { class: "size-3.5 shrink-0 opacity-0 transition-transform group-hover/step:opacity-100 group-data-[state=open]/step:rotate-90 group-data-[state=open]/step:opacity-100" });
437
+ $$renderer.push(`<!---->`);
438
+ },
439
+ $$slots: { default: true }
440
+ });
441
+ $$renderer.push("<!--]-->");
442
+ } else {
443
+ $$renderer.push("<!--[!-->");
444
+ $$renderer.push("<!--]-->");
445
+ }
446
+ $$renderer.push(` `);
447
+ if (Collapsible_content) {
448
+ $$renderer.push("<!--[-->");
449
+ Collapsible_content($$renderer, {
450
+ children: ($$renderer) => {
451
+ $$renderer.push(`<div class="mt-2 mb-1 overflow-hidden rounded-xl border bg-muted/40 text-xs"><div class="border-b px-3 py-1.5 text-muted-foreground">${escape_html(prefs.technical ? summary ?? m.steps.command : m.steps.theCommand)}</div> `);
452
+ if (showCommand()) $$renderer.push(`<!--[0--><pre class="overflow-x-auto border-b px-3 py-2 font-mono break-all whitespace-pre-wrap">${escape_html(command ?? "…")}</pre>`);
453
+ else $$renderer.push("<!--[-1-->");
454
+ $$renderer.push(`<!--]--> `);
455
+ if (cwd && prefs.technical) $$renderer.push(`<!--[0--><div class="border-b px-3 py-1.5 font-mono text-muted-foreground">${escape_html(m.steps.inFolder(cwd))}</div>`);
456
+ else $$renderer.push("<!--[-1-->");
457
+ $$renderer.push(`<!--]--> <pre${attr_class(clsx(cn("max-h-72 overflow-auto px-3 py-2 font-mono break-all whitespace-pre-wrap", status() === "failed" ? "text-destructive" : status() === "blocked" ? "text-warning" : "text-muted-foreground")))}>${escape_html(output() || (status() === "running" ? m.steps.noOutputYet : m.steps.noOutput))}</pre> `);
458
+ if (result?.pictures.length) {
459
+ $$renderer.push(`<!--[0--><div data-media-group="" class="flex flex-wrap gap-1.5 border-t px-3 py-2"><!--[-->`);
460
+ const each_array = ensure_array_like(result.pictures);
461
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
462
+ let picture = each_array[$$index];
463
+ PictureButton($$renderer, {
464
+ conversationId,
465
+ picture
466
+ });
467
+ }
468
+ $$renderer.push(`<!--]--></div>`);
469
+ } else $$renderer.push("<!--[-1-->");
470
+ $$renderer.push(`<!--]--></div>`);
471
+ },
472
+ $$slots: { default: true }
473
+ });
474
+ $$renderer.push("<!--]-->");
475
+ } else {
476
+ $$renderer.push("<!--[!-->");
477
+ $$renderer.push("<!--]-->");
478
+ }
479
+ },
480
+ $$slots: { default: true }
481
+ });
482
+ $$renderer.push("<!--]-->");
483
+ } else {
484
+ $$renderer.push("<!--[!-->");
485
+ $$renderer.push("<!--]-->");
486
+ }
487
+ }
488
+ do {
489
+ $$settled = true;
490
+ $$inner_renderer = $$renderer.copy();
491
+ $$render_inner($$inner_renderer);
492
+ } while (!$$settled);
493
+ $$renderer.subsume($$inner_renderer);
494
+ });
495
+ }
496
+ //#endregion
497
+ //#region src/lib/components/chat/Activity.svelte
498
+ function Activity($$renderer, $$props) {
499
+ $$renderer.component(($$renderer) => {
500
+ /** This is the work happening right now. */
501
+ /** The agent is running (commands without a result are still to come, not abandoned). */
502
+ let { conversationId, part, results, toolOutput, active, running } = $$props;
503
+ const prefs = getPreferences();
504
+ const { m } = getI18n();
505
+ /** Set once the reader opens or closes the group; until then the preference decides. */
506
+ let choice = null;
507
+ const open = derived(() => choice ?? prefs.expandSteps);
508
+ const commands = derived(() => part.steps.filter((s) => s.type === "command"));
509
+ const failed = derived(() => commands().filter((c) => results[c.id] && resultStatus(results[c.id]) === "failed").length);
510
+ /** Auto mode stopped these; the agent says what it wanted, so people see it folded too. */
511
+ const blocked = derived(() => commands().filter((c) => results[c.id] && resultStatus(results[c.id]) === "blocked").length);
512
+ const stopped = derived(() => commands().some((c) => results[c.id] && resultStatus(results[c.id]) === "stopped"));
513
+ /** The last pictures its commands looked at (`nolune view`), shown while it's folded. */
514
+ const pictures = derived(() => commands().flatMap((c) => results[c.id]?.pictures ?? []).slice(-3));
515
+ const label = derived(() => {
516
+ if (active) return activeStepLabel(part, results, prefs.technical, m);
517
+ if (stopped()) return m.steps.stopped;
518
+ const duration = formatDuration(part.endedAt - part.startedAt, m);
519
+ if (commands().length === 0) return duration ? m.steps.thoughtFor(duration) : m.steps.thoughtForAMoment;
520
+ if (prefs.technical) {
521
+ const ran = m.steps.ranCommands(commands().length);
522
+ return duration ? `${ran} · ${duration}` : ran;
523
+ }
524
+ return duration ? m.steps.workedFor(duration) : m.steps.workedForAMoment;
525
+ });
526
+ let $$settled = true;
527
+ let $$inner_renderer;
528
+ function $$render_inner($$renderer) {
529
+ var bind_get = () => open();
530
+ var bind_set = (value) => choice = value;
531
+ if (Collapsible) {
532
+ $$renderer.push("<!--[-->");
533
+ Collapsible($$renderer, {
534
+ get open() {
535
+ return bind_get();
536
+ },
537
+ set open($$value) {
538
+ bind_set($$value);
539
+ },
540
+ children: ($$renderer) => {
541
+ if (Collapsible_trigger) {
542
+ $$renderer.push("<!--[-->");
543
+ Collapsible_trigger($$renderer, {
544
+ class: "group/activity flex max-w-full min-w-0 items-center gap-1 text-sm text-muted-foreground hover:text-foreground",
545
+ children: ($$renderer) => {
546
+ $$renderer.push(`<span${attr_class(clsx(cn("min-w-0 truncate", active && "thinking-shimmer", active && prefs.technical && "font-mono")))}>${escape_html(label())}</span> `);
547
+ if (failed() && !active && prefs.technical) $$renderer.push(`<!--[0--><span class="shrink-0 text-destructive">· ${escape_html(m.steps.failedCount(failed()))}</span>`);
548
+ else $$renderer.push("<!--[-1-->");
549
+ $$renderer.push(`<!--]--> `);
550
+ if (blocked() && !active) $$renderer.push(`<!--[0--><span class="shrink-0 text-warning">· ${escape_html(m.steps.blockedCount(blocked()))}</span>`);
551
+ else $$renderer.push("<!--[-1-->");
552
+ $$renderer.push(`<!--]--> `);
553
+ if (!open() && pictures().length) {
554
+ $$renderer.push(`<!--[0--><span class="flex shrink-0 items-center gap-1" aria-hidden="true"><span class="mr-0.5">·</span> <!--[-->`);
555
+ const each_array = ensure_array_like(pictures());
556
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
557
+ let picture = each_array[$$index];
558
+ $$renderer.push(`<img${attr("src", resolve("/api/c/[id]/media/[mediaId]", {
559
+ id: conversationId,
560
+ mediaId: picture.id
561
+ }))} alt="" loading="lazy" decoding="async" class="h-6 w-9 rounded border bg-muted object-cover"/>`);
562
+ }
563
+ $$renderer.push(`<!--]--></span>`);
564
+ } else $$renderer.push("<!--[-1-->");
565
+ $$renderer.push(`<!--]--> `);
566
+ Chevron_right($$renderer, { class: "size-4 shrink-0 transition-transform group-data-[state=open]/activity:rotate-90" });
567
+ $$renderer.push(`<!---->`);
568
+ },
569
+ $$slots: { default: true }
570
+ });
571
+ $$renderer.push("<!--]-->");
572
+ } else {
573
+ $$renderer.push("<!--[!-->");
574
+ $$renderer.push("<!--]-->");
575
+ }
576
+ $$renderer.push(` `);
577
+ if (Collapsible_content) {
578
+ $$renderer.push("<!--[-->");
579
+ Collapsible_content($$renderer, {
580
+ children: ($$renderer) => {
581
+ $$renderer.push(`<ol class="relative mt-3 mb-1 space-y-3 pl-7 before:absolute before:top-2.5 before:bottom-2.5 before:left-[9px] before:w-px before:bg-border"><!--[-->`);
582
+ const each_array_1 = ensure_array_like(part.steps);
583
+ for (let i = 0, $$length = each_array_1.length; i < $$length; i++) {
584
+ let step = each_array_1[i];
585
+ $$renderer.push(`<li class="relative min-w-0"><span class="absolute top-0.5 -left-7 flex size-5 items-center justify-center bg-background text-muted-foreground">`);
586
+ if (step.type === "command") {
587
+ $$renderer.push("<!--[0-->");
588
+ StepIcon($$renderer, {
589
+ name: step.icon,
590
+ class: "size-3.5"
591
+ });
592
+ } else if (step.type === "compaction") {
593
+ $$renderer.push("<!--[1-->");
594
+ List_collapse($$renderer, { class: "size-3.5" });
595
+ } else $$renderer.push(`<!--[-1--><span class="size-1.5 rounded-full bg-muted-foreground/60"></span>`);
596
+ $$renderer.push(`<!--]--></span> `);
597
+ if (step.type === "thinking") {
598
+ $$renderer.push("<!--[0-->");
599
+ if (step.text.trim()) {
600
+ $$renderer.push("<!--[0-->");
601
+ Markdown($$renderer, {
602
+ text: step.text,
603
+ class: "text-sm leading-relaxed text-muted-foreground"
604
+ });
605
+ } else $$renderer.push(`<!--[-1--><span class="text-sm text-muted-foreground">${escape_html(m.steps.thinkingDots)}</span>`);
606
+ $$renderer.push(`<!--]-->`);
607
+ } else if (step.type === "compaction") {
608
+ $$renderer.push("<!--[1-->");
609
+ if (step.summary.trim()) {
610
+ $$renderer.push("<!--[0-->");
611
+ if (Collapsible) {
612
+ $$renderer.push("<!--[-->");
613
+ Collapsible($$renderer, {
614
+ children: ($$renderer) => {
615
+ if (Collapsible_trigger) {
616
+ $$renderer.push("<!--[-->");
617
+ Collapsible_trigger($$renderer, {
618
+ class: "group/summary flex max-w-full min-w-0 items-center gap-1 text-left text-sm text-muted-foreground hover:text-foreground",
619
+ children: ($$renderer) => {
620
+ $$renderer.push(`<span class="min-w-0 truncate">${escape_html(m.steps.summarized)}</span> `);
621
+ Chevron_right($$renderer, { class: "size-3.5 shrink-0 transition-transform group-data-[state=open]/summary:rotate-90" });
622
+ $$renderer.push(`<!---->`);
623
+ },
624
+ $$slots: { default: true }
625
+ });
626
+ $$renderer.push("<!--]-->");
627
+ } else {
628
+ $$renderer.push("<!--[!-->");
629
+ $$renderer.push("<!--]-->");
630
+ }
631
+ $$renderer.push(` `);
632
+ if (Collapsible_content) {
633
+ $$renderer.push("<!--[-->");
634
+ Collapsible_content($$renderer, {
635
+ children: ($$renderer) => {
636
+ $$renderer.push(`<p class="mt-1.5 text-xs text-muted-foreground">${escape_html(step.asked ? m.steps.summaryAsked : m.steps.summaryHint)}</p> `);
637
+ Markdown($$renderer, {
638
+ text: step.summary,
639
+ class: "mt-1.5 text-sm leading-relaxed text-muted-foreground"
640
+ });
641
+ $$renderer.push(`<!---->`);
642
+ },
643
+ $$slots: { default: true }
644
+ });
645
+ $$renderer.push("<!--]-->");
646
+ } else {
647
+ $$renderer.push("<!--[!-->");
648
+ $$renderer.push("<!--]-->");
649
+ }
650
+ },
651
+ $$slots: { default: true }
652
+ });
653
+ $$renderer.push("<!--]-->");
654
+ } else {
655
+ $$renderer.push("<!--[!-->");
656
+ $$renderer.push("<!--]-->");
657
+ }
658
+ } else $$renderer.push(`<!--[-1--><span class="text-sm text-muted-foreground">${escape_html(m.steps.summarizing)}…</span>`);
659
+ $$renderer.push(`<!--]-->`);
660
+ } else {
661
+ $$renderer.push("<!--[-1-->");
662
+ CommandStep($$renderer, {
663
+ conversationId,
664
+ command: step.command,
665
+ cwd: step.cwd,
666
+ summary: step.summary,
667
+ result: results[step.id],
668
+ liveOutput: toolOutput?.id === step.id ? toolOutput.text : null,
669
+ running
670
+ });
671
+ }
672
+ $$renderer.push(`<!--]--></li>`);
673
+ }
674
+ $$renderer.push(`<!--]--></ol>`);
675
+ },
676
+ $$slots: { default: true }
677
+ });
678
+ $$renderer.push("<!--]-->");
679
+ } else {
680
+ $$renderer.push("<!--[!-->");
681
+ $$renderer.push("<!--]-->");
682
+ }
683
+ },
684
+ $$slots: { default: true }
685
+ });
686
+ $$renderer.push("<!--]-->");
687
+ } else {
688
+ $$renderer.push("<!--[!-->");
689
+ $$renderer.push("<!--]-->");
690
+ }
691
+ }
692
+ do {
693
+ $$settled = true;
694
+ $$inner_renderer = $$renderer.copy();
695
+ $$render_inner($$inner_renderer);
696
+ } while (!$$settled);
697
+ $$renderer.subsume($$inner_renderer);
698
+ });
699
+ }
700
+ //#endregion
701
+ //#region src/lib/components/chat/MemoryLook.svelte
702
+ function MemoryLook($$renderer, $$props) {
703
+ $$renderer.component(($$renderer) => {
704
+ /**
705
+ * What nolune saved to memory by itself once the chat went quiet, after the last message it read:
706
+ * a folded line, and each change with its note and Undo. Undoing shows here live.
707
+ */
708
+ let { look, slug } = $$props;
709
+ const { m } = getI18n();
710
+ const t = derived(() => m.memory.changes);
711
+ const allUndone = derived(() => look.changes.every((change) => change.undone));
712
+ if (Collapsible) {
713
+ $$renderer.push("<!--[-->");
714
+ Collapsible($$renderer, {
715
+ class: "rounded-2xl border px-4 py-2.5 text-sm",
716
+ children: ($$renderer) => {
717
+ if (Collapsible_trigger) {
718
+ $$renderer.push("<!--[-->");
719
+ Collapsible_trigger($$renderer, {
720
+ class: "group/memory flex w-full min-w-0 items-center gap-1.5 text-left text-xs font-medium text-muted-foreground hover:text-foreground",
721
+ children: ($$renderer) => {
722
+ Brain($$renderer, { class: "size-3.5 shrink-0" });
723
+ $$renderer.push(`<!----> <span${attr_class(clsx(cn("min-w-0 truncate", allUndone() && "line-through")))}>${escape_html(t().saved(look.changes.length))}</span> `);
724
+ Chevron_right($$renderer, { class: "size-3.5 shrink-0 transition-transform group-data-[state=open]/memory:rotate-90" });
725
+ $$renderer.push(`<!---->`);
726
+ },
727
+ $$slots: { default: true }
728
+ });
729
+ $$renderer.push("<!--]-->");
730
+ } else {
731
+ $$renderer.push("<!--[!-->");
732
+ $$renderer.push("<!--]-->");
733
+ }
734
+ $$renderer.push(` `);
735
+ if (Collapsible_content) {
736
+ $$renderer.push("<!--[-->");
737
+ Collapsible_content($$renderer, {
738
+ children: ($$renderer) => {
739
+ $$renderer.push(`<ul class="mt-2.5 space-y-2.5 pb-1"><!--[-->`);
740
+ const each_array = ensure_array_like(look.changes);
741
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
742
+ let change = each_array[$$index];
743
+ {
744
+ function note($$renderer, topic) {
745
+ $$renderer.push(`<a${attr("href", `${stringify(resolve("/p/[slug]/memory", { slug }))}#${stringify(memoryAnchor(change.note))}`)} class="underline-offset-2 hover:text-foreground hover:underline"${attr("aria-label", t().openNote(topic))}>${escape_html(topic)}</a>`);
746
+ }
747
+ MemoryChangeItem($$renderer, {
748
+ change,
749
+ slug,
750
+ note});
751
+ }
752
+ }
753
+ $$renderer.push(`<!--]--></ul>`);
754
+ },
755
+ $$slots: { default: true }
756
+ });
757
+ $$renderer.push("<!--]-->");
758
+ } else {
759
+ $$renderer.push("<!--[!-->");
760
+ $$renderer.push("<!--]-->");
761
+ }
762
+ },
763
+ $$slots: { default: true }
764
+ });
765
+ $$renderer.push("<!--]-->");
766
+ } else {
767
+ $$renderer.push("<!--[!-->");
768
+ $$renderer.push("<!--]-->");
769
+ }
770
+ });
771
+ }
772
+ //#endregion
773
+ //#region src/lib/components/chat/MediaViewer.svelte
774
+ function MediaViewer($$renderer, $$props) {
775
+ $$renderer.component(($$renderer) => {
776
+ let { gallery = void 0 } = $$props;
777
+ const { m } = getI18n();
778
+ /** Starts at the clicked picture each time the viewer opens. */
779
+ let index = derived(() => gallery?.index ?? 0);
780
+ const picture = derived(() => gallery?.pictures[index()]);
781
+ const count = derived(() => gallery?.pictures.length ?? 0);
782
+ function go(step) {
783
+ index(Math.min(Math.max(index() + step, 0), count() - 1));
784
+ }
785
+ function onKeydown(event) {
786
+ if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;
787
+ if (event.key === "ArrowLeft") go(-1);
788
+ else if (event.key === "ArrowRight") go(1);
789
+ else return;
790
+ event.preventDefault();
791
+ }
792
+ /**
793
+ * A sideways swipe anywhere in the viewer goes to the next picture or back, so one that starts
794
+ * on an arrow over the picture counts too. The viewer keeps sideways swipes from the browser
795
+ * meanwhile, which would take one to the right as going back a page.
796
+ */
797
+ const swipes = derived(() => count() > 1 && true);
798
+ let touch = null;
799
+ const SWIPE = 48;
800
+ function onTouchstart(event) {
801
+ const t = event.touches[0];
802
+ touch = swipes() && event.touches.length === 1 ? {
803
+ x: t.clientX,
804
+ y: t.clientY
805
+ } : null;
806
+ }
807
+ function onTouchend(event) {
808
+ const start = touch;
809
+ touch = null;
810
+ const t = event.changedTouches[0];
811
+ if (!start || !t) return;
812
+ const dx = t.clientX - start.x;
813
+ const dy = t.clientY - start.y;
814
+ if (Math.abs(dx) > SWIPE && Math.abs(dx) > Math.abs(dy) * 1.5) go(dx < 0 ? 1 : -1);
815
+ }
816
+ function restoreFocus(event) {
817
+ event.preventDefault();
818
+ }
819
+ if (Dialog) {
820
+ $$renderer.push("<!--[-->");
821
+ Dialog($$renderer, {
822
+ open: gallery !== null,
823
+ onOpenChange: (open) => !open && (gallery = null),
824
+ children: ($$renderer) => {
825
+ if (Dialog_content) {
826
+ $$renderer.push("<!--[-->");
827
+ Dialog_content($$renderer, {
828
+ onCloseAutoFocus: restoreFocus,
829
+ onkeydown: onKeydown,
830
+ ontouchstart: onTouchstart,
831
+ ontouchend: onTouchend,
832
+ ontouchcancel: () => touch = null,
833
+ class: cn("max-h-[calc(100dvh-2rem-env(safe-area-inset-top)-env(safe-area-inset-bottom))] grid-cols-1 gap-3 p-3 sm:max-w-[min(72rem,calc(100%-2rem-env(safe-area-inset-left)-env(safe-area-inset-right)))]", swipes() && "touch-pan-y touch-pinch-zoom"),
834
+ children: ($$renderer) => {
835
+ if (picture()) {
836
+ $$renderer.push("<!--[0-->");
837
+ if (Dialog_title) {
838
+ $$renderer.push("<!--[-->");
839
+ Dialog_title($$renderer, {
840
+ class: "sr-only",
841
+ children: ($$renderer) => {
842
+ $$renderer.push(`<!---->${escape_html(picture().alt || picture().name)}`);
843
+ },
844
+ $$slots: { default: true }
845
+ });
846
+ $$renderer.push("<!--]-->");
847
+ } else {
848
+ $$renderer.push("<!--[!-->");
849
+ $$renderer.push("<!--]-->");
850
+ }
851
+ $$renderer.push(` <img${attr("src", picture().src)}${attr("alt", picture().alt)} class="mx-auto max-h-[calc(100dvh-8rem-env(safe-area-inset-top)-env(safe-area-inset-bottom))] w-auto max-w-full rounded-3xl object-contain"/> `);
852
+ if (index() > 0) {
853
+ $$renderer.push("<!--[0-->");
854
+ Button($$renderer, {
855
+ variant: "secondary",
856
+ size: "icon",
857
+ class: "absolute top-1/2 left-5 -translate-y-1/2 shadow-md",
858
+ onclick: () => go(-1),
859
+ children: ($$renderer) => {
860
+ Chevron_left($$renderer, {});
861
+ $$renderer.push(`<!----> <span class="sr-only">${escape_html(m.attachments.previous)}</span>`);
862
+ },
863
+ $$slots: { default: true }
864
+ });
865
+ } else $$renderer.push("<!--[-1-->");
866
+ $$renderer.push(`<!--]--> `);
867
+ if (index() < count() - 1) {
868
+ $$renderer.push("<!--[0-->");
869
+ Button($$renderer, {
870
+ variant: "secondary",
871
+ size: "icon",
872
+ class: "absolute top-1/2 right-5 -translate-y-1/2 shadow-md",
873
+ onclick: () => go(1),
874
+ children: ($$renderer) => {
875
+ Chevron_right($$renderer, {});
876
+ $$renderer.push(`<!----> <span class="sr-only">${escape_html(m.attachments.next)}</span>`);
877
+ },
878
+ $$slots: { default: true }
879
+ });
880
+ } else $$renderer.push("<!--[-1-->");
881
+ $$renderer.push(`<!--]--> <div class="flex items-center gap-3 pl-3"><span class="min-w-0 flex-1 truncate text-muted-foreground">`);
882
+ if (count() > 1) $$renderer.push(`<!--[0--><span class="text-foreground tabular-nums">${escape_html(m.attachments.position(index() + 1, count()))}</span> ·`);
883
+ else $$renderer.push("<!--[-1-->");
884
+ $$renderer.push(`<!--]--> ${escape_html(picture().alt || picture().name)}</span> <a${attr("href", picture().download)}${attr("download", picture().name)} rel="external"${attr_class(clsx(buttonVariants({
885
+ variant: "outline",
886
+ size: "sm"
887
+ })))}>`);
888
+ Download($$renderer, {});
889
+ $$renderer.push(`<!----> ${escape_html(m.attachments.download)}</a></div>`);
890
+ } else $$renderer.push("<!--[-1-->");
891
+ $$renderer.push(`<!--]-->`);
892
+ },
893
+ $$slots: { default: true }
894
+ });
895
+ $$renderer.push("<!--]-->");
896
+ } else {
897
+ $$renderer.push("<!--[!-->");
898
+ $$renderer.push("<!--]-->");
899
+ }
900
+ },
901
+ $$slots: { default: true }
902
+ });
903
+ $$renderer.push("<!--]-->");
904
+ } else {
905
+ $$renderer.push("<!--[!-->");
906
+ $$renderer.push("<!--]-->");
907
+ }
908
+ bind_props($$props, { gallery });
909
+ });
910
+ }
911
+ //#endregion
912
+ //#region src/lib/components/chat/MessageAttachments.svelte
913
+ function MessageAttachments($$renderer, $$props) {
914
+ $$renderer.component(($$renderer) => {
915
+ let { conversationId, attachments } = $$props;
916
+ const i18n = getI18n();
917
+ const { m } = i18n;
918
+ function url(id) {
919
+ return resolve("/api/c/[id]/media/[mediaId]", {
920
+ id: conversationId,
921
+ mediaId: id
922
+ });
923
+ }
924
+ $$renderer.push(`<div class="flex max-w-[85%] flex-wrap justify-end gap-1.5 sm:max-w-[70%]"><!--[-->`);
925
+ const each_array = ensure_array_like(attachments);
926
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
927
+ let a = each_array[$$index];
928
+ $$renderer.push(`<div class="flex max-w-full flex-col items-end gap-1">`);
929
+ if (a.viewable) {
930
+ $$renderer.push("<!--[0-->");
931
+ PictureButton($$renderer, {
932
+ conversationId,
933
+ picture: a
934
+ });
935
+ } else {
936
+ $$renderer.push(`<!--[-1--><a${attr("href", `${stringify(url(a.id))}?download`)}${attr("download", a.name)} class="inline-flex max-w-full items-center gap-3 rounded-xl border px-3 py-2 leading-snug hover:bg-muted">`);
937
+ File($$renderer, { class: "size-5 shrink-0 text-muted-foreground" });
938
+ $$renderer.push(`<!----> <span class="min-w-0"><span class="block truncate text-sm font-medium">${escape_html(a.name)}</span> <span class="block truncate text-xs text-muted-foreground">${escape_html(formatBytes(a.bytes, i18n))}</span></span> `);
939
+ Download($$renderer, { class: "size-4 shrink-0 text-muted-foreground" });
940
+ $$renderer.push(`<!----></a>`);
941
+ }
942
+ $$renderer.push(`<!--]--> `);
943
+ if (a.note) $$renderer.push(`<!--[0--><span class="max-w-72 text-right text-xs text-muted-foreground">${escape_html(m.attachments.onlyPath(a.note))}</span>`);
944
+ else $$renderer.push("<!--[-1-->");
945
+ $$renderer.push(`<!--]--></div>`);
946
+ }
947
+ $$renderer.push(`<!--]--></div>`);
948
+ });
949
+ }
950
+ //#endregion
951
+ //#region src/lib/components/chat/PlanUsageNote.svelte
952
+ function PlanUsageNote($$renderer, $$props) {
953
+ $$renderer.component(($$renderer) => {
954
+ /**
955
+ * Under the composer, from 80% of a nolune plan's limit: the fullest, as a short bar, and when it
956
+ * starts again. Nothing below that.
957
+ */
958
+ let { usage } = $$props;
959
+ const { m, intl } = getI18n();
960
+ const worst = derived(() => {
961
+ const rows = planLimits(usage).map((row) => ({
962
+ ...row,
963
+ label: m.planUsage[row.key],
964
+ percent: usedPercent(row.spent, row.limit)
965
+ }));
966
+ return rows.length ? rows.reduce((a, b) => b.percent > a.percent ? b : a) : null;
967
+ });
968
+ /** "This month: 85% used · renews 1 Nov", or "5 hours: limit reached · resets 17:44". */
969
+ const text = derived(() => {
970
+ if (!worst()) return "";
971
+ const said = worst().percent >= 100 ? m.planUsage.reached(worst().label) : `${worst().label}: ${m.planUsage.used(worst().percent)}`;
972
+ const again = whenItResets(worst(), intl, m.planUsage);
973
+ return again ? `${said} · ${again}` : said;
974
+ });
975
+ if (worst() && worst().percent >= 80) $$renderer.push(`<!--[0--><div class="mx-auto mt-2 flex max-w-md items-center justify-center gap-2 text-xs" role="status" aria-live="polite"><span class="shrink-0 text-muted-foreground">${escape_html(m.planUsage.title)}</span> <span class="h-1.5 w-16 shrink-0 overflow-hidden rounded-full bg-muted"><span${attr_class(clsx(cn("block h-full rounded-full", worst().percent >= 100 ? "bg-destructive" : "bg-warning")))}${attr_style("", { width: `${stringify(worst().percent)}%` })}></span></span> <span${attr_class(clsx(cn("min-w-0 truncate tabular-nums", worst().percent >= 100 ? "text-destructive" : "text-warning")))}>${escape_html(text())}</span></div>`);
976
+ else $$renderer.push("<!--[-1-->");
977
+ $$renderer.push(`<!--]-->`);
978
+ });
979
+ }
980
+ //#endregion
981
+ //#region src/lib/components/chat/TypingBubble.svelte
982
+ function TypingBubble($$renderer, $$props) {
983
+ $$renderer.component(($$renderer) => {
984
+ /** Whose: nolune's on the left, people's on the right. */
985
+ let { side = "start", class: className } = $$props;
986
+ $$renderer.push(`<div${attr_class(clsx(cn("bubble relative w-fit pb-1.5", side === "end" ? "end -mr-1.5 pr-1.5" : "-ml-1.5 pl-1.5", className)), "svelte-1wm41bi")} aria-hidden="true"><span${attr_class(clsx(cn("absolute bottom-0 size-[7px] rounded-full bg-bubble", side === "end" ? "right-0" : "left-0")), "svelte-1wm41bi")}></span> <span${attr_class(clsx(cn("absolute bottom-[5px] size-[13px] rounded-full bg-bubble", side === "end" ? "right-[5px]" : "left-[5px]")), "svelte-1wm41bi")}></span> <div class="relative flex h-11 items-center gap-1 rounded-[22px] bg-bubble px-4 svelte-1wm41bi"><!--[-->`);
987
+ const each_array = ensure_array_like([
988
+ 0,
989
+ 1,
990
+ 2
991
+ ]);
992
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
993
+ let i = each_array[$$index];
994
+ $$renderer.push(`<span class="dot size-2 rounded-full bg-muted-foreground svelte-1wm41bi"${attr_style("", { "animation-delay": `${stringify(i * .15)}s` })}></span>`);
995
+ }
996
+ $$renderer.push(`<!--]--></div></div>`);
997
+ });
998
+ }
999
+ //#endregion
1000
+ //#region src/lib/components/chat/TypingIndicator.svelte
1001
+ function TypingIndicator($$renderer, $$props) {
1002
+ $$renderer.component(($$renderer) => {
1003
+ /** The others writing in the chat, in the order they started. */
1004
+ /** Members' profile pictures by user id. */
1005
+ let { typists, pictures } = $$props;
1006
+ const { m } = getI18n();
1007
+ $$renderer.push(`<div class="flex flex-col items-end gap-1" role="status"><div class="flex max-w-full items-center gap-1.5 px-1 text-xs text-muted-foreground"><span class="flex shrink-0 -space-x-1"><!--[-->`);
1008
+ const each_array = ensure_array_like(typists);
1009
+ for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
1010
+ let typist = each_array[$$index];
1011
+ UserAvatar($$renderer, {
1012
+ name: typist.name,
1013
+ picture: pictures[typist.id],
1014
+ class: "size-4 text-[9px] ring-2 ring-background"
1015
+ });
1016
+ }
1017
+ $$renderer.push(`<!--]--></span> <span class="truncate">${escape_html(m.chat.typing(typists.map((typist) => typist.name)))}</span></div> `);
1018
+ TypingBubble($$renderer, { side: "end" });
1019
+ $$renderer.push(`<!----></div>`);
1020
+ });
1021
+ }
1022
+ /** The key a message keeps from waiting in line to being in the transcript, as core keys it. */
1023
+ function messageKey(id) {
1024
+ return `m${id}`;
1025
+ }
1026
+ //#endregion
1027
+ //#region src/lib/components/Chat.svelte
1028
+ function Chat($$renderer, $$props) {
1029
+ $$renderer.component(($$renderer) => {
1030
+ /** Providers holding pictures and PDFs of this chat that another can't open. */
1031
+ /** A background run nobody has continued yet. */
1032
+ /** How its commands run, until the chat says otherwise live. */
1033
+ /** A subagent's own chat: only the agent that started it writes here. */
1034
+ /** The models the chat can switch to. */
1035
+ /** Who is looking: their own messages go without a name. */
1036
+ /** Members' profile pictures by user id. */
1037
+ /** The profile's folders, and the one this chat is in. */
1038
+ /** The profile's assistant avatar, shown with every reply. */
1039
+ let { conversation, efforts, presets, defaultPresetId, me, pictures, folders, folderId, avatar } = $$props;
1040
+ const prefs = getPreferences();
1041
+ const { m } = getI18n();
1042
+ /** What reloading the chat's tools would bring, a phrase each. */
1043
+ function changeLines(changes) {
1044
+ const say = m.chat.tools;
1045
+ return [
1046
+ [changes.services?.added, say.newServices],
1047
+ [changes.services?.changed, say.changedServices],
1048
+ [changes.services?.removed, say.removedServices],
1049
+ [changes.skills?.added, say.newSkills],
1050
+ [changes.skills?.changed, say.changedSkills],
1051
+ [changes.skills?.removed, say.removedSkills]
1052
+ ].flatMap(([names, phrase]) => names?.length ? [phrase(names.join(", "))] : []);
1053
+ }
1054
+ /** Reasoning levels' names, for the dialog that asks before changing it. */
1055
+ const effortLabels = m.model.efforts;
1056
+ const chat = new ChatState();
1057
+ let text = "";
1058
+ const attachments = new Attachments(() => page.params.slug ?? "", m);
1059
+ let sending = false;
1060
+ let actionError = null;
1061
+ let stickToBottom = true;
1062
+ /** Sending a message turns a background run into a normal conversation. */
1063
+ let continued = false;
1064
+ let renaming = null;
1065
+ let reloading = false;
1066
+ /** What reloading the chat's tools did, until the next message. */
1067
+ let reloaded = null;
1068
+ let deleteOpen = false;
1069
+ let compactOpen = false;
1070
+ let creatingFolder = false;
1071
+ const folder = derived(() => folders.find((f) => f.id === folderId));
1072
+ let viewing = null;
1073
+ /** The messages scroll under the composer, so they end this far up. */
1074
+ let composerHeight = 160;
1075
+ let textarea = null;
1076
+ /** Tells the others in the chat when this person is writing in it. */
1077
+ const typing = new TypingReporter((typing) => fetch(`/api/c/${conversation.id}/typing`, {
1078
+ method: "POST",
1079
+ headers: { "content-type": "application/json" },
1080
+ body: JSON.stringify({ typing }),
1081
+ keepalive: true
1082
+ }));
1083
+ onDestroy(() => typing.stop());
1084
+ /** The others writing in the chat, shown where their message will land. */
1085
+ const typists = derived(() => chat.typing.filter((typist) => typist.id !== page.data.user?.id));
1086
+ /** The model and reasoning level: anyone in the profile can change them, which arrives live. */
1087
+ const model = derived(() => chat.model ?? {
1088
+ presetId: conversation.presetId,
1089
+ presetName: conversation.presetName,
1090
+ provider: conversation.provider,
1091
+ effort: conversation.effort,
1092
+ contextWindow: conversation.contextWindow
1093
+ });
1094
+ /** How its commands run: anyone can have them checked, only admins can turn that off. */
1095
+ const commands = derived(() => chat.commands ?? conversation.commands);
1096
+ async function changeCommands(mode) {
1097
+ if (mode === (commands().mode ?? commands().fallback)) return;
1098
+ const res = await post("commands", { mode });
1099
+ if (res) chat.apply({
1100
+ type: "commands",
1101
+ commands: await res.json()
1102
+ });
1103
+ }
1104
+ /** A removed preset isn't in the list, but the chat still runs on its model: it shows as `current`. */
1105
+ const listed = derived(() => presets.some((p) => p.id === model().presetId));
1106
+ /** A chat on the nolune plan says under the composer when a limit is nearly used up. */
1107
+ const planNear = derived(() => {
1108
+ const usage = planUsage.current?.usage;
1109
+ if (!usage) return false;
1110
+ return planLimits(usage).some((limit) => usedPercent(limit.spent, limit.limit) >= 80);
1111
+ });
1112
+ const menuPresets = derived(() => listed() ? presets : [{
1113
+ id: "current",
1114
+ name: model().presetName,
1115
+ provider: model().provider
1116
+ }, ...presets]);
1117
+ /** A change waiting for the person to accept that the chat's cache starts over. */
1118
+ let confirming = null;
1119
+ /** The model menu, closed while a change is asked about so it doesn't show one not yet made. */
1120
+ let modelMenuOpen = false;
1121
+ const switchingTo = derived(() => {
1122
+ const change = confirming;
1123
+ return change && "presetId" in change ? presets.find((p) => p.id === change.presetId) : void 0;
1124
+ });
1125
+ const title = derived(() => chat.title || conversation.title || chat.messages.find((message) => message.kind === "human")?.text.slice(0, 80) || m.common.newChat);
1126
+ run(() => conversation.title);
1127
+ const entries = derived(() => buildTranscript(chat.messages, chat.live, chat.running, chat.memory));
1128
+ /** The newest entry, past what the note-taker saved after it. */
1129
+ const newest = derived(() => entries().findLast((entry) => entry.type !== "memory"));
1130
+ /**
1131
+ * Usage of the last reply, and summed over the whole conversation, summaries of it included
1132
+ * (the runner's, and those Claude wrote at the start of a reply).
1133
+ */
1134
+ const usage = derived(() => {
1135
+ let last = null;
1136
+ /** A summary no model call has read yet: what it'll read of the conversation. */
1137
+ let summary = null;
1138
+ const total = {
1139
+ input: 0,
1140
+ cacheRead: 0,
1141
+ cacheWrite: 0,
1142
+ output: 0
1143
+ };
1144
+ for (const m of chat.messages) {
1145
+ if (m.kind !== "assistant" && m.kind !== "compaction" || !m.usage) continue;
1146
+ if (m.kind === "assistant") last = m.usage;
1147
+ summary = m.kind === "compaction" ? m.usage.output : null;
1148
+ for (const part of [m.usage, m.usage.compaction]) {
1149
+ if (!part) continue;
1150
+ total.input += part.input;
1151
+ total.cacheRead += part.cacheRead;
1152
+ total.cacheWrite += part.cacheWrite;
1153
+ total.output += part.output;
1154
+ }
1155
+ }
1156
+ return last && {
1157
+ last,
1158
+ total,
1159
+ summary
1160
+ };
1161
+ });
1162
+ const contextUsed = derived(() => usage() && (usage().summary ?? promptTokens(usage().last) + usage().last.output));
1163
+ /**
1164
+ * Whether someone can have the model summarize the chat now: not while it works, not on the
1165
+ * Claude plan (Claude Code summarizes its own sessions) or in a subagent's chat, and only with a
1166
+ * reply since the latest summary.
1167
+ */
1168
+ const compactable = derived(() => model().provider !== "claude-plan" && !conversation.subagent && repliedSinceSummary(chat.messages));
1169
+ function repliedSinceSummary(messages) {
1170
+ const summarized = messages.findLastIndex((m) => m.kind === "compaction" || m.kind === "assistant" && m.blocks.some((b) => b.type === "compaction"));
1171
+ return messages.slice(summarized + 1).some((m) => m.kind === "assistant");
1172
+ }
1173
+ async function compact() {
1174
+ compactOpen = false;
1175
+ stickToBottom = true;
1176
+ await post("compact");
1177
+ }
1178
+ /**
1179
+ * Replies whose request processed again what the previous request had cached, keyed by id.
1180
+ * `expired`: the conversation sat idle past the cache's lifetime before that request.
1181
+ * `elsewhere`: on OpenAI, with the same model, so the request most likely reached a server
1182
+ * without the chat's cache.
1183
+ */
1184
+ const cacheMisses = derived(() => {
1185
+ const misses = {};
1186
+ let previous = null;
1187
+ let resumedAt = 0;
1188
+ for (const m of chat.messages) {
1189
+ if (m.kind === "compaction") previous = null;
1190
+ if (m.kind !== "assistant") {
1191
+ resumedAt = Math.max(resumedAt, m.createdAt);
1192
+ continue;
1193
+ }
1194
+ if (!m.usage) continue;
1195
+ if (previous && !m.usage.compaction) {
1196
+ const tokens = cacheMissTokens(previous.usage, m.usage, previous.provider);
1197
+ const expired = resumedAt - previous.at > cacheTtlMs(conversation.cacheTtl);
1198
+ const elsewhere = cachesWholePrompt(previous.provider) && m.provider === previous.provider && m.model === previous.model;
1199
+ if (tokens > 0) misses[m.id] = {
1200
+ tokens,
1201
+ expired,
1202
+ elsewhere
1203
+ };
1204
+ }
1205
+ previous = {
1206
+ usage: m.usage,
1207
+ at: m.createdAt,
1208
+ provider: m.provider,
1209
+ model: m.model
1210
+ };
1211
+ resumedAt = 0;
1212
+ }
1213
+ return misses;
1214
+ });
1215
+ function cacheSummary(label, u) {
1216
+ return m.chat.cacheSummary(label, formatPercent(cacheHitRate(u)), formatTokens(u.cacheRead), formatTokens(u.cacheWrite), formatTokens(u.input));
1217
+ }
1218
+ /** Cache misses within one reply, which may span several model calls. */
1219
+ function replyMiss(reply) {
1220
+ const misses = reply.messageIds.flatMap((id) => cacheMisses()[id] ?? []);
1221
+ if (!misses.length) return null;
1222
+ return {
1223
+ tokens: misses.reduce((n, miss) => n + miss.tokens, 0),
1224
+ reason: misses.some((miss) => miss.expired) ? m.chat.cacheExpired(conversation.cacheTtl) : misses.every((miss) => miss.elsewhere) ? m.chat.cacheElsewhere : m.chat.cacheBroken
1225
+ };
1226
+ }
1227
+ /** A summary at the end counts as what came before it, as in the runner (awaitsReply). */
1228
+ const unanswered = derived(() => !chat.running && chat.queued.length === 0 && chat.messages.length > 0 && chat.messages.findLast((m) => m.kind !== "compaction")?.kind !== "assistant");
1229
+ /** The newest entry when it's a reply: its avatar shows what nolune is doing. Older ones hold still. */
1230
+ const liveReply = derived(() => newest()?.type === "reply" ? newest() : null);
1231
+ /** The step nolune is on while it runs, in the words its group of steps uses. */
1232
+ const step = derived(() => {
1233
+ const tail = chat.running ? liveReply()?.parts.at(-1) : void 0;
1234
+ if (!tail || tail.type === "text") return chat.running ? {
1235
+ label: tail ? m.chat.writing : m.chat.thinking,
1236
+ command: false
1237
+ } : null;
1238
+ const last = tail.steps.at(-1);
1239
+ return {
1240
+ label: activeStepLabel(tail, chat.results, prefs.technical, m),
1241
+ command: last?.type === "command" && !chat.results[last.id] && !chat.live.some((block) => block?.type === "tool" && block.id === last.id)
1242
+ };
1243
+ });
1244
+ const mood = derived(() => {
1245
+ if (chat.error || unanswered()) return "blocked";
1246
+ if (chat.running) {
1247
+ if (chat.queued.length) return "waiting";
1248
+ return step()?.command ? "working" : "thinking";
1249
+ }
1250
+ return "idle";
1251
+ });
1252
+ /** The response if the request went through; otherwise null, with the reason shown. */
1253
+ async function post(path, body) {
1254
+ actionError = null;
1255
+ const res = await fetch(`/api/c/${conversation.id}/${path}`, {
1256
+ method: "POST",
1257
+ headers: { "content-type": "application/json" },
1258
+ body: body === void 0 ? void 0 : JSON.stringify(body)
1259
+ });
1260
+ if (!res.ok) actionError = errorMessage(await res.text(), res.headers.get("content-type")) ?? m.errors.requestFailed(res.status);
1261
+ return res.ok ? res : null;
1262
+ }
1263
+ async function send() {
1264
+ const message = text.trim();
1265
+ const uploads = attachments.ids;
1266
+ if (!message && !uploads.length || sending || attachments.uploading) return;
1267
+ sending = true;
1268
+ stickToBottom = true;
1269
+ await typing.settled();
1270
+ if (await post("messages", {
1271
+ text: message,
1272
+ uploads
1273
+ })) {
1274
+ reloaded = null;
1275
+ typing.sent();
1276
+ text = "";
1277
+ attachments.clear();
1278
+ continued = true;
1279
+ invalidate();
1280
+ }
1281
+ sending = false;
1282
+ textarea?.focus();
1283
+ }
1284
+ /**
1285
+ * Reload tools: the chat gets the profile's skills and connected services as they are now, and
1286
+ * its next reply reads it all again.
1287
+ */
1288
+ async function reloadTools() {
1289
+ reloading = true;
1290
+ reloaded = null;
1291
+ const res = await post("tools");
1292
+ if (res) {
1293
+ const { changes } = await res.json();
1294
+ chat.toolChanges = null;
1295
+ reloaded = changes ? m.chat.tools.reloaded : m.chat.tools.upToDate;
1296
+ }
1297
+ reloading = false;
1298
+ }
1299
+ async function move(target) {
1300
+ actionError = null;
1301
+ try {
1302
+ await moveChat(conversation.id, target);
1303
+ } catch (err) {
1304
+ actionError = err instanceof Error ? err.message : String(err);
1305
+ }
1306
+ }
1307
+ /**
1308
+ * Another model or reasoning level. Once the chat has a reply, its cache starts over with the
1309
+ * change, so that is asked first.
1310
+ */
1311
+ function requestChange(change) {
1312
+ if ("presetId" in change ? change.presetId === model().presetId || change.presetId === "current" : change.effort === model().effort) return;
1313
+ if (chat.messages.some((m) => m.kind === "assistant")) {
1314
+ confirming = change;
1315
+ modelMenuOpen = false;
1316
+ } else applyChange(change);
1317
+ }
1318
+ async function applyChange(change) {
1319
+ confirming = null;
1320
+ const res = await post("presetId" in change ? "preset" : "effort", change);
1321
+ if (res) chat.apply({
1322
+ type: "model",
1323
+ model: await res.json()
1324
+ });
1325
+ }
1326
+ function humanBubble($$renderer, key, sender, body, files, pending) {
1327
+ const senderName = sender.name;
1328
+ const mine = sender.id === me;
1329
+ $$renderer.push(`<div data-media-group="" class="group/human flex flex-col items-end gap-1">`);
1330
+ if (!mine || pending) {
1331
+ $$renderer.push(`<!--[0--><div class="flex items-center gap-1.5 px-1 text-xs text-muted-foreground">`);
1332
+ if (pending) {
1333
+ $$renderer.push("<!--[0-->");
1334
+ Clock($$renderer, { class: "size-3" });
1335
+ $$renderer.push(`<!----> ${escape_html(mine ? m.chat.readsAfterStep : `${senderName} · ${m.chat.readsAfterStep}`)}`);
1336
+ } else {
1337
+ $$renderer.push("<!--[-1-->");
1338
+ UserAvatar($$renderer, {
1339
+ name: senderName,
1340
+ picture: sender.id && pictures[sender.id],
1341
+ class: "size-4 text-[9px]"
1342
+ });
1343
+ $$renderer.push(`<!----> ${escape_html(senderName)}`);
1344
+ }
1345
+ $$renderer.push(`<!--]--></div>`);
1346
+ } else $$renderer.push("<!--[-1-->");
1347
+ $$renderer.push(`<!--]--> `);
1348
+ if (files.length) {
1349
+ $$renderer.push("<!--[0-->");
1350
+ MessageAttachments($$renderer, {
1351
+ conversationId: conversation.id,
1352
+ attachments: files
1353
+ });
1354
+ } else $$renderer.push("<!--[-1-->");
1355
+ $$renderer.push(`<!--]--> `);
1356
+ if (body) $$renderer.push(`<!--[0--><div${attr_class(clsx(cn("max-w-[85%] rounded-[22px] px-4 py-2.5 leading-relaxed break-words whitespace-pre-wrap sm:max-w-[70%]", pending ? "border border-dashed opacity-70" : "bg-bubble")))}>${escape_html(body)}</div>`);
1357
+ else $$renderer.push("<!--[-1-->");
1358
+ $$renderer.push(`<!--]--> `);
1359
+ if (!pending && body) {
1360
+ $$renderer.push(`<!--[0--><div class="-mr-1.5 opacity-100 transition-opacity md:opacity-0 md:group-hover/human:opacity-100">`);
1361
+ CopyButton($$renderer, { text: body });
1362
+ $$renderer.push(`<!----></div>`);
1363
+ } else $$renderer.push("<!--[-1-->");
1364
+ $$renderer.push(`<!--]--></div>`);
1365
+ }
1366
+ function assistant($$renderer, avatarMood, label) {
1367
+ AssistantAvatar($$renderer, {
1368
+ avatar,
1369
+ mood: avatarMood,
1370
+ label,
1371
+ size: 24,
1372
+ class: "@min-[54rem]/chat:absolute @min-[54rem]/chat:top-0.5 @min-[54rem]/chat:-left-11"
1373
+ });
1374
+ }
1375
+ function reply($$renderer, r, last) {
1376
+ const copyable = replyText(r);
1377
+ const miss = prefs.technical ? replyMiss(r) : null;
1378
+ const tail = r.parts.at(-1);
1379
+ $$renderer.push(`<div data-media-group="" class="group/reply relative flex flex-col gap-3">`);
1380
+ assistant($$renderer, last ? mood() : void 0, last ? step()?.label : void 0);
1381
+ $$renderer.push(`<!----> <!--[-->`);
1382
+ const each_array = ensure_array_like(r.parts);
1383
+ for (let i = 0, $$length = each_array.length; i < $$length; i++) {
1384
+ let part = each_array[i];
1385
+ if (part.type === "text") {
1386
+ $$renderer.push(`<!--[0--><div class="w-fit max-w-full min-w-0 rounded-[22px] bg-bubble px-4 py-2.5">`);
1387
+ Markdown($$renderer, {
1388
+ text: part.text,
1389
+ media: {
1390
+ conversationId: conversation.id,
1391
+ media: part.media,
1392
+ pending: part.pending
1393
+ }
1394
+ });
1395
+ $$renderer.push(`<!----></div>`);
1396
+ } else {
1397
+ $$renderer.push("<!--[-1-->");
1398
+ Activity($$renderer, {
1399
+ conversationId: conversation.id,
1400
+ part,
1401
+ results: chat.results,
1402
+ toolOutput: chat.toolOutput,
1403
+ active: r.live && i === r.parts.length - 1,
1404
+ running: chat.running
1405
+ });
1406
+ }
1407
+ $$renderer.push(`<!--]-->`);
1408
+ }
1409
+ $$renderer.push(`<!--]--> `);
1410
+ if (r.live && (!tail || tail.type === "text" && chat.live.every((b) => !b))) {
1411
+ $$renderer.push(`<!--[0--><div role="status">`);
1412
+ TypingBubble($$renderer, {});
1413
+ $$renderer.push(`<!----> <span class="sr-only">${escape_html(m.chat.working)}</span></div>`);
1414
+ } else $$renderer.push("<!--[-1-->");
1415
+ $$renderer.push(`<!--]--> `);
1416
+ if (r.stopReasons.includes("max_tokens")) $$renderer.push(`<!--[0--><p class="text-sm text-warning">${escape_html(m.chat.cutOff)}</p>`);
1417
+ else $$renderer.push("<!--[-1-->");
1418
+ $$renderer.push(`<!--]--> `);
1419
+ if (r.stopReasons.includes("refusal")) $$renderer.push(`<!--[0--><p class="text-sm text-warning">${escape_html(m.chat.refused)}</p>`);
1420
+ else $$renderer.push("<!--[-1-->");
1421
+ $$renderer.push(`<!--]--> `);
1422
+ if (!r.live && (copyable || prefs.technical && r.usage)) {
1423
+ $$renderer.push(`<!--[0--><div${attr_class(clsx(cn("-mt-1 -ml-1.5 flex items-center gap-0.5 transition-opacity", !last && "md:opacity-0 md:group-hover/reply:opacity-100 md:focus-within:opacity-100")))}>`);
1424
+ if (copyable) {
1425
+ $$renderer.push("<!--[0-->");
1426
+ CopyButton($$renderer, { text: copyable });
1427
+ } else $$renderer.push("<!--[-1-->");
1428
+ $$renderer.push(`<!--]--> `);
1429
+ if (prefs.technical && r.usage) {
1430
+ $$renderer.push("<!--[0-->");
1431
+ if (Tooltip) {
1432
+ $$renderer.push("<!--[-->");
1433
+ Tooltip($$renderer, {
1434
+ children: ($$renderer) => {
1435
+ if (Tooltip_trigger) {
1436
+ $$renderer.push("<!--[-->");
1437
+ Tooltip_trigger($$renderer, {
1438
+ class: "flex size-8 items-center justify-center rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground",
1439
+ "aria-label": m.chat.usage,
1440
+ children: ($$renderer) => {
1441
+ Info($$renderer, { class: "size-4" });
1442
+ },
1443
+ $$slots: { default: true }
1444
+ });
1445
+ $$renderer.push("<!--]-->");
1446
+ } else {
1447
+ $$renderer.push("<!--[!-->");
1448
+ $$renderer.push("<!--]-->");
1449
+ }
1450
+ $$renderer.push(` `);
1451
+ if (Tooltip_content) {
1452
+ $$renderer.push("<!--[-->");
1453
+ Tooltip_content($$renderer, {
1454
+ class: "max-w-xs flex-col items-start gap-0.5",
1455
+ children: ($$renderer) => {
1456
+ if (r.models.length) $$renderer.push(`<!--[0--><span>${escape_html(m.chat.models(r.models))}</span>`);
1457
+ else $$renderer.push("<!--[-1-->");
1458
+ $$renderer.push(`<!--]--> <span>${escape_html(m.chat.tokensInOut(formatTokens(promptTokens(r.usage)), formatTokens(r.usage.output)))}</span> <span>${escape_html(cacheSummary(m.chat.cache, r.usage))}</span>`);
1459
+ },
1460
+ $$slots: { default: true }
1461
+ });
1462
+ $$renderer.push("<!--]-->");
1463
+ } else {
1464
+ $$renderer.push("<!--[!-->");
1465
+ $$renderer.push("<!--]-->");
1466
+ }
1467
+ },
1468
+ $$slots: { default: true }
1469
+ });
1470
+ $$renderer.push("<!--]-->");
1471
+ } else {
1472
+ $$renderer.push("<!--[!-->");
1473
+ $$renderer.push("<!--]-->");
1474
+ }
1475
+ } else $$renderer.push("<!--[-1-->");
1476
+ $$renderer.push(`<!--]--> `);
1477
+ if (miss) {
1478
+ $$renderer.push("<!--[0-->");
1479
+ if (Tooltip) {
1480
+ $$renderer.push("<!--[-->");
1481
+ Tooltip($$renderer, {
1482
+ children: ($$renderer) => {
1483
+ if (Tooltip_trigger) {
1484
+ $$renderer.push("<!--[-->");
1485
+ Tooltip_trigger($$renderer, {
1486
+ class: "px-1.5 text-xs text-warning",
1487
+ children: ($$renderer) => {
1488
+ $$renderer.push(`<!---->${escape_html(m.chat.cacheMiss(formatTokens(miss.tokens)))}`);
1489
+ },
1490
+ $$slots: { default: true }
1491
+ });
1492
+ $$renderer.push("<!--]-->");
1493
+ } else {
1494
+ $$renderer.push("<!--[!-->");
1495
+ $$renderer.push("<!--]-->");
1496
+ }
1497
+ $$renderer.push(` `);
1498
+ if (Tooltip_content) {
1499
+ $$renderer.push("<!--[-->");
1500
+ Tooltip_content($$renderer, {
1501
+ class: "max-w-xs",
1502
+ children: ($$renderer) => {
1503
+ $$renderer.push(`<!---->${escape_html(miss.reason)}`);
1504
+ },
1505
+ $$slots: { default: true }
1506
+ });
1507
+ $$renderer.push("<!--]-->");
1508
+ } else {
1509
+ $$renderer.push("<!--[!-->");
1510
+ $$renderer.push("<!--]-->");
1511
+ }
1512
+ },
1513
+ $$slots: { default: true }
1514
+ });
1515
+ $$renderer.push("<!--]-->");
1516
+ } else {
1517
+ $$renderer.push("<!--[!-->");
1518
+ $$renderer.push("<!--]-->");
1519
+ }
1520
+ } else $$renderer.push("<!--[-1-->");
1521
+ $$renderer.push(`<!--]--></div>`);
1522
+ } else $$renderer.push("<!--[-1-->");
1523
+ $$renderer.push(`<!--]--></div>`);
1524
+ }
1525
+ let $$settled = true;
1526
+ let $$inner_renderer;
1527
+ function $$render_inner($$renderer) {
1528
+ {
1529
+ function actions($$renderer) {
1530
+ if (Dropdown_menu) {
1531
+ $$renderer.push("<!--[-->");
1532
+ Dropdown_menu($$renderer, {
1533
+ children: ($$renderer) => {
1534
+ if (Dropdown_menu_trigger) {
1535
+ $$renderer.push("<!--[-->");
1536
+ Dropdown_menu_trigger($$renderer, {
1537
+ class: "flex size-10 shrink-0 items-center justify-center rounded-full text-muted-foreground hover:bg-muted hover:text-foreground aria-expanded:bg-muted",
1538
+ "aria-label": m.chat.options,
1539
+ children: ($$renderer) => {
1540
+ Ellipsis($$renderer, { class: "size-5" });
1541
+ },
1542
+ $$slots: { default: true }
1543
+ });
1544
+ $$renderer.push("<!--]-->");
1545
+ } else {
1546
+ $$renderer.push("<!--[!-->");
1547
+ $$renderer.push("<!--]-->");
1548
+ }
1549
+ $$renderer.push(` `);
1550
+ if (Dropdown_menu_content) {
1551
+ $$renderer.push("<!--[-->");
1552
+ Dropdown_menu_content($$renderer, {
1553
+ align: "end",
1554
+ class: "w-60",
1555
+ children: ($$renderer) => {
1556
+ if (prefs.technical) {
1557
+ $$renderer.push("<!--[0-->");
1558
+ if (Dropdown_menu_label) {
1559
+ $$renderer.push("<!--[-->");
1560
+ Dropdown_menu_label($$renderer, {
1561
+ class: "font-normal",
1562
+ children: ($$renderer) => {
1563
+ $$renderer.push(`<span class="block truncate text-foreground">${escape_html(model().presetName)}</span> `);
1564
+ if (usage()) $$renderer.push(`<!--[0--><span class="block">${escape_html(m.chat.contextMenu(formatTokens(contextUsed()), formatTokens(model().contextWindow)))}</span> <span class="block">${escape_html(m.chat.cachedOverall(formatPercent(cacheHitRate(usage().total))))}</span>`);
1565
+ else $$renderer.push("<!--[-1-->");
1566
+ $$renderer.push(`<!--]-->`);
1567
+ },
1568
+ $$slots: { default: true }
1569
+ });
1570
+ $$renderer.push("<!--]-->");
1571
+ } else {
1572
+ $$renderer.push("<!--[!-->");
1573
+ $$renderer.push("<!--]-->");
1574
+ }
1575
+ $$renderer.push(` `);
1576
+ if (Dropdown_menu_separator) {
1577
+ $$renderer.push("<!--[-->");
1578
+ Dropdown_menu_separator($$renderer, {});
1579
+ $$renderer.push("<!--]-->");
1580
+ } else {
1581
+ $$renderer.push("<!--[!-->");
1582
+ $$renderer.push("<!--]-->");
1583
+ }
1584
+ } else $$renderer.push("<!--[-1-->");
1585
+ $$renderer.push(`<!--]--> `);
1586
+ if (Dropdown_menu_item) {
1587
+ $$renderer.push("<!--[-->");
1588
+ Dropdown_menu_item($$renderer, {
1589
+ onSelect: () => renaming = {
1590
+ id: conversation.id,
1591
+ title: title()
1592
+ },
1593
+ children: ($$renderer) => {
1594
+ Pencil($$renderer, {});
1595
+ $$renderer.push(`<!----> ${escape_html(m.common.rename)}`);
1596
+ },
1597
+ $$slots: { default: true }
1598
+ });
1599
+ $$renderer.push("<!--]-->");
1600
+ } else {
1601
+ $$renderer.push("<!--[!-->");
1602
+ $$renderer.push("<!--]-->");
1603
+ }
1604
+ $$renderer.push(` `);
1605
+ MoveToFolderMenu($$renderer, {
1606
+ folders,
1607
+ folderId,
1608
+ onmove: move,
1609
+ onnew: () => creatingFolder = true
1610
+ });
1611
+ $$renderer.push(`<!----> `);
1612
+ if (compactable()) {
1613
+ $$renderer.push("<!--[0-->");
1614
+ if (Dropdown_menu_item) {
1615
+ $$renderer.push("<!--[-->");
1616
+ Dropdown_menu_item($$renderer, {
1617
+ disabled: chat.running,
1618
+ onSelect: () => compactOpen = true,
1619
+ children: ($$renderer) => {
1620
+ List_collapse($$renderer, {});
1621
+ $$renderer.push(`<!----> ${escape_html(m.chat.compact)}`);
1622
+ },
1623
+ $$slots: { default: true }
1624
+ });
1625
+ $$renderer.push("<!--]-->");
1626
+ } else {
1627
+ $$renderer.push("<!--[!-->");
1628
+ $$renderer.push("<!--]-->");
1629
+ }
1630
+ } else $$renderer.push("<!--[-1-->");
1631
+ $$renderer.push(`<!--]--> `);
1632
+ if (!conversation.subagent) {
1633
+ $$renderer.push("<!--[0-->");
1634
+ if (Dropdown_menu_item) {
1635
+ $$renderer.push("<!--[-->");
1636
+ Dropdown_menu_item($$renderer, {
1637
+ disabled: chat.running || reloading,
1638
+ title: m.chat.tools.reloadHint,
1639
+ onSelect: reloadTools,
1640
+ children: ($$renderer) => {
1641
+ Refresh_cw($$renderer, {});
1642
+ $$renderer.push(`<!----> ${escape_html(m.chat.tools.reload)}`);
1643
+ },
1644
+ $$slots: { default: true }
1645
+ });
1646
+ $$renderer.push("<!--]-->");
1647
+ } else {
1648
+ $$renderer.push("<!--[!-->");
1649
+ $$renderer.push("<!--]-->");
1650
+ }
1651
+ } else $$renderer.push("<!--[-1-->");
1652
+ $$renderer.push(`<!--]--> `);
1653
+ if (Dropdown_menu_separator) {
1654
+ $$renderer.push("<!--[-->");
1655
+ Dropdown_menu_separator($$renderer, {});
1656
+ $$renderer.push("<!--]-->");
1657
+ } else {
1658
+ $$renderer.push("<!--[!-->");
1659
+ $$renderer.push("<!--]-->");
1660
+ }
1661
+ $$renderer.push(` `);
1662
+ if (Dropdown_menu_item) {
1663
+ $$renderer.push("<!--[-->");
1664
+ Dropdown_menu_item($$renderer, {
1665
+ variant: "destructive",
1666
+ onSelect: () => deleteOpen = true,
1667
+ children: ($$renderer) => {
1668
+ Trash($$renderer, {});
1669
+ $$renderer.push(`<!----> ${escape_html(m.common.delete)}`);
1670
+ },
1671
+ $$slots: { default: true }
1672
+ });
1673
+ $$renderer.push("<!--]-->");
1674
+ } else {
1675
+ $$renderer.push("<!--[!-->");
1676
+ $$renderer.push("<!--]-->");
1677
+ }
1678
+ },
1679
+ $$slots: { default: true }
1680
+ });
1681
+ $$renderer.push("<!--]-->");
1682
+ } else {
1683
+ $$renderer.push("<!--[!-->");
1684
+ $$renderer.push("<!--]-->");
1685
+ }
1686
+ },
1687
+ $$slots: { default: true }
1688
+ });
1689
+ $$renderer.push("<!--]-->");
1690
+ } else {
1691
+ $$renderer.push("<!--[!-->");
1692
+ $$renderer.push("<!--]-->");
1693
+ }
1694
+ }
1695
+ PageHeader($$renderer, {
1696
+ actions,
1697
+ children: ($$renderer) => {
1698
+ if (folder()) {
1699
+ $$renderer.push(`<!--[0--><a${attr("href", resolve("/p/[slug]/f/[folder]", {
1700
+ slug: page.params.slug ?? "",
1701
+ folder: folder().id
1702
+ }))} class="hidden max-w-48 shrink-0 items-center gap-1.5 truncate rounded-lg text-base text-muted-foreground hover:text-foreground sm:flex sm:text-lg">`);
1703
+ Folder($$renderer, { class: "size-4 shrink-0" });
1704
+ $$renderer.push(`<!----> <span class="truncate">${escape_html(folder().name)}</span></a> <span class="hidden text-muted-foreground sm:inline">/</span>`);
1705
+ } else $$renderer.push("<!--[-1-->");
1706
+ $$renderer.push(`<!--]--> <h1 class="min-w-0 truncate text-base font-medium sm:text-lg">`);
1707
+ TypedText($$renderer, { text: title() });
1708
+ $$renderer.push(`<!----></h1> `);
1709
+ if (prefs.technical && usage()) {
1710
+ $$renderer.push("<!--[0-->");
1711
+ if (Tooltip) {
1712
+ $$renderer.push("<!--[-->");
1713
+ Tooltip($$renderer, {
1714
+ children: ($$renderer) => {
1715
+ if (Tooltip_trigger) {
1716
+ $$renderer.push("<!--[-->");
1717
+ Tooltip_trigger($$renderer, {
1718
+ class: "hidden shrink-0 rounded-full bg-muted px-2.5 py-1 text-xs text-muted-foreground sm:block",
1719
+ children: ($$renderer) => {
1720
+ $$renderer.push(`<!---->${escape_html(m.chat.contextChip(formatTokens(contextUsed()), formatTokens(model().contextWindow), formatPercent(cacheHitRate(usage().last))))}`);
1721
+ },
1722
+ $$slots: { default: true }
1723
+ });
1724
+ $$renderer.push("<!--]-->");
1725
+ } else {
1726
+ $$renderer.push("<!--[!-->");
1727
+ $$renderer.push("<!--]-->");
1728
+ }
1729
+ $$renderer.push(` `);
1730
+ if (Tooltip_content) {
1731
+ $$renderer.push("<!--[-->");
1732
+ Tooltip_content($$renderer, {
1733
+ class: "max-w-sm flex-col items-start gap-0.5",
1734
+ children: ($$renderer) => {
1735
+ $$renderer.push(`<span>${escape_html(m.chat.contextUsed(formatTokens(contextUsed()), formatTokens(model().contextWindow)))}</span> <span>${escape_html(cacheSummary(m.chat.lastReply, usage().last))}</span> <span>${escape_html(cacheSummary(m.chat.wholeConversation, usage().total))}</span>`);
1736
+ },
1737
+ $$slots: { default: true }
1738
+ });
1739
+ $$renderer.push("<!--]-->");
1740
+ } else {
1741
+ $$renderer.push("<!--[!-->");
1742
+ $$renderer.push("<!--]-->");
1743
+ }
1744
+ },
1745
+ $$slots: { default: true }
1746
+ });
1747
+ $$renderer.push("<!--]-->");
1748
+ } else {
1749
+ $$renderer.push("<!--[!-->");
1750
+ $$renderer.push("<!--]-->");
1751
+ }
1752
+ } else $$renderer.push("<!--[-1-->");
1753
+ $$renderer.push(`<!--]-->`);
1754
+ }});
1755
+ }
1756
+ $$renderer.push(`<!----> `);
1757
+ if (conversation.subagent) {
1758
+ $$renderer.push(`<!--[0--><div class="mx-auto w-full max-w-3xl px-4"><p class="rounded-2xl bg-muted px-4 py-2 text-center text-sm text-muted-foreground">`);
1759
+ {
1760
+ function parent($$renderer) {
1761
+ $$renderer.push(`<a${attr("href", resolve("/p/[slug]/c/[id]", {
1762
+ slug: page.params.slug ?? "",
1763
+ id: conversation.subagent?.parentId ?? ""
1764
+ }))} class="text-foreground underline underline-offset-2">${escape_html(conversation.subagent?.parentTitle)}</a>`);
1765
+ }
1766
+ Rich($$renderer, {
1767
+ text: m.chat.subagentBanner,
1768
+ name: conversation.subagent.name,
1769
+ parent,
1770
+ $$slots: { parent: true }
1771
+ });
1772
+ }
1773
+ $$renderer.push(`<!----></p></div>`);
1774
+ } else if (conversation.hidden && !continued) $$renderer.push(`<!--[1--><div class="mx-auto w-full max-w-3xl px-4"><p class="rounded-2xl bg-muted px-4 py-2 text-center text-sm text-muted-foreground">${escape_html(m.chat.hiddenBanner)}</p></div>`);
1775
+ else $$renderer.push("<!--[-1-->");
1776
+ $$renderer.push(`<!--]--> <div class="relative min-h-0 flex-1"><div class="@container/chat relative h-full overflow-y-auto [overflow-anchor:none]"><div class="mx-auto flex max-w-3xl flex-col gap-7 px-4 pt-4 sm:px-6"${attr_style("", { "padding-bottom": `${stringify(composerHeight + 16)}px` })}>`);
1777
+ if (chat.loaded && chat.messages.length === 0 && chat.queued.length === 0 && !chat.running) $$renderer.push(`<!--[0--><p class="py-16 text-center text-muted-foreground">${escape_html(m.chat.empty)}</p>`);
1778
+ else $$renderer.push("<!--[-1-->");
1779
+ $$renderer.push(`<!--]--> <!--[-->`);
1780
+ const each_array_1 = ensure_array_like(entries());
1781
+ for (let $$index_1 = 0, $$length = each_array_1.length; $$index_1 < $$length; $$index_1++) {
1782
+ let entry = each_array_1[$$index_1];
1783
+ if (entry.type === "human") {
1784
+ $$renderer.push("<!--[0-->");
1785
+ humanBubble($$renderer, entry.key, {
1786
+ id: entry.message.senderId,
1787
+ name: entry.message.senderName
1788
+ }, entry.message.text, entry.message.attachments, false);
1789
+ } else if (entry.type === "trigger") {
1790
+ $$renderer.push(`<!--[1--><div class="rounded-2xl border px-4 py-3 text-sm"><div class="flex items-center gap-1.5 text-xs font-medium text-muted-foreground">`);
1791
+ Clock($$renderer, { class: "size-3.5" });
1792
+ $$renderer.push(`<!----> ${escape_html(m.chat.automation(entry.message.title))}</div> <div class="mt-1.5 leading-relaxed whitespace-pre-wrap">${escape_html(entry.message.text)}</div></div>`);
1793
+ } else if (entry.type === "agent_message") {
1794
+ $$renderer.push(`<!--[2--><div class="rounded-2xl border px-4 py-3 text-sm"><div class="flex items-center gap-1.5 text-xs font-medium text-muted-foreground">`);
1795
+ Bot($$renderer, { class: "size-3.5" });
1796
+ $$renderer.push(`<!----> ${escape_html(m.chat.fromNolune(entry.message.title))}</div> <div class="mt-1.5 leading-relaxed whitespace-pre-wrap">${escape_html(entry.message.text)}</div></div>`);
1797
+ } else if (entry.type === "task_result") {
1798
+ $$renderer.push("<!--[3-->");
1799
+ if (Collapsible) {
1800
+ $$renderer.push("<!--[-->");
1801
+ Collapsible($$renderer, {
1802
+ class: "rounded-2xl border px-4 py-2.5 text-sm",
1803
+ children: ($$renderer) => {
1804
+ if (Collapsible_trigger) {
1805
+ $$renderer.push("<!--[-->");
1806
+ Collapsible_trigger($$renderer, {
1807
+ class: "group/result flex w-full min-w-0 items-center gap-1.5 text-left text-xs font-medium text-muted-foreground hover:text-foreground",
1808
+ children: ($$renderer) => {
1809
+ Square_terminal($$renderer, { class: "size-3.5 shrink-0" });
1810
+ $$renderer.push(`<!----> <span class="min-w-0 truncate">${escape_html(m.chat.finishedInBackground(entry.message.title))}</span> `);
1811
+ if (entry.message.isError) $$renderer.push(`<!--[0--><span class="shrink-0 text-destructive">${escape_html(prefs.technical ? m.steps.failed : m.steps.didntWork)}</span>`);
1812
+ else $$renderer.push("<!--[-1-->");
1813
+ $$renderer.push(`<!--]--> `);
1814
+ Chevron_right($$renderer, { class: "size-3.5 shrink-0 transition-transform group-data-[state=open]/result:rotate-90" });
1815
+ $$renderer.push(`<!---->`);
1816
+ },
1817
+ $$slots: { default: true }
1818
+ });
1819
+ $$renderer.push("<!--]-->");
1820
+ } else {
1821
+ $$renderer.push("<!--[!-->");
1822
+ $$renderer.push("<!--]-->");
1823
+ }
1824
+ $$renderer.push(` `);
1825
+ if (Collapsible_content) {
1826
+ $$renderer.push("<!--[-->");
1827
+ Collapsible_content($$renderer, {
1828
+ children: ($$renderer) => {
1829
+ $$renderer.push(`<pre class="mt-2 max-h-72 overflow-auto rounded-xl bg-muted/40 px-3 py-2 font-mono text-xs break-all whitespace-pre-wrap text-muted-foreground">${escape_html(entry.message.output)}</pre>`);
1830
+ },
1831
+ $$slots: { default: true }
1832
+ });
1833
+ $$renderer.push("<!--]-->");
1834
+ } else {
1835
+ $$renderer.push("<!--[!-->");
1836
+ $$renderer.push("<!--]-->");
1837
+ }
1838
+ },
1839
+ $$slots: { default: true }
1840
+ });
1841
+ $$renderer.push("<!--]-->");
1842
+ } else {
1843
+ $$renderer.push("<!--[!-->");
1844
+ $$renderer.push("<!--]-->");
1845
+ }
1846
+ } else if (entry.type === "memory") {
1847
+ $$renderer.push("<!--[4-->");
1848
+ MemoryLook($$renderer, {
1849
+ look: entry.look,
1850
+ slug: page.params.slug ?? ""
1851
+ });
1852
+ } else if (entry.type === "compaction") {
1853
+ $$renderer.push("<!--[5-->");
1854
+ if (Collapsible) {
1855
+ $$renderer.push("<!--[-->");
1856
+ Collapsible($$renderer, {
1857
+ class: "rounded-2xl border px-4 py-2.5 text-sm",
1858
+ children: ($$renderer) => {
1859
+ if (Collapsible_trigger) {
1860
+ $$renderer.push("<!--[-->");
1861
+ Collapsible_trigger($$renderer, {
1862
+ disabled: entry.live,
1863
+ class: "group/summary flex w-full min-w-0 items-center gap-1.5 text-left text-xs font-medium text-muted-foreground hover:text-foreground",
1864
+ children: ($$renderer) => {
1865
+ List_collapse($$renderer, { class: "size-3.5 shrink-0" });
1866
+ $$renderer.push(`<!----> <span${attr_class(clsx(cn("min-w-0 truncate", entry.live && "thinking-shimmer")))}>${escape_html(entry.live ? m.steps.summarizing : m.steps.summarized)}</span> `);
1867
+ if (!entry.live) {
1868
+ $$renderer.push("<!--[0-->");
1869
+ Chevron_right($$renderer, { class: "size-3.5 shrink-0 transition-transform group-data-[state=open]/summary:rotate-90" });
1870
+ } else $$renderer.push("<!--[-1-->");
1871
+ $$renderer.push(`<!--]-->`);
1872
+ },
1873
+ $$slots: { default: true }
1874
+ });
1875
+ $$renderer.push("<!--]-->");
1876
+ } else {
1877
+ $$renderer.push("<!--[!-->");
1878
+ $$renderer.push("<!--]-->");
1879
+ }
1880
+ $$renderer.push(` `);
1881
+ if (Collapsible_content) {
1882
+ $$renderer.push("<!--[-->");
1883
+ Collapsible_content($$renderer, {
1884
+ children: ($$renderer) => {
1885
+ $$renderer.push(`<p class="mt-2 text-xs text-muted-foreground">${escape_html(entry.asked ? m.steps.summaryAsked : m.steps.summaryIdle)}</p> `);
1886
+ Markdown($$renderer, {
1887
+ text: entry.summary,
1888
+ class: "mt-1.5 text-sm leading-relaxed text-muted-foreground"
1889
+ });
1890
+ $$renderer.push(`<!---->`);
1891
+ },
1892
+ $$slots: { default: true }
1893
+ });
1894
+ $$renderer.push("<!--]-->");
1895
+ } else {
1896
+ $$renderer.push("<!--[!-->");
1897
+ $$renderer.push("<!--]-->");
1898
+ }
1899
+ },
1900
+ $$slots: { default: true }
1901
+ });
1902
+ $$renderer.push("<!--]-->");
1903
+ } else {
1904
+ $$renderer.push("<!--[!-->");
1905
+ $$renderer.push("<!--]-->");
1906
+ }
1907
+ } else {
1908
+ $$renderer.push("<!--[-1-->");
1909
+ reply($$renderer, entry, entry === newest());
1910
+ }
1911
+ $$renderer.push(`<!--]-->`);
1912
+ }
1913
+ $$renderer.push(`<!--]--> `);
1914
+ if (chat.background.length) {
1915
+ $$renderer.push(`<!--[0--><div class="flex flex-col gap-1.5 rounded-2xl border px-4 py-3 text-sm"><div class="flex items-center justify-between gap-3"><span class="text-xs font-medium text-muted-foreground">${escape_html(m.chat.inBackground)}</span> `);
1916
+ Button($$renderer, {
1917
+ size: "sm",
1918
+ variant: "outline",
1919
+ onclick: () => post("stop"),
1920
+ children: ($$renderer) => {
1921
+ $$renderer.push(`<!---->${escape_html(m.common.stop)}`);
1922
+ },
1923
+ $$slots: { default: true }
1924
+ });
1925
+ $$renderer.push(`<!----></div> <!--[-->`);
1926
+ const each_array_2 = ensure_array_like(chat.background);
1927
+ for (let $$index_2 = 0, $$length = each_array_2.length; $$index_2 < $$length; $$index_2++) {
1928
+ let item = each_array_2[$$index_2];
1929
+ $$renderer.push(`<div class="flex min-w-0 items-center gap-2 text-muted-foreground">`);
1930
+ Loader_circle($$renderer, { class: "size-3.5 shrink-0 animate-spin" });
1931
+ $$renderer.push(`<!----> `);
1932
+ if (item.kind === "command") $$renderer.push(`<!--[0--><span${attr_class(clsx(cn("min-w-0 truncate", prefs.technical && "font-mono text-xs")))}>${escape_html(prefs.technical ? `$ ${firstLine(item.command)}` : item.summary ?? m.chat.aCommand)}</span>`);
1933
+ else $$renderer.push(`<!--[-1--><a${attr("href", resolve("/p/[slug]/c/[id]", {
1934
+ slug: page.params.slug ?? "",
1935
+ id: item.conversationId
1936
+ }))} class="min-w-0 truncate underline-offset-2 hover:text-foreground hover:underline">${escape_html(m.chat.subagent(item.name))}${escape_html(item.status === "stopping" ? ` · ${m.chat.stopping}` : "")}</a>`);
1937
+ $$renderer.push(`<!--]--></div>`);
1938
+ }
1939
+ $$renderer.push(`<!--]--></div>`);
1940
+ } else $$renderer.push("<!--[-1-->");
1941
+ $$renderer.push(`<!--]--> <!--[-->`);
1942
+ const each_array_3 = ensure_array_like(chat.queued);
1943
+ for (let $$index_3 = 0, $$length = each_array_3.length; $$index_3 < $$length; $$index_3++) {
1944
+ let message = each_array_3[$$index_3];
1945
+ if (message.kind === "human") {
1946
+ $$renderer.push("<!--[0-->");
1947
+ humanBubble($$renderer, messageKey(message.id), {
1948
+ id: message.senderId,
1949
+ name: message.senderName
1950
+ }, message.text, message.attachments, true);
1951
+ } else $$renderer.push("<!--[-1-->");
1952
+ $$renderer.push(`<!--]-->`);
1953
+ }
1954
+ $$renderer.push(`<!--]--> `);
1955
+ if (typists().length) {
1956
+ $$renderer.push("<!--[0-->");
1957
+ TypingIndicator($$renderer, {
1958
+ typists: typists(),
1959
+ pictures
1960
+ });
1961
+ } else $$renderer.push("<!--[-1-->");
1962
+ $$renderer.push(`<!--]--> `);
1963
+ if (chat.error || unanswered() && !conversation.subagent) {
1964
+ $$renderer.push(`<!--[0--><div class="relative flex flex-col gap-3">`);
1965
+ if (!liveReply()) {
1966
+ $$renderer.push("<!--[0-->");
1967
+ assistant($$renderer, mood());
1968
+ } else $$renderer.push("<!--[-1-->");
1969
+ $$renderer.push(`<!--]--> `);
1970
+ if (chat.error) {
1971
+ $$renderer.push(`<!--[0--><div class="flex flex-wrap items-center gap-3 rounded-2xl border border-destructive/30 bg-destructive/5 px-4 py-3 text-sm">`);
1972
+ Circle_alert($$renderer, { class: "size-4 shrink-0 text-destructive" });
1973
+ $$renderer.push(`<!----> <span class="min-w-0 flex-1"><span class="block font-medium">${escape_html(m.chat.errorTitle)}</span> <span class="block text-muted-foreground">${escape_html(chat.error)}</span></span> `);
1974
+ if (!conversation.subagent) {
1975
+ $$renderer.push("<!--[0-->");
1976
+ Button($$renderer, {
1977
+ size: "sm",
1978
+ variant: "outline",
1979
+ onclick: () => post("continue"),
1980
+ children: ($$renderer) => {
1981
+ Rotate_ccw($$renderer, {});
1982
+ $$renderer.push(`<!----> ${escape_html(m.common.tryAgain)}`);
1983
+ },
1984
+ $$slots: { default: true }
1985
+ });
1986
+ } else $$renderer.push("<!--[-1-->");
1987
+ $$renderer.push(`<!--]--></div>`);
1988
+ } else {
1989
+ $$renderer.push(`<!--[-1--><div class="flex flex-wrap items-center gap-3 text-sm text-muted-foreground">${escape_html(m.chat.unanswered)} `);
1990
+ Button($$renderer, {
1991
+ size: "sm",
1992
+ variant: "outline",
1993
+ onclick: () => post("continue"),
1994
+ children: ($$renderer) => {
1995
+ $$renderer.push(`<!---->${escape_html(m.common.continue)}`);
1996
+ },
1997
+ $$slots: { default: true }
1998
+ });
1999
+ $$renderer.push(`<!----></div>`);
2000
+ }
2001
+ $$renderer.push(`<!--]--></div>`);
2002
+ } else $$renderer.push("<!--[-1-->");
2003
+ $$renderer.push(`<!--]--></div></div> `);
2004
+ ComposerDock($$renderer, {
2005
+ get height() {
2006
+ return composerHeight;
2007
+ },
2008
+ set height($$value) {
2009
+ composerHeight = $$value;
2010
+ $$settled = false;
2011
+ },
2012
+ children: ($$renderer) => {
2013
+ if (!stickToBottom) {
2014
+ $$renderer.push(`<!--[0--><button class="absolute bottom-full left-1/2 mb-3 flex size-9 -translate-x-1/2 items-center justify-center rounded-full border bg-background text-foreground shadow-md hover:bg-muted"${attr("aria-label", m.chat.scrollToBottom)}>`);
2015
+ Arrow_down($$renderer, { class: "size-4" });
2016
+ $$renderer.push(`<!----></button>`);
2017
+ } else $$renderer.push("<!--[-1-->");
2018
+ $$renderer.push(`<!--]--> `);
2019
+ if (chat.toolChanges && !conversation.subagent) {
2020
+ $$renderer.push(`<!--[0--><div class="mb-2 flex flex-wrap items-center justify-between gap-x-3 gap-y-2 rounded-2xl border bg-background px-4 py-2 text-sm shadow-sm"><span class="flex min-w-0 items-start gap-1.5 text-muted-foreground">`);
2021
+ Refresh_cw($$renderer, { class: "mt-0.5 size-3.5 shrink-0" });
2022
+ $$renderer.push(`<!----> <span>${escape_html(changeLines(chat.toolChanges).join(" · "))}</span></span> `);
2023
+ Button($$renderer, {
2024
+ size: "sm",
2025
+ variant: "outline",
2026
+ disabled: chat.running || reloading,
2027
+ title: m.chat.tools.reloadHint,
2028
+ onclick: reloadTools,
2029
+ children: ($$renderer) => {
2030
+ $$renderer.push(`<!---->${escape_html(m.chat.tools.reload)}`);
2031
+ },
2032
+ $$slots: { default: true }
2033
+ });
2034
+ $$renderer.push(`<!----></div>`);
2035
+ } else $$renderer.push("<!--[-1-->");
2036
+ $$renderer.push(`<!--]--> `);
2037
+ if (conversation.subagent) {
2038
+ $$renderer.push(`<!--[0--><div class="flex items-center justify-between gap-3 rounded-[26px] border bg-background px-5 py-3 text-sm text-muted-foreground shadow-sm"><span>${escape_html(m.chat.subagentOnly(conversation.subagent.name))}</span> `);
2039
+ if (chat.running) {
2040
+ $$renderer.push("<!--[0-->");
2041
+ Button($$renderer, {
2042
+ size: "sm",
2043
+ variant: "outline",
2044
+ onclick: () => post("stop"),
2045
+ children: ($$renderer) => {
2046
+ $$renderer.push(`<!---->${escape_html(m.common.stop)}`);
2047
+ },
2048
+ $$slots: { default: true }
2049
+ });
2050
+ } else $$renderer.push("<!--[-1-->");
2051
+ $$renderer.push(`<!--]--></div>`);
2052
+ } else {
2053
+ $$renderer.push("<!--[-1-->");
2054
+ {
2055
+ function tools($$renderer) {
2056
+ ModelMenu($$renderer, {
2057
+ efforts,
2058
+ effort: model().effort,
2059
+ onEffortChange: (effort) => requestChange({ effort }),
2060
+ presets: menuPresets(),
2061
+ presetId: listed() && model().presetId || "current",
2062
+ onPresetChange: (presetId) => requestChange({ presetId }),
2063
+ defaultPresetId,
2064
+ avatar,
2065
+ get open() {
2066
+ return modelMenuOpen;
2067
+ },
2068
+ set open($$value) {
2069
+ modelMenuOpen = $$value;
2070
+ $$settled = false;
2071
+ }
2072
+ });
2073
+ $$renderer.push(`<!----> `);
2074
+ CommandModeMenu($$renderer, {
2075
+ mode: commands().mode ?? commands().fallback,
2076
+ fallback: commands().fallback,
2077
+ canUnrestrict: page.data.user?.isAdmin === true,
2078
+ onchange: changeCommands
2079
+ });
2080
+ $$renderer.push(`<!---->`);
2081
+ }
2082
+ Composer($$renderer, {
2083
+ attachments,
2084
+ running: chat.running,
2085
+ busy: sending,
2086
+ placeholder: chat.running ? m.chat.placeholderRunning : m.chat.placeholder,
2087
+ onsubmit: send,
2088
+ onstop: () => post("stop"),
2089
+ oninput: (value) => typing.input(value),
2090
+ get value() {
2091
+ return text;
2092
+ },
2093
+ set value($$value) {
2094
+ text = $$value;
2095
+ $$settled = false;
2096
+ },
2097
+ get textarea() {
2098
+ return textarea;
2099
+ },
2100
+ set textarea($$value) {
2101
+ textarea = $$value;
2102
+ $$settled = false;
2103
+ },
2104
+ tools,
2105
+ $$slots: { tools: true }
2106
+ });
2107
+ }
2108
+ }
2109
+ $$renderer.push(`<!--]--> `);
2110
+ if (actionError) $$renderer.push(`<!--[0--><p class="mt-2 text-center text-sm text-destructive">${escape_html(actionError)}</p>`);
2111
+ else if (reloaded) $$renderer.push(`<!--[1--><p class="mt-2 text-center text-xs text-muted-foreground">${escape_html(reloaded)}</p>`);
2112
+ else if (!chat.connected && chat.loaded) $$renderer.push(`<!--[2--><p class="mt-2 text-center text-xs text-warning">${escape_html(m.chat.reconnecting)}</p>`);
2113
+ else {
2114
+ $$renderer.push("<!--[-1-->");
2115
+ if (model().provider === "nolune-plan" && planUsage.current && planNear()) {
2116
+ $$renderer.push("<!--[0-->");
2117
+ PlanUsageNote($$renderer, { usage: planUsage.current.usage });
2118
+ } else $$renderer.push(`<!--[-1--><p class="mt-2 hidden text-center text-xs text-muted-foreground sm:block">${escape_html(m.chat.disclaimer)}</p>`);
2119
+ $$renderer.push(`<!--]-->`);
2120
+ }
2121
+ $$renderer.push(`<!--]-->`);
2122
+ },
2123
+ $$slots: { default: true }
2124
+ });
2125
+ $$renderer.push(`<!----></div> `);
2126
+ MediaViewer($$renderer, {
2127
+ get gallery() {
2128
+ return viewing;
2129
+ },
2130
+ set gallery($$value) {
2131
+ viewing = $$value;
2132
+ $$settled = false;
2133
+ }
2134
+ });
2135
+ $$renderer.push(`<!----> `);
2136
+ RenameChatDialog($$renderer, {
2137
+ slug: page.params.slug ?? "",
2138
+ get chat() {
2139
+ return renaming;
2140
+ },
2141
+ set chat($$value) {
2142
+ renaming = $$value;
2143
+ $$settled = false;
2144
+ }
2145
+ });
2146
+ $$renderer.push(`<!----> `);
2147
+ NewFolderDialog($$renderer, {
2148
+ slug: page.params.slug ?? "",
2149
+ oncreated: (created) => move(created.id),
2150
+ get open() {
2151
+ return creatingFolder;
2152
+ },
2153
+ set open($$value) {
2154
+ creatingFolder = $$value;
2155
+ $$settled = false;
2156
+ }
2157
+ });
2158
+ $$renderer.push(`<!----> `);
2159
+ if (Alert_dialog) {
2160
+ $$renderer.push("<!--[-->");
2161
+ Alert_dialog($$renderer, {
2162
+ open: confirming !== null,
2163
+ onOpenChange: (open) => {
2164
+ if (!open) confirming = null;
2165
+ },
2166
+ children: ($$renderer) => {
2167
+ if (Alert_dialog_content) {
2168
+ $$renderer.push("<!--[-->");
2169
+ Alert_dialog_content($$renderer, {
2170
+ children: ($$renderer) => {
2171
+ if (confirming) {
2172
+ $$renderer.push("<!--[0-->");
2173
+ const change = confirming;
2174
+ if (Alert_dialog_header) {
2175
+ $$renderer.push("<!--[-->");
2176
+ Alert_dialog_header($$renderer, {
2177
+ children: ($$renderer) => {
2178
+ if (Alert_dialog_title) {
2179
+ $$renderer.push("<!--[-->");
2180
+ Alert_dialog_title($$renderer, {
2181
+ children: ($$renderer) => {
2182
+ if ("presetId" in change) $$renderer.push(`<!--[0-->${escape_html(m.chat.switchTitle(switchingTo() ? shortModelName(switchingTo().name) : m.chat.anotherModel))}`);
2183
+ else $$renderer.push(`<!--[-1-->${escape_html(m.chat.effortTitle(effortLabels[change.effort]?.label ?? change.effort))}`);
2184
+ $$renderer.push(`<!--]-->`);
2185
+ },
2186
+ $$slots: { default: true }
2187
+ });
2188
+ $$renderer.push("<!--]-->");
2189
+ } else {
2190
+ $$renderer.push("<!--[!-->");
2191
+ $$renderer.push("<!--]-->");
2192
+ }
2193
+ $$renderer.push(` `);
2194
+ if (Alert_dialog_description) {
2195
+ $$renderer.push("<!--[-->");
2196
+ Alert_dialog_description($$renderer, {
2197
+ class: "flex flex-col gap-2",
2198
+ children: ($$renderer) => {
2199
+ $$renderer.push(`<span>${escape_html(m.chat.switchCache("presetId" in change, prefs.technical && contextUsed() ? formatTokens(contextUsed()) : null))}</span> `);
2200
+ if (switchingTo() && conversation.heldBy.some((p) => p !== switchingTo().provider)) $$renderer.push(`<!--[0--><span>${escape_html(m.chat.switchFiles)}</span>`);
2201
+ else $$renderer.push("<!--[-1-->");
2202
+ $$renderer.push(`<!--]-->`);
2203
+ },
2204
+ $$slots: { default: true }
2205
+ });
2206
+ $$renderer.push("<!--]-->");
2207
+ } else {
2208
+ $$renderer.push("<!--[!-->");
2209
+ $$renderer.push("<!--]-->");
2210
+ }
2211
+ },
2212
+ $$slots: { default: true }
2213
+ });
2214
+ $$renderer.push("<!--]-->");
2215
+ } else {
2216
+ $$renderer.push("<!--[!-->");
2217
+ $$renderer.push("<!--]-->");
2218
+ }
2219
+ $$renderer.push(` `);
2220
+ if (Alert_dialog_footer) {
2221
+ $$renderer.push("<!--[-->");
2222
+ Alert_dialog_footer($$renderer, {
2223
+ children: ($$renderer) => {
2224
+ if (Alert_dialog_cancel) {
2225
+ $$renderer.push("<!--[-->");
2226
+ Alert_dialog_cancel($$renderer, {
2227
+ children: ($$renderer) => {
2228
+ $$renderer.push(`<!---->${escape_html(m.common.cancel)}`);
2229
+ },
2230
+ $$slots: { default: true }
2231
+ });
2232
+ $$renderer.push("<!--]-->");
2233
+ } else {
2234
+ $$renderer.push("<!--[!-->");
2235
+ $$renderer.push("<!--]-->");
2236
+ }
2237
+ $$renderer.push(` `);
2238
+ if (Alert_dialog_action) {
2239
+ $$renderer.push("<!--[-->");
2240
+ Alert_dialog_action($$renderer, {
2241
+ onclick: () => applyChange(change),
2242
+ children: ($$renderer) => {
2243
+ $$renderer.push(`<!---->${escape_html("presetId" in change ? m.chat.switch : m.chat.change)}`);
2244
+ },
2245
+ $$slots: { default: true }
2246
+ });
2247
+ $$renderer.push("<!--]-->");
2248
+ } else {
2249
+ $$renderer.push("<!--[!-->");
2250
+ $$renderer.push("<!--]-->");
2251
+ }
2252
+ },
2253
+ $$slots: { default: true }
2254
+ });
2255
+ $$renderer.push("<!--]-->");
2256
+ } else {
2257
+ $$renderer.push("<!--[!-->");
2258
+ $$renderer.push("<!--]-->");
2259
+ }
2260
+ } else $$renderer.push("<!--[-1-->");
2261
+ $$renderer.push(`<!--]-->`);
2262
+ },
2263
+ $$slots: { default: true }
2264
+ });
2265
+ $$renderer.push("<!--]-->");
2266
+ } else {
2267
+ $$renderer.push("<!--[!-->");
2268
+ $$renderer.push("<!--]-->");
2269
+ }
2270
+ },
2271
+ $$slots: { default: true }
2272
+ });
2273
+ $$renderer.push("<!--]-->");
2274
+ } else {
2275
+ $$renderer.push("<!--[!-->");
2276
+ $$renderer.push("<!--]-->");
2277
+ }
2278
+ $$renderer.push(` `);
2279
+ if (Alert_dialog) {
2280
+ $$renderer.push("<!--[-->");
2281
+ Alert_dialog($$renderer, {
2282
+ get open() {
2283
+ return compactOpen;
2284
+ },
2285
+ set open($$value) {
2286
+ compactOpen = $$value;
2287
+ $$settled = false;
2288
+ },
2289
+ children: ($$renderer) => {
2290
+ if (Alert_dialog_content) {
2291
+ $$renderer.push("<!--[-->");
2292
+ Alert_dialog_content($$renderer, {
2293
+ children: ($$renderer) => {
2294
+ if (Alert_dialog_header) {
2295
+ $$renderer.push("<!--[-->");
2296
+ Alert_dialog_header($$renderer, {
2297
+ children: ($$renderer) => {
2298
+ if (Alert_dialog_title) {
2299
+ $$renderer.push("<!--[-->");
2300
+ Alert_dialog_title($$renderer, {
2301
+ children: ($$renderer) => {
2302
+ $$renderer.push(`<!---->${escape_html(m.chat.compactTitle)}`);
2303
+ },
2304
+ $$slots: { default: true }
2305
+ });
2306
+ $$renderer.push("<!--]-->");
2307
+ } else {
2308
+ $$renderer.push("<!--[!-->");
2309
+ $$renderer.push("<!--]-->");
2310
+ }
2311
+ $$renderer.push(` `);
2312
+ if (Alert_dialog_description) {
2313
+ $$renderer.push("<!--[-->");
2314
+ Alert_dialog_description($$renderer, {
2315
+ children: ($$renderer) => {
2316
+ $$renderer.push(`<!---->${escape_html(m.chat.compactBody(prefs.technical && contextUsed() ? formatTokens(contextUsed()) : null))}`);
2317
+ },
2318
+ $$slots: { default: true }
2319
+ });
2320
+ $$renderer.push("<!--]-->");
2321
+ } else {
2322
+ $$renderer.push("<!--[!-->");
2323
+ $$renderer.push("<!--]-->");
2324
+ }
2325
+ },
2326
+ $$slots: { default: true }
2327
+ });
2328
+ $$renderer.push("<!--]-->");
2329
+ } else {
2330
+ $$renderer.push("<!--[!-->");
2331
+ $$renderer.push("<!--]-->");
2332
+ }
2333
+ $$renderer.push(` `);
2334
+ if (Alert_dialog_footer) {
2335
+ $$renderer.push("<!--[-->");
2336
+ Alert_dialog_footer($$renderer, {
2337
+ children: ($$renderer) => {
2338
+ if (Alert_dialog_cancel) {
2339
+ $$renderer.push("<!--[-->");
2340
+ Alert_dialog_cancel($$renderer, {
2341
+ children: ($$renderer) => {
2342
+ $$renderer.push(`<!---->${escape_html(m.common.cancel)}`);
2343
+ },
2344
+ $$slots: { default: true }
2345
+ });
2346
+ $$renderer.push("<!--]-->");
2347
+ } else {
2348
+ $$renderer.push("<!--[!-->");
2349
+ $$renderer.push("<!--]-->");
2350
+ }
2351
+ $$renderer.push(` `);
2352
+ if (Alert_dialog_action) {
2353
+ $$renderer.push("<!--[-->");
2354
+ Alert_dialog_action($$renderer, {
2355
+ onclick: compact,
2356
+ children: ($$renderer) => {
2357
+ $$renderer.push(`<!---->${escape_html(m.chat.compactAction)}`);
2358
+ },
2359
+ $$slots: { default: true }
2360
+ });
2361
+ $$renderer.push("<!--]-->");
2362
+ } else {
2363
+ $$renderer.push("<!--[!-->");
2364
+ $$renderer.push("<!--]-->");
2365
+ }
2366
+ },
2367
+ $$slots: { default: true }
2368
+ });
2369
+ $$renderer.push("<!--]-->");
2370
+ } else {
2371
+ $$renderer.push("<!--[!-->");
2372
+ $$renderer.push("<!--]-->");
2373
+ }
2374
+ },
2375
+ $$slots: { default: true }
2376
+ });
2377
+ $$renderer.push("<!--]-->");
2378
+ } else {
2379
+ $$renderer.push("<!--[!-->");
2380
+ $$renderer.push("<!--]-->");
2381
+ }
2382
+ },
2383
+ $$slots: { default: true }
2384
+ });
2385
+ $$renderer.push("<!--]-->");
2386
+ } else {
2387
+ $$renderer.push("<!--[!-->");
2388
+ $$renderer.push("<!--]-->");
2389
+ }
2390
+ $$renderer.push(` `);
2391
+ if (Alert_dialog) {
2392
+ $$renderer.push("<!--[-->");
2393
+ Alert_dialog($$renderer, {
2394
+ get open() {
2395
+ return deleteOpen;
2396
+ },
2397
+ set open($$value) {
2398
+ deleteOpen = $$value;
2399
+ $$settled = false;
2400
+ },
2401
+ children: ($$renderer) => {
2402
+ if (Alert_dialog_content) {
2403
+ $$renderer.push("<!--[-->");
2404
+ Alert_dialog_content($$renderer, {
2405
+ children: ($$renderer) => {
2406
+ if (Alert_dialog_header) {
2407
+ $$renderer.push("<!--[-->");
2408
+ Alert_dialog_header($$renderer, {
2409
+ children: ($$renderer) => {
2410
+ if (Alert_dialog_title) {
2411
+ $$renderer.push("<!--[-->");
2412
+ Alert_dialog_title($$renderer, {
2413
+ children: ($$renderer) => {
2414
+ $$renderer.push(`<!---->${escape_html(m.chat.deleteTitle)}`);
2415
+ },
2416
+ $$slots: { default: true }
2417
+ });
2418
+ $$renderer.push("<!--]-->");
2419
+ } else {
2420
+ $$renderer.push("<!--[!-->");
2421
+ $$renderer.push("<!--]-->");
2422
+ }
2423
+ $$renderer.push(` `);
2424
+ if (Alert_dialog_description) {
2425
+ $$renderer.push("<!--[-->");
2426
+ Alert_dialog_description($$renderer, {
2427
+ children: ($$renderer) => {
2428
+ {
2429
+ function name($$renderer) {
2430
+ $$renderer.push(`<strong class="text-foreground">${escape_html(title())}</strong>`);
2431
+ }
2432
+ Rich($$renderer, {
2433
+ text: m.chat.deleteBody,
2434
+ name,
2435
+ $$slots: { name: true }
2436
+ });
2437
+ }
2438
+ },
2439
+ $$slots: { default: true }
2440
+ });
2441
+ $$renderer.push("<!--]-->");
2442
+ } else {
2443
+ $$renderer.push("<!--[!-->");
2444
+ $$renderer.push("<!--]-->");
2445
+ }
2446
+ },
2447
+ $$slots: { default: true }
2448
+ });
2449
+ $$renderer.push("<!--]-->");
2450
+ } else {
2451
+ $$renderer.push("<!--[!-->");
2452
+ $$renderer.push("<!--]-->");
2453
+ }
2454
+ $$renderer.push(` <form method="POST" action="?/delete">`);
2455
+ if (Alert_dialog_footer) {
2456
+ $$renderer.push("<!--[-->");
2457
+ Alert_dialog_footer($$renderer, {
2458
+ children: ($$renderer) => {
2459
+ if (Alert_dialog_cancel) {
2460
+ $$renderer.push("<!--[-->");
2461
+ Alert_dialog_cancel($$renderer, {
2462
+ type: "button",
2463
+ children: ($$renderer) => {
2464
+ $$renderer.push(`<!---->${escape_html(m.common.cancel)}`);
2465
+ },
2466
+ $$slots: { default: true }
2467
+ });
2468
+ $$renderer.push("<!--]-->");
2469
+ } else {
2470
+ $$renderer.push("<!--[!-->");
2471
+ $$renderer.push("<!--]-->");
2472
+ }
2473
+ $$renderer.push(` `);
2474
+ if (Alert_dialog_action) {
2475
+ $$renderer.push("<!--[-->");
2476
+ Alert_dialog_action($$renderer, {
2477
+ type: "submit",
2478
+ variant: "destructive",
2479
+ children: ($$renderer) => {
2480
+ $$renderer.push(`<!---->${escape_html(m.common.delete)}`);
2481
+ },
2482
+ $$slots: { default: true }
2483
+ });
2484
+ $$renderer.push("<!--]-->");
2485
+ } else {
2486
+ $$renderer.push("<!--[!-->");
2487
+ $$renderer.push("<!--]-->");
2488
+ }
2489
+ },
2490
+ $$slots: { default: true }
2491
+ });
2492
+ $$renderer.push("<!--]-->");
2493
+ } else {
2494
+ $$renderer.push("<!--[!-->");
2495
+ $$renderer.push("<!--]-->");
2496
+ }
2497
+ $$renderer.push(`</form>`);
2498
+ },
2499
+ $$slots: { default: true }
2500
+ });
2501
+ $$renderer.push("<!--]-->");
2502
+ } else {
2503
+ $$renderer.push("<!--[!-->");
2504
+ $$renderer.push("<!--]-->");
2505
+ }
2506
+ },
2507
+ $$slots: { default: true }
2508
+ });
2509
+ $$renderer.push("<!--]-->");
2510
+ } else {
2511
+ $$renderer.push("<!--[!-->");
2512
+ $$renderer.push("<!--]-->");
2513
+ }
2514
+ }
2515
+ do {
2516
+ $$settled = true;
2517
+ $$inner_renderer = $$renderer.copy();
2518
+ $$render_inner($$inner_renderer);
2519
+ } while (!$$settled);
2520
+ $$renderer.subsume($$inner_renderer);
2521
+ });
2522
+ }
2523
+ //#endregion
2524
+ //#region src/routes/p/[slug]/c/[id]/+page.svelte
2525
+ function _page($$renderer, $$props) {
2526
+ $$renderer.component(($$renderer) => {
2527
+ let { data } = $$props;
2528
+ $$renderer.push(`<!---->`);
2529
+ Chat($$renderer, {
2530
+ conversation: data.conversation,
2531
+ efforts: data.efforts,
2532
+ presets: data.presets,
2533
+ defaultPresetId: data.defaultPresetId,
2534
+ me: data.user?.id ?? "",
2535
+ pictures: data.pictures,
2536
+ folders: data.folders,
2537
+ folderId: data.conversations.find((c) => c.id === data.conversation.id)?.folderId ?? null,
2538
+ avatar: data.profile.avatar
2539
+ });
2540
+ $$renderer.push(`<!---->`);
2541
+ });
2542
+ }
2543
+
2544
+ export { _page as default };
2545
+ //# sourceMappingURL=_page.svelte.js-Dy4VZ3vg.js.map