@jlongo78/agent-spaces 0.3.12 → 0.5.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 (593) hide show
  1. package/.next/standalone/.claude/settings.local.json +8 -0
  2. package/.next/standalone/.next/BUILD_ID +1 -1
  3. package/.next/standalone/.next/app-path-routes-manifest.json +5 -0
  4. package/.next/standalone/.next/build-manifest.json +4 -4
  5. package/.next/standalone/.next/prerender-manifest.json +3 -3
  6. package/.next/standalone/.next/required-server-files.json +30 -25
  7. package/.next/standalone/.next/routes-manifest.json +40 -0
  8. package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page/build-manifest.json +2 -2
  9. package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page.js +1 -1
  10. package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page.js.nft.json +1 -1
  11. package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page_client-reference-manifest.js +1 -1
  12. package/.next/standalone/.next/server/app/(desktop)/admin/users/page/build-manifest.json +2 -2
  13. package/.next/standalone/.next/server/app/(desktop)/admin/users/page.js +1 -1
  14. package/.next/standalone/.next/server/app/(desktop)/admin/users/page.js.nft.json +1 -1
  15. package/.next/standalone/.next/server/app/(desktop)/admin/users/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/.next/server/app/(desktop)/analytics/page/build-manifest.json +2 -2
  17. package/.next/standalone/.next/server/app/(desktop)/analytics/page.js +1 -1
  18. package/.next/standalone/.next/server/app/(desktop)/analytics/page.js.nft.json +1 -1
  19. package/.next/standalone/.next/server/app/(desktop)/analytics/page_client-reference-manifest.js +1 -1
  20. package/.next/standalone/.next/server/app/(desktop)/network/page/build-manifest.json +2 -2
  21. package/.next/standalone/.next/server/app/(desktop)/network/page.js +1 -1
  22. package/.next/standalone/.next/server/app/(desktop)/network/page.js.nft.json +1 -1
  23. package/.next/standalone/.next/server/app/(desktop)/network/page_client-reference-manifest.js +1 -1
  24. package/.next/standalone/.next/server/app/(desktop)/page/build-manifest.json +2 -2
  25. package/.next/standalone/.next/server/app/(desktop)/page.js +3 -3
  26. package/.next/standalone/.next/server/app/(desktop)/page.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/(desktop)/page_client-reference-manifest.js +1 -1
  28. package/.next/standalone/.next/server/app/(desktop)/projects/page/build-manifest.json +2 -2
  29. package/.next/standalone/.next/server/app/(desktop)/projects/page.js +1 -1
  30. package/.next/standalone/.next/server/app/(desktop)/projects/page.js.nft.json +1 -1
  31. package/.next/standalone/.next/server/app/(desktop)/projects/page_client-reference-manifest.js +1 -1
  32. package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page/build-manifest.json +2 -2
  33. package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page.js +1 -1
  34. package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page.js.nft.json +1 -1
  35. package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page_client-reference-manifest.js +1 -1
  36. package/.next/standalone/.next/server/app/(desktop)/sessions/page/build-manifest.json +2 -2
  37. package/.next/standalone/.next/server/app/(desktop)/sessions/page.js +1 -1
  38. package/.next/standalone/.next/server/app/(desktop)/sessions/page.js.nft.json +1 -1
  39. package/.next/standalone/.next/server/app/(desktop)/sessions/page_client-reference-manifest.js +1 -1
  40. package/.next/standalone/.next/server/app/(desktop)/settings/page/build-manifest.json +2 -2
  41. package/.next/standalone/.next/server/app/(desktop)/settings/page.js +1 -1
  42. package/.next/standalone/.next/server/app/(desktop)/settings/page.js.nft.json +1 -1
  43. package/.next/standalone/.next/server/app/(desktop)/settings/page_client-reference-manifest.js +1 -1
  44. package/.next/standalone/.next/server/app/(desktop)/terminal/page/build-manifest.json +2 -2
  45. package/.next/standalone/.next/server/app/(desktop)/terminal/page.js +1 -1
  46. package/.next/standalone/.next/server/app/(desktop)/terminal/page.js.nft.json +1 -1
  47. package/.next/standalone/.next/server/app/(desktop)/terminal/page_client-reference-manifest.js +1 -1
  48. package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page/build-manifest.json +2 -2
  49. package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page.js +1 -1
  50. package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page.js.nft.json +1 -1
  51. package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page_client-reference-manifest.js +1 -1
  52. package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page/build-manifest.json +2 -2
  53. package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page.js +1 -1
  54. package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page.js.nft.json +1 -1
  55. package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page_client-reference-manifest.js +1 -1
  56. package/.next/standalone/.next/server/app/(desktop)/workspaces/page/build-manifest.json +2 -2
  57. package/.next/standalone/.next/server/app/(desktop)/workspaces/page.js +1 -1
  58. package/.next/standalone/.next/server/app/(desktop)/workspaces/page.js.nft.json +1 -1
  59. package/.next/standalone/.next/server/app/(desktop)/workspaces/page_client-reference-manifest.js +1 -1
  60. package/.next/standalone/.next/server/app/_global-error/page/build-manifest.json +2 -2
  61. package/.next/standalone/.next/server/app/_global-error/page.js +1 -1
  62. package/.next/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  63. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  64. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  65. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  66. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  67. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  68. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  69. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  70. package/.next/standalone/.next/server/app/_not-found/page/build-manifest.json +2 -2
  71. package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
  72. package/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  73. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  74. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  75. package/.next/standalone/.next/server/app/_not-found.rsc +4 -4
  76. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  77. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  78. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
  79. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  80. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  81. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  82. package/.next/standalone/.next/server/app/admin/analytics.html +1 -1
  83. package/.next/standalone/.next/server/app/admin/analytics.rsc +6 -6
  84. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin/analytics/__PAGE__.segment.rsc +2 -2
  85. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin/analytics.segment.rsc +1 -1
  86. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin.segment.rsc +1 -1
  87. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  88. package/.next/standalone/.next/server/app/admin/analytics.segments/_full.segment.rsc +6 -6
  89. package/.next/standalone/.next/server/app/admin/analytics.segments/_head.segment.rsc +1 -1
  90. package/.next/standalone/.next/server/app/admin/analytics.segments/_index.segment.rsc +3 -3
  91. package/.next/standalone/.next/server/app/admin/analytics.segments/_tree.segment.rsc +2 -2
  92. package/.next/standalone/.next/server/app/admin/users.html +1 -1
  93. package/.next/standalone/.next/server/app/admin/users.rsc +6 -6
  94. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin/users/__PAGE__.segment.rsc +2 -2
  95. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin/users.segment.rsc +1 -1
  96. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin.segment.rsc +1 -1
  97. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  98. package/.next/standalone/.next/server/app/admin/users.segments/_full.segment.rsc +6 -6
  99. package/.next/standalone/.next/server/app/admin/users.segments/_head.segment.rsc +1 -1
  100. package/.next/standalone/.next/server/app/admin/users.segments/_index.segment.rsc +3 -3
  101. package/.next/standalone/.next/server/app/admin/users.segments/_tree.segment.rsc +2 -2
  102. package/.next/standalone/.next/server/app/analytics.html +1 -1
  103. package/.next/standalone/.next/server/app/analytics.rsc +6 -6
  104. package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap/analytics/__PAGE__.segment.rsc +2 -2
  105. package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap/analytics.segment.rsc +1 -1
  106. package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  107. package/.next/standalone/.next/server/app/analytics.segments/_full.segment.rsc +6 -6
  108. package/.next/standalone/.next/server/app/analytics.segments/_head.segment.rsc +1 -1
  109. package/.next/standalone/.next/server/app/analytics.segments/_index.segment.rsc +3 -3
  110. package/.next/standalone/.next/server/app/analytics.segments/_tree.segment.rsc +2 -2
  111. package/.next/standalone/.next/server/app/api/admin/analytics/route.js +1 -1
  112. package/.next/standalone/.next/server/app/api/admin/analytics/route.js.nft.json +1 -1
  113. package/.next/standalone/.next/server/app/api/admin/users/[id]/route.js +1 -1
  114. package/.next/standalone/.next/server/app/api/admin/users/[id]/route.js.nft.json +1 -1
  115. package/.next/standalone/.next/server/app/api/admin/users/route.js +1 -1
  116. package/.next/standalone/.next/server/app/api/admin/users/route.js.nft.json +1 -1
  117. package/.next/standalone/.next/server/app/api/analytics/overview/route.js +1 -1
  118. package/.next/standalone/.next/server/app/api/analytics/overview/route.js.nft.json +1 -1
  119. package/.next/standalone/.next/server/app/api/auth/login/route.js +1 -1
  120. package/.next/standalone/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  121. package/.next/standalone/.next/server/app/api/auth/logout/route.js +1 -1
  122. package/.next/standalone/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  123. package/.next/standalone/.next/server/app/api/auth/me/route.js +1 -1
  124. package/.next/standalone/.next/server/app/api/auth/me/route.js.nft.json +1 -1
  125. package/.next/standalone/.next/server/app/api/auth/totp/setup/route.js +1 -1
  126. package/.next/standalone/.next/server/app/api/auth/totp/setup/route.js.nft.json +1 -1
  127. package/.next/standalone/.next/server/app/api/auth/totp/status/route.js +1 -1
  128. package/.next/standalone/.next/server/app/api/auth/totp/status/route.js.nft.json +1 -1
  129. package/.next/standalone/.next/server/app/api/auth/totp/verify/route.js +1 -1
  130. package/.next/standalone/.next/server/app/api/auth/totp/verify/route.js.nft.json +1 -1
  131. package/.next/standalone/.next/server/app/api/bulk/route.js +1 -1
  132. package/.next/standalone/.next/server/app/api/bulk/route.js.nft.json +1 -1
  133. package/.next/standalone/.next/server/app/api/chat/route.js +1 -1
  134. package/.next/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
  135. package/.next/standalone/.next/server/app/api/config/route.js +1 -1
  136. package/.next/standalone/.next/server/app/api/config/route.js.nft.json +1 -1
  137. package/.next/standalone/.next/server/app/api/events/route.js +1 -1
  138. package/.next/standalone/.next/server/app/api/events/route.js.nft.json +1 -1
  139. package/.next/standalone/.next/server/app/api/folders/route.js +1 -1
  140. package/.next/standalone/.next/server/app/api/folders/route.js.nft.json +1 -1
  141. package/.next/standalone/.next/server/app/api/network/discovered/route.js +1 -1
  142. package/.next/standalone/.next/server/app/api/network/discovered/route.js.nft.json +1 -1
  143. package/.next/standalone/.next/server/app/api/network/handshake/route.js +1 -1
  144. package/.next/standalone/.next/server/app/api/network/handshake/route.js.nft.json +1 -1
  145. package/.next/standalone/.next/server/app/api/network/health/route.js +1 -1
  146. package/.next/standalone/.next/server/app/api/network/health/route.js.nft.json +1 -1
  147. package/.next/standalone/.next/server/app/api/network/identity/route.js +1 -1
  148. package/.next/standalone/.next/server/app/api/network/identity/route.js.nft.json +1 -1
  149. package/.next/standalone/.next/server/app/api/network/keys/[id]/route.js +1 -1
  150. package/.next/standalone/.next/server/app/api/network/keys/[id]/route.js.nft.json +1 -1
  151. package/.next/standalone/.next/server/app/api/network/keys/route.js +1 -1
  152. package/.next/standalone/.next/server/app/api/network/keys/route.js.nft.json +1 -1
  153. package/.next/standalone/.next/server/app/api/network/nodes/[id]/route.js +1 -1
  154. package/.next/standalone/.next/server/app/api/network/nodes/[id]/route.js.nft.json +1 -1
  155. package/.next/standalone/.next/server/app/api/network/nodes/check/route.js +1 -1
  156. package/.next/standalone/.next/server/app/api/network/nodes/check/route.js.nft.json +1 -1
  157. package/.next/standalone/.next/server/app/api/network/nodes/route.js +1 -1
  158. package/.next/standalone/.next/server/app/api/network/nodes/route.js.nft.json +1 -1
  159. package/.next/standalone/.next/server/app/api/network/projects/route.js +1 -1
  160. package/.next/standalone/.next/server/app/api/network/projects/route.js.nft.json +1 -1
  161. package/.next/standalone/.next/server/app/api/network/proxy/[nodeId]/[...path]/route.js +1 -1
  162. package/.next/standalone/.next/server/app/api/network/proxy/[nodeId]/[...path]/route.js.nft.json +1 -1
  163. package/.next/standalone/.next/server/app/api/network/search/route.js +1 -1
  164. package/.next/standalone/.next/server/app/api/network/search/route.js.nft.json +1 -1
  165. package/.next/standalone/.next/server/app/api/network/sessions/[id]/messages/route.js +1 -1
  166. package/.next/standalone/.next/server/app/api/network/sessions/[id]/messages/route.js.nft.json +1 -1
  167. package/.next/standalone/.next/server/app/api/network/sessions/[id]/route.js +1 -1
  168. package/.next/standalone/.next/server/app/api/network/sessions/[id]/route.js.nft.json +1 -1
  169. package/.next/standalone/.next/server/app/api/network/sessions/route.js +1 -1
  170. package/.next/standalone/.next/server/app/api/network/sessions/route.js.nft.json +1 -1
  171. package/.next/standalone/.next/server/app/api/network/terminal/token/route.js +1 -1
  172. package/.next/standalone/.next/server/app/api/network/terminal/token/route.js.nft.json +1 -1
  173. package/.next/standalone/.next/server/app/api/network/workspaces/[id]/route.js +1 -1
  174. package/.next/standalone/.next/server/app/api/network/workspaces/[id]/route.js.nft.json +1 -1
  175. package/.next/standalone/.next/server/app/api/network/workspaces/route.js +1 -1
  176. package/.next/standalone/.next/server/app/api/network/workspaces/route.js.nft.json +1 -1
  177. package/.next/standalone/.next/server/app/api/panes/[id]/route.js +1 -1
  178. package/.next/standalone/.next/server/app/api/panes/[id]/route.js.nft.json +1 -1
  179. package/.next/standalone/.next/server/app/api/panes/route.js +1 -1
  180. package/.next/standalone/.next/server/app/api/panes/route.js.nft.json +1 -1
  181. package/.next/standalone/.next/server/app/api/projects/route.js +1 -1
  182. package/.next/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
  183. package/.next/standalone/.next/server/app/api/search/route.js +1 -1
  184. package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  185. package/.next/standalone/.next/server/app/api/sessions/[id]/chat/route.js +1 -1
  186. package/.next/standalone/.next/server/app/api/sessions/[id]/chat/route.js.nft.json +1 -1
  187. package/.next/standalone/.next/server/app/api/sessions/[id]/messages/route.js +1 -1
  188. package/.next/standalone/.next/server/app/api/sessions/[id]/messages/route.js.nft.json +1 -1
  189. package/.next/standalone/.next/server/app/api/sessions/[id]/route.js +1 -1
  190. package/.next/standalone/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  191. package/.next/standalone/.next/server/app/api/sessions/route.js +1 -1
  192. package/.next/standalone/.next/server/app/api/sessions/route.js.nft.json +1 -1
  193. package/.next/standalone/.next/server/app/api/sync/route.js +1 -1
  194. package/.next/standalone/.next/server/app/api/sync/route.js.nft.json +1 -1
  195. package/.next/standalone/.next/server/app/api/tags/route.js +1 -1
  196. package/.next/standalone/.next/server/app/api/tags/route.js.nft.json +1 -1
  197. package/.next/standalone/.next/server/app/api/tier/route/app-paths-manifest.json +3 -0
  198. package/.next/standalone/.next/server/app/api/tier/route/build-manifest.json +11 -0
  199. package/.next/standalone/.next/server/app/api/tier/route/server-reference-manifest.json +4 -0
  200. package/.next/standalone/.next/server/app/api/tier/route.js +7 -0
  201. package/.next/standalone/.next/server/app/api/tier/route.js.map +5 -0
  202. package/.next/standalone/.next/server/app/api/tier/route.js.nft.json +1 -0
  203. package/.next/standalone/.next/server/app/api/tier/route_client-reference-manifest.js +2 -0
  204. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/app-paths-manifest.json +3 -0
  205. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/build-manifest.json +11 -0
  206. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route/server-reference-manifest.json +4 -0
  207. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js +7 -0
  208. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js.map +5 -0
  209. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js.nft.json +1 -0
  210. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route_client-reference-manifest.js +2 -0
  211. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/app-paths-manifest.json +3 -0
  212. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/build-manifest.json +11 -0
  213. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route/server-reference-manifest.json +4 -0
  214. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js +7 -0
  215. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js.map +5 -0
  216. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js.nft.json +1 -0
  217. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route_client-reference-manifest.js +2 -0
  218. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/app-paths-manifest.json +3 -0
  219. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/build-manifest.json +11 -0
  220. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route/server-reference-manifest.json +4 -0
  221. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js +7 -0
  222. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js.map +5 -0
  223. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js.nft.json +1 -0
  224. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route_client-reference-manifest.js +2 -0
  225. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/app-paths-manifest.json +3 -0
  226. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/build-manifest.json +11 -0
  227. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route/server-reference-manifest.json +4 -0
  228. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js +7 -0
  229. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js.map +5 -0
  230. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js.nft.json +1 -0
  231. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route_client-reference-manifest.js +2 -0
  232. package/.next/standalone/.next/server/app/api/workspaces/[id]/route.js +1 -1
  233. package/.next/standalone/.next/server/app/api/workspaces/[id]/route.js.nft.json +1 -1
  234. package/.next/standalone/.next/server/app/api/workspaces/[id]/sessions/route.js +1 -1
  235. package/.next/standalone/.next/server/app/api/workspaces/[id]/sessions/route.js.nft.json +1 -1
  236. package/.next/standalone/.next/server/app/api/workspaces/route.js +1 -1
  237. package/.next/standalone/.next/server/app/api/workspaces/route.js.nft.json +1 -1
  238. package/.next/standalone/.next/server/app/login/page/build-manifest.json +2 -2
  239. package/.next/standalone/.next/server/app/login/page.js +1 -1
  240. package/.next/standalone/.next/server/app/login/page.js.nft.json +1 -1
  241. package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  242. package/.next/standalone/.next/server/app/login.html +1 -1
  243. package/.next/standalone/.next/server/app/login.rsc +5 -5
  244. package/.next/standalone/.next/server/app/login.segments/_full.segment.rsc +5 -5
  245. package/.next/standalone/.next/server/app/login.segments/_head.segment.rsc +1 -1
  246. package/.next/standalone/.next/server/app/login.segments/_index.segment.rsc +3 -3
  247. package/.next/standalone/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  248. package/.next/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  249. package/.next/standalone/.next/server/app/login.segments/login.segment.rsc +1 -1
  250. package/.next/standalone/.next/server/app/m/page/build-manifest.json +2 -2
  251. package/.next/standalone/.next/server/app/m/page.js +1 -1
  252. package/.next/standalone/.next/server/app/m/page.js.nft.json +1 -1
  253. package/.next/standalone/.next/server/app/m/page_client-reference-manifest.js +1 -1
  254. package/.next/standalone/.next/server/app/m/projects/page/build-manifest.json +2 -2
  255. package/.next/standalone/.next/server/app/m/projects/page.js +1 -1
  256. package/.next/standalone/.next/server/app/m/projects/page.js.nft.json +1 -1
  257. package/.next/standalone/.next/server/app/m/projects/page_client-reference-manifest.js +1 -1
  258. package/.next/standalone/.next/server/app/m/projects.html +1 -1
  259. package/.next/standalone/.next/server/app/m/projects.rsc +6 -6
  260. package/.next/standalone/.next/server/app/m/projects.segments/_full.segment.rsc +6 -6
  261. package/.next/standalone/.next/server/app/m/projects.segments/_head.segment.rsc +1 -1
  262. package/.next/standalone/.next/server/app/m/projects.segments/_index.segment.rsc +3 -3
  263. package/.next/standalone/.next/server/app/m/projects.segments/_tree.segment.rsc +2 -2
  264. package/.next/standalone/.next/server/app/m/projects.segments/m/projects/__PAGE__.segment.rsc +2 -2
  265. package/.next/standalone/.next/server/app/m/projects.segments/m/projects.segment.rsc +1 -1
  266. package/.next/standalone/.next/server/app/m/projects.segments/m.segment.rsc +2 -2
  267. package/.next/standalone/.next/server/app/m/sessions/[id]/page/build-manifest.json +2 -2
  268. package/.next/standalone/.next/server/app/m/sessions/[id]/page.js +1 -1
  269. package/.next/standalone/.next/server/app/m/sessions/[id]/page.js.nft.json +1 -1
  270. package/.next/standalone/.next/server/app/m/sessions/[id]/page_client-reference-manifest.js +1 -1
  271. package/.next/standalone/.next/server/app/m/sessions/page/build-manifest.json +2 -2
  272. package/.next/standalone/.next/server/app/m/sessions/page.js +1 -1
  273. package/.next/standalone/.next/server/app/m/sessions/page.js.nft.json +1 -1
  274. package/.next/standalone/.next/server/app/m/sessions/page_client-reference-manifest.js +1 -1
  275. package/.next/standalone/.next/server/app/m/sessions.html +1 -1
  276. package/.next/standalone/.next/server/app/m/sessions.rsc +6 -6
  277. package/.next/standalone/.next/server/app/m/sessions.segments/_full.segment.rsc +6 -6
  278. package/.next/standalone/.next/server/app/m/sessions.segments/_head.segment.rsc +1 -1
  279. package/.next/standalone/.next/server/app/m/sessions.segments/_index.segment.rsc +3 -3
  280. package/.next/standalone/.next/server/app/m/sessions.segments/_tree.segment.rsc +2 -2
  281. package/.next/standalone/.next/server/app/m/sessions.segments/m/sessions/__PAGE__.segment.rsc +2 -2
  282. package/.next/standalone/.next/server/app/m/sessions.segments/m/sessions.segment.rsc +1 -1
  283. package/.next/standalone/.next/server/app/m/sessions.segments/m.segment.rsc +2 -2
  284. package/.next/standalone/.next/server/app/m/settings/page/build-manifest.json +2 -2
  285. package/.next/standalone/.next/server/app/m/settings/page.js +1 -1
  286. package/.next/standalone/.next/server/app/m/settings/page.js.nft.json +1 -1
  287. package/.next/standalone/.next/server/app/m/settings/page_client-reference-manifest.js +1 -1
  288. package/.next/standalone/.next/server/app/m/settings.html +1 -1
  289. package/.next/standalone/.next/server/app/m/settings.rsc +6 -6
  290. package/.next/standalone/.next/server/app/m/settings.segments/_full.segment.rsc +6 -6
  291. package/.next/standalone/.next/server/app/m/settings.segments/_head.segment.rsc +1 -1
  292. package/.next/standalone/.next/server/app/m/settings.segments/_index.segment.rsc +3 -3
  293. package/.next/standalone/.next/server/app/m/settings.segments/_tree.segment.rsc +2 -2
  294. package/.next/standalone/.next/server/app/m/settings.segments/m/settings/__PAGE__.segment.rsc +2 -2
  295. package/.next/standalone/.next/server/app/m/settings.segments/m/settings.segment.rsc +1 -1
  296. package/.next/standalone/.next/server/app/m/settings.segments/m.segment.rsc +2 -2
  297. package/.next/standalone/.next/server/app/m/terminal/page/build-manifest.json +2 -2
  298. package/.next/standalone/.next/server/app/m/terminal/page.js +1 -1
  299. package/.next/standalone/.next/server/app/m/terminal/page.js.nft.json +1 -1
  300. package/.next/standalone/.next/server/app/m/terminal/page_client-reference-manifest.js +1 -1
  301. package/.next/standalone/.next/server/app/m/terminal.html +1 -1
  302. package/.next/standalone/.next/server/app/m/terminal.rsc +6 -6
  303. package/.next/standalone/.next/server/app/m/terminal.segments/_full.segment.rsc +6 -6
  304. package/.next/standalone/.next/server/app/m/terminal.segments/_head.segment.rsc +1 -1
  305. package/.next/standalone/.next/server/app/m/terminal.segments/_index.segment.rsc +3 -3
  306. package/.next/standalone/.next/server/app/m/terminal.segments/_tree.segment.rsc +2 -2
  307. package/.next/standalone/.next/server/app/m/terminal.segments/m/terminal/__PAGE__.segment.rsc +2 -2
  308. package/.next/standalone/.next/server/app/m/terminal.segments/m/terminal.segment.rsc +1 -1
  309. package/.next/standalone/.next/server/app/m/terminal.segments/m.segment.rsc +2 -2
  310. package/.next/standalone/.next/server/app/m.html +1 -1
  311. package/.next/standalone/.next/server/app/m.rsc +6 -6
  312. package/.next/standalone/.next/server/app/m.segments/_full.segment.rsc +6 -6
  313. package/.next/standalone/.next/server/app/m.segments/_head.segment.rsc +1 -1
  314. package/.next/standalone/.next/server/app/m.segments/_index.segment.rsc +3 -3
  315. package/.next/standalone/.next/server/app/m.segments/_tree.segment.rsc +2 -2
  316. package/.next/standalone/.next/server/app/m.segments/m/__PAGE__.segment.rsc +2 -2
  317. package/.next/standalone/.next/server/app/m.segments/m.segment.rsc +2 -2
  318. package/.next/standalone/.next/server/app/network.html +1 -1
  319. package/.next/standalone/.next/server/app/network.rsc +6 -6
  320. package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap/network/__PAGE__.segment.rsc +2 -2
  321. package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap/network.segment.rsc +1 -1
  322. package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  323. package/.next/standalone/.next/server/app/network.segments/_full.segment.rsc +6 -6
  324. package/.next/standalone/.next/server/app/network.segments/_head.segment.rsc +1 -1
  325. package/.next/standalone/.next/server/app/network.segments/_index.segment.rsc +3 -3
  326. package/.next/standalone/.next/server/app/network.segments/_tree.segment.rsc +2 -2
  327. package/.next/standalone/.next/server/app/projects.html +1 -1
  328. package/.next/standalone/.next/server/app/projects.rsc +6 -6
  329. package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap/projects/__PAGE__.segment.rsc +2 -2
  330. package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap/projects.segment.rsc +1 -1
  331. package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  332. package/.next/standalone/.next/server/app/projects.segments/_full.segment.rsc +6 -6
  333. package/.next/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
  334. package/.next/standalone/.next/server/app/projects.segments/_index.segment.rsc +3 -3
  335. package/.next/standalone/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
  336. package/.next/standalone/.next/server/app/sessions.html +1 -1
  337. package/.next/standalone/.next/server/app/sessions.rsc +6 -6
  338. package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap/sessions/__PAGE__.segment.rsc +2 -2
  339. package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap/sessions.segment.rsc +1 -1
  340. package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  341. package/.next/standalone/.next/server/app/sessions.segments/_full.segment.rsc +6 -6
  342. package/.next/standalone/.next/server/app/sessions.segments/_head.segment.rsc +1 -1
  343. package/.next/standalone/.next/server/app/sessions.segments/_index.segment.rsc +3 -3
  344. package/.next/standalone/.next/server/app/sessions.segments/_tree.segment.rsc +2 -2
  345. package/.next/standalone/.next/server/app/settings.html +1 -1
  346. package/.next/standalone/.next/server/app/settings.rsc +6 -6
  347. package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap/settings/__PAGE__.segment.rsc +2 -2
  348. package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap/settings.segment.rsc +1 -1
  349. package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  350. package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +6 -6
  351. package/.next/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  352. package/.next/standalone/.next/server/app/settings.segments/_index.segment.rsc +3 -3
  353. package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  354. package/.next/standalone/.next/server/app/terminal.html +1 -1
  355. package/.next/standalone/.next/server/app/terminal.rsc +6 -6
  356. package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap/terminal/__PAGE__.segment.rsc +2 -2
  357. package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap/terminal.segment.rsc +1 -1
  358. package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  359. package/.next/standalone/.next/server/app/terminal.segments/_full.segment.rsc +6 -6
  360. package/.next/standalone/.next/server/app/terminal.segments/_head.segment.rsc +1 -1
  361. package/.next/standalone/.next/server/app/terminal.segments/_index.segment.rsc +3 -3
  362. package/.next/standalone/.next/server/app/terminal.segments/_tree.segment.rsc +2 -2
  363. package/.next/standalone/.next/server/app/workspaces.html +1 -1
  364. package/.next/standalone/.next/server/app/workspaces.rsc +6 -6
  365. package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap/workspaces/__PAGE__.segment.rsc +2 -2
  366. package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap/workspaces.segment.rsc +1 -1
  367. package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap.segment.rsc +2 -2
  368. package/.next/standalone/.next/server/app/workspaces.segments/_full.segment.rsc +6 -6
  369. package/.next/standalone/.next/server/app/workspaces.segments/_head.segment.rsc +1 -1
  370. package/.next/standalone/.next/server/app/workspaces.segments/_index.segment.rsc +3 -3
  371. package/.next/standalone/.next/server/app/workspaces.segments/_tree.segment.rsc +2 -2
  372. package/.next/standalone/.next/server/app-paths-manifest.json +5 -0
  373. package/.next/standalone/.next/server/chunks/[externals]_chokidar_a0cd9157._.js +3 -0
  374. package/.next/standalone/.next/server/chunks/[root-of-the-server]__086be15a._.js +3 -0
  375. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0955695e._.js +3 -0
  376. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0fac388d._.js +3 -0
  377. package/.next/standalone/.next/server/chunks/[root-of-the-server]__18a58c5f._.js +3 -0
  378. package/.next/standalone/.next/server/chunks/[root-of-the-server]__190b05d8._.js +3 -0
  379. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1a211143._.js +3 -0
  380. package/.next/standalone/.next/server/chunks/[root-of-the-server]__20353b76._.js +3 -0
  381. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2861e096._.js +3 -0
  382. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2a7a798c._.js +3 -0
  383. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2b6758fc._.js +3 -0
  384. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2e9d1d5a._.js +3 -0
  385. package/.next/standalone/.next/server/chunks/[root-of-the-server]__31f028ec._.js +3 -0
  386. package/.next/standalone/.next/server/chunks/[root-of-the-server]__34c34116._.js +3 -0
  387. package/.next/standalone/.next/server/chunks/[root-of-the-server]__3aa57139._.js +3 -0
  388. package/.next/standalone/.next/server/chunks/[root-of-the-server]__3ce30e4e._.js +3 -0
  389. package/.next/standalone/.next/server/chunks/[root-of-the-server]__41ae8be6._.js +3 -0
  390. package/.next/standalone/.next/server/chunks/[root-of-the-server]__41e589ee._.js +3 -0
  391. package/.next/standalone/.next/server/chunks/[root-of-the-server]__43112c34._.js +3 -0
  392. package/.next/standalone/.next/server/chunks/[root-of-the-server]__464db440._.js +3 -0
  393. package/.next/standalone/.next/server/chunks/[root-of-the-server]__466c7e18._.js +3 -0
  394. package/.next/standalone/.next/server/chunks/[root-of-the-server]__47a63195._.js +3 -0
  395. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4ad64489._.js +3 -0
  396. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5bbc73ff._.js +3 -0
  397. package/.next/standalone/.next/server/chunks/[root-of-the-server]__60689e2b._.js +3 -0
  398. package/.next/standalone/.next/server/chunks/[root-of-the-server]__67c4abf3._.js +3 -0
  399. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6b94cc47._.js +3 -0
  400. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6c6cfe82._.js +3 -0
  401. package/.next/standalone/.next/server/chunks/[root-of-the-server]__776b2fd5._.js +3 -0
  402. package/.next/standalone/.next/server/chunks/[root-of-the-server]__7901e2ab._.js +3 -0
  403. package/.next/standalone/.next/server/chunks/[root-of-the-server]__83b9bcf3._.js +11 -0
  404. package/.next/standalone/.next/server/chunks/[root-of-the-server]__89124c96._.js +48 -37
  405. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8c2eee30._.js +3 -0
  406. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8ffcf827._.js +3 -0
  407. package/.next/standalone/.next/server/chunks/[root-of-the-server]__95b7f18e._.js +3 -0
  408. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e343d64._.js +3 -0
  409. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a2ee9884._.js +13 -0
  410. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a651ede9._.js +3 -0
  411. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a6ce192e._.js +3 -0
  412. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b4b692df._.js +3 -0
  413. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b4edb4d6._.js +3 -0
  414. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b71497ab._.js +48 -37
  415. package/.next/standalone/.next/server/chunks/[root-of-the-server]__bc97ddc7._.js +3 -0
  416. package/.next/standalone/.next/server/chunks/[root-of-the-server]__bef2ed87._.js +3 -0
  417. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c525457e._.js +19 -0
  418. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c546cf71._.js +3 -0
  419. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ccc27199._.js +3 -0
  420. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ce5edd98._.js +3 -0
  421. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d877df12._.js +3 -0
  422. package/.next/standalone/.next/server/chunks/[root-of-the-server]__dd2e81be._.js +11 -0
  423. package/.next/standalone/.next/server/chunks/[root-of-the-server]__de96c005._.js +3 -0
  424. package/.next/standalone/.next/server/chunks/[root-of-the-server]__df6bc9e9._.js +3 -0
  425. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e2b78951._.js +3 -0
  426. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e742ef33._.js +3 -0
  427. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_tier_route_actions_6186023b.js +3 -0
  428. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_workspaces_[id]_context_route_actions_e9cb4bed.js +3 -0
  429. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_workspaces_[id]_messages_route_actions_0cf1d576.js +3 -0
  430. package/.next/standalone/.next/server/chunks/ce889_server_app_api_workspaces_[id]_context_[key]_route_actions_8e11e764.js +3 -0
  431. package/.next/standalone/.next/server/chunks/ce889_server_app_api_workspaces_[id]_messages_[msgId]_route_actions_008a0317.js +3 -0
  432. package/.next/standalone/.next/server/chunks/src_lib_events_sse_ts_1ad73980._.js +6 -0
  433. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__ea64930e._.js → [root-of-the-server]__2b4e2acc._.js} +2 -2
  434. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__36a11bc9._.js +1 -1
  435. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__63c35e0f._.js +3 -0
  436. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__650a172d._.js +3 -0
  437. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__66aca5d4._.js +3 -0
  438. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__ba1024f6._.js → [root-of-the-server]__67234962._.js} +2 -2
  439. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__72acd514._.js → [root-of-the-server]__c73bef9a._.js} +2 -2
  440. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__e921fdfc._.js +5 -0
  441. package/.next/standalone/.next/server/chunks/ssr/{_548abc09._.js → _0946fdc3._.js} +1 -1
  442. package/.next/standalone/.next/server/chunks/ssr/_1f12caba._.js +2 -2
  443. package/.next/standalone/.next/server/chunks/ssr/_2230ad2d._.js +3 -0
  444. package/.next/standalone/.next/server/chunks/ssr/_3b54193d._.js +1 -1
  445. package/.next/standalone/.next/server/chunks/ssr/_43e7e611._.js +2 -2
  446. package/.next/standalone/.next/server/chunks/ssr/_5ac43c5d._.js +1 -3
  447. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__3611990a._.js → _cd0986af._.js} +2 -2
  448. package/.next/standalone/.next/server/chunks/ssr/_cd50a174._.js +3 -0
  449. package/.next/standalone/.next/server/chunks/ssr/{_7e741697._.js → _de57b857._.js} +2 -2
  450. package/.next/standalone/.next/server/chunks/ssr/_ef42f47a._.js +3 -0
  451. package/.next/standalone/.next/server/chunks/ssr/_f67f58f1._.js +1 -1
  452. package/.next/standalone/.next/server/chunks/ssr/{_dd004864._.js → _fbc5e000._.js} +1 -1
  453. package/.next/standalone/.next/server/chunks/ssr/node_modules_861e98fe._.js +1 -1
  454. package/.next/standalone/.next/server/chunks/ssr/src_app_(desktop)_terminal_page_tsx_de5e8d85._.js +1 -1
  455. package/.next/standalone/.next/server/chunks/ssr/src_app_m_terminal_page_tsx_553a0130._.js +2 -2
  456. package/.next/standalone/.next/server/edge/chunks/{[root-of-the-server]__6154bdc0._.js → [root-of-the-server]__32a0045c._.js} +3 -5
  457. package/.next/standalone/.next/server/edge/chunks/_d73df637._.js +3 -0
  458. package/.next/standalone/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_a4434a38.js +6 -0
  459. package/.next/standalone/.next/server/middleware-build-manifest.js +2 -2
  460. package/.next/standalone/.next/server/middleware-manifest.json +8 -8
  461. package/.next/standalone/.next/server/pages/404.html +1 -1
  462. package/.next/standalone/.next/server/pages/500.html +2 -2
  463. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  464. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  465. package/.next/standalone/.next/static/chunks/{f58f62604604c529.js → 10c6424526b53431.js} +2 -2
  466. package/.next/standalone/.next/static/chunks/{0b733ac17fcb2bef.js → 27649ec994a696fb.js} +1 -1
  467. package/.next/standalone/.next/static/chunks/302ce212c690bec4.js +5 -0
  468. package/.next/standalone/.next/static/chunks/{4bd6943fa4082aa9.js → 3165c61fb2e4045d.js} +1 -1
  469. package/.next/standalone/.next/static/chunks/4e792c3078e37704.js +5 -0
  470. package/.next/standalone/.next/static/chunks/51dacec57c9714c0.js +1 -0
  471. package/.next/standalone/.next/static/chunks/53782d1e41fd7f82.js +1 -0
  472. package/.next/standalone/.next/static/chunks/58d78765e5140dcb.js +1 -0
  473. package/.next/standalone/.next/static/chunks/65afda485a466977.js +1 -0
  474. package/.next/standalone/.next/static/chunks/cb442c50eecb758d.js +5 -0
  475. package/.next/standalone/.next/static/chunks/d0c839c82cf232b8.js +1 -0
  476. package/.next/standalone/.next/static/chunks/e6134a48180c8a36.js +1 -0
  477. package/.next/standalone/.next/static/chunks/{7de9141b1af425c3.js → e7772d64463868eb.js} +1 -1
  478. package/.next/standalone/.next/static/chunks/{e94f6965199a47e7.js → eb780226f5bd3892.js} +1 -1
  479. package/.next/standalone/.next/static/chunks/ff5fac1bd7b518dd.css +3 -0
  480. package/.next/standalone/.next/static/chunks/{turbopack-947de56768b27172.js → turbopack-ea18b8255590c757.js} +1 -1
  481. package/.next/standalone/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64.node +0 -0
  482. package/.next/standalone/node_modules/@img/{sharp-linux-x64 → sharp-win32-x64}/package.json +39 -46
  483. package/.next/standalone/node_modules/chokidar/LICENSE +21 -0
  484. package/.next/standalone/node_modules/chokidar/README.md +305 -0
  485. package/.next/standalone/node_modules/chokidar/handler.js +632 -0
  486. package/.next/standalone/node_modules/chokidar/index.js +822 -0
  487. package/.next/standalone/node_modules/chokidar/package.json +63 -0
  488. package/.next/standalone/node_modules/readdirp/LICENSE +21 -0
  489. package/.next/standalone/node_modules/readdirp/README.md +120 -0
  490. package/.next/standalone/node_modules/readdirp/index.js +272 -0
  491. package/.next/standalone/node_modules/readdirp/package.json +66 -0
  492. package/.next/standalone/package.json +89 -91
  493. package/.next/standalone/server.js +1 -1
  494. package/.next/standalone/tsconfig.json +34 -34
  495. package/LICENSE +661 -661
  496. package/README.md +131 -131
  497. package/bin/fix-standalone-externals.js +79 -79
  498. package/bin/lib/auto-setup.js +101 -0
  499. package/bin/mdns-service.js +171 -171
  500. package/bin/postinstall.js +35 -35
  501. package/bin/setup-admin.js +189 -189
  502. package/bin/spaces-dev.js +208 -108
  503. package/bin/spaces-install.js +425 -0
  504. package/bin/spaces-setup.js +242 -0
  505. package/bin/spaces.js +466 -155
  506. package/bin/terminal-server.js +1117 -990
  507. package/package.json +89 -91
  508. package/.next/standalone/.next/server/chunks/[externals]_node:path_d28a9bfe._.js +0 -3
  509. package/.next/standalone/.next/server/chunks/[root-of-the-server]__01c98454._.js +0 -3
  510. package/.next/standalone/.next/server/chunks/[root-of-the-server]__18b8f7d9._.js +0 -3
  511. package/.next/standalone/.next/server/chunks/[root-of-the-server]__193cb667._.js +0 -5
  512. package/.next/standalone/.next/server/chunks/[root-of-the-server]__25b4d5ca._.js +0 -3
  513. package/.next/standalone/.next/server/chunks/[root-of-the-server]__280398d8._.js +0 -3
  514. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2a4c2db6._.js +0 -13
  515. package/.next/standalone/.next/server/chunks/[root-of-the-server]__3fd6439e._.js +0 -3
  516. package/.next/standalone/.next/server/chunks/[root-of-the-server]__40c21d75._.js +0 -5
  517. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4375a280._.js +0 -5
  518. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4950da9c._.js +0 -3
  519. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a77d855._.js +0 -3
  520. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4d551a41._.js +0 -5
  521. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5420fbcd._.js +0 -3
  522. package/.next/standalone/.next/server/chunks/[root-of-the-server]__586418c6._.js +0 -5
  523. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5c2f4a8e._.js +0 -3
  524. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5eaa589f._.js +0 -3
  525. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5f4dc1dd._.js +0 -5
  526. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5ff6b7d9._.js +0 -3
  527. package/.next/standalone/.next/server/chunks/[root-of-the-server]__65509457._.js +0 -3
  528. package/.next/standalone/.next/server/chunks/[root-of-the-server]__65620687._.js +0 -5
  529. package/.next/standalone/.next/server/chunks/[root-of-the-server]__76e7a7b9._.js +0 -3
  530. package/.next/standalone/.next/server/chunks/[root-of-the-server]__7fae7bd7._.js +0 -3
  531. package/.next/standalone/.next/server/chunks/[root-of-the-server]__821ffcfb._.js +0 -5
  532. package/.next/standalone/.next/server/chunks/[root-of-the-server]__83676993._.js +0 -3
  533. package/.next/standalone/.next/server/chunks/[root-of-the-server]__86e02dd1._.js +0 -5
  534. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8a7fae80._.js +0 -5
  535. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8af8821a._.js +0 -3
  536. package/.next/standalone/.next/server/chunks/[root-of-the-server]__93e1af64._.js +0 -3
  537. package/.next/standalone/.next/server/chunks/[root-of-the-server]__94f437bd._.js +0 -3
  538. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e9f597a._.js +0 -3
  539. package/.next/standalone/.next/server/chunks/[root-of-the-server]__aae49c2b._.js +0 -15
  540. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ab25b881._.js +0 -3
  541. package/.next/standalone/.next/server/chunks/[root-of-the-server]__aef285c3._.js +0 -5
  542. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b52523c7._.js +0 -3
  543. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b607a85c._.js +0 -5
  544. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b950ac1e._.js +0 -3
  545. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c6355fd6._.js +0 -3
  546. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d1771755._.js +0 -3
  547. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d55d3167._.js +0 -12
  548. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d9533783._.js +0 -3
  549. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d9540965._.js +0 -21
  550. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ddbb7b16._.js +0 -5
  551. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e4989332._.js +0 -5
  552. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e7a6a584._.js +0 -3
  553. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ed0f1148._.js +0 -5
  554. package/.next/standalone/.next/server/chunks/[root-of-the-server]__f1436778._.js +0 -5
  555. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fe65bfb1._.js +0 -3
  556. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__17ba2e09._.js +0 -3
  557. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__6bd17d85._.js +0 -5
  558. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__7e604f3d._.js +0 -3
  559. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__a923e475._.js +0 -5
  560. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__d23f4926._.js +0 -5
  561. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__e3bf6054._.js +0 -5
  562. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__f08a4c64._.js +0 -3
  563. package/.next/standalone/.next/server/edge/chunks/node_modules_next_dist_esm_build_templates_edge-wrapper_78fa9d6a.js +0 -3
  564. package/.next/standalone/.next/server/edge/chunks/turbopack-node_modules_next_dist_esm_build_templates_edge-wrapper_03b33eff.js +0 -6
  565. package/.next/standalone/.next/static/chunks/06e3af139a18e326.js +0 -5
  566. package/.next/standalone/.next/static/chunks/13c233fe06728b88.js +0 -1
  567. package/.next/standalone/.next/static/chunks/1f4937830aceaae2.js +0 -1
  568. package/.next/standalone/.next/static/chunks/6b8fb2027281ae5d.js +0 -3
  569. package/.next/standalone/.next/static/chunks/76698b8c3d5cae75.js +0 -1
  570. package/.next/standalone/.next/static/chunks/7fbc5bdede00e3c9.js +0 -1
  571. package/.next/standalone/.next/static/chunks/acbcf40fb5a2ca5e.js +0 -1
  572. package/.next/standalone/.next/static/chunks/b873b989ec82be01.css +0 -3
  573. package/.next/standalone/.next/static/chunks/db03df936139672b.js +0 -1
  574. package/.next/standalone/.next/static/chunks/e7ac38524a30e234.js +0 -5
  575. package/.next/standalone/.next/static/chunks/f8cf8e5a643bd23f.js +0 -5
  576. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/README.md +0 -46
  577. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +0 -221
  578. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +0 -1
  579. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  580. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/package.json +0 -42
  581. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +0 -46
  582. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +0 -221
  583. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +0 -1
  584. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  585. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +0 -42
  586. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +0 -30
  587. package/.next/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  588. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  589. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +0 -46
  590. /package/.next/standalone/.next/static/{_8ZLzufn5gU1vrGxPWqKS → MjMvcPAGPqPwAzs1S2njU}/_buildManifest.js +0 -0
  591. /package/.next/standalone/.next/static/{_8ZLzufn5gU1vrGxPWqKS → MjMvcPAGPqPwAzs1S2njU}/_clientMiddlewareManifest.json +0 -0
  592. /package/.next/standalone/.next/static/{_8ZLzufn5gU1vrGxPWqKS → MjMvcPAGPqPwAzs1S2njU}/_ssgManifest.js +0 -0
  593. /package/.next/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-win32-x64}/versions.json +0 -0
@@ -0,0 +1,632 @@
1
+ import { watch as fs_watch, unwatchFile, watchFile } from 'node:fs';
2
+ import { realpath as fsrealpath, lstat, open, stat } from 'node:fs/promises';
3
+ import { type as osType } from 'node:os';
4
+ import * as sp from 'node:path';
5
+ export const STR_DATA = 'data';
6
+ export const STR_END = 'end';
7
+ export const STR_CLOSE = 'close';
8
+ export const EMPTY_FN = () => { };
9
+ export const IDENTITY_FN = (val) => val;
10
+ const pl = process.platform;
11
+ export const isWindows = pl === 'win32';
12
+ export const isMacos = pl === 'darwin';
13
+ export const isLinux = pl === 'linux';
14
+ export const isFreeBSD = pl === 'freebsd';
15
+ export const isIBMi = osType() === 'OS400';
16
+ export const EVENTS = {
17
+ ALL: 'all',
18
+ READY: 'ready',
19
+ ADD: 'add',
20
+ CHANGE: 'change',
21
+ ADD_DIR: 'addDir',
22
+ UNLINK: 'unlink',
23
+ UNLINK_DIR: 'unlinkDir',
24
+ RAW: 'raw',
25
+ ERROR: 'error',
26
+ };
27
+ const EV = EVENTS;
28
+ const THROTTLE_MODE_WATCH = 'watch';
29
+ const statMethods = { lstat, stat };
30
+ const KEY_LISTENERS = 'listeners';
31
+ const KEY_ERR = 'errHandlers';
32
+ const KEY_RAW = 'rawEmitters';
33
+ const HANDLER_KEYS = [KEY_LISTENERS, KEY_ERR, KEY_RAW];
34
+ // prettier-ignore
35
+ const binaryExtensions = new Set([
36
+ '3dm', '3ds', '3g2', '3gp', '7z', 'a', 'aac', 'adp', 'afdesign', 'afphoto', 'afpub', 'ai',
37
+ 'aif', 'aiff', 'alz', 'ape', 'apk', 'appimage', 'ar', 'arj', 'asf', 'au', 'avi',
38
+ 'bak', 'baml', 'bh', 'bin', 'bk', 'bmp', 'btif', 'bz2', 'bzip2',
39
+ 'cab', 'caf', 'cgm', 'class', 'cmx', 'cpio', 'cr2', 'cur', 'dat', 'dcm', 'deb', 'dex', 'djvu',
40
+ 'dll', 'dmg', 'dng', 'doc', 'docm', 'docx', 'dot', 'dotm', 'dra', 'DS_Store', 'dsk', 'dts',
41
+ 'dtshd', 'dvb', 'dwg', 'dxf',
42
+ 'ecelp4800', 'ecelp7470', 'ecelp9600', 'egg', 'eol', 'eot', 'epub', 'exe',
43
+ 'f4v', 'fbs', 'fh', 'fla', 'flac', 'flatpak', 'fli', 'flv', 'fpx', 'fst', 'fvt',
44
+ 'g3', 'gh', 'gif', 'graffle', 'gz', 'gzip',
45
+ 'h261', 'h263', 'h264', 'icns', 'ico', 'ief', 'img', 'ipa', 'iso',
46
+ 'jar', 'jpeg', 'jpg', 'jpgv', 'jpm', 'jxr', 'key', 'ktx',
47
+ 'lha', 'lib', 'lvp', 'lz', 'lzh', 'lzma', 'lzo',
48
+ 'm3u', 'm4a', 'm4v', 'mar', 'mdi', 'mht', 'mid', 'midi', 'mj2', 'mka', 'mkv', 'mmr', 'mng',
49
+ 'mobi', 'mov', 'movie', 'mp3',
50
+ 'mp4', 'mp4a', 'mpeg', 'mpg', 'mpga', 'mxu',
51
+ 'nef', 'npx', 'numbers', 'nupkg',
52
+ 'o', 'odp', 'ods', 'odt', 'oga', 'ogg', 'ogv', 'otf', 'ott',
53
+ 'pages', 'pbm', 'pcx', 'pdb', 'pdf', 'pea', 'pgm', 'pic', 'png', 'pnm', 'pot', 'potm',
54
+ 'potx', 'ppa', 'ppam',
55
+ 'ppm', 'pps', 'ppsm', 'ppsx', 'ppt', 'pptm', 'pptx', 'psd', 'pya', 'pyc', 'pyo', 'pyv',
56
+ 'qt',
57
+ 'rar', 'ras', 'raw', 'resources', 'rgb', 'rip', 'rlc', 'rmf', 'rmvb', 'rpm', 'rtf', 'rz',
58
+ 's3m', 's7z', 'scpt', 'sgi', 'shar', 'snap', 'sil', 'sketch', 'slk', 'smv', 'snk', 'so',
59
+ 'stl', 'suo', 'sub', 'swf',
60
+ 'tar', 'tbz', 'tbz2', 'tga', 'tgz', 'thmx', 'tif', 'tiff', 'tlz', 'ttc', 'ttf', 'txz',
61
+ 'udf', 'uvh', 'uvi', 'uvm', 'uvp', 'uvs', 'uvu',
62
+ 'viv', 'vob',
63
+ 'war', 'wav', 'wax', 'wbmp', 'wdp', 'weba', 'webm', 'webp', 'whl', 'wim', 'wm', 'wma',
64
+ 'wmv', 'wmx', 'woff', 'woff2', 'wrm', 'wvx',
65
+ 'xbm', 'xif', 'xla', 'xlam', 'xls', 'xlsb', 'xlsm', 'xlsx', 'xlt', 'xltm', 'xltx', 'xm',
66
+ 'xmind', 'xpi', 'xpm', 'xwd', 'xz',
67
+ 'z', 'zip', 'zipx',
68
+ ]);
69
+ const isBinaryPath = (filePath) => binaryExtensions.has(sp.extname(filePath).slice(1).toLowerCase());
70
+ // TODO: emit errors properly. Example: EMFILE on Macos.
71
+ const foreach = (val, fn) => {
72
+ if (val instanceof Set) {
73
+ val.forEach(fn);
74
+ }
75
+ else {
76
+ fn(val);
77
+ }
78
+ };
79
+ const addAndConvert = (main, prop, item) => {
80
+ let container = main[prop];
81
+ if (!(container instanceof Set)) {
82
+ main[prop] = container = new Set([container]);
83
+ }
84
+ container.add(item);
85
+ };
86
+ const clearItem = (cont) => (key) => {
87
+ const set = cont[key];
88
+ if (set instanceof Set) {
89
+ set.clear();
90
+ }
91
+ else {
92
+ delete cont[key];
93
+ }
94
+ };
95
+ const delFromSet = (main, prop, item) => {
96
+ const container = main[prop];
97
+ if (container instanceof Set) {
98
+ container.delete(item);
99
+ }
100
+ else if (container === item) {
101
+ delete main[prop];
102
+ }
103
+ };
104
+ const isEmptySet = (val) => (val instanceof Set ? val.size === 0 : !val);
105
+ const FsWatchInstances = new Map();
106
+ /**
107
+ * Instantiates the fs_watch interface
108
+ * @param path to be watched
109
+ * @param options to be passed to fs_watch
110
+ * @param listener main event handler
111
+ * @param errHandler emits info about errors
112
+ * @param emitRaw emits raw event data
113
+ * @returns {NativeFsWatcher}
114
+ */
115
+ function createFsWatchInstance(path, options, listener, errHandler, emitRaw) {
116
+ const handleEvent = (rawEvent, evPath) => {
117
+ listener(path);
118
+ emitRaw(rawEvent, evPath, { watchedPath: path });
119
+ // emit based on events occurring for files from a directory's watcher in
120
+ // case the file's watcher misses it (and rely on throttling to de-dupe)
121
+ if (evPath && path !== evPath) {
122
+ fsWatchBroadcast(sp.resolve(path, evPath), KEY_LISTENERS, sp.join(path, evPath));
123
+ }
124
+ };
125
+ try {
126
+ return fs_watch(path, {
127
+ persistent: options.persistent,
128
+ }, handleEvent);
129
+ }
130
+ catch (error) {
131
+ errHandler(error);
132
+ return undefined;
133
+ }
134
+ }
135
+ /**
136
+ * Helper for passing fs_watch event data to a collection of listeners
137
+ * @param fullPath absolute path bound to fs_watch instance
138
+ */
139
+ const fsWatchBroadcast = (fullPath, listenerType, val1, val2, val3) => {
140
+ const cont = FsWatchInstances.get(fullPath);
141
+ if (!cont)
142
+ return;
143
+ foreach(cont[listenerType], (listener) => {
144
+ listener(val1, val2, val3);
145
+ });
146
+ };
147
+ /**
148
+ * Instantiates the fs_watch interface or binds listeners
149
+ * to an existing one covering the same file system entry
150
+ * @param path
151
+ * @param fullPath absolute path
152
+ * @param options to be passed to fs_watch
153
+ * @param handlers container for event listener functions
154
+ */
155
+ const setFsWatchListener = (path, fullPath, options, handlers) => {
156
+ const { listener, errHandler, rawEmitter } = handlers;
157
+ let cont = FsWatchInstances.get(fullPath);
158
+ let watcher;
159
+ if (!options.persistent) {
160
+ watcher = createFsWatchInstance(path, options, listener, errHandler, rawEmitter);
161
+ if (!watcher)
162
+ return;
163
+ return watcher.close.bind(watcher);
164
+ }
165
+ if (cont) {
166
+ addAndConvert(cont, KEY_LISTENERS, listener);
167
+ addAndConvert(cont, KEY_ERR, errHandler);
168
+ addAndConvert(cont, KEY_RAW, rawEmitter);
169
+ }
170
+ else {
171
+ watcher = createFsWatchInstance(path, options, fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS), errHandler, // no need to use broadcast here
172
+ fsWatchBroadcast.bind(null, fullPath, KEY_RAW));
173
+ if (!watcher)
174
+ return;
175
+ watcher.on(EV.ERROR, async (error) => {
176
+ const broadcastErr = fsWatchBroadcast.bind(null, fullPath, KEY_ERR);
177
+ if (cont)
178
+ cont.watcherUnusable = true; // documented since Node 10.4.1
179
+ // Workaround for https://github.com/joyent/node/issues/4337
180
+ if (isWindows && error.code === 'EPERM') {
181
+ try {
182
+ const fd = await open(path, 'r');
183
+ await fd.close();
184
+ broadcastErr(error);
185
+ }
186
+ catch (err) {
187
+ // do nothing
188
+ }
189
+ }
190
+ else {
191
+ broadcastErr(error);
192
+ }
193
+ });
194
+ cont = {
195
+ listeners: listener,
196
+ errHandlers: errHandler,
197
+ rawEmitters: rawEmitter,
198
+ watcher,
199
+ };
200
+ FsWatchInstances.set(fullPath, cont);
201
+ }
202
+ // const index = cont.listeners.indexOf(listener);
203
+ // removes this instance's listeners and closes the underlying fs_watch
204
+ // instance if there are no more listeners left
205
+ return () => {
206
+ delFromSet(cont, KEY_LISTENERS, listener);
207
+ delFromSet(cont, KEY_ERR, errHandler);
208
+ delFromSet(cont, KEY_RAW, rawEmitter);
209
+ if (isEmptySet(cont.listeners)) {
210
+ // Check to protect against issue gh-730.
211
+ // if (cont.watcherUnusable) {
212
+ cont.watcher.close();
213
+ // }
214
+ FsWatchInstances.delete(fullPath);
215
+ HANDLER_KEYS.forEach(clearItem(cont));
216
+ // @ts-ignore
217
+ cont.watcher = undefined;
218
+ Object.freeze(cont);
219
+ }
220
+ };
221
+ };
222
+ // fs_watchFile helpers
223
+ // object to hold per-process fs_watchFile instances
224
+ // (may be shared across chokidar FSWatcher instances)
225
+ const FsWatchFileInstances = new Map();
226
+ /**
227
+ * Instantiates the fs_watchFile interface or binds listeners
228
+ * to an existing one covering the same file system entry
229
+ * @param path to be watched
230
+ * @param fullPath absolute path
231
+ * @param options options to be passed to fs_watchFile
232
+ * @param handlers container for event listener functions
233
+ * @returns closer
234
+ */
235
+ const setFsWatchFileListener = (path, fullPath, options, handlers) => {
236
+ const { listener, rawEmitter } = handlers;
237
+ let cont = FsWatchFileInstances.get(fullPath);
238
+ // let listeners = new Set();
239
+ // let rawEmitters = new Set();
240
+ const copts = cont && cont.options;
241
+ if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
242
+ // "Upgrade" the watcher to persistence or a quicker interval.
243
+ // This creates some unlikely edge case issues if the user mixes
244
+ // settings in a very weird way, but solving for those cases
245
+ // doesn't seem worthwhile for the added complexity.
246
+ // listeners = cont.listeners;
247
+ // rawEmitters = cont.rawEmitters;
248
+ unwatchFile(fullPath);
249
+ cont = undefined;
250
+ }
251
+ if (cont) {
252
+ addAndConvert(cont, KEY_LISTENERS, listener);
253
+ addAndConvert(cont, KEY_RAW, rawEmitter);
254
+ }
255
+ else {
256
+ // TODO
257
+ // listeners.add(listener);
258
+ // rawEmitters.add(rawEmitter);
259
+ cont = {
260
+ listeners: listener,
261
+ rawEmitters: rawEmitter,
262
+ options,
263
+ watcher: watchFile(fullPath, options, (curr, prev) => {
264
+ foreach(cont.rawEmitters, (rawEmitter) => {
265
+ rawEmitter(EV.CHANGE, fullPath, { curr, prev });
266
+ });
267
+ const currmtime = curr.mtimeMs;
268
+ if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) {
269
+ foreach(cont.listeners, (listener) => listener(path, curr));
270
+ }
271
+ }),
272
+ };
273
+ FsWatchFileInstances.set(fullPath, cont);
274
+ }
275
+ // const index = cont.listeners.indexOf(listener);
276
+ // Removes this instance's listeners and closes the underlying fs_watchFile
277
+ // instance if there are no more listeners left.
278
+ return () => {
279
+ delFromSet(cont, KEY_LISTENERS, listener);
280
+ delFromSet(cont, KEY_RAW, rawEmitter);
281
+ if (isEmptySet(cont.listeners)) {
282
+ FsWatchFileInstances.delete(fullPath);
283
+ unwatchFile(fullPath);
284
+ cont.options = cont.watcher = undefined;
285
+ Object.freeze(cont);
286
+ }
287
+ };
288
+ };
289
+ /**
290
+ * @mixin
291
+ */
292
+ export class NodeFsHandler {
293
+ fsw;
294
+ _boundHandleError;
295
+ constructor(fsW) {
296
+ this.fsw = fsW;
297
+ this._boundHandleError = (error) => fsW._handleError(error);
298
+ }
299
+ /**
300
+ * Watch file for changes with fs_watchFile or fs_watch.
301
+ * @param path to file or dir
302
+ * @param listener on fs change
303
+ * @returns closer for the watcher instance
304
+ */
305
+ _watchWithNodeFs(path, listener) {
306
+ const opts = this.fsw.options;
307
+ const directory = sp.dirname(path);
308
+ const basename = sp.basename(path);
309
+ const parent = this.fsw._getWatchedDir(directory);
310
+ parent.add(basename);
311
+ const absolutePath = sp.resolve(path);
312
+ const options = {
313
+ persistent: opts.persistent,
314
+ };
315
+ if (!listener)
316
+ listener = EMPTY_FN;
317
+ let closer;
318
+ if (opts.usePolling) {
319
+ const enableBin = opts.interval !== opts.binaryInterval;
320
+ options.interval = enableBin && isBinaryPath(basename) ? opts.binaryInterval : opts.interval;
321
+ closer = setFsWatchFileListener(path, absolutePath, options, {
322
+ listener,
323
+ rawEmitter: this.fsw._emitRaw,
324
+ });
325
+ }
326
+ else {
327
+ closer = setFsWatchListener(path, absolutePath, options, {
328
+ listener,
329
+ errHandler: this._boundHandleError,
330
+ rawEmitter: this.fsw._emitRaw,
331
+ });
332
+ }
333
+ return closer;
334
+ }
335
+ /**
336
+ * Watch a file and emit add event if warranted.
337
+ * @returns closer for the watcher instance
338
+ */
339
+ _handleFile(file, stats, initialAdd) {
340
+ if (this.fsw.closed) {
341
+ return;
342
+ }
343
+ const dirname = sp.dirname(file);
344
+ const basename = sp.basename(file);
345
+ const parent = this.fsw._getWatchedDir(dirname);
346
+ // stats is always present
347
+ let prevStats = stats;
348
+ // if the file is already being watched, do nothing
349
+ if (parent.has(basename))
350
+ return;
351
+ const listener = async (path, newStats) => {
352
+ if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5))
353
+ return;
354
+ if (!newStats || newStats.mtimeMs === 0) {
355
+ try {
356
+ const newStats = await stat(file);
357
+ if (this.fsw.closed)
358
+ return;
359
+ // Check that change event was not fired because of changed only accessTime.
360
+ const at = newStats.atimeMs;
361
+ const mt = newStats.mtimeMs;
362
+ if (!at || at <= mt || mt !== prevStats.mtimeMs) {
363
+ this.fsw._emit(EV.CHANGE, file, newStats);
364
+ }
365
+ if ((isMacos || isLinux || isFreeBSD) && prevStats.ino !== newStats.ino) {
366
+ this.fsw._closeFile(path);
367
+ prevStats = newStats;
368
+ const closer = this._watchWithNodeFs(file, listener);
369
+ if (closer)
370
+ this.fsw._addPathCloser(path, closer);
371
+ }
372
+ else {
373
+ prevStats = newStats;
374
+ }
375
+ }
376
+ catch (error) {
377
+ // Fix issues where mtime is null but file is still present
378
+ this.fsw._remove(dirname, basename);
379
+ }
380
+ // add is about to be emitted if file not already tracked in parent
381
+ }
382
+ else if (parent.has(basename)) {
383
+ // Check that change event was not fired because of changed only accessTime.
384
+ const at = newStats.atimeMs;
385
+ const mt = newStats.mtimeMs;
386
+ if (!at || at <= mt || mt !== prevStats.mtimeMs) {
387
+ this.fsw._emit(EV.CHANGE, file, newStats);
388
+ }
389
+ prevStats = newStats;
390
+ }
391
+ };
392
+ // kick off the watcher
393
+ const closer = this._watchWithNodeFs(file, listener);
394
+ // emit an add event if we're supposed to
395
+ if (!(initialAdd && this.fsw.options.ignoreInitial) && this.fsw._isntIgnored(file)) {
396
+ if (!this.fsw._throttle(EV.ADD, file, 0))
397
+ return;
398
+ this.fsw._emit(EV.ADD, file, stats);
399
+ }
400
+ return closer;
401
+ }
402
+ /**
403
+ * Handle symlinks encountered while reading a dir.
404
+ * @param entry returned by readdirp
405
+ * @param directory path of dir being read
406
+ * @param path of this item
407
+ * @param item basename of this item
408
+ * @returns true if no more processing is needed for this entry.
409
+ */
410
+ async _handleSymlink(entry, directory, path, item) {
411
+ if (this.fsw.closed) {
412
+ return;
413
+ }
414
+ const full = entry.fullPath;
415
+ const dir = this.fsw._getWatchedDir(directory);
416
+ if (!this.fsw.options.followSymlinks) {
417
+ // watch symlink directly (don't follow) and detect changes
418
+ this.fsw._incrReadyCount();
419
+ let linkPath;
420
+ try {
421
+ linkPath = await fsrealpath(path);
422
+ }
423
+ catch (e) {
424
+ this.fsw._emitReady();
425
+ return true;
426
+ }
427
+ if (this.fsw.closed)
428
+ return;
429
+ if (dir.has(item)) {
430
+ if (this.fsw._symlinkPaths.get(full) !== linkPath) {
431
+ this.fsw._symlinkPaths.set(full, linkPath);
432
+ this.fsw._emit(EV.CHANGE, path, entry.stats);
433
+ }
434
+ }
435
+ else {
436
+ dir.add(item);
437
+ this.fsw._symlinkPaths.set(full, linkPath);
438
+ this.fsw._emit(EV.ADD, path, entry.stats);
439
+ }
440
+ this.fsw._emitReady();
441
+ return true;
442
+ }
443
+ // don't follow the same symlink more than once
444
+ if (this.fsw._symlinkPaths.has(full)) {
445
+ return true;
446
+ }
447
+ this.fsw._symlinkPaths.set(full, true);
448
+ }
449
+ _handleRead(directory, initialAdd, wh, target, dir, depth, throttler) {
450
+ // Normalize the directory name on Windows
451
+ directory = sp.join(directory, '');
452
+ const throttleKey = target ? `${directory}:${target}` : directory;
453
+ throttler = this.fsw._throttle('readdir', throttleKey, 1000);
454
+ if (!throttler)
455
+ return;
456
+ const previous = this.fsw._getWatchedDir(wh.path);
457
+ const current = new Set();
458
+ let stream = this.fsw._readdirp(directory, {
459
+ fileFilter: (entry) => wh.filterPath(entry),
460
+ directoryFilter: (entry) => wh.filterDir(entry),
461
+ });
462
+ if (!stream)
463
+ return;
464
+ stream
465
+ .on(STR_DATA, async (entry) => {
466
+ if (this.fsw.closed) {
467
+ stream = undefined;
468
+ return;
469
+ }
470
+ const item = entry.path;
471
+ let path = sp.join(directory, item);
472
+ current.add(item);
473
+ if (entry.stats.isSymbolicLink() &&
474
+ (await this._handleSymlink(entry, directory, path, item))) {
475
+ return;
476
+ }
477
+ if (this.fsw.closed) {
478
+ stream = undefined;
479
+ return;
480
+ }
481
+ // Files that present in current directory snapshot
482
+ // but absent in previous are added to watch list and
483
+ // emit `add` event.
484
+ if (item === target || (!target && !previous.has(item))) {
485
+ this.fsw._incrReadyCount();
486
+ // ensure relativeness of path is preserved in case of watcher reuse
487
+ path = sp.join(dir, sp.relative(dir, path));
488
+ this._addToNodeFs(path, initialAdd, wh, depth + 1);
489
+ }
490
+ })
491
+ .on(EV.ERROR, this._boundHandleError);
492
+ return new Promise((resolve, reject) => {
493
+ if (!stream)
494
+ return reject();
495
+ stream.once(STR_END, () => {
496
+ if (this.fsw.closed) {
497
+ stream = undefined;
498
+ return;
499
+ }
500
+ const wasThrottled = throttler ? throttler.clear() : false;
501
+ resolve(undefined);
502
+ // Files that absent in current directory snapshot
503
+ // but present in previous emit `remove` event
504
+ // and are removed from @watched[directory].
505
+ previous
506
+ .getChildren()
507
+ .filter((item) => {
508
+ return item !== directory && !current.has(item);
509
+ })
510
+ .forEach((item) => {
511
+ this.fsw._remove(directory, item);
512
+ });
513
+ stream = undefined;
514
+ // one more time for any missed in case changes came in extremely quickly
515
+ if (wasThrottled)
516
+ this._handleRead(directory, false, wh, target, dir, depth, throttler);
517
+ });
518
+ });
519
+ }
520
+ /**
521
+ * Read directory to add / remove files from `@watched` list and re-read it on change.
522
+ * @param dir fs path
523
+ * @param stats
524
+ * @param initialAdd
525
+ * @param depth relative to user-supplied path
526
+ * @param target child path targeted for watch
527
+ * @param wh Common watch helpers for this path
528
+ * @param realpath
529
+ * @returns closer for the watcher instance.
530
+ */
531
+ async _handleDir(dir, stats, initialAdd, depth, target, wh, realpath) {
532
+ const parentDir = this.fsw._getWatchedDir(sp.dirname(dir));
533
+ const tracked = parentDir.has(sp.basename(dir));
534
+ if (!(initialAdd && this.fsw.options.ignoreInitial) && !target && !tracked) {
535
+ this.fsw._emit(EV.ADD_DIR, dir, stats);
536
+ }
537
+ // ensure dir is tracked (harmless if redundant)
538
+ parentDir.add(sp.basename(dir));
539
+ this.fsw._getWatchedDir(dir);
540
+ let throttler;
541
+ let closer;
542
+ const oDepth = this.fsw.options.depth;
543
+ if ((oDepth == null || depth <= oDepth) && !this.fsw._symlinkPaths.has(realpath)) {
544
+ if (!target) {
545
+ await this._handleRead(dir, initialAdd, wh, target, dir, depth, throttler);
546
+ if (this.fsw.closed)
547
+ return;
548
+ }
549
+ closer = this._watchWithNodeFs(dir, (dirPath, stats) => {
550
+ // if current directory is removed, do nothing
551
+ if (stats && stats.mtimeMs === 0)
552
+ return;
553
+ this._handleRead(dirPath, false, wh, target, dir, depth, throttler);
554
+ });
555
+ }
556
+ return closer;
557
+ }
558
+ /**
559
+ * Handle added file, directory, or glob pattern.
560
+ * Delegates call to _handleFile / _handleDir after checks.
561
+ * @param path to file or ir
562
+ * @param initialAdd was the file added at watch instantiation?
563
+ * @param priorWh depth relative to user-supplied path
564
+ * @param depth Child path actually targeted for watch
565
+ * @param target Child path actually targeted for watch
566
+ */
567
+ async _addToNodeFs(path, initialAdd, priorWh, depth, target) {
568
+ const ready = this.fsw._emitReady;
569
+ if (this.fsw._isIgnored(path) || this.fsw.closed) {
570
+ ready();
571
+ return false;
572
+ }
573
+ const wh = this.fsw._getWatchHelpers(path);
574
+ if (priorWh) {
575
+ wh.filterPath = (entry) => priorWh.filterPath(entry);
576
+ wh.filterDir = (entry) => priorWh.filterDir(entry);
577
+ }
578
+ // evaluate what is at the path we're being asked to watch
579
+ try {
580
+ const stats = await statMethods[wh.statMethod](wh.watchPath);
581
+ if (this.fsw.closed)
582
+ return;
583
+ if (this.fsw._isIgnored(wh.watchPath, stats)) {
584
+ ready();
585
+ return false;
586
+ }
587
+ const follow = this.fsw.options.followSymlinks;
588
+ let closer;
589
+ if (stats.isDirectory()) {
590
+ const absPath = sp.resolve(path);
591
+ const targetPath = follow ? await fsrealpath(path) : path;
592
+ if (this.fsw.closed)
593
+ return;
594
+ closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
595
+ if (this.fsw.closed)
596
+ return;
597
+ // preserve this symlink's target path
598
+ if (absPath !== targetPath && targetPath !== undefined) {
599
+ this.fsw._symlinkPaths.set(absPath, targetPath);
600
+ }
601
+ }
602
+ else if (stats.isSymbolicLink()) {
603
+ const targetPath = follow ? await fsrealpath(path) : path;
604
+ if (this.fsw.closed)
605
+ return;
606
+ const parent = sp.dirname(wh.watchPath);
607
+ this.fsw._getWatchedDir(parent).add(wh.watchPath);
608
+ this.fsw._emit(EV.ADD, wh.watchPath, stats);
609
+ closer = await this._handleDir(parent, stats, initialAdd, depth, path, wh, targetPath);
610
+ if (this.fsw.closed)
611
+ return;
612
+ // preserve this symlink's target path
613
+ if (targetPath !== undefined) {
614
+ this.fsw._symlinkPaths.set(sp.resolve(path), targetPath);
615
+ }
616
+ }
617
+ else {
618
+ closer = this._handleFile(wh.watchPath, stats, initialAdd);
619
+ }
620
+ ready();
621
+ if (closer)
622
+ this.fsw._addPathCloser(path, closer);
623
+ return false;
624
+ }
625
+ catch (error) {
626
+ if (this.fsw._handleError(error)) {
627
+ ready();
628
+ return path;
629
+ }
630
+ }
631
+ }
632
+ }