@jlongo78/agent-spaces 0.3.6 → 0.4.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 (612) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-path-routes-manifest.json +5 -0
  3. package/.next/standalone/.next/build-manifest.json +4 -4
  4. package/.next/standalone/.next/prerender-manifest.json +3 -3
  5. package/.next/standalone/.next/required-server-files.json +30 -25
  6. package/.next/standalone/.next/routes-manifest.json +40 -0
  7. package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page/build-manifest.json +2 -2
  8. package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page.js +1 -1
  9. package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page.js.nft.json +1 -1
  10. package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page_client-reference-manifest.js +1 -1
  11. package/.next/standalone/.next/server/app/(desktop)/admin/users/page/build-manifest.json +2 -2
  12. package/.next/standalone/.next/server/app/(desktop)/admin/users/page.js +1 -1
  13. package/.next/standalone/.next/server/app/(desktop)/admin/users/page.js.nft.json +1 -1
  14. package/.next/standalone/.next/server/app/(desktop)/admin/users/page_client-reference-manifest.js +1 -1
  15. package/.next/standalone/.next/server/app/(desktop)/analytics/page/build-manifest.json +2 -2
  16. package/.next/standalone/.next/server/app/(desktop)/analytics/page.js +1 -1
  17. package/.next/standalone/.next/server/app/(desktop)/analytics/page.js.nft.json +1 -1
  18. package/.next/standalone/.next/server/app/(desktop)/analytics/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/.next/server/app/(desktop)/network/page/build-manifest.json +2 -2
  20. package/.next/standalone/.next/server/app/(desktop)/network/page.js +1 -1
  21. package/.next/standalone/.next/server/app/(desktop)/network/page.js.nft.json +1 -1
  22. package/.next/standalone/.next/server/app/(desktop)/network/page_client-reference-manifest.js +1 -1
  23. package/.next/standalone/.next/server/app/(desktop)/page/build-manifest.json +2 -2
  24. package/.next/standalone/.next/server/app/(desktop)/page.js +2 -2
  25. package/.next/standalone/.next/server/app/(desktop)/page.js.nft.json +1 -1
  26. package/.next/standalone/.next/server/app/(desktop)/page_client-reference-manifest.js +1 -1
  27. package/.next/standalone/.next/server/app/(desktop)/projects/page/build-manifest.json +2 -2
  28. package/.next/standalone/.next/server/app/(desktop)/projects/page.js +1 -1
  29. package/.next/standalone/.next/server/app/(desktop)/projects/page.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/(desktop)/projects/page_client-reference-manifest.js +1 -1
  31. package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page/build-manifest.json +2 -2
  32. package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page.js +1 -1
  33. package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page.js.nft.json +1 -1
  34. package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page_client-reference-manifest.js +1 -1
  35. package/.next/standalone/.next/server/app/(desktop)/sessions/page/build-manifest.json +2 -2
  36. package/.next/standalone/.next/server/app/(desktop)/sessions/page.js +1 -1
  37. package/.next/standalone/.next/server/app/(desktop)/sessions/page.js.nft.json +1 -1
  38. package/.next/standalone/.next/server/app/(desktop)/sessions/page_client-reference-manifest.js +1 -1
  39. package/.next/standalone/.next/server/app/(desktop)/settings/page/build-manifest.json +2 -2
  40. package/.next/standalone/.next/server/app/(desktop)/settings/page.js +1 -1
  41. package/.next/standalone/.next/server/app/(desktop)/settings/page.js.nft.json +1 -1
  42. package/.next/standalone/.next/server/app/(desktop)/settings/page_client-reference-manifest.js +1 -1
  43. package/.next/standalone/.next/server/app/(desktop)/terminal/page/build-manifest.json +2 -2
  44. package/.next/standalone/.next/server/app/(desktop)/terminal/page.js +1 -1
  45. package/.next/standalone/.next/server/app/(desktop)/terminal/page.js.nft.json +1 -1
  46. package/.next/standalone/.next/server/app/(desktop)/terminal/page_client-reference-manifest.js +1 -1
  47. package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page/build-manifest.json +2 -2
  48. package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page.js +1 -1
  49. package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page.js.nft.json +1 -1
  50. package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page_client-reference-manifest.js +1 -1
  51. package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page/build-manifest.json +2 -2
  52. package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page.js +1 -1
  53. package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page.js.nft.json +1 -1
  54. package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page_client-reference-manifest.js +1 -1
  55. package/.next/standalone/.next/server/app/(desktop)/workspaces/page/build-manifest.json +2 -2
  56. package/.next/standalone/.next/server/app/(desktop)/workspaces/page.js +1 -1
  57. package/.next/standalone/.next/server/app/(desktop)/workspaces/page.js.nft.json +1 -1
  58. package/.next/standalone/.next/server/app/(desktop)/workspaces/page_client-reference-manifest.js +1 -1
  59. package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
  60. package/.next/standalone/.next/server/app/_global-error/page.js +1 -1
  61. package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  62. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  63. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  64. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  65. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  66. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  67. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  68. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  69. package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
  70. package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
  71. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  72. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  73. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  74. package/.next/standalone/.next/server/app/_not-found.rsc +4 -4
  75. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  76. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  77. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  78. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  79. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  80. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  81. package/.next/standalone/.next/server/app/admin/analytics.html +1 -1
  82. package/.next/standalone/.next/server/app/admin/analytics.rsc +6 -6
  83. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin/analytics/__PAGE__.segment.rsc +2 -2
  84. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin/analytics.segment.rsc +1 -1
  85. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin.segment.rsc +1 -1
  86. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  87. package/.next/standalone/.next/server/app/admin/analytics.segments/_full.segment.rsc +6 -6
  88. package/.next/standalone/.next/server/app/admin/analytics.segments/_head.segment.rsc +1 -1
  89. package/.next/standalone/.next/server/app/admin/analytics.segments/_index.segment.rsc +3 -3
  90. package/.next/standalone/.next/server/app/admin/analytics.segments/_tree.segment.rsc +2 -2
  91. package/.next/standalone/.next/server/app/admin/users.html +1 -1
  92. package/.next/standalone/.next/server/app/admin/users.rsc +6 -6
  93. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin/users/__PAGE__.segment.rsc +2 -2
  94. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin/users.segment.rsc +1 -1
  95. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin.segment.rsc +1 -1
  96. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  97. package/.next/standalone/.next/server/app/admin/users.segments/_full.segment.rsc +6 -6
  98. package/.next/standalone/.next/server/app/admin/users.segments/_head.segment.rsc +1 -1
  99. package/.next/standalone/.next/server/app/admin/users.segments/_index.segment.rsc +3 -3
  100. package/.next/standalone/.next/server/app/admin/users.segments/_tree.segment.rsc +2 -2
  101. package/.next/standalone/.next/server/app/analytics.html +1 -1
  102. package/.next/standalone/.next/server/app/analytics.rsc +6 -6
  103. package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap/analytics/__PAGE__.segment.rsc +2 -2
  104. package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap/analytics.segment.rsc +1 -1
  105. package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  106. package/.next/standalone/.next/server/app/analytics.segments/_full.segment.rsc +6 -6
  107. package/.next/standalone/.next/server/app/analytics.segments/_head.segment.rsc +1 -1
  108. package/.next/standalone/.next/server/app/analytics.segments/_index.segment.rsc +3 -3
  109. package/.next/standalone/.next/server/app/analytics.segments/_tree.segment.rsc +2 -2
  110. package/.next/standalone/.next/server/app/api/admin/analytics/route.js +1 -1
  111. package/.next/standalone/.next/server/app/api/admin/analytics/route.js.nft.json +1 -1
  112. package/.next/standalone/.next/server/app/api/admin/users/[id]/route.js +1 -1
  113. package/.next/standalone/.next/server/app/api/admin/users/[id]/route.js.nft.json +1 -1
  114. package/.next/standalone/.next/server/app/api/admin/users/route.js +1 -1
  115. package/.next/standalone/.next/server/app/api/admin/users/route.js.nft.json +1 -1
  116. package/.next/standalone/.next/server/app/api/analytics/overview/route.js +2 -2
  117. package/.next/standalone/.next/server/app/api/analytics/overview/route.js.nft.json +1 -1
  118. package/.next/standalone/.next/server/app/api/auth/login/route.js +1 -1
  119. package/.next/standalone/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  120. package/.next/standalone/.next/server/app/api/auth/logout/route.js +1 -1
  121. package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  122. package/.next/standalone/.next/server/app/api/auth/me/route.js +1 -1
  123. package/.next/standalone/.next/server/app/api/auth/me/route.js.nft.json +1 -1
  124. package/.next/standalone/.next/server/app/api/auth/totp/setup/route.js +1 -1
  125. package/.next/standalone/.next/server/app/api/auth/totp/setup/route.js.nft.json +1 -1
  126. package/.next/standalone/.next/server/app/api/auth/totp/status/route.js +1 -1
  127. package/.next/standalone/.next/server/app/api/auth/totp/status/route.js.nft.json +1 -1
  128. package/.next/standalone/.next/server/app/api/auth/totp/verify/route.js +1 -1
  129. package/.next/standalone/.next/server/app/api/auth/totp/verify/route.js.nft.json +1 -1
  130. package/.next/standalone/.next/server/app/api/bulk/route.js +2 -2
  131. package/.next/standalone/.next/server/app/api/bulk/route.js.nft.json +1 -1
  132. package/.next/standalone/.next/server/app/api/chat/route.js +1 -1
  133. package/.next/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
  134. package/.next/standalone/.next/server/app/api/config/route.js +1 -1
  135. package/.next/standalone/.next/server/app/api/config/route.js.nft.json +1 -1
  136. package/.next/standalone/.next/server/app/api/events/route.js +2 -2
  137. package/.next/standalone/.next/server/app/api/events/route.js.nft.json +1 -1
  138. package/.next/standalone/.next/server/app/api/folders/route.js +1 -1
  139. package/.next/standalone/.next/server/app/api/folders/route.js.nft.json +1 -1
  140. package/.next/standalone/.next/server/app/api/network/discovered/route.js +1 -1
  141. package/.next/standalone/.next/server/app/api/network/discovered/route.js.nft.json +1 -1
  142. package/.next/standalone/.next/server/app/api/network/handshake/route.js +1 -1
  143. package/.next/standalone/.next/server/app/api/network/handshake/route.js.nft.json +1 -1
  144. package/.next/standalone/.next/server/app/api/network/health/route.js +1 -1
  145. package/.next/standalone/.next/server/app/api/network/health/route.js.nft.json +1 -1
  146. package/.next/standalone/.next/server/app/api/network/identity/route.js +1 -1
  147. package/.next/standalone/.next/server/app/api/network/identity/route.js.nft.json +1 -1
  148. package/.next/standalone/.next/server/app/api/network/keys/[id]/route.js +1 -1
  149. package/.next/standalone/.next/server/app/api/network/keys/[id]/route.js.nft.json +1 -1
  150. package/.next/standalone/.next/server/app/api/network/keys/route.js +1 -1
  151. package/.next/standalone/.next/server/app/api/network/keys/route.js.nft.json +1 -1
  152. package/.next/standalone/.next/server/app/api/network/nodes/[id]/route.js +1 -1
  153. package/.next/standalone/.next/server/app/api/network/nodes/[id]/route.js.nft.json +1 -1
  154. package/.next/standalone/.next/server/app/api/network/nodes/check/route.js +1 -1
  155. package/.next/standalone/.next/server/app/api/network/nodes/check/route.js.nft.json +1 -1
  156. package/.next/standalone/.next/server/app/api/network/nodes/route.js +1 -1
  157. package/.next/standalone/.next/server/app/api/network/nodes/route.js.nft.json +1 -1
  158. package/.next/standalone/.next/server/app/api/network/projects/route.js +1 -1
  159. package/.next/standalone/.next/server/app/api/network/projects/route.js.nft.json +1 -1
  160. package/.next/standalone/.next/server/app/api/network/proxy/[nodeId]/[...path]/route.js +1 -1
  161. package/.next/standalone/.next/server/app/api/network/proxy/[nodeId]/[...path]/route.js.nft.json +1 -1
  162. package/.next/standalone/.next/server/app/api/network/search/route.js +1 -1
  163. package/.next/standalone/.next/server/app/api/network/search/route.js.nft.json +1 -1
  164. package/.next/standalone/.next/server/app/api/network/sessions/[id]/messages/route.js +1 -1
  165. package/.next/standalone/.next/server/app/api/network/sessions/[id]/messages/route.js.nft.json +1 -1
  166. package/.next/standalone/.next/server/app/api/network/sessions/[id]/route.js +1 -1
  167. package/.next/standalone/.next/server/app/api/network/sessions/[id]/route.js.nft.json +1 -1
  168. package/.next/standalone/.next/server/app/api/network/sessions/route.js +1 -1
  169. package/.next/standalone/.next/server/app/api/network/sessions/route.js.nft.json +1 -1
  170. package/.next/standalone/.next/server/app/api/network/terminal/token/route.js +1 -1
  171. package/.next/standalone/.next/server/app/api/network/terminal/token/route.js.nft.json +1 -1
  172. package/.next/standalone/.next/server/app/api/network/workspaces/[id]/route.js +1 -1
  173. package/.next/standalone/.next/server/app/api/network/workspaces/[id]/route.js.nft.json +1 -1
  174. package/.next/standalone/.next/server/app/api/network/workspaces/route.js +1 -1
  175. package/.next/standalone/.next/server/app/api/network/workspaces/route.js.nft.json +1 -1
  176. package/.next/standalone/.next/server/app/api/panes/[id]/route.js +2 -2
  177. package/.next/standalone/.next/server/app/api/panes/[id]/route.js.nft.json +1 -1
  178. package/.next/standalone/.next/server/app/api/panes/route.js +2 -2
  179. package/.next/standalone/.next/server/app/api/panes/route.js.nft.json +1 -1
  180. package/.next/standalone/.next/server/app/api/projects/route.js +2 -2
  181. package/.next/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
  182. package/.next/standalone/.next/server/app/api/search/route.js +2 -2
  183. package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  184. package/.next/standalone/.next/server/app/api/sessions/[id]/chat/route.js +2 -2
  185. package/.next/standalone/.next/server/app/api/sessions/[id]/chat/route.js.nft.json +1 -1
  186. package/.next/standalone/.next/server/app/api/sessions/[id]/messages/route.js +2 -2
  187. package/.next/standalone/.next/server/app/api/sessions/[id]/messages/route.js.nft.json +1 -1
  188. package/.next/standalone/.next/server/app/api/sessions/[id]/route.js +2 -2
  189. package/.next/standalone/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  190. package/.next/standalone/.next/server/app/api/sessions/route.js +2 -2
  191. package/.next/standalone/.next/server/app/api/sessions/route.js.nft.json +1 -1
  192. package/.next/standalone/.next/server/app/api/sync/route.js +3 -3
  193. package/.next/standalone/.next/server/app/api/sync/route.js.nft.json +1 -1
  194. package/.next/standalone/.next/server/app/api/tags/route.js +2 -2
  195. package/.next/standalone/.next/server/app/api/tags/route.js.nft.json +1 -1
  196. package/.next/standalone/.next/server/app/api/tier/route/app-paths-manifest.json +3 -0
  197. package/.next/standalone/.next/server/app/api/tier/route/build-manifest.json +11 -0
  198. package/.next/standalone/.next/server/app/api/tier/route/server-reference-manifest.json +4 -0
  199. package/.next/standalone/.next/server/app/api/tier/route.js +7 -0
  200. package/.next/standalone/.next/server/app/api/tier/route.js.map +5 -0
  201. package/.next/standalone/.next/server/app/api/tier/route.js.nft.json +1 -0
  202. package/.next/standalone/.next/server/app/api/tier/route_client-reference-manifest.js +2 -0
  203. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/app-paths-manifest.json +3 -0
  204. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/build-manifest.json +11 -0
  205. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/server-reference-manifest.json +4 -0
  206. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js +7 -0
  207. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js.map +5 -0
  208. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js.nft.json +1 -0
  209. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route_client-reference-manifest.js +2 -0
  210. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/app-paths-manifest.json +3 -0
  211. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/build-manifest.json +11 -0
  212. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/server-reference-manifest.json +4 -0
  213. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js +7 -0
  214. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js.map +5 -0
  215. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js.nft.json +1 -0
  216. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route_client-reference-manifest.js +2 -0
  217. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/app-paths-manifest.json +3 -0
  218. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/build-manifest.json +11 -0
  219. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/server-reference-manifest.json +4 -0
  220. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js +7 -0
  221. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js.map +5 -0
  222. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js.nft.json +1 -0
  223. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route_client-reference-manifest.js +2 -0
  224. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/app-paths-manifest.json +3 -0
  225. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/build-manifest.json +11 -0
  226. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/server-reference-manifest.json +4 -0
  227. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js +7 -0
  228. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js.map +5 -0
  229. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js.nft.json +1 -0
  230. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route_client-reference-manifest.js +2 -0
  231. package/.next/standalone/.next/server/app/api/workspaces/[id]/route.js +2 -2
  232. package/.next/standalone/.next/server/app/api/workspaces/[id]/route.js.nft.json +1 -1
  233. package/.next/standalone/.next/server/app/api/workspaces/[id]/sessions/route.js +2 -2
  234. package/.next/standalone/.next/server/app/api/workspaces/[id]/sessions/route.js.nft.json +1 -1
  235. package/.next/standalone/.next/server/app/api/workspaces/route.js +2 -2
  236. package/.next/standalone/.next/server/app/api/workspaces/route.js.nft.json +1 -1
  237. package/.next/standalone/.next/server/app/login/page/build-manifest.json +2 -2
  238. package/.next/standalone/.next/server/app/login/page.js +1 -1
  239. package/.next/standalone/.next/server/app/login/page.js.nft.json +1 -1
  240. package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  241. package/.next/standalone/.next/server/app/login.html +1 -1
  242. package/.next/standalone/.next/server/app/login.rsc +5 -5
  243. package/.next/standalone/.next/server/app/login.segments/_full.segment.rsc +5 -5
  244. package/.next/standalone/.next/server/app/login.segments/_head.segment.rsc +1 -1
  245. package/.next/standalone/.next/server/app/login.segments/_index.segment.rsc +3 -3
  246. package/.next/standalone/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  247. package/.next/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  248. package/.next/standalone/.next/server/app/login.segments/login.segment.rsc +1 -1
  249. package/.next/standalone/.next/server/app/m/page/build-manifest.json +2 -2
  250. package/.next/standalone/.next/server/app/m/page.js +1 -1
  251. package/.next/standalone/.next/server/app/m/page.js.nft.json +1 -1
  252. package/.next/standalone/.next/server/app/m/page_client-reference-manifest.js +1 -1
  253. package/.next/standalone/.next/server/app/m/projects/page/build-manifest.json +2 -2
  254. package/.next/standalone/.next/server/app/m/projects/page.js +1 -1
  255. package/.next/standalone/.next/server/app/m/projects/page.js.nft.json +1 -1
  256. package/.next/standalone/.next/server/app/m/projects/page_client-reference-manifest.js +1 -1
  257. package/.next/standalone/.next/server/app/m/projects.html +1 -1
  258. package/.next/standalone/.next/server/app/m/projects.rsc +6 -6
  259. package/.next/standalone/.next/server/app/m/projects.segments/_full.segment.rsc +6 -6
  260. package/.next/standalone/.next/server/app/m/projects.segments/_head.segment.rsc +1 -1
  261. package/.next/standalone/.next/server/app/m/projects.segments/_index.segment.rsc +3 -3
  262. package/.next/standalone/.next/server/app/m/projects.segments/_tree.segment.rsc +2 -2
  263. package/.next/standalone/.next/server/app/m/projects.segments/m/projects/__PAGE__.segment.rsc +2 -2
  264. package/.next/standalone/.next/server/app/m/projects.segments/m/projects.segment.rsc +1 -1
  265. package/.next/standalone/.next/server/app/m/projects.segments/m.segment.rsc +2 -2
  266. package/.next/standalone/.next/server/app/m/sessions/[id]/page/build-manifest.json +2 -2
  267. package/.next/standalone/.next/server/app/m/sessions/[id]/page.js +1 -1
  268. package/.next/standalone/.next/server/app/m/sessions/[id]/page.js.nft.json +1 -1
  269. package/.next/standalone/.next/server/app/m/sessions/[id]/page_client-reference-manifest.js +1 -1
  270. package/.next/standalone/.next/server/app/m/sessions/page/build-manifest.json +2 -2
  271. package/.next/standalone/.next/server/app/m/sessions/page.js +1 -1
  272. package/.next/standalone/.next/server/app/m/sessions/page.js.nft.json +1 -1
  273. package/.next/standalone/.next/server/app/m/sessions/page_client-reference-manifest.js +1 -1
  274. package/.next/standalone/.next/server/app/m/sessions.html +1 -1
  275. package/.next/standalone/.next/server/app/m/sessions.rsc +6 -6
  276. package/.next/standalone/.next/server/app/m/sessions.segments/_full.segment.rsc +6 -6
  277. package/.next/standalone/.next/server/app/m/sessions.segments/_head.segment.rsc +1 -1
  278. package/.next/standalone/.next/server/app/m/sessions.segments/_index.segment.rsc +3 -3
  279. package/.next/standalone/.next/server/app/m/sessions.segments/_tree.segment.rsc +2 -2
  280. package/.next/standalone/.next/server/app/m/sessions.segments/m/sessions/__PAGE__.segment.rsc +2 -2
  281. package/.next/standalone/.next/server/app/m/sessions.segments/m/sessions.segment.rsc +1 -1
  282. package/.next/standalone/.next/server/app/m/sessions.segments/m.segment.rsc +2 -2
  283. package/.next/standalone/.next/server/app/m/settings/page/build-manifest.json +2 -2
  284. package/.next/standalone/.next/server/app/m/settings/page.js +1 -1
  285. package/.next/standalone/.next/server/app/m/settings/page.js.nft.json +1 -1
  286. package/.next/standalone/.next/server/app/m/settings/page_client-reference-manifest.js +1 -1
  287. package/.next/standalone/.next/server/app/m/settings.html +1 -1
  288. package/.next/standalone/.next/server/app/m/settings.rsc +6 -6
  289. package/.next/standalone/.next/server/app/m/settings.segments/_full.segment.rsc +6 -6
  290. package/.next/standalone/.next/server/app/m/settings.segments/_head.segment.rsc +1 -1
  291. package/.next/standalone/.next/server/app/m/settings.segments/_index.segment.rsc +3 -3
  292. package/.next/standalone/.next/server/app/m/settings.segments/_tree.segment.rsc +2 -2
  293. package/.next/standalone/.next/server/app/m/settings.segments/m/settings/__PAGE__.segment.rsc +2 -2
  294. package/.next/standalone/.next/server/app/m/settings.segments/m/settings.segment.rsc +1 -1
  295. package/.next/standalone/.next/server/app/m/settings.segments/m.segment.rsc +2 -2
  296. package/.next/standalone/.next/server/app/m/terminal/page/build-manifest.json +2 -2
  297. package/.next/standalone/.next/server/app/m/terminal/page.js +1 -1
  298. package/.next/standalone/.next/server/app/m/terminal/page.js.nft.json +1 -1
  299. package/.next/standalone/.next/server/app/m/terminal/page_client-reference-manifest.js +1 -1
  300. package/.next/standalone/.next/server/app/m/terminal.html +1 -1
  301. package/.next/standalone/.next/server/app/m/terminal.rsc +6 -6
  302. package/.next/standalone/.next/server/app/m/terminal.segments/_full.segment.rsc +6 -6
  303. package/.next/standalone/.next/server/app/m/terminal.segments/_head.segment.rsc +1 -1
  304. package/.next/standalone/.next/server/app/m/terminal.segments/_index.segment.rsc +3 -3
  305. package/.next/standalone/.next/server/app/m/terminal.segments/_tree.segment.rsc +2 -2
  306. package/.next/standalone/.next/server/app/m/terminal.segments/m/terminal/__PAGE__.segment.rsc +2 -2
  307. package/.next/standalone/.next/server/app/m/terminal.segments/m/terminal.segment.rsc +1 -1
  308. package/.next/standalone/.next/server/app/m/terminal.segments/m.segment.rsc +2 -2
  309. package/.next/standalone/.next/server/app/m.html +1 -1
  310. package/.next/standalone/.next/server/app/m.rsc +6 -6
  311. package/.next/standalone/.next/server/app/m.segments/_full.segment.rsc +6 -6
  312. package/.next/standalone/.next/server/app/m.segments/_head.segment.rsc +1 -1
  313. package/.next/standalone/.next/server/app/m.segments/_index.segment.rsc +3 -3
  314. package/.next/standalone/.next/server/app/m.segments/_tree.segment.rsc +2 -2
  315. package/.next/standalone/.next/server/app/m.segments/m/__PAGE__.segment.rsc +2 -2
  316. package/.next/standalone/.next/server/app/m.segments/m.segment.rsc +2 -2
  317. package/.next/standalone/.next/server/app/network.html +1 -1
  318. package/.next/standalone/.next/server/app/network.rsc +6 -6
  319. package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap/network/__PAGE__.segment.rsc +2 -2
  320. package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap/network.segment.rsc +1 -1
  321. package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  322. package/.next/standalone/.next/server/app/network.segments/_full.segment.rsc +6 -6
  323. package/.next/standalone/.next/server/app/network.segments/_head.segment.rsc +1 -1
  324. package/.next/standalone/.next/server/app/network.segments/_index.segment.rsc +3 -3
  325. package/.next/standalone/.next/server/app/network.segments/_tree.segment.rsc +2 -2
  326. package/.next/standalone/.next/server/app/projects.html +1 -1
  327. package/.next/standalone/.next/server/app/projects.rsc +6 -6
  328. package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap/projects/__PAGE__.segment.rsc +2 -2
  329. package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap/projects.segment.rsc +1 -1
  330. package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  331. package/.next/standalone/.next/server/app/projects.segments/_full.segment.rsc +6 -6
  332. package/.next/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
  333. package/.next/standalone/.next/server/app/projects.segments/_index.segment.rsc +3 -3
  334. package/.next/standalone/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
  335. package/.next/standalone/.next/server/app/sessions.html +1 -1
  336. package/.next/standalone/.next/server/app/sessions.rsc +6 -6
  337. package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap/sessions/__PAGE__.segment.rsc +2 -2
  338. package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap/sessions.segment.rsc +1 -1
  339. package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  340. package/.next/standalone/.next/server/app/sessions.segments/_full.segment.rsc +6 -6
  341. package/.next/standalone/.next/server/app/sessions.segments/_head.segment.rsc +1 -1
  342. package/.next/standalone/.next/server/app/sessions.segments/_index.segment.rsc +3 -3
  343. package/.next/standalone/.next/server/app/sessions.segments/_tree.segment.rsc +2 -2
  344. package/.next/standalone/.next/server/app/settings.html +1 -1
  345. package/.next/standalone/.next/server/app/settings.rsc +6 -6
  346. package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap/settings/__PAGE__.segment.rsc +2 -2
  347. package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap/settings.segment.rsc +1 -1
  348. package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  349. package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +6 -6
  350. package/.next/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  351. package/.next/standalone/.next/server/app/settings.segments/_index.segment.rsc +3 -3
  352. package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  353. package/.next/standalone/.next/server/app/terminal.html +1 -1
  354. package/.next/standalone/.next/server/app/terminal.rsc +6 -6
  355. package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap/terminal/__PAGE__.segment.rsc +2 -2
  356. package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap/terminal.segment.rsc +1 -1
  357. package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  358. package/.next/standalone/.next/server/app/terminal.segments/_full.segment.rsc +6 -6
  359. package/.next/standalone/.next/server/app/terminal.segments/_head.segment.rsc +1 -1
  360. package/.next/standalone/.next/server/app/terminal.segments/_index.segment.rsc +3 -3
  361. package/.next/standalone/.next/server/app/terminal.segments/_tree.segment.rsc +2 -2
  362. package/.next/standalone/.next/server/app/workspaces.html +1 -1
  363. package/.next/standalone/.next/server/app/workspaces.rsc +6 -6
  364. package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap/workspaces/__PAGE__.segment.rsc +2 -2
  365. package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap/workspaces.segment.rsc +1 -1
  366. package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  367. package/.next/standalone/.next/server/app/workspaces.segments/_full.segment.rsc +6 -6
  368. package/.next/standalone/.next/server/app/workspaces.segments/_head.segment.rsc +1 -1
  369. package/.next/standalone/.next/server/app/workspaces.segments/_index.segment.rsc +3 -3
  370. package/.next/standalone/.next/server/app/workspaces.segments/_tree.segment.rsc +2 -2
  371. package/.next/standalone/.next/server/app-paths-manifest.json +5 -0
  372. package/.next/standalone/.next/server/chunks/[externals]_chokidar_a0cd9157._.js +3 -0
  373. package/.next/standalone/.next/server/chunks/[root-of-the-server]__025cd038._.js +3 -0
  374. package/.next/standalone/.next/server/chunks/[root-of-the-server]__042ba2bc._.js +3 -0
  375. package/.next/standalone/.next/server/chunks/[root-of-the-server]__07cc153d._.js +3 -0
  376. package/.next/standalone/.next/server/chunks/[root-of-the-server]__08e411dd._.js +3 -0
  377. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0add852f._.js +3 -0
  378. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0c113ed0._.js +3 -0
  379. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0cf032ab._.js +3 -0
  380. package/.next/standalone/.next/server/chunks/[root-of-the-server]__11293532._.js +13 -0
  381. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1194f2c1._.js +3 -0
  382. package/.next/standalone/.next/server/chunks/[root-of-the-server]__19c2d094._.js +3 -0
  383. package/.next/standalone/.next/server/chunks/[root-of-the-server]__19c3ad21._.js +3 -0
  384. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1ebc634e._.js +3 -0
  385. package/.next/standalone/.next/server/chunks/[root-of-the-server]__24197539._.js +3 -0
  386. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2891c969._.js +11 -0
  387. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2c6e6625._.js +3 -0
  388. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2fe2b40e._.js +3 -0
  389. package/.next/standalone/.next/server/chunks/[root-of-the-server]__318f12c6._.js +3 -0
  390. package/.next/standalone/.next/server/chunks/[root-of-the-server]__32df12e4._.js +3 -0
  391. package/.next/standalone/.next/server/chunks/[root-of-the-server]__34e7cb21._.js +3 -0
  392. package/.next/standalone/.next/server/chunks/[root-of-the-server]__49c92d87._.js +3 -0
  393. package/.next/standalone/.next/server/chunks/[root-of-the-server]__52bde30c._.js +3 -0
  394. package/.next/standalone/.next/server/chunks/[root-of-the-server]__53090a81._.js +3 -0
  395. package/.next/standalone/.next/server/chunks/[root-of-the-server]__57193cf5._.js +3 -0
  396. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5c33078d._.js +3 -0
  397. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5f8c694a._.js +3 -0
  398. package/.next/standalone/.next/server/chunks/[root-of-the-server]__630b9a6a._.js +3 -0
  399. package/.next/standalone/.next/server/chunks/[root-of-the-server]__727d05f1._.js +3 -0
  400. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__b71497ab._.js → [root-of-the-server]__75a774f0._.js} +19 -18
  401. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__89124c96._.js → [root-of-the-server]__7f0bc701._.js} +19 -18
  402. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8915603e._.js +3 -0
  403. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8afe4d5e._.js +3 -0
  404. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9d15de27._.js +3 -0
  405. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a1fbc199._.js +3 -0
  406. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a1fe6070._.js +3 -0
  407. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a3f604d6._.js +3 -0
  408. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a5504205._.js +3 -0
  409. package/.next/standalone/.next/server/chunks/[root-of-the-server]__abf53d11._.js +3 -0
  410. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b78eeead._.js +11 -0
  411. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c1b8f8f6._.js +3 -0
  412. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c3c74ca4._.js +3 -0
  413. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c79824d9._.js +3 -0
  414. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c9db5d8a._.js +3 -0
  415. package/.next/standalone/.next/server/chunks/[root-of-the-server]__cbd9cb15._.js +3 -0
  416. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ccb4e920._.js +3 -0
  417. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d15515e3._.js +3 -0
  418. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d490583e._.js +3 -0
  419. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d9c106a9._.js +3 -0
  420. package/.next/standalone/.next/server/chunks/[root-of-the-server]__de2c3bf8._.js +3 -0
  421. package/.next/standalone/.next/server/chunks/[root-of-the-server]__dfbf7bdd._.js +19 -0
  422. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e1e26f47._.js +3 -0
  423. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ee9346bf._.js +3 -0
  424. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fea012d6._.js +3 -0
  425. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ff1b0769._.js +3 -0
  426. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_tier_route_actions_6186023b.js +3 -0
  427. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_workspaces_[id]_context_route_actions_e9cb4bed.js +3 -0
  428. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_workspaces_[id]_messages_route_actions_0cf1d576.js +3 -0
  429. package/.next/standalone/.next/server/chunks/ce889_server_app_api_workspaces_[id]_context_[key]_route_actions_8e11e764.js +3 -0
  430. package/.next/standalone/.next/server/chunks/ce889_server_app_api_workspaces_[id]_messages_[msgId]_route_actions_008a0317.js +3 -0
  431. package/.next/standalone/.next/server/chunks/src_lib_events_sse_ts_1ad73980._.js +6 -0
  432. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__ea64930e._.js → [root-of-the-server]__2b4e2acc._.js} +2 -2
  433. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__36a11bc9._.js +1 -1
  434. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__63c35e0f._.js +3 -0
  435. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__650a172d._.js +3 -0
  436. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__ba1024f6._.js → [root-of-the-server]__67234962._.js} +2 -2
  437. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__72acd514._.js → [root-of-the-server]__c73bef9a._.js} +2 -2
  438. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__e921fdfc._.js +5 -0
  439. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__eac7aeff._.js +3 -0
  440. package/.next/standalone/.next/server/chunks/ssr/{_548abc09._.js → _0946fdc3._.js} +1 -1
  441. package/.next/standalone/.next/server/chunks/ssr/_1f12caba._.js +2 -2
  442. package/.next/standalone/.next/server/chunks/ssr/_2230ad2d._.js +3 -0
  443. package/.next/standalone/.next/server/chunks/ssr/_3b54193d._.js +1 -1
  444. package/.next/standalone/.next/server/chunks/ssr/_43e7e611._.js +2 -2
  445. package/.next/standalone/.next/server/chunks/ssr/_5ac43c5d._.js +1 -3
  446. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__3611990a._.js → _cd0986af._.js} +2 -2
  447. package/.next/standalone/.next/server/chunks/ssr/_cd50a174._.js +3 -0
  448. package/.next/standalone/.next/server/chunks/ssr/{_7e741697._.js → _de57b857._.js} +2 -2
  449. package/.next/standalone/.next/server/chunks/ssr/_ef42f47a._.js +3 -0
  450. package/.next/standalone/.next/server/chunks/ssr/_f67f58f1._.js +1 -1
  451. package/.next/standalone/.next/server/chunks/ssr/{_dd004864._.js → _fbc5e000._.js} +1 -1
  452. package/.next/standalone/.next/server/chunks/ssr/node_modules_861e98fe._.js +1 -1
  453. package/.next/standalone/.next/server/chunks/ssr/src_app_(desktop)_terminal_page_tsx_de5e8d85._.js +1 -1
  454. package/.next/standalone/.next/server/chunks/ssr/src_app_m_terminal_page_tsx_553a0130._.js +2 -2
  455. package/.next/standalone/.next/server/edge/chunks/{[root-of-the-server]__6154bdc0._.js → [root-of-the-server]__32a0045c._.js} +3 -5
  456. package/.next/standalone/.next/server/edge/chunks/{turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_03b33eff.js → turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_a5230bba.js} +2 -2
  457. package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
  458. package/.next/standalone/.next/server/middleware-manifest.json +7 -7
  459. package/.next/standalone/.next/server/pages/404.html +1 -1
  460. package/.next/standalone/.next/server/pages/500.html +2 -2
  461. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  462. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  463. package/.next/standalone/.next/static/chunks/{4bd6943fa4082aa9.js → 3165c61fb2e4045d.js} +1 -1
  464. package/.next/standalone/.next/static/chunks/{f58f62604604c529.js → 31f45c67350373f2.js} +2 -2
  465. package/.next/standalone/.next/static/chunks/3c4ee171d96760e8.js +5 -0
  466. package/.next/standalone/.next/static/chunks/4e792c3078e37704.js +5 -0
  467. package/.next/standalone/.next/static/chunks/65afda485a466977.js +1 -0
  468. package/.next/standalone/.next/static/chunks/780381483091d8fb.js +1 -0
  469. package/.next/standalone/.next/static/chunks/7c1e6d7f1d3b4173.js +5 -0
  470. package/.next/standalone/.next/static/chunks/806334ea0f6ca92a.css +3 -0
  471. package/.next/standalone/.next/static/chunks/{0b733ac17fcb2bef.js → 8cc07e8d950d6962.js} +1 -1
  472. package/.next/standalone/.next/static/chunks/d0c839c82cf232b8.js +1 -0
  473. package/.next/standalone/.next/static/chunks/e6134a48180c8a36.js +1 -0
  474. package/.next/standalone/.next/static/chunks/{7de9141b1af425c3.js → e7772d64463868eb.js} +1 -1
  475. package/.next/standalone/.next/static/chunks/{e94f6965199a47e7.js → eb780226f5bd3892.js} +1 -1
  476. package/.next/standalone/.next/static/chunks/f2b58d718b34646d.js +1 -0
  477. package/.next/standalone/.next/static/chunks/f789a1d0736e1154.js +1 -0
  478. package/.next/standalone/.next/static/chunks/{turbopack-947de56768b27172.js → turbopack-ea18b8255590c757.js} +1 -1
  479. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/README.md +46 -0
  480. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  481. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +1 -0
  482. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  483. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/package.json +42 -0
  484. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
  485. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  486. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
  487. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  488. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
  489. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  490. package/.next/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  491. package/.next/standalone/node_modules/@img/{sharp-win32-x64 → sharp-linux-x64}/package.json +46 -39
  492. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  493. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
  494. package/.next/standalone/node_modules/chokidar/LICENSE +21 -0
  495. package/.next/standalone/node_modules/chokidar/README.md +305 -0
  496. package/.next/standalone/node_modules/chokidar/handler.js +632 -0
  497. package/.next/standalone/node_modules/chokidar/index.js +822 -0
  498. package/.next/standalone/node_modules/chokidar/package.json +63 -0
  499. package/.next/standalone/node_modules/readdirp/LICENSE +21 -0
  500. package/.next/standalone/node_modules/readdirp/README.md +120 -0
  501. package/.next/standalone/node_modules/readdirp/index.js +272 -0
  502. package/.next/standalone/node_modules/readdirp/package.json +66 -0
  503. package/.next/standalone/package.json +91 -90
  504. package/.next/standalone/server.js +1 -1
  505. package/.next/standalone/tsconfig.json +34 -34
  506. package/LICENSE +661 -21
  507. package/README.md +131 -121
  508. package/bin/fix-standalone-externals.js +79 -53
  509. package/bin/lib/auto-setup.js +101 -0
  510. package/bin/mdns-service.js +171 -171
  511. package/bin/postinstall.js +35 -0
  512. package/bin/setup-admin.js +189 -189
  513. package/bin/spaces-dev.js +173 -108
  514. package/bin/spaces-setup.js +242 -0
  515. package/bin/spaces.js +318 -155
  516. package/bin/terminal-server.js +1051 -990
  517. package/package.json +91 -90
  518. package/.next/standalone/.next/server/chunks/[externals]_node +0 -0
  519. package/.next/standalone/.next/server/chunks/[root-of-the-server]__01c98454._.js +0 -3
  520. package/.next/standalone/.next/server/chunks/[root-of-the-server]__18b8f7d9._.js +0 -3
  521. package/.next/standalone/.next/server/chunks/[root-of-the-server]__193cb667._.js +0 -5
  522. package/.next/standalone/.next/server/chunks/[root-of-the-server]__25b4d5ca._.js +0 -3
  523. package/.next/standalone/.next/server/chunks/[root-of-the-server]__280398d8._.js +0 -3
  524. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2a4c2db6._.js +0 -13
  525. package/.next/standalone/.next/server/chunks/[root-of-the-server]__3fd6439e._.js +0 -3
  526. package/.next/standalone/.next/server/chunks/[root-of-the-server]__40c21d75._.js +0 -5
  527. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4375a280._.js +0 -5
  528. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4950da9c._.js +0 -3
  529. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a77d855._.js +0 -3
  530. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4d551a41._.js +0 -5
  531. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5420fbcd._.js +0 -3
  532. package/.next/standalone/.next/server/chunks/[root-of-the-server]__586418c6._.js +0 -5
  533. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5c2f4a8e._.js +0 -3
  534. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5eaa589f._.js +0 -3
  535. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5f4dc1dd._.js +0 -5
  536. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5ff6b7d9._.js +0 -3
  537. package/.next/standalone/.next/server/chunks/[root-of-the-server]__65509457._.js +0 -3
  538. package/.next/standalone/.next/server/chunks/[root-of-the-server]__65620687._.js +0 -5
  539. package/.next/standalone/.next/server/chunks/[root-of-the-server]__76e7a7b9._.js +0 -3
  540. package/.next/standalone/.next/server/chunks/[root-of-the-server]__7fae7bd7._.js +0 -3
  541. package/.next/standalone/.next/server/chunks/[root-of-the-server]__821ffcfb._.js +0 -5
  542. package/.next/standalone/.next/server/chunks/[root-of-the-server]__83676993._.js +0 -3
  543. package/.next/standalone/.next/server/chunks/[root-of-the-server]__86e02dd1._.js +0 -5
  544. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8a7fae80._.js +0 -5
  545. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8af8821a._.js +0 -3
  546. package/.next/standalone/.next/server/chunks/[root-of-the-server]__93e1af64._.js +0 -3
  547. package/.next/standalone/.next/server/chunks/[root-of-the-server]__94f437bd._.js +0 -3
  548. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e9f597a._.js +0 -3
  549. package/.next/standalone/.next/server/chunks/[root-of-the-server]__aae49c2b._.js +0 -15
  550. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ab25b881._.js +0 -3
  551. package/.next/standalone/.next/server/chunks/[root-of-the-server]__aef285c3._.js +0 -5
  552. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b52523c7._.js +0 -3
  553. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b607a85c._.js +0 -5
  554. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b950ac1e._.js +0 -3
  555. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c6355fd6._.js +0 -3
  556. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d1771755._.js +0 -3
  557. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d55d3167._.js +0 -12
  558. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d9533783._.js +0 -3
  559. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d9540965._.js +0 -21
  560. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ddbb7b16._.js +0 -5
  561. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e4989332._.js +0 -5
  562. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e7a6a584._.js +0 -3
  563. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ed0f1148._.js +0 -5
  564. package/.next/standalone/.next/server/chunks/[root-of-the-server]__f1436778._.js +0 -5
  565. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fe65bfb1._.js +0 -3
  566. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__17ba2e09._.js +0 -3
  567. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__6bd17d85._.js +0 -5
  568. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__7e604f3d._.js +0 -3
  569. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__a923e475._.js +0 -5
  570. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__d23f4926._.js +0 -5
  571. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__e3bf6054._.js +0 -5
  572. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__f08a4c64._.js +0 -3
  573. package/.next/standalone/.next/static/chunks/01580b24a27526a9.css +0 -3
  574. package/.next/standalone/.next/static/chunks/06e3af139a18e326.js +0 -5
  575. package/.next/standalone/.next/static/chunks/13c233fe06728b88.js +0 -1
  576. package/.next/standalone/.next/static/chunks/1f4937830aceaae2.js +0 -1
  577. package/.next/standalone/.next/static/chunks/6b8fb2027281ae5d.js +0 -3
  578. package/.next/standalone/.next/static/chunks/76698b8c3d5cae75.js +0 -1
  579. package/.next/standalone/.next/static/chunks/7fbc5bdede00e3c9.js +0 -1
  580. package/.next/standalone/.next/static/chunks/acbcf40fb5a2ca5e.js +0 -1
  581. package/.next/standalone/.next/static/chunks/db03df936139672b.js +0 -1
  582. package/.next/standalone/.next/static/chunks/e7ac38524a30e234.js +0 -5
  583. package/.next/standalone/.next/static/chunks/f8cf8e5a643bd23f.js +0 -5
  584. package/.next/standalone/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64.node +0 -0
  585. package/.next/standalone/node_modules/better-sqlite3/build/Release/better_sqlite3.node +0 -0
  586. package/.next/standalone/node_modules/better-sqlite3/lib/database.js +0 -90
  587. package/.next/standalone/node_modules/better-sqlite3/lib/index.js +0 -3
  588. package/.next/standalone/node_modules/better-sqlite3/lib/methods/aggregate.js +0 -43
  589. package/.next/standalone/node_modules/better-sqlite3/lib/methods/backup.js +0 -67
  590. package/.next/standalone/node_modules/better-sqlite3/lib/methods/function.js +0 -31
  591. package/.next/standalone/node_modules/better-sqlite3/lib/methods/inspect.js +0 -7
  592. package/.next/standalone/node_modules/better-sqlite3/lib/methods/pragma.js +0 -12
  593. package/.next/standalone/node_modules/better-sqlite3/lib/methods/serialize.js +0 -16
  594. package/.next/standalone/node_modules/better-sqlite3/lib/methods/table.js +0 -189
  595. package/.next/standalone/node_modules/better-sqlite3/lib/methods/transaction.js +0 -78
  596. package/.next/standalone/node_modules/better-sqlite3/lib/methods/wrappers.js +0 -54
  597. package/.next/standalone/node_modules/better-sqlite3/lib/sqlite-error.js +0 -20
  598. package/.next/standalone/node_modules/better-sqlite3/lib/util.js +0 -12
  599. package/.next/standalone/node_modules/better-sqlite3/package.json +0 -59
  600. package/.next/standalone/node_modules/bindings/bindings.js +0 -221
  601. package/.next/standalone/node_modules/bindings/package.json +0 -28
  602. package/.next/standalone/node_modules/detect-libc/lib/detect-libc.js +0 -313
  603. package/.next/standalone/node_modules/detect-libc/lib/elf.js +0 -39
  604. package/.next/standalone/node_modules/detect-libc/lib/filesystem.js +0 -51
  605. package/.next/standalone/node_modules/detect-libc/lib/process.js +0 -24
  606. package/.next/standalone/node_modules/detect-libc/package.json +0 -44
  607. package/.next/standalone/node_modules/file-uri-to-path/index.js +0 -66
  608. package/.next/standalone/node_modules/file-uri-to-path/package.json +0 -32
  609. /package/.next/standalone/.next/static/{PuVTvEgStc9tACVRts-l5 → k4gRsS979E-cbl1AWcHhx}/_buildManifest.js +0 -0
  610. /package/.next/standalone/.next/static/{PuVTvEgStc9tACVRts-l5 → k4gRsS979E-cbl1AWcHhx}/_clientMiddlewareManifest.json +0 -0
  611. /package/.next/standalone/.next/static/{PuVTvEgStc9tACVRts-l5 → k4gRsS979E-cbl1AWcHhx}/_ssgManifest.js +0 -0
  612. /package/.next/standalone/node_modules/@img/{sharp-win32-x64 → sharp-libvips-linux-x64}/versions.json +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31278,e=>{"use strict";let t=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],31278)},66027,54616,e=>{"use strict";let t;var s=e.i(75555),r=e.i(40143),i=e.i(86491),n=e.i(15823),a=e.i(93803),o=e.i(19273),u=e.i(80166),l=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#s=(0,a.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#r=void 0;#i=void 0;#n=void 0;#a;#o;#s;#t;#u;#l;#c;#h;#d;#p;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#r.addObserver(this),c(this.#r,this.options)?this.#f():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#r,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#r,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#b(),this.#r.removeObserver(this)}setOptions(e){let t=this.options,s=this.#r;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#r))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#r.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#r,observer:this});let r=this.hasListeners();r&&d(this.#r,s,this.options,t)&&this.#f(),this.updateResult(),r&&(this.#r!==s||(0,o.resolveEnabled)(this.options.enabled,this.#r)!==(0,o.resolveEnabled)(t.enabled,this.#r)||(0,o.resolveStaleTime)(this.options.staleTime,this.#r)!==(0,o.resolveStaleTime)(t.staleTime,this.#r))&&this.#v();let i=this.#R();r&&(this.#r!==s||(0,o.resolveEnabled)(this.options.enabled,this.#r)!==(0,o.resolveEnabled)(t.enabled,this.#r)||i!==this.#p)&&this.#w(i)}getOptimisticResult(e){var t,s;let r=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(r,e);return t=this,s=i,(0,o.shallowEqualObjects)(t.getCurrentResult(),s)||(this.#n=i,this.#o=this.options,this.#a=this.#r.state),i}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(e,s)=>(this.trackProp(s),t?.(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#s.status||this.#s.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,s))})}trackProp(e){this.#y.add(e)}getCurrentQuery(){return this.#r}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),s=this.#e.getQueryCache().build(this.#e,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(e){this.#g();let t=this.#r.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#v(){this.#x();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#r);if(o.isServer||this.#n.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#n.dataUpdatedAt,e);this.#h=u.timeoutManager.setTimeout(()=>{this.#n.isStale||this.updateResult()},t+1)}#R(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#r):this.options.refetchInterval)??!1}#w(e){this.#b(),this.#p=e,!o.isServer&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#r)&&(0,o.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#d=u.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||s.focusManager.isFocused())&&this.#f()},this.#p))}#m(){this.#v(),this.#w(this.#R())}#x(){this.#h&&(u.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}#b(){this.#d&&(u.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let s,r=this.#r,n=this.options,u=this.#n,l=this.#a,h=this.#o,y=e!==r?e.state:this.#i,{state:f}=e,m={...f},x=!1;if(t._optimisticResults){let s=this.hasListeners(),a=!s&&c(e,t),o=s&&d(e,r,t,n);(a||o)&&(m={...m,...(0,i.fetchState)(f.data,e.options)}),"isRestoring"===t._optimisticResults&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:v}=m;s=m.data;let R=!1;if(void 0!==t.placeholderData&&void 0===s&&"pending"===v){let e;u?.isPlaceholderData&&t.placeholderData===h?.placeholderData?(e=u.data,R=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(v="success",s=(0,o.replaceData)(u?.data,e,t),x=!0)}if(t.select&&void 0!==s&&!R)if(u&&s===l?.data&&t.select===this.#u)s=this.#l;else try{this.#u=t.select,s=t.select(s),s=(0,o.replaceData)(u?.data,s,t),this.#l=s,this.#t=null}catch(e){this.#t=e}this.#t&&(b=this.#t,s=this.#l,g=Date.now(),v="error");let w="fetching"===m.fetchStatus,S="pending"===v,j="error"===v,Q=S&&w,k=void 0!==s,T={status:v,fetchStatus:m.fetchStatus,isPending:S,isSuccess:"success"===v,isError:j,isInitialLoading:Q,isLoading:Q,data:s,dataUpdatedAt:m.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>y.dataUpdateCount||m.errorUpdateCount>y.errorUpdateCount,isFetching:w,isRefetching:w&&!S,isLoadingError:j&&!k,isPaused:"paused"===m.fetchStatus,isPlaceholderData:x,isRefetchError:j&&k,isStale:p(e,t),refetch:this.refetch,promise:this.#s,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==T.data,s="error"===T.status&&!t,i=e=>{s?e.reject(T.error):t&&e.resolve(T.data)},n=()=>{i(this.#s=T.promise=(0,a.pendingThenable)())},o=this.#s;switch(o.status){case"pending":e.queryHash===r.queryHash&&i(o);break;case"fulfilled":(s||T.data!==o.value)&&n();break;case"rejected":s&&T.error===o.reason||n()}}return T}updateResult(){let e=this.#n,t=this.createResult(this.#r,this.options);if(this.#a=this.#r.state,this.#o=this.options,void 0!==this.#a.data&&(this.#c=this.#r),(0,o.shallowEqualObjects)(t,e))return;this.#n=t;let s=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.#y.size)return!0;let r=new Set(s??this.#y);return this.options.throwOnError&&r.add("error"),Object.keys(this.#n).some(t=>this.#n[t]!==e[t]&&r.has(t))};this.#S({listeners:s()})}#g(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#r)return;let t=this.#r;this.#r=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}#S(e){r.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#r,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,s){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let r="function"==typeof s?s(e):s;return"always"===r||!1!==r&&p(e,t)}return!1}function d(e,t,s,r){return(e!==t||!1===(0,o.resolveEnabled)(r.enabled,e))&&(!s.suspense||"error"!==e.state.status)&&p(e,s)}function p(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.i(47167);var y=e.i(71645),f=e.i(12598);e.i(18050);var m=y.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),x=y.createContext(!1);x.Provider;var b=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function g(e,t){return function(e,t,s){let i,n=y.useContext(x),a=y.useContext(m),u=(0,f.useQueryClient)(s),l=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(l);let c=u.getQueryCache().get(l.queryHash);if(l._optimisticResults=n?"isRestoring":"optimistic",l.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=l.staleTime;l.staleTime="function"==typeof t?(...s)=>e(t(...s)):e(t),"number"==typeof l.gcTime&&(l.gcTime=Math.max(l.gcTime,1e3))}i=c?.state.error&&"function"==typeof l.throwOnError?(0,o.shouldThrowError)(l.throwOnError,[c.state.error,c]):l.throwOnError,(l.suspense||l.experimental_prefetchInRender||i)&&!a.isReset()&&(l.retryOnMount=!1),y.useEffect(()=>{a.clearReset()},[a]);let h=!u.getQueryCache().get(l.queryHash),[d]=y.useState(()=>new t(u,l)),p=d.getOptimisticResult(l),g=!n&&!1!==e.subscribed;if(y.useSyncExternalStore(y.useCallback(e=>{let t=g?d.subscribe(r.notifyManager.batchCalls(e)):o.noop;return d.updateResult(),t},[d,g]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),y.useEffect(()=>{d.setOptions(l)},[l,d]),l?.suspense&&p.isPending)throw b(l,d,a);if((({result:e,errorResetBoundary:t,throwOnError:s,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&void 0===e.data||(0,o.shouldThrowError)(s,[e.error,r])))({result:p,errorResetBoundary:a,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw p.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(l,p),l.experimental_prefetchInRender&&!o.isServer&&p.isLoading&&p.isFetching&&!n){let e=h?b(l,d,a):c?.promise;e?.catch(o.noop).finally(()=>{d.updateResult()})}return l.notifyOnChangeProps?p:d.trackResult(p)}(e,l,t)}e.s(["useQuery",()=>g],66027);var v=e.i(14272),R=n,w=class extends R.Subscribable{#e;#n=void 0;#j;#Q;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#k()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#j,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.hashKey)(t.mutationKey)!==(0,o.hashKey)(this.options.mutationKey)?this.reset():this.#j?.state.status==="pending"&&this.#j.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#j?.removeObserver(this)}onMutationUpdate(e){this.#k(),this.#S(e)}getCurrentResult(){return this.#n}reset(){this.#j?.removeObserver(this),this.#j=void 0,this.#k(),this.#S()}mutate(e,t){return this.#Q=t,this.#j?.removeObserver(this),this.#j=this.#e.getMutationCache().build(this.#e,this.options),this.#j.addObserver(this),this.#j.execute(e)}#k(){let e=this.#j?.state??(0,v.getDefaultState)();this.#n={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#S(e){r.notifyManager.batch(()=>{if(this.#Q&&this.hasListeners()){let t=this.#n.variables,s=this.#n.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#Q.onSuccess?.(e.data,t,s,r)}catch(e){Promise.reject(e)}try{this.#Q.onSettled?.(e.data,null,t,s,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#Q.onError?.(e.error,t,s,r)}catch(e){Promise.reject(e)}try{this.#Q.onSettled?.(void 0,e.error,t,s,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#n)})})}};function S(e,t){let s=(0,f.useQueryClient)(t),[i]=y.useState(()=>new w(s,e));y.useEffect(()=>{i.setOptions(e)},[i,e]);let n=y.useSyncExternalStore(y.useCallback(e=>i.subscribe(r.notifyManager.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=y.useCallback((e,t)=>{i.mutate(e,t).catch(o.noop)},[i]);if(n.error&&(0,o.shouldThrowError)(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}e.s(["useMutation",()=>S],54616)},3999,e=>{"use strict";var t=e.i(66027),s=e.i(54616),r=e.i(12598),i=e.i(9165);function n(e={}){return(0,t.useQuery)({queryKey:["sessions",e],queryFn:async()=>{let t=new URLSearchParams;return e.projectId&&t.set("projectId",e.projectId),void 0!==e.starred&&t.set("starred",String(e.starred)),e.search&&t.set("search",e.search),e.agentType&&t.set("agentType",e.agentType),e.sortBy&&t.set("sortBy",e.sortBy),e.sortDir&&t.set("sortDir",e.sortDir),void 0!==e.offset&&t.set("offset",String(e.offset)),void 0!==e.limit&&t.set("limit",String(e.limit)),"all"===e.nodeFilter&&t.set("nodes","all"),(await fetch((0,i.api)(`/api/sessions?${t}`))).json()}})}function a(e){return(0,t.useQuery)({queryKey:["session",e],queryFn:async()=>{let t=await fetch((0,i.api)(`/api/sessions/${e}`));if(!t.ok)throw Error("Session not found");return t.json()},enabled:!!e})}function o(e,s=0,r=50,n){return(0,t.useQuery)({queryKey:["messages",e,s,r,n],queryFn:async()=>{let t=n?(0,i.api)(`/api/network/proxy/${n}/sessions/${e}/messages?offset=${s}&limit=${r}`):(0,i.api)(`/api/sessions/${e}/messages?offset=${s}&limit=${r}`);return(await fetch(t)).json()},enabled:!!e})}function u(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async e=>(await fetch((0,i.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"star"})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function l(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,notes:t})=>(await fetch((0,i.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"notes",notes:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["session"]})}})}function c(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,tagName:t})=>(await fetch((0,i.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"tag",tagName:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]}),e.invalidateQueries({queryKey:["tags"]})}})}function h(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,tagName:t})=>(await fetch((0,i.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"removeTag",tagName:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]}),e.invalidateQueries({queryKey:["tags"]})}})}function d(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,name:t})=>(await fetch((0,i.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"rename",name:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function p(){return(0,t.useQuery)({queryKey:["tags"],queryFn:async()=>(await fetch((0,i.api)("/api/tags"))).json()})}function y(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async e=>(await fetch((0,i.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",tagId:e})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["tags"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function f(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({tagId:e,color:t})=>(await fetch((0,i.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"updateColor",tagId:e,color:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["tags"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function m(){return(0,t.useQuery)({queryKey:["workspaces"],queryFn:async()=>(await fetch((0,i.api)("/api/workspaces"))).json()})}function x(){return(0,t.useQuery)({queryKey:["workspaces","remote"],queryFn:async()=>(await fetch((0,i.api)("/api/workspaces?nodes=all"))).json()})}function b(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({workspaceId:e,sessionId:t,nodeId:s,title:r,cwd:n,agentType:a})=>{let o=await fetch((0,i.api)(`/api/workspaces/${e}/sessions`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:t,nodeId:s,title:r,cwd:n,agentType:a})});if(!o.ok)throw Error("Failed to add session to workspace");return o.json()},onSuccess:()=>{e.invalidateQueries({queryKey:["workspaces"]}),e.invalidateQueries({queryKey:["workspace-sessions"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function g(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({workspaceId:e,sessionId:t})=>{let s=await fetch((0,i.api)(`/api/workspaces/${e}/sessions`),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:t})});if(!s.ok)throw Error("Failed to remove session from workspace");return s.json()},onSuccess:()=>{e.invalidateQueries({queryKey:["workspaces"]}),e.invalidateQueries({queryKey:["workspace-sessions"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function v(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async e=>(await fetch((0,i.api)("/api/bulk"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["workspaces"]}),e.invalidateQueries({queryKey:["tags"]})}})}function R(){return(0,t.useQuery)({queryKey:["projects"],queryFn:async()=>(await fetch((0,i.api)("/api/projects"))).json()})}function w(){return(0,t.useQuery)({queryKey:["analytics"],queryFn:async()=>(await fetch((0,i.api)("/api/analytics/overview"))).json()})}function S(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async()=>(await fetch((0,i.api)("/api/sync"),{method:"POST"})).json(),onSuccess:()=>{e.invalidateQueries()}})}e.s(["useAddSessionToWorkspace",()=>b,"useAddTag",()=>c,"useAnalytics",()=>w,"useBulkAction",()=>v,"useDeleteTag",()=>y,"useMessages",()=>o,"useProjects",()=>R,"useRemoteWorkspaces",()=>x,"useRemoveSessionFromWorkspace",()=>g,"useRemoveTag",()=>h,"useRenameSession",()=>d,"useSession",()=>a,"useSessions",()=>n,"useSync",()=>S,"useTags",()=>p,"useToggleStar",()=>u,"useUpdateNotes",()=>l,"useUpdateTagColor",()=>f,"useWorkspaces",()=>m])},71689,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",()=>t],71689)},91898,e=>{"use strict";var t=e.i(18050),s=e.i(18566),r=e.i(71689),i=e.i(75157);function n({title:e,showBack:n,backHref:a,right:o,className:u}){let l=(0,s.useRouter)();return(0,t.jsxs)("header",{className:(0,i.cn)("sticky top-0 z-40 bg-zinc-950/95 backdrop-blur-sm border-b border-zinc-800","flex items-center gap-3 px-4 h-14 flex-shrink-0",u),children:[n&&(0,t.jsx)("button",{onClick:()=>{a?l.push(a):l.back()},className:"p-1 -ml-1 text-zinc-400 hover:text-white",children:(0,t.jsx)(r.ArrowLeft,{className:"w-5 h-5"})}),(0,t.jsx)("h1",{className:"text-base font-semibold truncate flex-1",children:e}),o&&(0,t.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0",children:o})]})}e.s(["MobileHeader",()=>n])},86536,e=>{"use strict";let t=(0,e.i(75254).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",()=>t],86536)},70273,e=>{"use strict";let t=(0,e.i(75254).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",()=>t],70273)},78894,e=>{"use strict";let t=(0,e.i(75254).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",()=>t],78894)},74886,e=>{"use strict";let t=(0,e.i(75254).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",()=>t],74886)},55436,e=>{"use strict";let t=(0,e.i(75254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],55436)},64659,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",()=>t],64659)},43531,e=>{"use strict";let t=(0,e.i(75254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],43531)},48256,e=>{"use strict";let t=(0,e.i(75254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",()=>t],48256)},88699,e=>{"use strict";let t=(0,e.i(75254).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",()=>t],88699)},68054,e=>{"use strict";let t=(0,e.i(75254).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",()=>t],68054)},63059,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],63059)},14764,e=>{"use strict";let t=(0,e.i(75254).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",()=>t],14764)},14661,e=>{"use strict";var t=e.i(18050),s=e.i(71645),r=e.i(75254);let i=(0,r.default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]),n=(0,r.default)("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);var a=e.i(75157);function o({onTranscript:e}){let{isListening:r,isSupported:o,transcript:u,interimTranscript:l,startListening:c,stopListening:h}=function(){let[e,t]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[n,a]=(0,s.useState)(""),[o,u]=(0,s.useState)(""),l=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=window.SpeechRecognition||window.webkitSpeechRecognition;if(i(!!e),!e)return;let s=new e;s.continuous=!1,s.interimResults=!0,s.lang="en-US",s.onresult=e=>{let t="",s="";for(let r=e.resultIndex;r<e.results.length;r++){let i=e.results[r];i.isFinal?s+=i[0].transcript:t+=i[0].transcript}s?(a(s),u("")):u(t)},s.onerror=()=>{t(!1)},s.onend=()=>{t(!1)},l.current=s},[]);let c=(0,s.useCallback)(()=>{if(l.current&&!e){a(""),u("");try{l.current.start(),t(!0)}catch{}}},[e]);return{isListening:e,isSupported:r,transcript:n,interimTranscript:o,startListening:c,stopListening:(0,s.useCallback)(()=>{if(l.current){try{l.current.stop()}catch{}t(!1)}},[]),resetTranscript:(0,s.useCallback)(()=>{a(""),u("")},[])}}();return((0,s.useEffect)(()=>{u&&e(u)},[u,e]),o)?(0,t.jsxs)("div",{className:"relative flex-shrink-0",children:[(0,t.jsx)("button",{onClick:r?h:c,className:(0,a.cn)("p-2.5 rounded-xl transition-colors",r?"bg-red-500 text-white animate-pulse":"bg-zinc-800 text-zinc-400 hover:text-white"),children:r?(0,t.jsx)(n,{className:"w-4 h-4"}):(0,t.jsx)(i,{className:"w-4 h-4"})}),r&&l&&(0,t.jsx)("div",{className:"absolute bottom-full left-0 mb-2 px-3 py-1.5 bg-zinc-800 border border-zinc-700 rounded-lg text-xs text-zinc-300 whitespace-nowrap max-w-[200px] truncate shadow-xl",children:l})]}):null}e.s(["VoiceInput",()=>o],14661)},84437,e=>{"use strict";var t=e.i(18050),s=e.i(71645),r=e.i(12598),i=e.i(3999),n=e.i(46686),a=e.i(91898),o=e.i(14764),u=e.i(52044),l=e.i(31278),c=e.i(14661),h=e.i(75157),d=e.i(9165),p=e.i(18789),y=e.i(42531);function f({sessionId:e,projectPath:r,onMessageSent:i}){let[n,a]=(0,s.useState)(""),[f,m]=(0,s.useState)(!1),[x,b]=(0,s.useState)(""),[g,v]=(0,s.useState)(null),R=(0,s.useRef)(null),w=(0,s.useRef)(null),S=(0,s.useRef)(null);(0,s.useEffect)(()=>{R.current&&(R.current.style.height="auto",R.current.style.height=`${Math.min(R.current.scrollHeight,120)}px`)},[n]),(0,s.useEffect)(()=>{w.current&&(w.current.scrollTop=w.current.scrollHeight)},[x]);let j=(0,s.useCallback)(async()=>{if(!n.trim()||f)return;m(!0),b(""),v(null);let t=new AbortController;S.current=t;try{let s=await fetch((0,d.api)(`/api/sessions/${e}/chat`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:n.trim(),cwd:r}),signal:t.signal});if(!s.ok){let e=await s.json();v(e.error||"Failed to send message"),m(!1);return}let o=s.body?.getReader();if(!o){v("No response stream"),m(!1);return}let u=new TextDecoder,l="",c="";for(a("");;){let{done:e,value:t}=await o.read();if(e)break;let s=(l+=u.decode(t,{stream:!0})).split("\n\n");for(let e of(l=s.pop()||"",s)){if(!e.startsWith("data: "))continue;let t=e.slice(6);try{let e=JSON.parse(t);if("done"===e.type)i?.();else if("error"===e.type)v(t=>(t||"")+(e.text||""));else if("stderr"===e.type){let t=e.text||"";(t.includes("Error")||t.includes("error"))&&v(e=>(e||"")+t)}else if("assistant"===e.type){let t=e.message?.content||e.content;if(Array.isArray(t))for(let e of t)"text"===e.type&&e.text&&(c+=e.text,b(c))}else if("content_block_delta"===e.type)(e.content?.type==="text_delta"||e.text)&&(c+=e.content?.text||e.text||"",b(c));else if("text"===e.type)c+=e.text||"",b(c);else if("result"===e.type){if(!c){let t=e.result;"string"==typeof t&&(c=t,b(c))}i?.()}}catch{}}}}catch(e){"AbortError"!==e.name&&v(e.message||"Connection failed")}finally{m(!1),S.current=null}},[n,f,e,r,i]);return(0,t.jsxs)("div",{className:"flex-shrink-0 border-t border-zinc-800 bg-zinc-950 pb-[env(safe-area-inset-bottom)]",children:[(x||g||f)&&(0,t.jsx)("div",{className:"border-b border-zinc-800",children:(0,t.jsxs)("div",{ref:w,className:"max-h-40 overflow-y-auto px-4 py-3 text-sm",children:[g&&(0,t.jsx)("div",{className:"text-red-400 text-xs mb-2 bg-red-950/20 rounded px-3 py-2",children:g}),x&&(0,t.jsx)("div",{className:"prose prose-sm prose-invert max-w-none prose-pre:bg-zinc-800 prose-pre:text-xs",children:(0,t.jsx)(p.default,{remarkPlugins:[y.default],children:x})}),f&&!x&&!g&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-zinc-500 text-xs",children:[(0,t.jsx)(l.Loader2,{className:"w-3 h-3 animate-spin"}),"Waiting for Claude..."]})]})}),(0,t.jsxs)("div",{className:"flex items-end gap-2 px-3 py-2",children:[(0,t.jsx)(c.VoiceInput,{onTranscript:e=>{a(t=>t?`${t} ${e}`:e),R.current?.focus()}}),(0,t.jsx)("textarea",{ref:R,value:n,onChange:e=>a(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),j())},placeholder:f?"Claude is thinking...":"Message...",disabled:f,rows:1,className:(0,h.cn)("flex-1 resize-none rounded-xl border px-3 py-2 text-sm bg-zinc-900","focus:outline-none focus:ring-1 focus:ring-indigo-500","placeholder:text-zinc-600 border-zinc-700","max-h-[120px]",f&&"opacity-50")}),f?(0,t.jsx)("button",{onClick:()=>{S.current?.abort(),m(!1)},className:"p-2.5 rounded-xl bg-red-500 text-white flex-shrink-0",children:(0,t.jsx)(u.Square,{className:"w-4 h-4"})}):(0,t.jsx)("button",{onClick:j,disabled:!n.trim(),className:(0,h.cn)("p-2.5 rounded-xl flex-shrink-0",n.trim()?"bg-indigo-500 text-white":"bg-zinc-800 text-zinc-600"),children:(0,t.jsx)(o.Send,{className:"w-4 h-4"})})]})]})}var m=e.i(70273),x=e.i(75505),b=e.i(86311);function g({params:e}){let{id:o}=(0,s.use)(e),[u,c]=(0,s.useState)([]),[d,p]=(0,s.useState)(0),y=(0,s.useRef)(null),{data:g,isLoading:v}=(0,i.useSession)(o),{data:R,isLoading:w}=(0,i.useMessages)(o,50*d,50),S=(0,i.useToggleStar)(),j=(0,r.useQueryClient)(),Q=(0,s.useCallback)(()=>{setTimeout(()=>{p(0),c([]),j.invalidateQueries({queryKey:["messages",o]}),j.invalidateQueries({queryKey:["session",o]})},1500)},[o,j]);(0,s.useEffect)(()=>{R?.messages&&R.messages.length>0&&(0===d?c(R.messages):c(e=>[...e,...R.messages]))},[R,d]),(0,s.useEffect)(()=>{u.length>0&&0===d&&setTimeout(()=>{y.current?.scrollTo({top:y.current.scrollHeight})},100)},[u.length,d]);let k=(0,s.useCallback)(()=>{!w&&R?.hasMore&&p(e=>e+1)},[w,R?.hasMore]);if(v)return(0,t.jsx)("div",{className:"flex items-center justify-center h-[80dvh]",children:(0,t.jsx)(l.Loader2,{className:"w-6 h-6 animate-spin text-indigo-500"})});if(!g)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.MobileHeader,{title:"Session",showBack:!0,backHref:"/m/sessions"}),(0,t.jsx)("div",{className:"p-6 text-center",children:(0,t.jsx)("p",{className:"text-red-500 text-sm",children:"Session not found."})})]});let T=g.customName||g.summary||(0,h.truncate)(g.firstPrompt,60),C=R?.total||g.messageCount,O=R?.hasMore??!0;return(0,t.jsxs)("div",{className:"flex flex-col h-[100dvh]",children:[(0,t.jsx)(a.MobileHeader,{title:T,showBack:!0,backHref:"/m/sessions",right:(0,t.jsx)("button",{onClick:()=>S.mutate(g.id),className:"p-1.5",children:(0,t.jsx)(m.Star,{className:(0,h.cn)("w-5 h-5",g.starred?"text-amber-500 fill-amber-500":"text-zinc-500")})})}),(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2 text-[11px] text-zinc-500 border-b border-zinc-800 flex-shrink-0",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1 text-indigo-400/70",children:[(0,t.jsx)(x.FolderOpen,{className:"w-3 h-3"}),g.projectName]}),(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(b.MessageSquare,{className:"w-3 h-3"}),C]}),(0,t.jsx)("span",{className:"ml-auto",children:(0,h.formatRelativeTime)(g.modified)})]}),(0,t.jsx)("div",{ref:y,className:"flex-1 overflow-y-auto",children:(0,t.jsx)("div",{className:"px-4 py-4 space-y-4",children:w&&0===u.length?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 gap-3",children:[(0,t.jsx)(l.Loader2,{className:"w-5 h-5 animate-spin text-indigo-500"}),(0,t.jsx)("span",{className:"text-xs text-zinc-500",children:"Loading conversation..."})]}):(0,t.jsxs)(t.Fragment,{children:[O&&(0,t.jsx)("div",{className:"text-center py-2",children:(0,t.jsxs)("button",{onClick:k,disabled:w,className:"px-4 py-2 text-xs bg-zinc-900 border border-zinc-800 rounded-lg text-zinc-400 disabled:opacity-50",children:[w?(0,t.jsx)(l.Loader2,{className:"w-3 h-3 animate-spin inline mr-1.5"}):null,"Load earlier (",C-u.length," more)"]})}),u.map((e,s)=>(0,t.jsx)(n.MessageRenderer,{message:e,isLast:s===u.length-1},e.uuid||`msg-${s}`)),!O&&u.length>0&&(0,t.jsx)("p",{className:"text-center text-[11px] text-zinc-600 py-2",children:"End of conversation"})]})})}),(0,t.jsx)(f,{sessionId:o,projectPath:g.projectPath,onMessageSent:Q})]})}e.s(["default",()=>g],84437)}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31278,e=>{"use strict";let t=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],31278)},66027,54616,e=>{"use strict";let t;var s=e.i(75555),r=e.i(40143),i=e.i(86491),n=e.i(15823),a=e.i(93803),o=e.i(19273),u=e.i(80166),l=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#s=(0,a.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#r=void 0;#i=void 0;#n=void 0;#a;#o;#s;#t;#u;#l;#c;#h;#d;#p;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#r.addObserver(this),c(this.#r,this.options)?this.#f():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#r,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#r,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#b(),this.#r.removeObserver(this)}setOptions(e){let t=this.options,s=this.#r;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#r))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#r.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#r,observer:this});let r=this.hasListeners();r&&d(this.#r,s,this.options,t)&&this.#f(),this.updateResult(),r&&(this.#r!==s||(0,o.resolveEnabled)(this.options.enabled,this.#r)!==(0,o.resolveEnabled)(t.enabled,this.#r)||(0,o.resolveStaleTime)(this.options.staleTime,this.#r)!==(0,o.resolveStaleTime)(t.staleTime,this.#r))&&this.#v();let i=this.#R();r&&(this.#r!==s||(0,o.resolveEnabled)(this.options.enabled,this.#r)!==(0,o.resolveEnabled)(t.enabled,this.#r)||i!==this.#p)&&this.#w(i)}getOptimisticResult(e){var t,s;let r=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(r,e);return t=this,s=i,(0,o.shallowEqualObjects)(t.getCurrentResult(),s)||(this.#n=i,this.#o=this.options,this.#a=this.#r.state),i}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(e,s)=>(this.trackProp(s),t?.(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#s.status||this.#s.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,s))})}trackProp(e){this.#y.add(e)}getCurrentQuery(){return this.#r}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),s=this.#e.getQueryCache().build(this.#e,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(e){this.#g();let t=this.#r.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#v(){this.#x();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#r);if(o.isServer||this.#n.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#n.dataUpdatedAt,e);this.#h=u.timeoutManager.setTimeout(()=>{this.#n.isStale||this.updateResult()},t+1)}#R(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#r):this.options.refetchInterval)??!1}#w(e){this.#b(),this.#p=e,!o.isServer&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#r)&&(0,o.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#d=u.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||s.focusManager.isFocused())&&this.#f()},this.#p))}#m(){this.#v(),this.#w(this.#R())}#x(){this.#h&&(u.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}#b(){this.#d&&(u.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let s,r=this.#r,n=this.options,u=this.#n,l=this.#a,h=this.#o,y=e!==r?e.state:this.#i,{state:f}=e,m={...f},x=!1;if(t._optimisticResults){let s=this.hasListeners(),a=!s&&c(e,t),o=s&&d(e,r,t,n);(a||o)&&(m={...m,...(0,i.fetchState)(f.data,e.options)}),"isRestoring"===t._optimisticResults&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:v}=m;s=m.data;let R=!1;if(void 0!==t.placeholderData&&void 0===s&&"pending"===v){let e;u?.isPlaceholderData&&t.placeholderData===h?.placeholderData?(e=u.data,R=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(v="success",s=(0,o.replaceData)(u?.data,e,t),x=!0)}if(t.select&&void 0!==s&&!R)if(u&&s===l?.data&&t.select===this.#u)s=this.#l;else try{this.#u=t.select,s=t.select(s),s=(0,o.replaceData)(u?.data,s,t),this.#l=s,this.#t=null}catch(e){this.#t=e}this.#t&&(b=this.#t,s=this.#l,g=Date.now(),v="error");let w="fetching"===m.fetchStatus,S="pending"===v,j="error"===v,Q=S&&w,k=void 0!==s,T={status:v,fetchStatus:m.fetchStatus,isPending:S,isSuccess:"success"===v,isError:j,isInitialLoading:Q,isLoading:Q,data:s,dataUpdatedAt:m.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>y.dataUpdateCount||m.errorUpdateCount>y.errorUpdateCount,isFetching:w,isRefetching:w&&!S,isLoadingError:j&&!k,isPaused:"paused"===m.fetchStatus,isPlaceholderData:x,isRefetchError:j&&k,isStale:p(e,t),refetch:this.refetch,promise:this.#s,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==T.data,s="error"===T.status&&!t,i=e=>{s?e.reject(T.error):t&&e.resolve(T.data)},n=()=>{i(this.#s=T.promise=(0,a.pendingThenable)())},o=this.#s;switch(o.status){case"pending":e.queryHash===r.queryHash&&i(o);break;case"fulfilled":(s||T.data!==o.value)&&n();break;case"rejected":s&&T.error===o.reason||n()}}return T}updateResult(){let e=this.#n,t=this.createResult(this.#r,this.options);if(this.#a=this.#r.state,this.#o=this.options,void 0!==this.#a.data&&(this.#c=this.#r),(0,o.shallowEqualObjects)(t,e))return;this.#n=t;let s=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.#y.size)return!0;let r=new Set(s??this.#y);return this.options.throwOnError&&r.add("error"),Object.keys(this.#n).some(t=>this.#n[t]!==e[t]&&r.has(t))};this.#S({listeners:s()})}#g(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#r)return;let t=this.#r;this.#r=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}#S(e){r.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#r,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,s){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let r="function"==typeof s?s(e):s;return"always"===r||!1!==r&&p(e,t)}return!1}function d(e,t,s,r){return(e!==t||!1===(0,o.resolveEnabled)(r.enabled,e))&&(!s.suspense||"error"!==e.state.status)&&p(e,s)}function p(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.i(47167);var y=e.i(71645),f=e.i(12598);e.i(18050);var m=y.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),x=y.createContext(!1);x.Provider;var b=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function g(e,t){return function(e,t,s){let i,n=y.useContext(x),a=y.useContext(m),u=(0,f.useQueryClient)(s),l=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(l);let c=u.getQueryCache().get(l.queryHash);if(l._optimisticResults=n?"isRestoring":"optimistic",l.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=l.staleTime;l.staleTime="function"==typeof t?(...s)=>e(t(...s)):e(t),"number"==typeof l.gcTime&&(l.gcTime=Math.max(l.gcTime,1e3))}i=c?.state.error&&"function"==typeof l.throwOnError?(0,o.shouldThrowError)(l.throwOnError,[c.state.error,c]):l.throwOnError,(l.suspense||l.experimental_prefetchInRender||i)&&!a.isReset()&&(l.retryOnMount=!1),y.useEffect(()=>{a.clearReset()},[a]);let h=!u.getQueryCache().get(l.queryHash),[d]=y.useState(()=>new t(u,l)),p=d.getOptimisticResult(l),g=!n&&!1!==e.subscribed;if(y.useSyncExternalStore(y.useCallback(e=>{let t=g?d.subscribe(r.notifyManager.batchCalls(e)):o.noop;return d.updateResult(),t},[d,g]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),y.useEffect(()=>{d.setOptions(l)},[l,d]),l?.suspense&&p.isPending)throw b(l,d,a);if((({result:e,errorResetBoundary:t,throwOnError:s,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&void 0===e.data||(0,o.shouldThrowError)(s,[e.error,r])))({result:p,errorResetBoundary:a,throwOnError:l.throwOnError,query:c,suspense:l.suspense}))throw p.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(l,p),l.experimental_prefetchInRender&&!o.isServer&&p.isLoading&&p.isFetching&&!n){let e=h?b(l,d,a):c?.promise;e?.catch(o.noop).finally(()=>{d.updateResult()})}return l.notifyOnChangeProps?p:d.trackResult(p)}(e,l,t)}e.s(["useQuery",()=>g],66027);var v=e.i(14272),R=n,w=class extends R.Subscribable{#e;#n=void 0;#j;#Q;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#k()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#j,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.hashKey)(t.mutationKey)!==(0,o.hashKey)(this.options.mutationKey)?this.reset():this.#j?.state.status==="pending"&&this.#j.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#j?.removeObserver(this)}onMutationUpdate(e){this.#k(),this.#S(e)}getCurrentResult(){return this.#n}reset(){this.#j?.removeObserver(this),this.#j=void 0,this.#k(),this.#S()}mutate(e,t){return this.#Q=t,this.#j?.removeObserver(this),this.#j=this.#e.getMutationCache().build(this.#e,this.options),this.#j.addObserver(this),this.#j.execute(e)}#k(){let e=this.#j?.state??(0,v.getDefaultState)();this.#n={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#S(e){r.notifyManager.batch(()=>{if(this.#Q&&this.hasListeners()){let t=this.#n.variables,s=this.#n.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#Q.onSuccess?.(e.data,t,s,r)}catch(e){Promise.reject(e)}try{this.#Q.onSettled?.(e.data,null,t,s,r)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#Q.onError?.(e.error,t,s,r)}catch(e){Promise.reject(e)}try{this.#Q.onSettled?.(void 0,e.error,t,s,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#n)})})}};function S(e,t){let s=(0,f.useQueryClient)(t),[i]=y.useState(()=>new w(s,e));y.useEffect(()=>{i.setOptions(e)},[i,e]);let n=y.useSyncExternalStore(y.useCallback(e=>i.subscribe(r.notifyManager.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=y.useCallback((e,t)=>{i.mutate(e,t).catch(o.noop)},[i]);if(n.error&&(0,o.shouldThrowError)(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}e.s(["useMutation",()=>S],54616)},3999,e=>{"use strict";var t=e.i(66027),s=e.i(54616),r=e.i(12598),i=e.i(9165);function n(e={}){return(0,t.useQuery)({queryKey:["sessions",e],queryFn:async()=>{let t=new URLSearchParams;return e.projectId&&t.set("projectId",e.projectId),void 0!==e.starred&&t.set("starred",String(e.starred)),e.search&&t.set("search",e.search),e.agentType&&t.set("agentType",e.agentType),e.sortBy&&t.set("sortBy",e.sortBy),e.sortDir&&t.set("sortDir",e.sortDir),void 0!==e.offset&&t.set("offset",String(e.offset)),void 0!==e.limit&&t.set("limit",String(e.limit)),"all"===e.nodeFilter&&t.set("nodes","all"),(await fetch((0,i.api)(`/api/sessions?${t}`))).json()}})}function a(e){return(0,t.useQuery)({queryKey:["session",e],queryFn:async()=>{let t=await fetch((0,i.api)(`/api/sessions/${e}`));if(!t.ok)throw Error("Session not found");return t.json()},enabled:!!e})}function o(e,s=0,r=50,n){return(0,t.useQuery)({queryKey:["messages",e,s,r,n],queryFn:async()=>{let t=n?(0,i.api)(`/api/network/proxy/${n}/sessions/${e}/messages?offset=${s}&limit=${r}`):(0,i.api)(`/api/sessions/${e}/messages?offset=${s}&limit=${r}`);return(await fetch(t)).json()},enabled:!!e})}function u(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async e=>(await fetch((0,i.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"star"})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function l(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,notes:t})=>(await fetch((0,i.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"notes",notes:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["session"]})}})}function c(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,tagName:t})=>(await fetch((0,i.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"tag",tagName:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]}),e.invalidateQueries({queryKey:["tags"]})}})}function h(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,tagName:t})=>(await fetch((0,i.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"removeTag",tagName:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]}),e.invalidateQueries({queryKey:["tags"]})}})}function d(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,name:t})=>(await fetch((0,i.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"rename",name:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function p(){return(0,t.useQuery)({queryKey:["tags"],queryFn:async()=>(await fetch((0,i.api)("/api/tags"))).json()})}function y(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async e=>(await fetch((0,i.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",tagId:e})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["tags"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function f(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({tagId:e,color:t})=>(await fetch((0,i.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"updateColor",tagId:e,color:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["tags"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function m(){return(0,t.useQuery)({queryKey:["workspaces"],queryFn:async()=>(await fetch((0,i.api)("/api/workspaces"))).json()})}function x(){return(0,t.useQuery)({queryKey:["workspaces","remote"],queryFn:async()=>(await fetch((0,i.api)("/api/workspaces?nodes=all"))).json()})}function b(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({workspaceId:e,sessionId:t,nodeId:s,title:r,cwd:n,agentType:a})=>{let o=await fetch((0,i.api)(`/api/workspaces/${e}/sessions`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:t,nodeId:s,title:r,cwd:n,agentType:a})});if(!o.ok)throw Error("Failed to add session to workspace");return o.json()},onSuccess:()=>{e.invalidateQueries({queryKey:["workspaces"]}),e.invalidateQueries({queryKey:["workspace-sessions"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function g(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async({workspaceId:e,sessionId:t})=>{let s=await fetch((0,i.api)(`/api/workspaces/${e}/sessions`),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:t})});if(!s.ok)throw Error("Failed to remove session from workspace");return s.json()},onSuccess:()=>{e.invalidateQueries({queryKey:["workspaces"]}),e.invalidateQueries({queryKey:["workspace-sessions"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function v(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async e=>(await fetch((0,i.api)("/api/bulk"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["workspaces"]}),e.invalidateQueries({queryKey:["tags"]})}})}function R(){return(0,t.useQuery)({queryKey:["projects"],queryFn:async()=>(await fetch((0,i.api)("/api/projects"))).json()})}function w(){return(0,t.useQuery)({queryKey:["analytics"],queryFn:async()=>(await fetch((0,i.api)("/api/analytics/overview"))).json()})}function S(){let e=(0,r.useQueryClient)();return(0,s.useMutation)({mutationFn:async()=>(await fetch((0,i.api)("/api/sync"),{method:"POST"})).json(),onSuccess:()=>{e.invalidateQueries()}})}e.s(["useAddSessionToWorkspace",()=>b,"useAddTag",()=>c,"useAnalytics",()=>w,"useBulkAction",()=>v,"useDeleteTag",()=>y,"useMessages",()=>o,"useProjects",()=>R,"useRemoteWorkspaces",()=>x,"useRemoveSessionFromWorkspace",()=>g,"useRemoveTag",()=>h,"useRenameSession",()=>d,"useSession",()=>a,"useSessions",()=>n,"useSync",()=>S,"useTags",()=>p,"useToggleStar",()=>u,"useUpdateNotes",()=>l,"useUpdateTagColor",()=>f,"useWorkspaces",()=>m])},71689,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",()=>t],71689)},91898,e=>{"use strict";var t=e.i(18050),s=e.i(18566),r=e.i(71689),i=e.i(75157);function n({title:e,showBack:n,backHref:a,right:o,className:u}){let l=(0,s.useRouter)();return(0,t.jsxs)("header",{className:(0,i.cn)("sticky top-0 z-40 bg-zinc-950/95 backdrop-blur-sm border-b border-zinc-800","flex items-center gap-3 px-4 h-14 flex-shrink-0",u),children:[n&&(0,t.jsx)("button",{onClick:()=>{a?l.push(a):l.back()},className:"p-1 -ml-1 text-zinc-400 hover:text-white",children:(0,t.jsx)(r.ArrowLeft,{className:"w-5 h-5"})}),(0,t.jsx)("h1",{className:"text-base font-semibold truncate flex-1",children:e}),o&&(0,t.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0",children:o})]})}e.s(["MobileHeader",()=>n])},86536,e=>{"use strict";let t=(0,e.i(75254).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",()=>t],86536)},70273,e=>{"use strict";let t=(0,e.i(75254).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",()=>t],70273)},78894,e=>{"use strict";let t=(0,e.i(75254).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",()=>t],78894)},63059,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],63059)},74886,e=>{"use strict";let t=(0,e.i(75254).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",()=>t],74886)},14764,e=>{"use strict";let t=(0,e.i(75254).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",()=>t],14764)},55436,e=>{"use strict";let t=(0,e.i(75254).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],55436)},64659,e=>{"use strict";let t=(0,e.i(75254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",()=>t],64659)},43531,e=>{"use strict";let t=(0,e.i(75254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",()=>t],43531)},48256,e=>{"use strict";let t=(0,e.i(75254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",()=>t],48256)},88699,e=>{"use strict";let t=(0,e.i(75254).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);e.s(["Pencil",()=>t],88699)},68054,e=>{"use strict";let t=(0,e.i(75254).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);e.s(["Terminal",()=>t],68054)},14661,e=>{"use strict";var t=e.i(18050),s=e.i(71645),r=e.i(75254);let i=(0,r.default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]),n=(0,r.default)("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);var a=e.i(75157);function o({onTranscript:e}){let{isListening:r,isSupported:o,transcript:u,interimTranscript:l,startListening:c,stopListening:h}=function(){let[e,t]=(0,s.useState)(!1),[r,i]=(0,s.useState)(!1),[n,a]=(0,s.useState)(""),[o,u]=(0,s.useState)(""),l=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=window.SpeechRecognition||window.webkitSpeechRecognition;if(i(!!e),!e)return;let s=new e;s.continuous=!1,s.interimResults=!0,s.lang="en-US",s.onresult=e=>{let t="",s="";for(let r=e.resultIndex;r<e.results.length;r++){let i=e.results[r];i.isFinal?s+=i[0].transcript:t+=i[0].transcript}s?(a(s),u("")):u(t)},s.onerror=()=>{t(!1)},s.onend=()=>{t(!1)},l.current=s},[]);let c=(0,s.useCallback)(()=>{if(l.current&&!e){a(""),u("");try{l.current.start(),t(!0)}catch{}}},[e]);return{isListening:e,isSupported:r,transcript:n,interimTranscript:o,startListening:c,stopListening:(0,s.useCallback)(()=>{if(l.current){try{l.current.stop()}catch{}t(!1)}},[]),resetTranscript:(0,s.useCallback)(()=>{a(""),u("")},[])}}();return((0,s.useEffect)(()=>{u&&e(u)},[u,e]),o)?(0,t.jsxs)("div",{className:"relative flex-shrink-0",children:[(0,t.jsx)("button",{onClick:r?h:c,className:(0,a.cn)("p-2.5 rounded-xl transition-colors",r?"bg-red-500 text-white animate-pulse":"bg-zinc-800 text-zinc-400 hover:text-white"),children:r?(0,t.jsx)(n,{className:"w-4 h-4"}):(0,t.jsx)(i,{className:"w-4 h-4"})}),r&&l&&(0,t.jsx)("div",{className:"absolute bottom-full left-0 mb-2 px-3 py-1.5 bg-zinc-800 border border-zinc-700 rounded-lg text-xs text-zinc-300 whitespace-nowrap max-w-[200px] truncate shadow-xl",children:l})]}):null}e.s(["VoiceInput",()=>o],14661)},84437,e=>{"use strict";var t=e.i(18050),s=e.i(71645),r=e.i(12598),i=e.i(3999),n=e.i(46686),a=e.i(91898),o=e.i(14764),u=e.i(52044),l=e.i(31278),c=e.i(14661),h=e.i(75157),d=e.i(9165),p=e.i(18789),y=e.i(42531);function f({sessionId:e,projectPath:r,onMessageSent:i}){let[n,a]=(0,s.useState)(""),[f,m]=(0,s.useState)(!1),[x,b]=(0,s.useState)(""),[g,v]=(0,s.useState)(null),R=(0,s.useRef)(null),w=(0,s.useRef)(null),S=(0,s.useRef)(null);(0,s.useEffect)(()=>{R.current&&(R.current.style.height="auto",R.current.style.height=`${Math.min(R.current.scrollHeight,120)}px`)},[n]),(0,s.useEffect)(()=>{w.current&&(w.current.scrollTop=w.current.scrollHeight)},[x]);let j=(0,s.useCallback)(async()=>{if(!n.trim()||f)return;m(!0),b(""),v(null);let t=new AbortController;S.current=t;try{let s=await fetch((0,d.api)(`/api/sessions/${e}/chat`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:n.trim(),cwd:r}),signal:t.signal});if(!s.ok){let e=await s.json();v(e.error||"Failed to send message"),m(!1);return}let o=s.body?.getReader();if(!o){v("No response stream"),m(!1);return}let u=new TextDecoder,l="",c="";for(a("");;){let{done:e,value:t}=await o.read();if(e)break;let s=(l+=u.decode(t,{stream:!0})).split("\n\n");for(let e of(l=s.pop()||"",s)){if(!e.startsWith("data: "))continue;let t=e.slice(6);try{let e=JSON.parse(t);if("done"===e.type)i?.();else if("error"===e.type)v(t=>(t||"")+(e.text||""));else if("stderr"===e.type){let t=e.text||"";(t.includes("Error")||t.includes("error"))&&v(e=>(e||"")+t)}else if("assistant"===e.type){let t=e.message?.content||e.content;if(Array.isArray(t))for(let e of t)"text"===e.type&&e.text&&(c+=e.text,b(c))}else if("content_block_delta"===e.type)(e.content?.type==="text_delta"||e.text)&&(c+=e.content?.text||e.text||"",b(c));else if("text"===e.type)c+=e.text||"",b(c);else if("result"===e.type){if(!c){let t=e.result;"string"==typeof t&&(c=t,b(c))}i?.()}}catch{}}}}catch(e){"AbortError"!==e.name&&v(e.message||"Connection failed")}finally{m(!1),S.current=null}},[n,f,e,r,i]);return(0,t.jsxs)("div",{className:"flex-shrink-0 border-t border-zinc-800 bg-zinc-950 pb-[env(safe-area-inset-bottom)]",children:[(x||g||f)&&(0,t.jsx)("div",{className:"border-b border-zinc-800",children:(0,t.jsxs)("div",{ref:w,className:"max-h-40 overflow-y-auto px-4 py-3 text-sm",children:[g&&(0,t.jsx)("div",{className:"text-red-400 text-xs mb-2 bg-red-950/20 rounded px-3 py-2",children:g}),x&&(0,t.jsx)("div",{className:"prose prose-sm prose-invert max-w-none prose-pre:bg-zinc-800 prose-pre:text-xs",children:(0,t.jsx)(p.default,{remarkPlugins:[y.default],children:x})}),f&&!x&&!g&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-zinc-500 text-xs",children:[(0,t.jsx)(l.Loader2,{className:"w-3 h-3 animate-spin"}),"Waiting for Claude..."]})]})}),(0,t.jsxs)("div",{className:"flex items-end gap-2 px-3 py-2",children:[(0,t.jsx)(c.VoiceInput,{onTranscript:e=>{a(t=>t?`${t} ${e}`:e),R.current?.focus()}}),(0,t.jsx)("textarea",{ref:R,value:n,onChange:e=>a(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),j())},placeholder:f?"Claude is thinking...":"Message...",disabled:f,rows:1,className:(0,h.cn)("flex-1 resize-none rounded-xl border px-3 py-2 text-sm bg-zinc-900","focus:outline-none focus:ring-1 focus:ring-indigo-500","placeholder:text-zinc-600 border-zinc-700","max-h-[120px]",f&&"opacity-50")}),f?(0,t.jsx)("button",{onClick:()=>{S.current?.abort(),m(!1)},className:"p-2.5 rounded-xl bg-red-500 text-white flex-shrink-0",children:(0,t.jsx)(u.Square,{className:"w-4 h-4"})}):(0,t.jsx)("button",{onClick:j,disabled:!n.trim(),className:(0,h.cn)("p-2.5 rounded-xl flex-shrink-0",n.trim()?"bg-indigo-500 text-white":"bg-zinc-800 text-zinc-600"),children:(0,t.jsx)(o.Send,{className:"w-4 h-4"})})]})]})}var m=e.i(70273),x=e.i(75505),b=e.i(86311);function g({params:e}){let{id:o}=(0,s.use)(e),[u,c]=(0,s.useState)([]),[d,p]=(0,s.useState)(0),y=(0,s.useRef)(null),{data:g,isLoading:v}=(0,i.useSession)(o),{data:R,isLoading:w}=(0,i.useMessages)(o,50*d,50),S=(0,i.useToggleStar)(),j=(0,r.useQueryClient)(),Q=(0,s.useCallback)(()=>{setTimeout(()=>{p(0),c([]),j.invalidateQueries({queryKey:["messages",o]}),j.invalidateQueries({queryKey:["session",o]})},1500)},[o,j]);(0,s.useEffect)(()=>{R?.messages&&R.messages.length>0&&(0===d?c(R.messages):c(e=>[...e,...R.messages]))},[R,d]),(0,s.useEffect)(()=>{u.length>0&&0===d&&setTimeout(()=>{y.current?.scrollTo({top:y.current.scrollHeight})},100)},[u.length,d]);let k=(0,s.useCallback)(()=>{!w&&R?.hasMore&&p(e=>e+1)},[w,R?.hasMore]);if(v)return(0,t.jsx)("div",{className:"flex items-center justify-center h-[80dvh]",children:(0,t.jsx)(l.Loader2,{className:"w-6 h-6 animate-spin text-indigo-500"})});if(!g)return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.MobileHeader,{title:"Session",showBack:!0,backHref:"/m/sessions"}),(0,t.jsx)("div",{className:"p-6 text-center",children:(0,t.jsx)("p",{className:"text-red-500 text-sm",children:"Session not found."})})]});let T=g.customName||g.summary||(0,h.truncate)(g.firstPrompt,60),C=R?.total||g.messageCount,O=R?.hasMore??!0;return(0,t.jsxs)("div",{className:"flex flex-col h-[100dvh]",children:[(0,t.jsx)(a.MobileHeader,{title:T,showBack:!0,backHref:"/m/sessions",right:(0,t.jsx)("button",{onClick:()=>S.mutate(g.id),className:"p-1.5",children:(0,t.jsx)(m.Star,{className:(0,h.cn)("w-5 h-5",g.starred?"text-amber-500 fill-amber-500":"text-zinc-500")})})}),(0,t.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2 text-[11px] text-zinc-500 border-b border-zinc-800 flex-shrink-0",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1 text-indigo-400/70",children:[(0,t.jsx)(x.FolderOpen,{className:"w-3 h-3"}),g.projectName]}),(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsx)(b.MessageSquare,{className:"w-3 h-3"}),C]}),(0,t.jsx)("span",{className:"ml-auto",children:(0,h.formatRelativeTime)(g.modified)})]}),(0,t.jsx)("div",{ref:y,className:"flex-1 overflow-y-auto",children:(0,t.jsx)("div",{className:"px-4 py-4 space-y-4",children:w&&0===u.length?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 gap-3",children:[(0,t.jsx)(l.Loader2,{className:"w-5 h-5 animate-spin text-indigo-500"}),(0,t.jsx)("span",{className:"text-xs text-zinc-500",children:"Loading conversation..."})]}):(0,t.jsxs)(t.Fragment,{children:[O&&(0,t.jsx)("div",{className:"text-center py-2",children:(0,t.jsxs)("button",{onClick:k,disabled:w,className:"px-4 py-2 text-xs bg-zinc-900 border border-zinc-800 rounded-lg text-zinc-400 disabled:opacity-50",children:[w?(0,t.jsx)(l.Loader2,{className:"w-3 h-3 animate-spin inline mr-1.5"}):null,"Load earlier (",C-u.length," more)"]})}),u.map((e,s)=>(0,t.jsx)(n.MessageRenderer,{message:e,isLast:s===u.length-1},e.uuid||`msg-${s}`)),!O&&u.length>0&&(0,t.jsx)("p",{className:"text-center text-[11px] text-zinc-600 py-2",children:"End of conversation"})]})})}),(0,t.jsx)(f,{sessionId:o,projectPath:g.projectPath,onMessageSent:Q})]})}e.s(["default",()=>g],84437)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,9165,t=>{"use strict";t.s(["api",0,t=>{let e=t.indexOf("?");if(-1===e){let e=t.endsWith("/")?t:`${t}/`;return`${e}`}let i=t.slice(0,e),s=t.slice(e),r=i.endsWith("/")?i:`${i}/`;return`${r}${s}`}])},19273,80166,t=>{"use strict";t.i(47167);var e={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},i=new class{#t=e;#e=!1;setTimeoutProvider(t){this.#t=t}setTimeout(t,e){return this.#t.setTimeout(t,e)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,e){return this.#t.setInterval(t,e)}clearInterval(t){this.#t.clearInterval(t)}};function s(t){setTimeout(t,0)}t.s(["systemSetTimeoutZero",()=>s,"timeoutManager",()=>i],80166);var r="u"<typeof window||"Deno"in globalThis;function n(){}function a(t,e){return"function"==typeof t?t(e):t}function o(t){return"number"==typeof t&&t>=0&&t!==1/0}function u(t,e){return Math.max(t+(e||0)-Date.now(),0)}function h(t,e){return"function"==typeof t?t(e):t}function c(t,e){return"function"==typeof t?t(e):t}function l(t,e){let{type:i="all",exact:s,fetchStatus:r,predicate:n,queryKey:a,stale:o}=t;if(a){if(s){if(e.queryHash!==f(a,e.options))return!1}else if(!y(e.queryKey,a))return!1}if("all"!==i){let t=e.isActive();if("active"===i&&!t||"inactive"===i&&t)return!1}return("boolean"!=typeof o||e.isStale()===o)&&(!r||r===e.state.fetchStatus)&&(!n||!!n(e))}function d(t,e){let{exact:i,status:s,predicate:r,mutationKey:n}=t;if(n){if(!e.options.mutationKey)return!1;if(i){if(p(e.options.mutationKey)!==p(n))return!1}else if(!y(e.options.mutationKey,n))return!1}return(!s||e.state.status===s)&&(!r||!!r(e))}function f(t,e){return(e?.queryKeyHashFn||p)(t)}function p(t){return JSON.stringify(t,(t,e)=>g(e)?Object.keys(e).sort().reduce((t,i)=>(t[i]=e[i],t),{}):e)}function y(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).every(i=>y(t[i],e[i]))}var m=Object.prototype.hasOwnProperty;function v(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let i in t)if(t[i]!==e[i])return!1;return!0}function b(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function g(t){if(!C(t))return!1;let e=t.constructor;if(void 0===e)return!0;let i=e.prototype;return!!C(i)&&!!i.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(t)===Object.prototype}function C(t){return"[object Object]"===Object.prototype.toString.call(t)}function O(t){return new Promise(e=>{i.setTimeout(e,t)})}function w(t,e,i){return"function"==typeof i.structuralSharing?i.structuralSharing(t,e):!1!==i.structuralSharing?function t(e,i,s=0){if(e===i)return e;if(s>500)return i;let r=b(e)&&b(i);if(!r&&!(g(e)&&g(i)))return i;let n=(r?e:Object.keys(e)).length,a=r?i:Object.keys(i),o=a.length,u=r?Array(o):{},h=0;for(let c=0;c<o;c++){let o=r?c:a[c],l=e[o],d=i[o];if(l===d){u[o]=l,(r?c<n:m.call(e,o))&&h++;continue}if(null===l||null===d||"object"!=typeof l||"object"!=typeof d){u[o]=d;continue}let f=t(l,d,s+1);u[o]=f,f===l&&h++}return n===o&&h===n?e:u}(t,e):e}function S(t,e,i=0){let s=[...t,e];return i&&s.length>i?s.slice(1):s}function q(t,e,i=0){let s=[e,...t];return i&&s.length>i?s.slice(0,-1):s}var P=Symbol();function M(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:t.queryFn&&t.queryFn!==P?t.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.queryHash}'`))}function T(t,e){return"function"==typeof t?t(...e):!!t}function F(t,e,i){let s,r=!1;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(s??=e(),r||(r=!0,s.aborted?i():s.addEventListener("abort",i,{once:!0})),s)}),t}t.s(["addConsumeAwareSignal",()=>F,"addToEnd",()=>S,"addToStart",()=>q,"ensureQueryFn",()=>M,"functionalUpdate",()=>a,"hashKey",()=>p,"hashQueryKeyByOptions",()=>f,"isServer",()=>r,"isValidTimeout",()=>o,"matchMutation",()=>d,"matchQuery",()=>l,"noop",()=>n,"partialMatchKey",()=>y,"replaceData",()=>w,"resolveEnabled",()=>c,"resolveStaleTime",()=>h,"shallowEqualObjects",()=>v,"shouldThrowError",()=>T,"skipToken",()=>P,"sleep",()=>O,"timeUntilStale",()=>u],19273)},40143,t=>{"use strict";let e,i,s,r,n,a;var o=t.i(80166).systemSetTimeoutZero,u=(e=[],i=0,s=t=>{t()},r=t=>{t()},n=o,{batch:t=>{let a;i++;try{a=t()}finally{let t;--i||(t=e,e=[],t.length&&n(()=>{r(()=>{t.forEach(t=>{s(t)})})}))}return a},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a=t=>{i?e.push(t):n(()=>{s(t)})},setNotifyFunction:t=>{s=t},setBatchNotifyFunction:t=>{r=t},setScheduler:t=>{n=t}});t.s(["notifyManager",()=>u])},15823,t=>{"use strict";var e=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};t.s(["Subscribable",()=>e])},75555,t=>{"use strict";var e=t.i(15823),i=t.i(19273),s=new class extends e.Subscribable{#i;#s;#r;constructor(){super(),this.#r=t=>{if(!i.isServer&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#s||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(t){this.#r=t,this.#s?.(),this.#s=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#i!==t&&(this.#i=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#i?this.#i:globalThis.document?.visibilityState!=="hidden"}};t.s(["focusManager",()=>s])},86491,14448,93803,36553,88587,t=>{"use strict";t.i(47167);var e=t.i(19273),i=t.i(40143),s=t.i(75555),r=t.i(15823),n=new class extends r.Subscribable{#n=!0;#s;#r;constructor(){super(),this.#r=t=>{if(!e.isServer&&window.addEventListener){let e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#s||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#s?.(),this.#s=void 0)}setEventListener(t){this.#r=t,this.#s?.(),this.#s=t(this.setOnline.bind(this))}setOnline(t){this.#n!==t&&(this.#n=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#n}};function a(){let t,e,i=new Promise((i,s)=>{t=i,e=s});function s(t){Object.assign(i,t),delete i.resolve,delete i.reject}return i.status="pending",i.catch(()=>{}),i.resolve=e=>{s({status:"fulfilled",value:e}),t(e)},i.reject=t=>{s({status:"rejected",reason:t}),e(t)},i}function o(t){return Math.min(1e3*2**t,3e4)}function u(t){return(t??"online")!=="online"||n.isOnline()}t.s(["onlineManager",()=>n],14448),t.s(["pendingThenable",()=>a],93803);var h=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function c(t){let i,r=!1,c=0,l=a(),d=()=>s.focusManager.isFocused()&&("always"===t.networkMode||n.isOnline())&&t.canRun(),f=()=>u(t.networkMode)&&t.canRun(),p=t=>{"pending"===l.status&&(i?.(),l.resolve(t))},y=t=>{"pending"===l.status&&(i?.(),l.reject(t))},m=()=>new Promise(e=>{i=t=>{("pending"!==l.status||d())&&e(t)},t.onPause?.()}).then(()=>{i=void 0,"pending"===l.status&&t.onContinue?.()}),v=()=>{let i;if("pending"!==l.status)return;let s=0===c?t.initialPromise:void 0;try{i=s??t.fn()}catch(t){i=Promise.reject(t)}Promise.resolve(i).then(p).catch(i=>{if("pending"!==l.status)return;let s=t.retry??3*!e.isServer,n=t.retryDelay??o,a="function"==typeof n?n(c,i):n,u=!0===s||"number"==typeof s&&c<s||"function"==typeof s&&s(c,i);r||!u?y(i):(c++,t.onFail?.(c,i),(0,e.sleep)(a).then(()=>d()?void 0:m()).then(()=>{r?y(i):v()}))})};return{promise:l,status:()=>l.status,cancel:e=>{if("pending"===l.status){let i=new h(e);y(i),t.onCancel?.(i)}},continue:()=>(i?.(),l),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:f,start:()=>(f()?v():m().then(v),l)}}t.s(["CancelledError",()=>h,"canFetch",()=>u,"createRetryer",()=>c],36553);var l=t.i(80166),d=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,e.isValidTimeout)(this.gcTime)&&(this.#a=l.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(e.isServer?1/0:3e5))}clearGcTimeout(){this.#a&&(l.timeoutManager.clearTimeout(this.#a),this.#a=void 0)}};t.s(["Removable",()=>d],88587);var f=class extends d{#o;#u;#h;#c;#l;#d;#f;constructor(t){super(),this.#f=!1,this.#d=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#c=t.client,this.#h=this.#c.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#o=m(this.options),this.state=t.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(t){if(this.options={...this.#d,...t},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let t=m(this.options);void 0!==t.data&&(this.setState(y(t.data,t.dataUpdatedAt)),this.#o=t)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#h.remove(this)}setData(t,i){let s=(0,e.replaceData)(this.state.data,t,this.options);return this.#p({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(t,e){this.#p({type:"setState",state:t,setStateOptions:e})}cancel(t){let i=this.#l?.promise;return this.#l?.cancel(t),i?i.then(e.noop).catch(e.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some(t=>!1!==(0,e.resolveEnabled)(t.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===e.skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(t=>"static"===(0,e.resolveStaleTime)(t.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(t=0){return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,e.timeUntilStale)(this.state.dataUpdatedAt,t))}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#h.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#l&&(this.#f?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#h.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(t,i){let s;if("idle"!==this.state.fetchStatus&&this.#l?.status()!=="rejected"){if(void 0!==this.state.data&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let r=new AbortController,n=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#f=!0,r.signal)})},a=()=>{let t,s=(0,e.ensureQueryFn)(this.options,i),r=(n(t={client:this.#c,queryKey:this.queryKey,meta:this.meta}),t);return(this.#f=!1,this.options.persister)?this.options.persister(s,r,this):s(r)},o=(n(s={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:a}),s);this.options.behavior?.onFetch(o,this),this.#u=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#p({type:"fetch",meta:o.fetchOptions?.meta}),this.#l=c({initialPromise:i?.initialPromise,fn:o.fetchFn,onCancel:t=>{t instanceof h&&t.revert&&this.setState({...this.#u,fetchStatus:"idle"}),r.abort()},onFail:(t,e)=>{this.#p({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let t=await this.#l.start();if(void 0===t)throw Error(`${this.queryHash} data is undefined`);return this.setData(t),this.#h.config.onSuccess?.(t,this),this.#h.config.onSettled?.(t,this.state.error,this),t}catch(t){if(t instanceof h){if(t.silent)return this.#l.promise;else if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw this.#p({type:"error",error:t}),this.#h.config.onError?.(t,this),this.#h.config.onSettled?.(this.state.data,t,this),t}finally{this.scheduleGc()}}#p(t){let e=e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...p(e.data,this.options),fetchMeta:t.meta??null};case"success":let i={...e,...y(t.data,t.dataUpdatedAt),dataUpdateCount:e.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#u=t.manual?i:void 0,i;case"error":let s=t.error;return{...e,error:s,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),i.notifyManager.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#h.notify({query:this,type:"updated",action:t})})}};function p(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:u(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}function y(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function m(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,i=void 0!==e,s=i?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}t.s(["Query",()=>f,"fetchState",()=>p],86491)},14272,t=>{"use strict";var e=t.i(40143),i=t.i(88587),s=t.i(36553),r=class extends i.Removable{#c;#y;#m;#l;constructor(t){super(),this.#c=t.client,this.mutationId=t.mutationId,this.#m=t.mutationCache,this.#y=[],this.state=t.state||n(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#y.includes(t)||(this.#y.push(t),this.clearGcTimeout(),this.#m.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#y=this.#y.filter(e=>e!==t),this.scheduleGc(),this.#m.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#y.length||("pending"===this.state.status?this.scheduleGc():this.#m.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(t){let e=()=>{this.#p({type:"continue"})},i={client:this.#c,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=(0,s.createRetryer)({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#p({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#p({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#m.canRun(this)});let r="pending"===this.state.status,n=!this.#l.canStart();try{if(r)e();else{this.#p({type:"pending",variables:t,isPaused:n}),this.#m.config.onMutate&&await this.#m.config.onMutate(t,this,i);let e=await this.options.onMutate?.(t,i);e!==this.state.context&&this.#p({type:"pending",context:e,variables:t,isPaused:n})}let s=await this.#l.start();return await this.#m.config.onSuccess?.(s,t,this.state.context,this,i),await this.options.onSuccess?.(s,t,this.state.context,i),await this.#m.config.onSettled?.(s,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(s,null,t,this.state.context,i),this.#p({type:"success",data:s}),s}catch(e){try{await this.#m.config.onError?.(e,t,this.state.context,this,i)}catch(t){Promise.reject(t)}try{await this.options.onError?.(e,t,this.state.context,i)}catch(t){Promise.reject(t)}try{await this.#m.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this,i)}catch(t){Promise.reject(t)}try{await this.options.onSettled?.(void 0,e,t,this.state.context,i)}catch(t){Promise.reject(t)}throw this.#p({type:"error",error:e}),e}finally{this.#m.runNext(this)}}#p(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),e.notifyManager.batch(()=>{this.#y.forEach(e=>{e.onMutationUpdate(t)}),this.#m.notify({mutation:this,type:"updated",action:t})})}};function n(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}t.s(["Mutation",()=>r,"getDefaultState",()=>n])},12598,t=>{"use strict";var e=t.i(71645),i=t.i(18050),s=e.createContext(void 0),r=t=>{let i=e.useContext(s);if(t)return t;if(!i)throw Error("No QueryClient set, use QueryClientProvider to set one");return i},n=({client:t,children:r})=>(e.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(s.Provider,{value:t,children:r}));t.s(["QueryClientProvider",()=>n,"useQueryClient",()=>r])},29320,t=>{"use strict";var e=t.i(71645);let i=(0,e.createContext)({tier:"community",hasAuth:!1,hasAdmin:!1,hasCollaboration:!1,hasNetwork:!1,hasMultiuser:!1,isDesktop:!0,basePath:"",loading:!1});function s(){return(0,e.useContext)(i)}t.s(["TierContext",0,i,"useTier",()=>s])},12524,t=>{"use strict";var e=t.i(18050),i=t.i(19273),s=t.i(86491),r=t.i(40143),n=t.i(15823),a=class extends n.Subscribable{constructor(t={}){super(),this.config=t,this.#v=new Map}#v;build(t,e,r){let n=e.queryKey,a=e.queryHash??(0,i.hashQueryKeyByOptions)(n,e),o=this.get(a);return o||(o=new s.Query({client:t,queryKey:n,queryHash:a,options:t.defaultQueryOptions(e),state:r,defaultOptions:t.getQueryDefaults(n)}),this.add(o)),o}add(t){this.#v.has(t.queryHash)||(this.#v.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=this.#v.get(t.queryHash);e&&(t.destroy(),e===t&&this.#v.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){r.notifyManager.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#v.get(t)}getAll(){return[...this.#v.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,i.matchQuery)(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,i.matchQuery)(t,e)):e}notify(t){r.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){r.notifyManager.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){r.notifyManager.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},o=t.i(14272),u=n,h=class extends u.Subscribable{constructor(t={}){super(),this.config=t,this.#b=new Set,this.#g=new Map,this.#C=0}#b;#g;#C;build(t,e,i){let s=new o.Mutation({client:t,mutationCache:this,mutationId:++this.#C,options:t.defaultMutationOptions(e),state:i});return this.add(s),s}add(t){this.#b.add(t);let e=c(t);if("string"==typeof e){let i=this.#g.get(e);i?i.push(t):this.#g.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#b.delete(t)){let e=c(t);if("string"==typeof e){let i=this.#g.get(e);if(i)if(i.length>1){let e=i.indexOf(t);-1!==e&&i.splice(e,1)}else i[0]===t&&this.#g.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){let e=c(t);if("string"!=typeof e)return!0;{let i=this.#g.get(e),s=i?.find(t=>"pending"===t.state.status);return!s||s===t}}runNext(t){let e=c(t);if("string"!=typeof e)return Promise.resolve();{let i=this.#g.get(e)?.find(e=>e!==t&&e.state.isPaused);return i?.continue()??Promise.resolve()}}clear(){r.notifyManager.batch(()=>{this.#b.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#b.clear(),this.#g.clear()})}getAll(){return Array.from(this.#b)}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,i.matchMutation)(e,t))}findAll(t={}){return this.getAll().filter(e=>(0,i.matchMutation)(t,e))}notify(t){r.notifyManager.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return r.notifyManager.batch(()=>Promise.all(t.map(t=>t.continue().catch(i.noop))))}};function c(t){return t.options.scope?.id}var l=t.i(75555),d=t.i(14448);function f(t){return{onFetch:(e,s)=>{let r=e.options,n=e.fetchOptions?.meta?.fetchMore?.direction,a=e.state.data?.pages||[],o=e.state.data?.pageParams||[],u={pages:[],pageParams:[]},h=0,c=async()=>{let s=!1,c=(0,i.ensureQueryFn)(e.options,e.fetchOptions),l=async(t,r,n)=>{let a;if(s)return Promise.reject();if(null==r&&t.pages.length)return Promise.resolve(t);let o=(a={client:e.client,queryKey:e.queryKey,pageParam:r,direction:n?"backward":"forward",meta:e.options.meta},(0,i.addConsumeAwareSignal)(a,()=>e.signal,()=>s=!0),a),u=await c(o),{maxPages:h}=e.options,l=n?i.addToStart:i.addToEnd;return{pages:l(t.pages,u,h),pageParams:l(t.pageParams,r,h)}};if(n&&a.length){let t="backward"===n,e={pages:a,pageParams:o},i=(t?function(t,{pages:e,pageParams:i}){return e.length>0?t.getPreviousPageParam?.(e[0],e,i[0],i):void 0}:p)(r,e);u=await l(e,i,t)}else{let e=t??a.length;do{let t=0===h?o[0]??r.initialPageParam:p(r,u);if(h>0&&null==t)break;u=await l(u,t),h++}while(h<e)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=c}}}function p(t,{pages:e,pageParams:i}){let s=e.length-1;return e.length>0?t.getNextPageParam(e[s],e,i[s],i):void 0}var y=class{#O;#m;#d;#w;#S;#q;#P;#M;constructor(t={}){this.#O=t.queryCache||new a,this.#m=t.mutationCache||new h,this.#d=t.defaultOptions||{},this.#w=new Map,this.#S=new Map,this.#q=0}mount(){this.#q++,1===this.#q&&(this.#P=l.focusManager.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#O.onFocus())}),this.#M=d.onlineManager.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#O.onOnline())}))}unmount(){this.#q--,0===this.#q&&(this.#P?.(),this.#P=void 0,this.#M?.(),this.#M=void 0)}isFetching(t){return this.#O.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#m.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#O.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.defaultQueryOptions(t),s=this.#O.build(this,e),r=s.state.data;return void 0===r?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime((0,i.resolveStaleTime)(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return this.#O.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){let r=this.defaultQueryOptions({queryKey:t}),n=this.#O.get(r.queryHash),a=n?.state.data,o=(0,i.functionalUpdate)(e,a);if(void 0!==o)return this.#O.build(this,r).setData(o,{...s,manual:!0})}setQueriesData(t,e,i){return r.notifyManager.batch(()=>this.#O.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,i)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#O.get(e.queryHash)?.state}removeQueries(t){let e=this.#O;r.notifyManager.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let i=this.#O;return r.notifyManager.batch(()=>(i.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){let s={revert:!0,...e};return Promise.all(r.notifyManager.batch(()=>this.#O.findAll(t).map(t=>t.cancel(s)))).then(i.noop).catch(i.noop)}invalidateQueries(t,e={}){return r.notifyManager.batch(()=>(this.#O.findAll(t).forEach(t=>{t.invalidate()}),t?.refetchType==="none")?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e))}refetchQueries(t,e={}){let s={...e,cancelRefetch:e.cancelRefetch??!0};return Promise.all(r.notifyManager.batch(()=>this.#O.findAll(t).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,s);return s.throwOnError||(e=e.catch(i.noop)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(i.noop)}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let s=this.#O.build(this,e);return s.isStaleByTime((0,i.resolveStaleTime)(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(i.noop).catch(i.noop)}fetchInfiniteQuery(t){return t.behavior=f(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(i.noop).catch(i.noop)}ensureInfiniteQueryData(t){return t.behavior=f(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return d.onlineManager.isOnline()?this.#m.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#O}getMutationCache(){return this.#m}getDefaultOptions(){return this.#d}setDefaultOptions(t){this.#d=t}setQueryDefaults(t,e){this.#w.set((0,i.hashKey)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#w.values()],s={};return e.forEach(e=>{(0,i.partialMatchKey)(t,e.queryKey)&&Object.assign(s,e.defaultOptions)}),s}setMutationDefaults(t,e){this.#S.set((0,i.hashKey)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#S.values()],s={};return e.forEach(e=>{(0,i.partialMatchKey)(t,e.mutationKey)&&Object.assign(s,e.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#d.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,i.hashQueryKeyByOptions)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===i.skipToken&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#d.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#O.clear(),this.#m.clear()}},m=t.i(12598),v=t.i(71645),b=t.i(9593),g=t.i(29320),C=t.i(9165);function O({children:t}){let[i,s]=(0,v.useState)({tier:"community",hasAuth:!1,hasAdmin:!1,hasCollaboration:!1,hasNetwork:!1,hasMultiuser:!1,isDesktop:!0,basePath:"",loading:!1});return(0,v.useEffect)(()=>{fetch((0,C.api)("/api/tier")).then(t=>t.json()).then(t=>{s({tier:t.tier,hasAuth:t.hasAuth,hasAdmin:t.hasAdmin,hasCollaboration:t.hasCollaboration??!1,hasNetwork:t.hasNetwork,hasMultiuser:t.hasMultiuser,isDesktop:t.isDesktop,basePath:t.basePath||"",loading:!1})}).catch(()=>{s(t=>({...t,loading:!1}))})},[]),(0,e.jsx)(g.TierContext.Provider,{value:i,children:t})}function w({children:t}){let[i]=(0,v.useState)(()=>new y({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}));return(0,v.useEffect)(()=>{fetch((0,C.api)("/api/config")).then(t=>t.json()).then(t=>{(0,b.initTelemetry)(t.installId,t.telemetryOptOut)}).catch(()=>{})},[]),(0,e.jsx)(m.QueryClientProvider,{client:i,children:(0,e.jsx)(O,{children:t})})}t.s(["Providers",()=>w],12524)}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31278,e=>{"use strict";let t=(0,e.i(75254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],31278)},66027,54616,e=>{"use strict";let t;var s=e.i(75555),i=e.i(40143),r=e.i(86491),n=e.i(15823),a=e.i(93803),o=e.i(19273),u=e.i(80166),c=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#s=(0,a.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#i=void 0;#r=void 0;#n=void 0;#a;#o;#s;#t;#u;#c;#l;#h;#d;#p;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#i.addObserver(this),l(this.#i,this.options)?this.#f():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return h(this.#i,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return h(this.#i,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#i.removeObserver(this)}setOptions(e){let t=this.options,s=this.#i;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.resolveEnabled)(this.options.enabled,this.#i))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#i.setOptions(this.options),t._defaulted&&!(0,o.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#i,observer:this});let i=this.hasListeners();i&&d(this.#i,s,this.options,t)&&this.#f(),this.updateResult(),i&&(this.#i!==s||(0,o.resolveEnabled)(this.options.enabled,this.#i)!==(0,o.resolveEnabled)(t.enabled,this.#i)||(0,o.resolveStaleTime)(this.options.staleTime,this.#i)!==(0,o.resolveStaleTime)(t.staleTime,this.#i))&&this.#v();let r=this.#j();i&&(this.#i!==s||(0,o.resolveEnabled)(this.options.enabled,this.#i)!==(0,o.resolveEnabled)(t.enabled,this.#i)||r!==this.#p)&&this.#R(r)}getOptimisticResult(e){var t,s;let i=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(i,e);return t=this,s=r,(0,o.shallowEqualObjects)(t.getCurrentResult(),s)||(this.#n=r,this.#o=this.options,this.#a=this.#i.state),r}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(e,s)=>(this.trackProp(s),t?.(s),"promise"===s&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#s.status||this.#s.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,s))})}trackProp(e){this.#y.add(e)}getCurrentQuery(){return this.#i}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),s=this.#e.getQueryCache().build(this.#e,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(e){this.#g();let t=this.#i.fetch(this.options,e);return e?.throwOnError||(t=t.catch(o.noop)),t}#v(){this.#b();let e=(0,o.resolveStaleTime)(this.options.staleTime,this.#i);if(o.isServer||this.#n.isStale||!(0,o.isValidTimeout)(e))return;let t=(0,o.timeUntilStale)(this.#n.dataUpdatedAt,e);this.#h=u.timeoutManager.setTimeout(()=>{this.#n.isStale||this.updateResult()},t+1)}#j(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#i):this.options.refetchInterval)??!1}#R(e){this.#x(),this.#p=e,!o.isServer&&!1!==(0,o.resolveEnabled)(this.options.enabled,this.#i)&&(0,o.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#d=u.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||s.focusManager.isFocused())&&this.#f()},this.#p))}#m(){this.#v(),this.#R(this.#j())}#b(){this.#h&&(u.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}#x(){this.#d&&(u.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let s,i=this.#i,n=this.options,u=this.#n,c=this.#a,h=this.#o,y=e!==i?e.state:this.#r,{state:f}=e,m={...f},b=!1;if(t._optimisticResults){let s=this.hasListeners(),a=!s&&l(e,t),o=s&&d(e,i,t,n);(a||o)&&(m={...m,...(0,r.fetchState)(f.data,e.options)}),"isRestoring"===t._optimisticResults&&(m.fetchStatus="idle")}let{error:x,errorUpdatedAt:g,status:v}=m;s=m.data;let j=!1;if(void 0!==t.placeholderData&&void 0===s&&"pending"===v){let e;u?.isPlaceholderData&&t.placeholderData===h?.placeholderData?(e=u.data,j=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,void 0!==e&&(v="success",s=(0,o.replaceData)(u?.data,e,t),b=!0)}if(t.select&&void 0!==s&&!j)if(u&&s===c?.data&&t.select===this.#u)s=this.#c;else try{this.#u=t.select,s=t.select(s),s=(0,o.replaceData)(u?.data,s,t),this.#c=s,this.#t=null}catch(e){this.#t=e}this.#t&&(x=this.#t,s=this.#c,g=Date.now(),v="error");let R="fetching"===m.fetchStatus,S="pending"===v,Q="error"===v,w=S&&R,O=void 0!==s,T={status:v,fetchStatus:m.fetchStatus,isPending:S,isSuccess:"success"===v,isError:Q,isInitialLoading:w,isLoading:w,data:s,dataUpdatedAt:m.dataUpdatedAt,error:x,errorUpdatedAt:g,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>y.dataUpdateCount||m.errorUpdateCount>y.errorUpdateCount,isFetching:R,isRefetching:R&&!S,isLoadingError:Q&&!O,isPaused:"paused"===m.fetchStatus,isPlaceholderData:b,isRefetchError:Q&&O,isStale:p(e,t),refetch:this.refetch,promise:this.#s,isEnabled:!1!==(0,o.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==T.data,s="error"===T.status&&!t,r=e=>{s?e.reject(T.error):t&&e.resolve(T.data)},n=()=>{r(this.#s=T.promise=(0,a.pendingThenable)())},o=this.#s;switch(o.status){case"pending":e.queryHash===i.queryHash&&r(o);break;case"fulfilled":(s||T.data!==o.value)&&n();break;case"rejected":s&&T.error===o.reason||n()}}return T}updateResult(){let e=this.#n,t=this.createResult(this.#i,this.options);if(this.#a=this.#i.state,this.#o=this.options,void 0!==this.#a.data&&(this.#l=this.#i),(0,o.shallowEqualObjects)(t,e))return;this.#n=t;let s=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.#y.size)return!0;let i=new Set(s??this.#y);return this.options.throwOnError&&i.add("error"),Object.keys(this.#n).some(t=>this.#n[t]!==e[t]&&i.has(t))};this.#S({listeners:s()})}#g(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#i)return;let t=this.#i;this.#i=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}#S(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#i,type:"observerResultsUpdated"})})}};function l(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&h(e,t,t.refetchOnMount)}function h(e,t,s){if(!1!==(0,o.resolveEnabled)(t.enabled,e)&&"static"!==(0,o.resolveStaleTime)(t.staleTime,e)){let i="function"==typeof s?s(e):s;return"always"===i||!1!==i&&p(e,t)}return!1}function d(e,t,s,i){return(e!==t||!1===(0,o.resolveEnabled)(i.enabled,e))&&(!s.suspense||"error"!==e.state.status)&&p(e,s)}function p(e,t){return!1!==(0,o.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,o.resolveStaleTime)(t.staleTime,e))}e.i(47167);var y=e.i(71645),f=e.i(12598);e.i(18050);var m=y.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),b=y.createContext(!1);b.Provider;var x=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function g(e,t){return function(e,t,s){let r,n=y.useContext(b),a=y.useContext(m),u=(0,f.useQueryClient)(s),c=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let l=u.getQueryCache().get(c.queryHash);if(c._optimisticResults=n?"isRestoring":"optimistic",c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...s)=>e(t(...s)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}r=l?.state.error&&"function"==typeof c.throwOnError?(0,o.shouldThrowError)(c.throwOnError,[l.state.error,l]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||r)&&!a.isReset()&&(c.retryOnMount=!1),y.useEffect(()=>{a.clearReset()},[a]);let h=!u.getQueryCache().get(c.queryHash),[d]=y.useState(()=>new t(u,c)),p=d.getOptimisticResult(c),g=!n&&!1!==e.subscribed;if(y.useSyncExternalStore(y.useCallback(e=>{let t=g?d.subscribe(i.notifyManager.batchCalls(e)):o.noop;return d.updateResult(),t},[d,g]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),y.useEffect(()=>{d.setOptions(c)},[c,d]),c?.suspense&&p.isPending)throw x(c,d,a);if((({result:e,errorResetBoundary:t,throwOnError:s,query:i,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(r&&void 0===e.data||(0,o.shouldThrowError)(s,[e.error,i])))({result:p,errorResetBoundary:a,throwOnError:c.throwOnError,query:l,suspense:c.suspense}))throw p.error;if(u.getDefaultOptions().queries?._experimental_afterQuery?.(c,p),c.experimental_prefetchInRender&&!o.isServer&&p.isLoading&&p.isFetching&&!n){let e=h?x(c,d,a):l?.promise;e?.catch(o.noop).finally(()=>{d.updateResult()})}return c.notifyOnChangeProps?p:d.trackResult(p)}(e,c,t)}e.s(["useQuery",()=>g],66027);var v=e.i(14272),j=n,R=class extends j.Subscribable{#e;#n=void 0;#Q;#w;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#O()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#Q,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.hashKey)(t.mutationKey)!==(0,o.hashKey)(this.options.mutationKey)?this.reset():this.#Q?.state.status==="pending"&&this.#Q.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#Q?.removeObserver(this)}onMutationUpdate(e){this.#O(),this.#S(e)}getCurrentResult(){return this.#n}reset(){this.#Q?.removeObserver(this),this.#Q=void 0,this.#O(),this.#S()}mutate(e,t){return this.#w=t,this.#Q?.removeObserver(this),this.#Q=this.#e.getMutationCache().build(this.#e,this.options),this.#Q.addObserver(this),this.#Q.execute(e)}#O(){let e=this.#Q?.state??(0,v.getDefaultState)();this.#n={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#S(e){i.notifyManager.batch(()=>{if(this.#w&&this.hasListeners()){let t=this.#n.variables,s=this.#n.context,i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#w.onSuccess?.(e.data,t,s,i)}catch(e){Promise.reject(e)}try{this.#w.onSettled?.(e.data,null,t,s,i)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#w.onError?.(e.error,t,s,i)}catch(e){Promise.reject(e)}try{this.#w.onSettled?.(void 0,e.error,t,s,i)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#n)})})}};function S(e,t){let s=(0,f.useQueryClient)(t),[r]=y.useState(()=>new R(s,e));y.useEffect(()=>{r.setOptions(e)},[r,e]);let n=y.useSyncExternalStore(y.useCallback(e=>r.subscribe(i.notifyManager.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=y.useCallback((e,t)=>{r.mutate(e,t).catch(o.noop)},[r]);if(n.error&&(0,o.shouldThrowError)(r.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}e.s(["useMutation",()=>S],54616)},3999,e=>{"use strict";var t=e.i(66027),s=e.i(54616),i=e.i(12598),r=e.i(9165);function n(e={}){return(0,t.useQuery)({queryKey:["sessions",e],queryFn:async()=>{let t=new URLSearchParams;return e.projectId&&t.set("projectId",e.projectId),void 0!==e.starred&&t.set("starred",String(e.starred)),e.search&&t.set("search",e.search),e.agentType&&t.set("agentType",e.agentType),e.sortBy&&t.set("sortBy",e.sortBy),e.sortDir&&t.set("sortDir",e.sortDir),void 0!==e.offset&&t.set("offset",String(e.offset)),void 0!==e.limit&&t.set("limit",String(e.limit)),"all"===e.nodeFilter&&t.set("nodes","all"),(await fetch((0,r.api)(`/api/sessions?${t}`))).json()}})}function a(e){return(0,t.useQuery)({queryKey:["session",e],queryFn:async()=>{let t=await fetch((0,r.api)(`/api/sessions/${e}`));if(!t.ok)throw Error("Session not found");return t.json()},enabled:!!e})}function o(e,s=0,i=50,n){return(0,t.useQuery)({queryKey:["messages",e,s,i,n],queryFn:async()=>{let t=n?(0,r.api)(`/api/network/proxy/${n}/sessions/${e}/messages?offset=${s}&limit=${i}`):(0,r.api)(`/api/sessions/${e}/messages?offset=${s}&limit=${i}`);return(await fetch(t)).json()},enabled:!!e})}function u(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:async e=>(await fetch((0,r.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"star"})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function c(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,notes:t})=>(await fetch((0,r.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"notes",notes:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["session"]})}})}function l(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,tagName:t})=>(await fetch((0,r.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"tag",tagName:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]}),e.invalidateQueries({queryKey:["tags"]})}})}function h(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,tagName:t})=>(await fetch((0,r.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"removeTag",tagName:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]}),e.invalidateQueries({queryKey:["tags"]})}})}function d(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:async({sessionId:e,name:t})=>(await fetch((0,r.api)(`/api/sessions/${e}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"rename",name:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function p(){return(0,t.useQuery)({queryKey:["tags"],queryFn:async()=>(await fetch((0,r.api)("/api/tags"))).json()})}function y(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:async e=>(await fetch((0,r.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",tagId:e})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["tags"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function f(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:async({tagId:e,color:t})=>(await fetch((0,r.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"updateColor",tagId:e,color:t})})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["tags"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function m(){return(0,t.useQuery)({queryKey:["workspaces"],queryFn:async()=>(await fetch((0,r.api)("/api/workspaces"))).json()})}function b(){return(0,t.useQuery)({queryKey:["workspaces","remote"],queryFn:async()=>(await fetch((0,r.api)("/api/workspaces?nodes=all"))).json()})}function x(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:async({workspaceId:e,sessionId:t,nodeId:s,title:i,cwd:n,agentType:a})=>{let o=await fetch((0,r.api)(`/api/workspaces/${e}/sessions`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:t,nodeId:s,title:i,cwd:n,agentType:a})});if(!o.ok)throw Error("Failed to add session to workspace");return o.json()},onSuccess:()=>{e.invalidateQueries({queryKey:["workspaces"]}),e.invalidateQueries({queryKey:["workspace-sessions"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function g(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:async({workspaceId:e,sessionId:t})=>{let s=await fetch((0,r.api)(`/api/workspaces/${e}/sessions`),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:t})});if(!s.ok)throw Error("Failed to remove session from workspace");return s.json()},onSuccess:()=>{e.invalidateQueries({queryKey:["workspaces"]}),e.invalidateQueries({queryKey:["workspace-sessions"]}),e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["session"]})}})}function v(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:async e=>(await fetch((0,r.api)("/api/bulk"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json(),onSuccess:()=>{e.invalidateQueries({queryKey:["sessions"]}),e.invalidateQueries({queryKey:["workspaces"]}),e.invalidateQueries({queryKey:["tags"]})}})}function j(){return(0,t.useQuery)({queryKey:["projects"],queryFn:async()=>(await fetch((0,r.api)("/api/projects"))).json()})}function R(){return(0,t.useQuery)({queryKey:["analytics"],queryFn:async()=>(await fetch((0,r.api)("/api/analytics/overview"))).json()})}function S(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:async()=>(await fetch((0,r.api)("/api/sync"),{method:"POST"})).json(),onSuccess:()=>{e.invalidateQueries()}})}e.s(["useAddSessionToWorkspace",()=>x,"useAddTag",()=>l,"useAnalytics",()=>R,"useBulkAction",()=>v,"useDeleteTag",()=>y,"useMessages",()=>o,"useProjects",()=>j,"useRemoteWorkspaces",()=>b,"useRemoveSessionFromWorkspace",()=>g,"useRemoveTag",()=>h,"useRenameSession",()=>d,"useSession",()=>a,"useSessions",()=>n,"useSync",()=>S,"useTags",()=>p,"useToggleStar",()=>u,"useUpdateNotes",()=>c,"useUpdateTagColor",()=>f,"useWorkspaces",()=>m])},71689,e=>{"use strict";let t=(0,e.i(75254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",()=>t],71689)},91898,e=>{"use strict";var t=e.i(18050),s=e.i(18566),i=e.i(71689),r=e.i(75157);function n({title:e,showBack:n,backHref:a,right:o,className:u}){let c=(0,s.useRouter)();return(0,t.jsxs)("header",{className:(0,r.cn)("sticky top-0 z-40 bg-zinc-950/95 backdrop-blur-sm border-b border-zinc-800","flex items-center gap-3 px-4 h-14 flex-shrink-0",u),children:[n&&(0,t.jsx)("button",{onClick:()=>{a?c.push(a):c.back()},className:"p-1 -ml-1 text-zinc-400 hover:text-white",children:(0,t.jsx)(i.ArrowLeft,{className:"w-5 h-5"})}),(0,t.jsx)("h1",{className:"text-base font-semibold truncate flex-1",children:e}),o&&(0,t.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0",children:o})]})}e.s(["MobileHeader",()=>n])},17923,e=>{"use strict";let t=(0,e.i(75254).default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);e.s(["BarChart3",()=>t],17923)},92270,e=>{"use strict";let t=(0,e.i(75254).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);e.s(["LogOut",()=>t],92270)},37727,e=>{"use strict";let t=(0,e.i(75254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",()=>t],37727)},7233,e=>{"use strict";let t=(0,e.i(75254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",()=>t],7233)},16715,e=>{"use strict";let t=(0,e.i(75254).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",()=>t],16715)},98919,e=>{"use strict";let t=(0,e.i(75254).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);e.s(["Shield",()=>t],98919)},95468,11588,e=>{"use strict";var t=e.i(75254);let s=(0,t.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",()=>s],95468);let i=(0,t.default)("folder-code",[["path",{d:"M10 10.5 8 13l2 2.5",key:"m4t9c1"}],["path",{d:"m14 10.5 2 2.5-2 2.5",key:"14w2eb"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z",key:"1u1bxd"}]]);e.s(["FolderCode",()=>i],11588)},54997,e=>{"use strict";var t=e.i(18050),s=e.i(71645),i=e.i(3999),r=e.i(18566),n=e.i(91898),a=e.i(16715),o=e.i(75505),u=e.i(31278),c=e.i(98919),l=e.i(95468),h=e.i(17923),d=e.i(39616),p=e.i(92270),y=e.i(7233),f=e.i(37727),m=e.i(11588),b=e.i(9165),x=e.i(9593),g=e.i(29320);function v(){let{hasAuth:e}=(0,g.useTier)(),v=(0,r.useRouter)(),j=(0,i.useSync)(),[R,S]=(0,s.useState)(""),[Q,w]=(0,s.useState)([]),[O,T]=(0,s.useState)(""),[C,k]=(0,s.useState)(!1),[N,M]=(0,s.useState)(!0);(0,s.useEffect)(()=>{fetch((0,b.api)("/api/config")).then(e=>e.json()).then(e=>{k(e.telemetryOptOut),w(e.devDirectories||[]),M(!1)}).catch(()=>M(!1))},[]);let E=async e=>{w(e),await fetch((0,b.api)("/api/config"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({devDirectories:e})})},q=()=>{let e=O.trim();!e||Q.includes(e)||(e.startsWith("/")||/^[A-Za-z]:[\\/]/.test(e))&&(E([...Q,e]),T(""))},I=async()=>{let e=await j.mutateAsync();S(`Synced ${e.projects} projects, ${e.sessions} sessions`)},F=async()=>{let e=!C;k(e),(0,x.setOptOut)(e),await fetch((0,b.api)("/api/config"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({telemetryOptOut:e})})},K=async()=>{await fetch((0,b.api)("/api/auth/logout"),{method:"POST"}),v.push("/login")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.MobileHeader,{title:"Settings"}),(0,t.jsxs)("div",{className:"px-4 py-4 space-y-4",children:[e&&(0,t.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,t.jsx)(c.Shield,{className:"w-4 h-4"}),"Terminal Security"]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(l.CheckCircle2,{className:"w-4 h-4 text-green-500"}),(0,t.jsx)("span",{className:"text-xs text-green-500",children:"2FA Enabled"})]}),(0,t.jsx)("p",{className:"text-[11px] text-zinc-500 mt-1.5",children:"2FA is managed through the login flow."})]}),(0,t.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,t.jsx)(o.FolderOpen,{className:"w-4 h-4"}),"Data Source"]}),(0,t.jsxs)("div",{className:"space-y-2 text-xs",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-zinc-500",children:"Agent Data:"}),(0,t.jsx)("span",{className:"font-mono ml-2",children:"~/.claude/ ~/.codex/ ~/.gemini/"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-zinc-500",children:"Database:"}),(0,t.jsx)("span",{className:"font-mono ml-2",children:"~/.spaces/spaces.db"})]})]})]}),(0,t.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,t.jsx)(m.FolderCode,{className:"w-4 h-4"}),"Dev Directories"]}),(0,t.jsx)("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Restrict pane creation to these project roots."}),Q.length>0&&(0,t.jsx)("div",{className:"space-y-1.5 mb-3",children:Q.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2 px-2.5 py-1.5 bg-zinc-800 rounded-md",children:[(0,t.jsx)(o.FolderOpen,{className:"w-3 h-3 text-amber-500/70 flex-shrink-0"}),(0,t.jsx)("span",{className:"font-mono text-[11px] flex-1 truncate",children:e}),(0,t.jsx)("button",{onClick:()=>{E(Q.filter(t=>t!==e))},className:"text-zinc-500 hover:text-red-400",children:(0,t.jsx)(f.X,{className:"w-3 h-3"})})]},e))}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("input",{type:"text",placeholder:"u">typeof navigator&&navigator.platform?.startsWith("Win")?"C:\\Users\\you\\projects":"/home/user/projects",value:O,onChange:e=>T(e.target.value),onKeyDown:e=>"Enter"===e.key&&q(),className:"flex-1 px-2.5 py-1.5 text-xs bg-zinc-800 border border-zinc-700 rounded-md focus:outline-none focus:border-indigo-500 font-mono"}),(0,t.jsxs)("button",{onClick:q,disabled:!O.trim()||!(O.trim().startsWith("/")||/^[A-Za-z]:[\\/]/.test(O.trim())),className:"flex items-center gap-1 px-2.5 py-1.5 text-xs bg-indigo-600 text-white rounded-md disabled:opacity-50",children:[(0,t.jsx)(y.Plus,{className:"w-3 h-3"}),"Add"]})]})]}),(0,t.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,t.jsx)(a.RefreshCw,{className:"w-4 h-4"}),"Data Sync"]}),(0,t.jsx)("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Re-scan all agent sessions."}),(0,t.jsxs)("button",{onClick:I,disabled:j.isPending,className:"flex items-center gap-2 px-3 py-2 text-xs bg-indigo-600 text-white rounded-lg disabled:opacity-50",children:[j.isPending?(0,t.jsx)(u.Loader2,{className:"w-3.5 h-3.5 animate-spin"}):(0,t.jsx)(a.RefreshCw,{className:"w-3.5 h-3.5"}),"Re-sync Now"]}),R&&(0,t.jsx)("p",{className:"text-[11px] text-green-500 mt-2",children:R})]}),(0,t.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,t.jsx)(h.BarChart3,{className:"w-4 h-4"}),"Telemetry"]}),N?(0,t.jsx)(u.Loader2,{className:"w-4 h-4 animate-spin text-zinc-500"}):(0,t.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer",children:[(0,t.jsx)("input",{type:"checkbox",checked:!C,onChange:F,className:"w-4 h-4 rounded border-zinc-700 text-indigo-500 focus:ring-indigo-500"}),(0,t.jsx)("span",{className:"text-xs",children:"Send anonymous usage data"})]})]}),(0,t.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,t.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,t.jsx)(d.Settings,{className:"w-4 h-4"}),"About"]}),(0,t.jsxs)("div",{className:"text-xs space-y-1 text-zinc-400",children:[(0,t.jsx)("p",{children:"Version: 0.1.0"}),(0,t.jsx)("p",{children:"Data access: Read-only"})]})]}),e&&(0,t.jsxs)("button",{onClick:K,className:"flex items-center gap-2 w-full px-4 py-3 text-sm text-red-400 bg-zinc-900 border border-zinc-800 rounded-lg",children:[(0,t.jsx)(p.LogOut,{className:"w-4 h-4"}),"Sign out"]})]})]})}e.s(["default",()=>v])}]);
@@ -1,4 +1,4 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/9b2c5451f0b67975.js","static/chunks/e06e39191cb58138.js","static/chunks/22a521c5c03db2e1.js","static/chunks/7de9141b1af425c3.js","static/chunks/82abf2d65f5428ae.js"],runtimeModuleIds:[94553]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/_next/",r=(self.TURBOPACK_CHUNK_SUFFIX??document?.currentScript?.getAttribute?.("src")?.replace(/^(.*(?=\?)|^.*$)/,""))||"",n=new WeakMap;function o(e,t){this.m=e,this.e=t}let l=o.prototype,i=Object.prototype.hasOwnProperty,s="u">typeof Symbol&&Symbol.toStringTag;function u(e,t,r){i.call(e,t)||Object.defineProperty(e,t,r)}function c(e,t){let r=e[t];return r||(r=a(t),e[t]=r),r}function a(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function f(e,t){u(e,"__esModule",{value:!0}),s&&u(e,s,{value:"Module"});let r=0;for(;r<t.length;){let n=t[r++],o=t[r++];if("number"==typeof o)if(0===o)u(e,n,{value:t[r++],enumerable:!0,writable:!1});else throw Error(`unexpected tag: ${o}`);else"function"==typeof t[r]?u(e,n,{get:o,set:t[r++],enumerable:!0}):u(e,n,{get:o,enumerable:!0})}Object.seal(e)}l.s=function(e,t){let r,n;null!=t?n=(r=c(this.c,t)).exports:(r=this.m,n=this.e),r.namespaceObject=n,f(n,e)},l.j=function(e,t){var r,o;let l,s,u;null!=t?s=(l=c(this.c,t)).exports:(l=this.m,s=this.e);let a=(r=l,o=s,(u=n.get(r))||(n.set(r,u=[]),r.exports=r.namespaceObject=new Proxy(o,{get(e,t){if(i.call(e,t)||"default"===t||"__esModule"===t)return Reflect.get(e,t);for(let e of u){let r=Reflect.get(e,t);if(void 0!==r)return r}},ownKeys(e){let t=Reflect.ownKeys(e);for(let e of u)for(let r of Reflect.ownKeys(e))"default"===r||t.includes(r)||t.push(r);return t}})),u);"object"==typeof e&&null!==e&&a.push(e)},l.v=function(e,t){(null!=t?c(this.c,t):this.m).exports=e},l.n=function(e,t){let r;(r=null!=t?c(this.c,t):this.m).exports=r.namespaceObject=e};let p=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,h=[null,p({}),p([]),p(p)];function d(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!h.includes(t);t=p(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),f(t,n),t}function m(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=d(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function b(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function y(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}l.i=m,l.A=function(e){return this.r(e)(m.bind(this))},l.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},l.r=function(e){return B(e,this.m).exports},l.f=function(e){function t(t){if(t=b(t),i.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=b(t),i.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let O=Symbol("turbopack queues"),g=Symbol("turbopack exports"),w=Symbol("turbopack error");function C(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}l.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:l,reject:i,promise:s}=y(),u=Object.assign(s,{[g]:r.exports,[O]:e=>{n&&e(n),o.forEach(e),u.catch(()=>{})}}),c={get:()=>u,set(e){e!==u&&(u[g]=e)}};Object.defineProperty(r,"exports",c),Object.defineProperty(r,"namespaceObject",c),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(O in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[g]:{},[O]:e=>e(t)};return e.then(e=>{r[g]=e,C(t)},e=>{r[w]=e,C(t)}),r}}return{[g]:e,[O]:()=>{}}}),r=()=>t.map(e=>{if(e[w])throw e[w];return e[g]}),{promise:l,resolve:i}=y(),s=Object.assign(()=>i(r),{queueCount:0});function u(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(s.queueCount++,e.push(s)))}return t.map(e=>e[O](u)),s.queueCount?l:r()},function(e){e?i(u[w]=e):l(u[g]),C(n)}),n&&-1===n.status&&(n.status=0)};let U=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function j(e,t){throw Error(`Invariant: ${t(e)}`)}U.prototype=URL.prototype,l.U=U,l.z=function(e){throw Error("dynamic usage of require is not supported")},l.g=globalThis;let R=o.prototype;var k,_=((k=_||{})[k.Runtime=0]="Runtime",k[k.Parent=1]="Parent",k[k.Update=2]="Update",k);let v=new Map;l.M=v;let $=new Map,P=new Map;async function S(e,t,r){let n;if("string"==typeof r)return E(e,t,K(r));let o=r.included||[],l=o.map(e=>!!v.has(e)||$.get(e));if(l.length>0&&l.every(e=>e))return void await Promise.all(l);let i=r.moduleChunks||[],s=i.map(e=>P.get(e)).filter(e=>e);if(s.length>0){if(s.length===i.length)return void await Promise.all(s);let r=new Set;for(let e of i)P.has(e)||r.add(e);for(let n of r){let r=E(e,t,K(n));P.set(n,r),s.push(r)}n=Promise.all(s)}else{for(let o of(n=E(e,t,K(r.path)),i))P.has(o)||P.set(o,n)}for(let e of o)$.has(e)||$.set(e,n);await n}R.l=function(e){return S(1,this.m.id,e)};let T=Promise.resolve(void 0),A=new WeakMap;function E(t,r,n){let o=e.loadChunkCached(t,n),l=A.get(o);if(void 0===l){let e=A.set.bind(A,o,T);l=o.then(e).catch(e=>{let o;switch(t){case 0:o=`as a runtime dependency of chunk ${r}`;break;case 1:o=`from module ${r}`;break;case 2:o="from an HMR update";break;default:j(t,e=>`Unknown source type: ${e}`)}let l=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw l.name="ChunkLoadError",l}),A.set(o,l)}return l}function K(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}R.L=function(e){return E(1,this.m.id,e)},R.R=function(e){let t=this.r(e);return t?.default??t},R.P=function(e){return`/ROOT/${e??""}`},R.b=function(e){let t=new Blob([`self.TURBOPACK_WORKER_LOCATION = ${JSON.stringify(location.origin)};
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,{otherChunks:["static/chunks/9b2c5451f0b67975.js","static/chunks/e06e39191cb58138.js","static/chunks/22a521c5c03db2e1.js","static/chunks/e7772d64463868eb.js","static/chunks/82abf2d65f5428ae.js"],runtimeModuleIds:[94553]}]),(()=>{let e;if(!Array.isArray(globalThis.TURBOPACK))return;let t="/_next/",r=(self.TURBOPACK_CHUNK_SUFFIX??document?.currentScript?.getAttribute?.("src")?.replace(/^(.*(?=\?)|^.*$)/,""))||"",n=new WeakMap;function o(e,t){this.m=e,this.e=t}let l=o.prototype,i=Object.prototype.hasOwnProperty,s="u">typeof Symbol&&Symbol.toStringTag;function u(e,t,r){i.call(e,t)||Object.defineProperty(e,t,r)}function c(e,t){let r=e[t];return r||(r=a(t),e[t]=r),r}function a(e){return{exports:{},error:void 0,id:e,namespaceObject:void 0}}function f(e,t){u(e,"__esModule",{value:!0}),s&&u(e,s,{value:"Module"});let r=0;for(;r<t.length;){let n=t[r++],o=t[r++];if("number"==typeof o)if(0===o)u(e,n,{value:t[r++],enumerable:!0,writable:!1});else throw Error(`unexpected tag: ${o}`);else"function"==typeof t[r]?u(e,n,{get:o,set:t[r++],enumerable:!0}):u(e,n,{get:o,enumerable:!0})}Object.seal(e)}l.s=function(e,t){let r,n;null!=t?n=(r=c(this.c,t)).exports:(r=this.m,n=this.e),r.namespaceObject=n,f(n,e)},l.j=function(e,t){var r,o;let l,s,u;null!=t?s=(l=c(this.c,t)).exports:(l=this.m,s=this.e);let a=(r=l,o=s,(u=n.get(r))||(n.set(r,u=[]),r.exports=r.namespaceObject=new Proxy(o,{get(e,t){if(i.call(e,t)||"default"===t||"__esModule"===t)return Reflect.get(e,t);for(let e of u){let r=Reflect.get(e,t);if(void 0!==r)return r}},ownKeys(e){let t=Reflect.ownKeys(e);for(let e of u)for(let r of Reflect.ownKeys(e))"default"===r||t.includes(r)||t.push(r);return t}})),u);"object"==typeof e&&null!==e&&a.push(e)},l.v=function(e,t){(null!=t?c(this.c,t):this.m).exports=e},l.n=function(e,t){let r;(r=null!=t?c(this.c,t):this.m).exports=r.namespaceObject=e};let p=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,h=[null,p({}),p([]),p(p)];function d(e,t,r){let n=[],o=-1;for(let t=e;("object"==typeof t||"function"==typeof t)&&!h.includes(t);t=p(t))for(let r of Object.getOwnPropertyNames(t))n.push(r,function(e,t){return()=>e[t]}(e,r)),-1===o&&"default"===r&&(o=n.length-1);return r&&o>=0||(o>=0?n.splice(o,1,0,e):n.push("default",0,e)),f(t,n),t}function m(e){let t=B(e,this.m);if(t.namespaceObject)return t.namespaceObject;let r=t.exports;return t.namespaceObject=d(r,"function"==typeof r?function(...e){return r.apply(this,e)}:Object.create(null),r&&r.__esModule)}function b(e){let t=e.indexOf("#");-1!==t&&(e=e.substring(0,t));let r=e.indexOf("?");return -1!==r&&(e=e.substring(0,r)),e}function y(){let e,t;return{promise:new Promise((r,n)=>{t=n,e=r}),resolve:e,reject:t}}l.i=m,l.A=function(e){return this.r(e)(m.bind(this))},l.t="function"==typeof require?require:function(){throw Error("Unexpected use of runtime require")},l.r=function(e){return B(e,this.m).exports},l.f=function(e){function t(t){if(t=b(t),i.call(e,t))return e[t].module();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r}return t.keys=()=>Object.keys(e),t.resolve=t=>{if(t=b(t),i.call(e,t))return e[t].id();let r=Error(`Cannot find module '${t}'`);throw r.code="MODULE_NOT_FOUND",r},t.import=async e=>await t(e),t};let O=Symbol("turbopack queues"),g=Symbol("turbopack exports"),w=Symbol("turbopack error");function C(e){e&&1!==e.status&&(e.status=1,e.forEach(e=>e.queueCount--),e.forEach(e=>e.queueCount--?e.queueCount++:e()))}l.a=function(e,t){let r=this.m,n=t?Object.assign([],{status:-1}):void 0,o=new Set,{resolve:l,reject:i,promise:s}=y(),u=Object.assign(s,{[g]:r.exports,[O]:e=>{n&&e(n),o.forEach(e),u.catch(()=>{})}}),c={get:()=>u,set(e){e!==u&&(u[g]=e)}};Object.defineProperty(r,"exports",c),Object.defineProperty(r,"namespaceObject",c),e(function(e){let t=e.map(e=>{if(null!==e&&"object"==typeof e){if(O in e)return e;if(null!=e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then){let t=Object.assign([],{status:0}),r={[g]:{},[O]:e=>e(t)};return e.then(e=>{r[g]=e,C(t)},e=>{r[w]=e,C(t)}),r}}return{[g]:e,[O]:()=>{}}}),r=()=>t.map(e=>{if(e[w])throw e[w];return e[g]}),{promise:l,resolve:i}=y(),s=Object.assign(()=>i(r),{queueCount:0});function u(e){e!==n&&!o.has(e)&&(o.add(e),e&&0===e.status&&(s.queueCount++,e.push(s)))}return t.map(e=>e[O](u)),s.queueCount?l:r()},function(e){e?i(u[w]=e):l(u[g]),C(n)}),n&&-1===n.status&&(n.status=0)};let U=function(e){let t=new URL(e,"x:/"),r={};for(let e in t)r[e]=t[e];for(let t in r.href=e,r.pathname=e.replace(/[?#].*/,""),r.origin=r.protocol="",r.toString=r.toJSON=(...t)=>e,r)Object.defineProperty(this,t,{enumerable:!0,configurable:!0,value:r[t]})};function j(e,t){throw Error(`Invariant: ${t(e)}`)}U.prototype=URL.prototype,l.U=U,l.z=function(e){throw Error("dynamic usage of require is not supported")},l.g=globalThis;let R=o.prototype;var k,_=((k=_||{})[k.Runtime=0]="Runtime",k[k.Parent=1]="Parent",k[k.Update=2]="Update",k);let v=new Map;l.M=v;let $=new Map,P=new Map;async function S(e,t,r){let n;if("string"==typeof r)return E(e,t,K(r));let o=r.included||[],l=o.map(e=>!!v.has(e)||$.get(e));if(l.length>0&&l.every(e=>e))return void await Promise.all(l);let i=r.moduleChunks||[],s=i.map(e=>P.get(e)).filter(e=>e);if(s.length>0){if(s.length===i.length)return void await Promise.all(s);let r=new Set;for(let e of i)P.has(e)||r.add(e);for(let n of r){let r=E(e,t,K(n));P.set(n,r),s.push(r)}n=Promise.all(s)}else{for(let o of(n=E(e,t,K(r.path)),i))P.has(o)||P.set(o,n)}for(let e of o)$.has(e)||$.set(e,n);await n}R.l=function(e){return S(1,this.m.id,e)};let T=Promise.resolve(void 0),A=new WeakMap;function E(t,r,n){let o=e.loadChunkCached(t,n),l=A.get(o);if(void 0===l){let e=A.set.bind(A,o,T);l=o.then(e).catch(e=>{let o;switch(t){case 0:o=`as a runtime dependency of chunk ${r}`;break;case 1:o=`from module ${r}`;break;case 2:o="from an HMR update";break;default:j(t,e=>`Unknown source type: ${e}`)}let l=Error(`Failed to load chunk ${n} ${o}${e?`: ${e}`:""}`,e?{cause:e}:void 0);throw l.name="ChunkLoadError",l}),A.set(o,l)}return l}function K(e){return`${t}${e.split("/").map(e=>encodeURIComponent(e)).join("/")}${r}`}R.L=function(e){return E(1,this.m.id,e)},R.R=function(e){let t=this.r(e);return t?.default??t},R.P=function(e){return`/ROOT/${e??""}`},R.b=function(e){let t=new Blob([`self.TURBOPACK_WORKER_LOCATION = ${JSON.stringify(location.origin)};
2
2
  self.TURBOPACK_CHUNK_SUFFIX = ${JSON.stringify(r)};
3
3
  self.TURBOPACK_NEXT_CHUNK_URLS = ${JSON.stringify(e.reverse().map(K),null,2)};
4
4
  importScripts(...self.TURBOPACK_NEXT_CHUNK_URLS.map(c => self.TURBOPACK_WORKER_LOCATION + c).reverse());`],{type:"text/javascript"});return URL.createObjectURL(t)};let x=/\.js(?:\?[^#]*)?(?:#.*)?$/,N=/\.css(?:\?[^#]*)?(?:#.*)?$/;function M(e){return N.test(e)}l.w=function(t,r,n){return e.loadWebAssembly(1,this.m.id,t,r,n)},l.u=function(t,r){return e.loadWebAssemblyModule(1,this.m.id,t,r)};let L={};l.c=L;let B=(e,t)=>{let r=L[e];if(r){if(r.error)throw r.error;return r}return q(e,_.Parent,t.id)};function q(e,t,r){let n=v.get(e);if("function"!=typeof n)throw Error(function(e,t,r){let n;switch(t){case 0:n=`as a runtime entry of chunk ${r}`;break;case 1:n=`because it was required from module ${r}`;break;case 2:n="because of an HMR update";break;default:j(t,e=>`Unknown source type: ${e}`)}return`Module ${e} was instantiated ${n}, but the module factory is not available.`}(e,t,r));let l=a(e),i=l.exports;L[e]=l;let s=new o(l,i);try{n(s,l,i)}catch(e){throw l.error=e,e}return l.namespaceObject&&l.exports!==l.namespaceObject&&d(l.exports,l.namespaceObject),l}function I(r){let n,o=function(e){if("string"==typeof e)return e;let r=decodeURIComponent(("u">typeof TURBOPACK_NEXT_CHUNK_URLS?TURBOPACK_NEXT_CHUNK_URLS.pop():e.getAttribute("src")).replace(/[?#].*$/,""));return r.startsWith(t)?r.slice(t.length):r}(r[0]);return 2===r.length?n=r[1]:(n=void 0,!function(e,t,r,n){let o=1;for(;o<e.length;){let t=e[o],n=o+1;for(;n<e.length&&"function"!=typeof e[n];)n++;if(n===e.length)throw Error("malformed chunk format, expected a factory function");if(!r.has(t)){let l=e[n];for(Object.defineProperty(l,"name",{value:"module evaluation"});o<n;o++)t=e[o],r.set(t,l)}o=n+1}}(r,0,v)),e.registerChunk(o,n)}let W=new Map;function H(e){let t=W.get(e);if(!t){let r,n;t={resolved:!1,loadingStarted:!1,promise:new Promise((e,t)=>{r=e,n=t}),resolve:()=>{t.resolved=!0,r()},reject:n},W.set(e,t)}return t}e={async registerChunk(e,t){if(H(K(e)).resolve(),null!=t){for(let e of t.otherChunks)H(K("string"==typeof e?e:e.path));if(await Promise.all(t.otherChunks.map(t=>S(0,e,t))),t.runtimeModuleIds.length>0)for(let r of t.runtimeModuleIds)!function(e,t){let r=L[t];if(r){if(r.error)throw r.error;return}q(t,_.Runtime,e)}(e,r)}},loadChunkCached:(e,t)=>(function(e,t){let r=H(t);if(r.loadingStarted)return r.promise;if(e===_.Runtime)return r.loadingStarted=!0,M(t)&&r.resolve(),r.promise;if("function"==typeof importScripts)if(M(t));else if(x.test(t))self.TURBOPACK_NEXT_CHUNK_URLS.push(t),importScripts(TURBOPACK_WORKER_LOCATION+t);else throw Error(`can't infer type of chunk from URL ${t} in worker`);else{let e=decodeURI(t);if(M(t))if(document.querySelectorAll(`link[rel=stylesheet][href="${t}"],link[rel=stylesheet][href^="${t}?"],link[rel=stylesheet][href="${e}"],link[rel=stylesheet][href^="${e}?"]`).length>0)r.resolve();else{let e=document.createElement("link");e.rel="stylesheet",e.href=t,e.onerror=()=>{r.reject()},e.onload=()=>{r.resolve()},document.head.appendChild(e)}else if(x.test(t)){let n=document.querySelectorAll(`script[src="${t}"],script[src^="${t}?"],script[src="${e}"],script[src^="${e}?"]`);if(n.length>0)for(let e of Array.from(n))e.addEventListener("error",()=>{r.reject()});else{let e=document.createElement("script");e.src=t,e.onerror=()=>{r.reject()},document.head.appendChild(e)}}else throw Error(`can't infer type of chunk from URL ${t}`)}return r.loadingStarted=!0,r.promise})(e,t),async loadWebAssembly(e,t,r,n,o){let l=fetch(K(r)),{instance:i}=await WebAssembly.instantiateStreaming(l,o);return i.exports},async loadWebAssemblyModule(e,t,r,n){let o=fetch(K(r));return await WebAssembly.compileStreaming(o)}};let F=globalThis.TURBOPACK;globalThis.TURBOPACK={push:I},F.forEach(I)})();
@@ -0,0 +1,46 @@
1
+ # `@img/sharp-libvips-linux-x64`
2
+
3
+ Prebuilt libvips and dependencies for use with sharp on Linux (glibc) x64.
4
+
5
+ ## Licensing
6
+
7
+ This software contains third-party libraries
8
+ used under the terms of the following licences:
9
+
10
+ | Library | Used under the terms of |
11
+ |---------------|-----------------------------------------------------------------------------------------------------------|
12
+ | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) |
13
+ | cairo | Mozilla Public License 2.0 |
14
+ | cgif | MIT Licence |
15
+ | expat | MIT Licence |
16
+ | fontconfig | [fontconfig Licence](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) |
17
+ | freetype | [freetype Licence](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) |
18
+ | fribidi | LGPLv3 |
19
+ | glib | LGPLv3 |
20
+ | harfbuzz | MIT Licence |
21
+ | highway | Apache-2.0 License, BSD 3-Clause |
22
+ | lcms | MIT Licence |
23
+ | libarchive | BSD 2-Clause |
24
+ | libexif | LGPLv3 |
25
+ | libffi | MIT Licence |
26
+ | libheif | LGPLv3 |
27
+ | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) |
28
+ | libnsgif | MIT Licence |
29
+ | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) |
30
+ | librsvg | LGPLv3 |
31
+ | libspng | [BSD 2-Clause, libpng License](https://github.com/randy408/libspng/blob/master/LICENSE) |
32
+ | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) |
33
+ | libvips | LGPLv3 |
34
+ | libwebp | New BSD License |
35
+ | libxml2 | MIT Licence |
36
+ | mozjpeg | [zlib License, IJG License, BSD-3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) |
37
+ | pango | LGPLv3 |
38
+ | pixman | MIT Licence |
39
+ | proxy-libintl | LGPLv3 |
40
+ | zlib-ng | [zlib Licence](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) |
41
+
42
+ Use of libraries under the terms of the LGPLv3 is via the
43
+ "any later version" clause of the LGPLv2 or LGPLv2.1.
44
+
45
+ Please report any errors or omissions via
46
+ https://github.com/lovell/sharp-libvips/issues/new