@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
package/bin/spaces.js CHANGED
@@ -1,155 +1,466 @@
1
- #!/usr/bin/env node
2
-
3
- const http = require('http');
4
- const { execSync, spawn } = require('child_process');
5
- const path = require('path');
6
- const os = require('os');
7
- const fs = require('fs');
8
- const { createTerminalServer } = require('./terminal-server');
9
-
10
- const NEXT_INTERNAL_PORT = 3400;
11
- const PORT = parseInt(process.env.SPACES_PORT || '3457', 10);
12
- const projectDir = path.join(__dirname, '..');
13
-
14
- console.log('');
15
- console.log(' Spaces - Agent Workspace Manager');
16
- console.log(' =================================');
17
- console.log('');
18
-
19
- // Detect standalone build (npm global install) vs full .next (git clone)
20
- const standaloneServer = path.join(projectDir, '.next', 'standalone', 'server.js');
21
- const fullBuildDir = path.join(projectDir, '.next', 'BUILD_ID');
22
- const isStandalone = fs.existsSync(standaloneServer);
23
- const isFullBuild = fs.existsSync(fullBuildDir);
24
-
25
- if (!isStandalone && !isFullBuild) {
26
- console.error(' Error: No build found.');
27
- console.error(' Run "npm run build" first, or install via "npm install -g @jlongo78/agent-spaces".');
28
- process.exit(1);
29
- }
30
-
31
- // Check for ~/.claude/ directory
32
- const claudeDir = path.join(os.homedir(), '.claude');
33
- if (!fs.existsSync(claudeDir)) {
34
- console.log(' Warning: ~/.claude/ not found. Have you used Claude Code yet?');
35
- console.log('');
36
- }
37
-
38
- // Spawn Next.js production server on an internal port
39
- let next;
40
- if (isStandalone) {
41
- // npm global install — run the standalone server directly
42
- // Native modules (better-sqlite3, node-pty) live in the parent package's
43
- // node_modules, not in the standalone bundle. Add NODE_PATH so they're found.
44
- const parentNodeModules = path.join(projectDir, 'node_modules');
45
- const existingNodePath = process.env.NODE_PATH || '';
46
- const nodePath = existingNodePath
47
- ? `${parentNodeModules}${path.delimiter}${existingNodePath}`
48
- : parentNodeModules;
49
-
50
- next = spawn(process.execPath, [standaloneServer], {
51
- cwd: path.dirname(standaloneServer),
52
- stdio: ['ignore', 'pipe', 'pipe'],
53
- env: {
54
- ...process.env,
55
- PORT: String(NEXT_INTERNAL_PORT),
56
- HOSTNAME: '0.0.0.0',
57
- NODE_ENV: 'production',
58
- NODE_PATH: nodePath,
59
- },
60
- });
61
- } else {
62
- // git clone use next start
63
- next = spawn('npx', ['next', 'start', '--port', String(NEXT_INTERNAL_PORT)], {
64
- cwd: projectDir,
65
- stdio: ['ignore', 'pipe', 'pipe'],
66
- env: {
67
- ...process.env,
68
- PORT: String(NEXT_INTERNAL_PORT),
69
- HOSTNAME: '0.0.0.0',
70
- NODE_ENV: 'production',
71
- },
72
- shell: true,
73
- });
74
- }
75
-
76
- let nextReady = false;
77
-
78
- next.stdout.on('data', (data) => {
79
- const msg = data.toString();
80
- process.stdout.write(msg);
81
- if (!nextReady && (msg.includes('Ready') || msg.includes('started server') || msg.includes('Listening') || msg.includes('localhost'))) {
82
- nextReady = true;
83
- console.log(`\n Ready at http://localhost:${PORT}\n`);
84
-
85
- // Try to open browser (hardcoded localhost URL, no user input)
86
- const url = `http://localhost:${PORT}`;
87
- try {
88
- if (process.platform === 'win32') {
89
- execSync(`start ${url}`, { stdio: 'ignore' });
90
- } else if (process.platform === 'darwin') {
91
- execSync(`open ${url}`, { stdio: 'ignore' });
92
- } else {
93
- execSync(`xdg-open ${url}`, { stdio: 'ignore' });
94
- }
95
- } catch {
96
- console.log(` Open ${url} in your browser`);
97
- }
98
- }
99
- });
100
-
101
- next.stderr.on('data', (data) => {
102
- const msg = data.toString();
103
- if (!msg.includes('Warning')) {
104
- process.stderr.write(data);
105
- }
106
- });
107
-
108
- next.on('exit', (code) => {
109
- if (code !== 0 && code !== null) {
110
- console.error(` [spaces] Next.js exited with code ${code}`);
111
- }
112
- cleanup();
113
- });
114
-
115
- // Create unified HTTP server
116
- const server = http.createServer((req, res) => {
117
- const proxyReq = http.request(
118
- {
119
- hostname: '127.0.0.1',
120
- port: NEXT_INTERNAL_PORT,
121
- path: req.url,
122
- method: req.method,
123
- headers: req.headers,
124
- },
125
- (proxyRes) => {
126
- res.writeHead(proxyRes.statusCode, proxyRes.headers);
127
- proxyRes.pipe(res);
128
- }
129
- );
130
- proxyReq.on('error', () => {
131
- if (!res.headersSent) {
132
- res.writeHead(502);
133
- res.end('Server not ready yet. Refresh in a moment.');
134
- }
135
- });
136
- req.pipe(proxyReq);
137
- });
138
-
139
- // Attach terminal WebSocket server for /ws upgrades
140
- createTerminalServer(server);
141
-
142
- server.listen(PORT, () => {
143
- console.log(` Starting server on http://localhost:${PORT}`);
144
- console.log('');
145
- });
146
-
147
- // Cleanup
148
- function cleanup() {
149
- next.kill();
150
- server.close();
151
- process.exit(0);
152
- }
153
-
154
- process.on('SIGINT', cleanup);
155
- process.on('SIGTERM', cleanup);
1
+ #!/usr/bin/env node
2
+
3
+ const http = require('http');
4
+ const { execFileSync, spawn } = require('child_process');
5
+ const path = require('path');
6
+ const os = require('os');
7
+ const fs = require('fs');
8
+ // terminal-server is loaded lazily (after SPACES_TIER is set in process.env)
9
+
10
+ const SPACES_DIR = path.join(os.homedir(), '.spaces');
11
+ const CONFIG_PATH = path.join(SPACES_DIR, 'server.json');
12
+ const SESSION_SECRET_PATH = path.join(SPACES_DIR, 'session_secret');
13
+ const NEXT_INTERNAL_PORT = 3400;
14
+ const projectDir = path.join(__dirname, '..');
15
+ const MANAGED_PACKAGES = path.join(SPACES_DIR, 'packages');
16
+ const MANAGED_NODE_MODULES = path.join(MANAGED_PACKAGES, 'node_modules');
17
+
18
+ // ─── CLI arg parsing ──────────────────────────────────────
19
+ const args = process.argv.slice(2);
20
+ const cliFlags = {};
21
+ for (let i = 0; i < args.length; i++) {
22
+ if (args[i] === '--setup') { cliFlags.setup = true; }
23
+ else if (args[i] === '--port' && args[i + 1]) { cliFlags.port = parseInt(args[++i], 10); }
24
+ else if (args[i] === '--tier' && args[i + 1]) { cliFlags.tier = args[++i]; }
25
+ else if (args[i] === '--base-path' && args[i + 1]) { cliFlags.basePath = args[++i]; }
26
+ else if (args[i] === '--help' || args[i] === '-h') { cliFlags.help = true; }
27
+ }
28
+
29
+ if (cliFlags.help) {
30
+ console.log(`
31
+ Spaces - Agent Workspace Manager
32
+
33
+ Usage:
34
+ spaces Start the server (auto-detects tier)
35
+ spaces stop Stop running server
36
+ spaces install <teams|pro> Install a tier package
37
+ spaces uninstall [teams|pro] Uninstall packages (all if none specified)
38
+ spaces verify Verify installed packages
39
+ spaces upgrade [teams|pro] Upgrade installed packages
40
+ spaces --setup Interactive first-time setup wizard
41
+ spaces --port 3457 Override port
42
+ spaces --tier team Override tier (community|team|federation)
43
+ spaces --base-path /spaces Set base path for reverse proxy
44
+ spaces --help Show this help
45
+ `);
46
+ process.exit(0);
47
+ }
48
+
49
+ // ─── Stop command ─────────────────────────────────────────
50
+ const subcommand = args[0];
51
+ if (subcommand === 'stop') {
52
+ stopServer();
53
+ process.exit(0);
54
+ }
55
+
56
+ // ─── Route install/verify/upgrade to spaces-install.js ────
57
+ if (subcommand === 'install' || subcommand === 'uninstall' || subcommand === 'verify' || subcommand === 'upgrade') {
58
+ // Re-exec with spaces-install.js, passing through all args
59
+ const installScript = path.join(__dirname, 'spaces-install.js');
60
+ const { status } = require('child_process').spawnSync(
61
+ process.execPath, [installScript, ...args],
62
+ { stdio: 'inherit', env: process.env }
63
+ );
64
+ process.exit(status || 0);
65
+ }
66
+
67
+ // ─── Setup wizard ─────────────────────────────────────────
68
+ if (cliFlags.setup) {
69
+ require('./spaces-setup');
70
+ // spaces-setup handles its own process.exit
71
+ } else {
72
+ startServer();
73
+ }
74
+
75
+ function startServer() {
76
+ // ─── Load saved config ────────────────────────────────────
77
+ let savedConfig = {};
78
+ if (fs.existsSync(CONFIG_PATH)) {
79
+ try { savedConfig = JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8')); } catch {}
80
+ }
81
+
82
+ // ─── Resolve settings (CLI > env > config > defaults) ─────
83
+ const PORT = cliFlags.port
84
+ || parseInt(process.env.SPACES_PORT || '', 10)
85
+ || savedConfig.port
86
+ || 3457;
87
+
88
+ const basePath = cliFlags.basePath
89
+ || process.env.SPACES_BASE_PATH
90
+ || savedConfig.basePath
91
+ || '';
92
+
93
+ const allowedOrigins = process.env.SPACES_ALLOWED_ORIGINS
94
+ || savedConfig.allowedOrigins
95
+ || '';
96
+
97
+ // ─── Kill any existing server on this port ───────────────────
98
+ stopServer();
99
+
100
+ // ─── Resolve optional packages once ─────────────────────────
101
+ const proPath = resolveSpacesPro();
102
+ const teamsPath = resolveSpacesTeams();
103
+
104
+ // Tier resolution: CLI > env > config > auto-detect
105
+ let tier = cliFlags.tier
106
+ || process.env.SPACES_TIER
107
+ || savedConfig.tier
108
+ || '';
109
+
110
+ // Auto-detect tier from package presence
111
+ if (!tier) {
112
+ if (proPath) tier = 'federation';
113
+ else if (teamsPath) tier = 'team';
114
+ else tier = 'community';
115
+ }
116
+
117
+ console.log('');
118
+ console.log(' Spaces - Agent Workspace Manager');
119
+ console.log(' =================================');
120
+ console.log('');
121
+ console.log(` Tier: ${tier}`);
122
+
123
+ // ─── Server tier prerequisites ────────────────────────────
124
+ const childEnv = { ...process.env };
125
+
126
+ if (tier !== 'community') {
127
+ // team/federation tiers require @spaces/teams (auth + collaboration)
128
+ if ((tier === 'team' || tier === 'federation') && !teamsPath) {
129
+ console.error(' Error: @spaces/teams is required for team/federation tiers.');
130
+ console.error(' Install it: spaces install teams');
131
+ process.exit(1);
132
+ }
133
+ // federation tier requires @spaces/pro (network)
134
+ if (tier === 'federation' && !proPath) {
135
+ console.error(' Error: @spaces/pro is required for the federation tier.');
136
+ console.error(' Install it: spaces install pro');
137
+ process.exit(1);
138
+ }
139
+
140
+ // Check for session secret
141
+ let sessionSecret = process.env.SPACES_SESSION_SECRET || '';
142
+ if (!sessionSecret && fs.existsSync(SESSION_SECRET_PATH)) {
143
+ sessionSecret = fs.readFileSync(SESSION_SECRET_PATH, 'utf-8').trim();
144
+ }
145
+
146
+ // Check for admin DB — auto-setup if missing
147
+ const adminDbPath = path.join(SPACES_DIR, 'admin.db');
148
+ if (!fs.existsSync(adminDbPath) || !sessionSecret) {
149
+ const { autoSetup } = require('./lib/auto-setup');
150
+ const result = autoSetup({ SPACES_DIR, SESSION_SECRET_PATH, ADMIN_DB_PATH: adminDbPath, CONFIG_PATH, tier, port: PORT, basePath });
151
+ sessionSecret = result.sessionSecret;
152
+ }
153
+
154
+ childEnv.SPACES_SESSION_SECRET = sessionSecret;
155
+ process.env.SPACES_SESSION_SECRET = sessionSecret;
156
+ console.log(` Admin DB: ${adminDbPath}`);
157
+ }
158
+
159
+ // Set tier in both child env and own process env (terminal-server reads it)
160
+ childEnv.SPACES_TIER = tier;
161
+ process.env.SPACES_TIER = tier;
162
+ if (basePath) {
163
+ childEnv.SPACES_BASE_PATH = basePath;
164
+ console.log(` Base path: ${basePath}`);
165
+ }
166
+ if (allowedOrigins) {
167
+ childEnv.SPACES_ALLOWED_ORIGINS = allowedOrigins;
168
+ process.env.SPACES_ALLOWED_ORIGINS = allowedOrigins;
169
+ console.log(` Allowed origins: ${allowedOrigins}`);
170
+ }
171
+
172
+ // ─── Resolve NODE_PATH for @spaces/pro and @spaces/teams ──
173
+ // Update both childEnv (for the Next.js child process) and process.env
174
+ // (for terminal-server.js which runs in this same parent process).
175
+ // Include:
176
+ // - Managed packages node_modules (~/.spaces/packages/node_modules)
177
+ // - Each managed package's own node_modules (for its bundled deps)
178
+ // - The host app's own node_modules (fallback for peer deps)
179
+ const appNodeModules = path.join(projectDir, 'node_modules');
180
+ const nodePaths = [MANAGED_NODE_MODULES, appNodeModules];
181
+ // Add each resolved package's own node_modules so its bundled deps are found
182
+ for (const pkgPath of [proPath, teamsPath]) {
183
+ if (pkgPath) {
184
+ // pkgPath is the package root (symlink target or direct path)
185
+ const realPath = fs.realpathSync(pkgPath);
186
+ const pkgNodeModules = path.join(realPath, 'node_modules');
187
+ if (fs.existsSync(pkgNodeModules) && !nodePaths.includes(pkgNodeModules)) {
188
+ nodePaths.push(pkgNodeModules);
189
+ }
190
+ // Also add the parent scope for @spaces/* resolution
191
+ const parentModules = path.dirname(path.dirname(pkgPath));
192
+ if (!nodePaths.includes(parentModules)) {
193
+ nodePaths.push(parentModules);
194
+ }
195
+ }
196
+ }
197
+ for (const dir of nodePaths) {
198
+ for (const target of [childEnv, process.env]) {
199
+ const existing = target.NODE_PATH || '';
200
+ if (!existing.includes(dir)) {
201
+ target.NODE_PATH = existing
202
+ ? `${dir}${path.delimiter}${existing}`
203
+ : dir;
204
+ }
205
+ }
206
+ }
207
+ // Re-init module paths so require() in this process picks up the new NODE_PATH
208
+ require('module').Module._initPaths();
209
+
210
+ // Verify collaboration pipeline works end-to-end at startup
211
+ if (tier === 'team' || tier === 'federation') {
212
+ try {
213
+ const teams = require('@spaces/teams');
214
+ console.log(' Collaboration: @spaces/teams loaded OK');
215
+ // Smoke-test that peer deps resolve from this process
216
+ require('better-sqlite3');
217
+ } catch (e) {
218
+ console.error(` Warning: Collaboration may not work — ${e.message}`);
219
+ console.error(' Check that NODE_PATH includes the host app node_modules.');
220
+ }
221
+ }
222
+
223
+ console.log('');
224
+
225
+ // Check for ~/.claude/ directory
226
+ const claudeDir = path.join(os.homedir(), '.claude');
227
+ if (!fs.existsSync(claudeDir)) {
228
+ console.log(' Warning: ~/.claude/ not found. Have you used Claude Code yet?');
229
+ console.log('');
230
+ }
231
+
232
+ // ─── Detect build type ────────────────────────────────────
233
+ const standaloneServer = path.join(projectDir, '.next', 'standalone', 'server.js');
234
+ const fullBuildDir = path.join(projectDir, '.next', 'BUILD_ID');
235
+ const isStandalone = fs.existsSync(standaloneServer);
236
+ const isFullBuild = fs.existsSync(fullBuildDir);
237
+
238
+ if (!isStandalone && !isFullBuild) {
239
+ console.error(' Error: No build found.');
240
+ console.error(' Run "npm run build" first, or install via "npm install -g @jlongo78/agent-spaces".');
241
+ process.exit(1);
242
+ }
243
+
244
+ // ─── Spawn Next.js ────────────────────────────────────────
245
+ let next;
246
+ if (isStandalone) {
247
+ const parentNodeModules = path.join(projectDir, 'node_modules');
248
+ const existingNodePath = childEnv.NODE_PATH || '';
249
+ childEnv.NODE_PATH = existingNodePath
250
+ ? `${parentNodeModules}${path.delimiter}${existingNodePath}`
251
+ : parentNodeModules;
252
+
253
+ next = spawn(process.execPath, [standaloneServer], {
254
+ cwd: path.dirname(standaloneServer),
255
+ stdio: ['ignore', 'pipe', 'pipe'],
256
+ env: {
257
+ ...childEnv,
258
+ PORT: String(NEXT_INTERNAL_PORT),
259
+ HOSTNAME: '0.0.0.0',
260
+ NODE_ENV: 'production',
261
+ },
262
+ });
263
+ } else {
264
+ next = spawn('npx', ['next', 'start', '--port', String(NEXT_INTERNAL_PORT)], {
265
+ cwd: projectDir,
266
+ stdio: ['ignore', 'pipe', 'pipe'],
267
+ env: {
268
+ ...childEnv,
269
+ PORT: String(NEXT_INTERNAL_PORT),
270
+ HOSTNAME: '0.0.0.0',
271
+ NODE_ENV: 'production',
272
+ },
273
+ shell: true,
274
+ });
275
+ }
276
+
277
+ let nextReady = false;
278
+
279
+ next.stdout.on('data', (data) => {
280
+ const msg = data.toString();
281
+ process.stdout.write(msg);
282
+ if (!nextReady && (msg.includes('Ready') || msg.includes('started server') || msg.includes('Listening') || msg.includes('localhost'))) {
283
+ nextReady = true;
284
+ console.log(`\n Ready at http://localhost:${PORT}\n`);
285
+
286
+ const url = `http://localhost:${PORT}`;
287
+ try {
288
+ if (process.platform === 'win32') {
289
+ execFileSync('cmd', ['/c', 'start', url], { stdio: 'ignore' });
290
+ } else if (process.platform === 'darwin') {
291
+ execFileSync('open', [url], { stdio: 'ignore' });
292
+ } else {
293
+ execFileSync('xdg-open', [url], { stdio: 'ignore' });
294
+ }
295
+ } catch {
296
+ console.log(` Open ${url} in your browser`);
297
+ }
298
+ }
299
+ });
300
+
301
+ next.stderr.on('data', (data) => {
302
+ const msg = data.toString();
303
+ if (!msg.includes('Warning')) {
304
+ process.stderr.write(data);
305
+ }
306
+ });
307
+
308
+ next.on('exit', (code) => {
309
+ if (code !== 0 && code !== null) {
310
+ console.error(` [spaces] Next.js exited with code ${code}`);
311
+ }
312
+ cleanup();
313
+ });
314
+
315
+ // ─── HTTP proxy server ────────────────────────────────────
316
+ const server = http.createServer((req, res) => {
317
+ // WebSocket paths are handled by the 'upgrade' event, but a plain
318
+ // HTTP request to /ws (e.g. health check) should not be proxied to
319
+ // Next.js which would 308-redirect it due to trailingSlash.
320
+ const urlPath = (req.url || '').split('?')[0];
321
+ if (urlPath === '/ws' || urlPath.endsWith('/ws') || urlPath.endsWith('/ws/')) {
322
+ res.writeHead(200, { 'Content-Type': 'text/plain' });
323
+ res.end('WebSocket endpoint');
324
+ return;
325
+ }
326
+
327
+ const proxyReq = http.request(
328
+ {
329
+ hostname: '127.0.0.1',
330
+ port: NEXT_INTERNAL_PORT,
331
+ path: req.url,
332
+ method: req.method,
333
+ headers: req.headers,
334
+ },
335
+ (proxyRes) => {
336
+ res.writeHead(proxyRes.statusCode, proxyRes.headers);
337
+ proxyRes.pipe(res);
338
+ }
339
+ );
340
+ proxyReq.on('error', () => {
341
+ if (!res.headersSent) {
342
+ res.writeHead(502);
343
+ res.end('Server not ready yet. Refresh in a moment.');
344
+ }
345
+ });
346
+ req.pipe(proxyReq);
347
+ });
348
+
349
+ const { createTerminalServer } = require('./terminal-server');
350
+ createTerminalServer(server);
351
+
352
+ server.listen(PORT, () => {
353
+ console.log(` Starting server on http://localhost:${PORT}`);
354
+ console.log('');
355
+ });
356
+
357
+ function cleanup() {
358
+ next.kill();
359
+ server.close();
360
+ process.exit(0);
361
+ }
362
+
363
+ process.on('SIGINT', cleanup);
364
+ process.on('SIGTERM', cleanup);
365
+ }
366
+
367
+ // ─── Stop running server ─────────────────────────────────────
368
+ function findPidsOnPort(port) {
369
+ const pids = new Set();
370
+ // Try lsof first
371
+ try {
372
+ const output = execFileSync('lsof', ['-ti', `tcp:${port}`], { encoding: 'utf-8' }).trim();
373
+ for (const p of output.split('\n')) { if (p.trim()) pids.add(parseInt(p.trim(), 10)); }
374
+ } catch {}
375
+ // Fallback to fuser (catches processes lsof misses)
376
+ try {
377
+ const output = execFileSync('fuser', [`${port}/tcp`], { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] }).trim();
378
+ for (const p of output.split(/\s+/)) { if (p.trim()) pids.add(parseInt(p.trim(), 10)); }
379
+ } catch {}
380
+ return [...pids].filter(p => !isNaN(p) && p > 0);
381
+ }
382
+
383
+ function stopServer() {
384
+ let savedConfig = {};
385
+ if (fs.existsSync(CONFIG_PATH)) {
386
+ try { savedConfig = JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8')); } catch {}
387
+ }
388
+ const port = parseInt(process.env.SPACES_PORT || '', 10) || savedConfig.port || 3457;
389
+ const ports = [port, NEXT_INTERNAL_PORT];
390
+ let killed = 0;
391
+
392
+ for (const p of ports) {
393
+ for (const pid of findPidsOnPort(p)) {
394
+ try {
395
+ process.kill(pid, 'SIGTERM');
396
+ killed++;
397
+ } catch {}
398
+ }
399
+ }
400
+
401
+ if (killed > 0) {
402
+ console.log(` Stopped ${killed} process(es) on port ${port}`);
403
+ // Wait for ports to be released, escalate to SIGKILL if needed
404
+ const deadline = Date.now() + 2000;
405
+ let escalated = false;
406
+ while (Date.now() < deadline) {
407
+ const remaining = ports.flatMap(p => findPidsOnPort(p));
408
+ if (remaining.length === 0) break;
409
+ if (!escalated && Date.now() > deadline - 1000) {
410
+ for (const pid of remaining) {
411
+ try { process.kill(pid, 'SIGKILL'); } catch {}
412
+ }
413
+ escalated = true;
414
+ }
415
+ require('child_process').spawnSync('sleep', ['0.2']);
416
+ }
417
+ } else {
418
+ console.log(` No running server found on port ${port}`);
419
+ }
420
+ }
421
+
422
+ // ─── @spaces/pro resolution ──────────────────────────────────
423
+ function resolveSpacesPro() {
424
+ // 1. Managed install (~/.spaces/packages/)
425
+ const managed = path.join(MANAGED_NODE_MODULES, '@spaces', 'pro');
426
+ if (fs.existsSync(path.join(managed, 'dist', 'index.js'))) return managed;
427
+
428
+ // 2. Local node_modules (npm link / optionalDep)
429
+ try {
430
+ return require.resolve('@spaces/pro');
431
+ } catch {}
432
+
433
+ // 3. Global npm prefix (legacy)
434
+ try {
435
+ const globalPrefix = execFileSync('npm', ['prefix', '-g'], { encoding: 'utf-8' }).trim();
436
+ const globalProPath = path.join(globalPrefix, 'lib', 'node_modules', '@spaces', 'pro');
437
+ if (fs.existsSync(globalProPath)) return globalProPath;
438
+ const altPath = path.join(globalPrefix, 'node_modules', '@spaces', 'pro');
439
+ if (fs.existsSync(altPath)) return altPath;
440
+ } catch {}
441
+
442
+ return null;
443
+ }
444
+
445
+ // ─── @spaces/teams resolution ────────────────────────────────
446
+ function resolveSpacesTeams() {
447
+ // 1. Managed install (~/.spaces/packages/)
448
+ const managed = path.join(MANAGED_NODE_MODULES, '@spaces', 'teams');
449
+ if (fs.existsSync(path.join(managed, 'dist', 'index.js'))) return managed;
450
+
451
+ // 2. Local node_modules (npm link / optionalDep)
452
+ try {
453
+ return require.resolve('@spaces/teams');
454
+ } catch {}
455
+
456
+ // 3. Global npm prefix (legacy)
457
+ try {
458
+ const globalPrefix = execFileSync('npm', ['prefix', '-g'], { encoding: 'utf-8' }).trim();
459
+ const globalTeamsPath = path.join(globalPrefix, 'lib', 'node_modules', '@spaces', 'teams');
460
+ if (fs.existsSync(globalTeamsPath)) return globalTeamsPath;
461
+ const altPath = path.join(globalPrefix, 'node_modules', '@spaces', 'teams');
462
+ if (fs.existsSync(altPath)) return altPath;
463
+ } catch {}
464
+
465
+ return null;
466
+ }