@jlongo78/agent-spaces 0.7.3 → 0.7.5

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 (597) hide show
  1. package/.next/standalone/.next/BUILD_ID +1 -1
  2. package/.next/standalone/.next/app-path-routes-manifest.json +7 -0
  3. package/.next/standalone/.next/build-manifest.json +2 -2
  4. package/.next/standalone/.next/prerender-manifest.json +3 -3
  5. package/.next/standalone/.next/required-server-files.json +19 -19
  6. package/.next/standalone/.next/routes-manifest.json +42 -0
  7. package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page.js +1 -1
  8. package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page.js.nft.json +1 -1
  9. package/.next/standalone/.next/server/app/(desktop)/admin/analytics/page_client-reference-manifest.js +1 -1
  10. package/.next/standalone/.next/server/app/(desktop)/admin/users/page.js +1 -1
  11. package/.next/standalone/.next/server/app/(desktop)/admin/users/page.js.nft.json +1 -1
  12. package/.next/standalone/.next/server/app/(desktop)/admin/users/page_client-reference-manifest.js +1 -1
  13. package/.next/standalone/.next/server/app/(desktop)/analytics/page.js +1 -1
  14. package/.next/standalone/.next/server/app/(desktop)/analytics/page.js.nft.json +1 -1
  15. package/.next/standalone/.next/server/app/(desktop)/analytics/page_client-reference-manifest.js +1 -1
  16. package/.next/standalone/.next/server/app/(desktop)/cortex/page.js +1 -1
  17. package/.next/standalone/.next/server/app/(desktop)/cortex/page.js.nft.json +1 -1
  18. package/.next/standalone/.next/server/app/(desktop)/cortex/page_client-reference-manifest.js +1 -1
  19. package/.next/standalone/.next/server/app/(desktop)/network/page.js +1 -1
  20. package/.next/standalone/.next/server/app/(desktop)/network/page.js.nft.json +1 -1
  21. package/.next/standalone/.next/server/app/(desktop)/network/page_client-reference-manifest.js +1 -1
  22. package/.next/standalone/.next/server/app/(desktop)/page.js +1 -1
  23. package/.next/standalone/.next/server/app/(desktop)/page.js.nft.json +1 -1
  24. package/.next/standalone/.next/server/app/(desktop)/page_client-reference-manifest.js +1 -1
  25. package/.next/standalone/.next/server/app/(desktop)/projects/page.js +1 -1
  26. package/.next/standalone/.next/server/app/(desktop)/projects/page.js.nft.json +1 -1
  27. package/.next/standalone/.next/server/app/(desktop)/projects/page_client-reference-manifest.js +1 -1
  28. package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page.js +1 -1
  29. package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page.js.nft.json +1 -1
  30. package/.next/standalone/.next/server/app/(desktop)/sessions/[id]/page_client-reference-manifest.js +1 -1
  31. package/.next/standalone/.next/server/app/(desktop)/sessions/page.js +1 -1
  32. package/.next/standalone/.next/server/app/(desktop)/sessions/page.js.nft.json +1 -1
  33. package/.next/standalone/.next/server/app/(desktop)/sessions/page_client-reference-manifest.js +1 -1
  34. package/.next/standalone/.next/server/app/(desktop)/settings/page.js +1 -1
  35. package/.next/standalone/.next/server/app/(desktop)/settings/page.js.nft.json +1 -1
  36. package/.next/standalone/.next/server/app/(desktop)/settings/page_client-reference-manifest.js +1 -1
  37. package/.next/standalone/.next/server/app/(desktop)/terminal/page.js +1 -1
  38. package/.next/standalone/.next/server/app/(desktop)/terminal/page.js.nft.json +1 -1
  39. package/.next/standalone/.next/server/app/(desktop)/terminal/page_client-reference-manifest.js +1 -1
  40. package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page.js +1 -1
  41. package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page.js.nft.json +1 -1
  42. package/.next/standalone/.next/server/app/(desktop)/terminal/pane/[id]/page_client-reference-manifest.js +1 -1
  43. package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page.js +1 -1
  44. package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page.js.nft.json +1 -1
  45. package/.next/standalone/.next/server/app/(desktop)/terminal/remote/[nodeId]/[workspaceId]/page_client-reference-manifest.js +1 -1
  46. package/.next/standalone/.next/server/app/(desktop)/workspaces/page.js +1 -1
  47. package/.next/standalone/.next/server/app/(desktop)/workspaces/page.js.nft.json +1 -1
  48. package/.next/standalone/.next/server/app/(desktop)/workspaces/page_client-reference-manifest.js +1 -1
  49. package/.next/standalone/.next/server/app/_global-error.html +2 -2
  50. package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
  51. package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  52. package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  53. package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  54. package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  55. package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  56. package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  57. package/.next/standalone/.next/server/app/_not-found.html +1 -1
  58. package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
  59. package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  60. package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  61. package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  62. package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  63. package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  64. package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  65. package/.next/standalone/.next/server/app/admin/analytics.html +1 -1
  66. package/.next/standalone/.next/server/app/admin/analytics.rsc +17 -16
  67. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin/analytics/__PAGE__.segment.rsc +2 -2
  68. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin/analytics.segment.rsc +1 -1
  69. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap/admin.segment.rsc +1 -1
  70. package/.next/standalone/.next/server/app/admin/analytics.segments/!KGRlc2t0b3Ap.segment.rsc +5 -4
  71. package/.next/standalone/.next/server/app/admin/analytics.segments/_full.segment.rsc +17 -16
  72. package/.next/standalone/.next/server/app/admin/analytics.segments/_head.segment.rsc +1 -1
  73. package/.next/standalone/.next/server/app/admin/analytics.segments/_index.segment.rsc +2 -2
  74. package/.next/standalone/.next/server/app/admin/analytics.segments/_tree.segment.rsc +2 -2
  75. package/.next/standalone/.next/server/app/admin/users.html +1 -1
  76. package/.next/standalone/.next/server/app/admin/users.rsc +17 -16
  77. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin/users/__PAGE__.segment.rsc +2 -2
  78. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin/users.segment.rsc +1 -1
  79. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap/admin.segment.rsc +1 -1
  80. package/.next/standalone/.next/server/app/admin/users.segments/!KGRlc2t0b3Ap.segment.rsc +5 -4
  81. package/.next/standalone/.next/server/app/admin/users.segments/_full.segment.rsc +17 -16
  82. package/.next/standalone/.next/server/app/admin/users.segments/_head.segment.rsc +1 -1
  83. package/.next/standalone/.next/server/app/admin/users.segments/_index.segment.rsc +2 -2
  84. package/.next/standalone/.next/server/app/admin/users.segments/_tree.segment.rsc +2 -2
  85. package/.next/standalone/.next/server/app/analytics.html +1 -1
  86. package/.next/standalone/.next/server/app/analytics.rsc +17 -16
  87. package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap/analytics/__PAGE__.segment.rsc +2 -2
  88. package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap/analytics.segment.rsc +1 -1
  89. package/.next/standalone/.next/server/app/analytics.segments/!KGRlc2t0b3Ap.segment.rsc +5 -4
  90. package/.next/standalone/.next/server/app/analytics.segments/_full.segment.rsc +17 -16
  91. package/.next/standalone/.next/server/app/analytics.segments/_head.segment.rsc +1 -1
  92. package/.next/standalone/.next/server/app/analytics.segments/_index.segment.rsc +2 -2
  93. package/.next/standalone/.next/server/app/analytics.segments/_tree.segment.rsc +2 -2
  94. package/.next/standalone/.next/server/app/api/analytics/overview/route.js.nft.json +1 -1
  95. package/.next/standalone/.next/server/app/api/bulk/route.js.nft.json +1 -1
  96. package/.next/standalone/.next/server/app/api/chat/route.js +1 -1
  97. package/.next/standalone/.next/server/app/api/chat/route.js.nft.json +1 -1
  98. package/.next/standalone/.next/server/app/api/config/route.js.nft.json +1 -1
  99. package/.next/standalone/.next/server/app/api/cortex/context/route.js.nft.json +1 -1
  100. package/.next/standalone/.next/server/app/api/cortex/curation/assess/route/app-paths-manifest.json +3 -0
  101. package/.next/standalone/.next/server/app/api/cortex/curation/assess/route/build-manifest.json +11 -0
  102. package/.next/standalone/.next/server/app/api/cortex/curation/assess/route/server-reference-manifest.json +4 -0
  103. package/.next/standalone/.next/server/app/api/cortex/curation/assess/route.js +7 -0
  104. package/.next/standalone/.next/server/app/api/cortex/curation/assess/route.js.map +5 -0
  105. package/.next/standalone/.next/server/app/api/cortex/curation/assess/route.js.nft.json +1 -0
  106. package/.next/standalone/.next/server/app/api/cortex/curation/assess/route_client-reference-manifest.js +2 -0
  107. package/.next/standalone/.next/server/app/api/cortex/curation/publish/route/app-paths-manifest.json +3 -0
  108. package/.next/standalone/.next/server/app/api/cortex/curation/publish/route/build-manifest.json +11 -0
  109. package/.next/standalone/.next/server/app/api/cortex/curation/publish/route/server-reference-manifest.json +4 -0
  110. package/.next/standalone/.next/server/app/api/cortex/curation/publish/route.js +7 -0
  111. package/.next/standalone/.next/server/app/api/cortex/curation/publish/route.js.map +5 -0
  112. package/.next/standalone/.next/server/app/api/cortex/curation/publish/route.js.nft.json +1 -0
  113. package/.next/standalone/.next/server/app/api/cortex/curation/publish/route_client-reference-manifest.js +2 -0
  114. package/.next/standalone/.next/server/app/api/cortex/curation/refine/route/app-paths-manifest.json +3 -0
  115. package/.next/standalone/.next/server/app/api/cortex/curation/refine/route/build-manifest.json +11 -0
  116. package/.next/standalone/.next/server/app/api/cortex/curation/refine/route/server-reference-manifest.json +4 -0
  117. package/.next/standalone/.next/server/app/api/cortex/curation/refine/route.js +7 -0
  118. package/.next/standalone/.next/server/app/api/cortex/curation/refine/route.js.map +5 -0
  119. package/.next/standalone/.next/server/app/api/cortex/curation/refine/route.js.nft.json +1 -0
  120. package/.next/standalone/.next/server/app/api/cortex/curation/refine/route_client-reference-manifest.js +2 -0
  121. package/.next/standalone/.next/server/app/api/cortex/curation/review/route/app-paths-manifest.json +3 -0
  122. package/.next/standalone/.next/server/app/api/cortex/curation/review/route/build-manifest.json +11 -0
  123. package/.next/standalone/.next/server/app/api/cortex/curation/review/route/server-reference-manifest.json +4 -0
  124. package/.next/standalone/.next/server/app/api/cortex/curation/review/route.js +7 -0
  125. package/.next/standalone/.next/server/app/api/cortex/curation/review/route.js.map +5 -0
  126. package/.next/standalone/.next/server/app/api/cortex/curation/review/route.js.nft.json +1 -0
  127. package/.next/standalone/.next/server/app/api/cortex/curation/review/route_client-reference-manifest.js +2 -0
  128. package/.next/standalone/.next/server/app/api/cortex/curation/seed/route/app-paths-manifest.json +3 -0
  129. package/.next/standalone/.next/server/app/api/cortex/curation/seed/route/build-manifest.json +11 -0
  130. package/.next/standalone/.next/server/app/api/cortex/curation/seed/route/server-reference-manifest.json +4 -0
  131. package/.next/standalone/.next/server/app/api/cortex/curation/seed/route.js +7 -0
  132. package/.next/standalone/.next/server/app/api/cortex/curation/seed/route.js.map +5 -0
  133. package/.next/standalone/.next/server/app/api/cortex/curation/seed/route.js.nft.json +1 -0
  134. package/.next/standalone/.next/server/app/api/cortex/curation/seed/route_client-reference-manifest.js +2 -0
  135. package/.next/standalone/.next/server/app/api/cortex/export/route.js.nft.json +1 -1
  136. package/.next/standalone/.next/server/app/api/cortex/federation/pending/route.js.nft.json +1 -1
  137. package/.next/standalone/.next/server/app/api/cortex/federation/resolve/route.js.nft.json +1 -1
  138. package/.next/standalone/.next/server/app/api/cortex/federation/search/route.js.nft.json +1 -1
  139. package/.next/standalone/.next/server/app/api/cortex/federation/teach/route.js.nft.json +1 -1
  140. package/.next/standalone/.next/server/app/api/cortex/graph/edges/route.js.nft.json +1 -1
  141. package/.next/standalone/.next/server/app/api/cortex/graph/entities/[id]/route.js.nft.json +1 -1
  142. package/.next/standalone/.next/server/app/api/cortex/graph/entities/route.js.nft.json +1 -1
  143. package/.next/standalone/.next/server/app/api/cortex/graph/populate/route.js.nft.json +1 -1
  144. package/.next/standalone/.next/server/app/api/cortex/import/route.js.nft.json +1 -1
  145. package/.next/standalone/.next/server/app/api/cortex/import/status/route.js.nft.json +1 -1
  146. package/.next/standalone/.next/server/app/api/cortex/ingest/bootstrap/route.js.nft.json +1 -1
  147. package/.next/standalone/.next/server/app/api/cortex/ingest/status/route.js.nft.json +1 -1
  148. package/.next/standalone/.next/server/app/api/cortex/knowledge/[id]/route.js.nft.json +1 -1
  149. package/.next/standalone/.next/server/app/api/cortex/knowledge/route.js.nft.json +1 -1
  150. package/.next/standalone/.next/server/app/api/cortex/lobes/[id]/route.js.nft.json +1 -1
  151. package/.next/standalone/.next/server/app/api/cortex/lobes/route.js.nft.json +1 -1
  152. package/.next/standalone/.next/server/app/api/cortex/lobes/share/route.js.nft.json +1 -1
  153. package/.next/standalone/.next/server/app/api/cortex/marketplace/browse/route/app-paths-manifest.json +3 -0
  154. package/.next/standalone/.next/server/app/api/cortex/marketplace/browse/route/build-manifest.json +11 -0
  155. package/.next/standalone/.next/server/app/api/cortex/marketplace/browse/route/server-reference-manifest.json +4 -0
  156. package/.next/standalone/.next/server/app/api/cortex/marketplace/browse/route.js +7 -0
  157. package/.next/standalone/.next/server/app/api/cortex/marketplace/browse/route.js.map +5 -0
  158. package/.next/standalone/.next/server/app/api/cortex/marketplace/browse/route.js.nft.json +1 -0
  159. package/.next/standalone/.next/server/app/api/cortex/marketplace/browse/route_client-reference-manifest.js +2 -0
  160. package/.next/standalone/.next/server/app/api/cortex/marketplace/preview/route/app-paths-manifest.json +3 -0
  161. package/.next/standalone/.next/server/app/api/cortex/marketplace/preview/route/build-manifest.json +11 -0
  162. package/.next/standalone/.next/server/app/api/cortex/marketplace/preview/route/server-reference-manifest.json +4 -0
  163. package/.next/standalone/.next/server/app/api/cortex/marketplace/preview/route.js +7 -0
  164. package/.next/standalone/.next/server/app/api/cortex/marketplace/preview/route.js.map +5 -0
  165. package/.next/standalone/.next/server/app/api/cortex/marketplace/preview/route.js.nft.json +1 -0
  166. package/.next/standalone/.next/server/app/api/cortex/marketplace/preview/route_client-reference-manifest.js +2 -0
  167. package/.next/standalone/.next/server/app/api/cortex/mcp/call/route.js.nft.json +1 -1
  168. package/.next/standalone/.next/server/app/api/cortex/mcp/tools/route.js.nft.json +1 -1
  169. package/.next/standalone/.next/server/app/api/cortex/search/route.js.nft.json +1 -1
  170. package/.next/standalone/.next/server/app/api/cortex/settings/route.js.nft.json +1 -1
  171. package/.next/standalone/.next/server/app/api/cortex/status/route.js.nft.json +1 -1
  172. package/.next/standalone/.next/server/app/api/cortex/timeline/route.js.nft.json +1 -1
  173. package/.next/standalone/.next/server/app/api/cortex/usage/route.js.nft.json +1 -1
  174. package/.next/standalone/.next/server/app/api/cortex/workspace/[id]/context/route.js.nft.json +1 -1
  175. package/.next/standalone/.next/server/app/api/events/route.js.nft.json +1 -1
  176. package/.next/standalone/.next/server/app/api/folders/route.js.nft.json +1 -1
  177. package/.next/standalone/.next/server/app/api/network/handshake/route.js.nft.json +1 -1
  178. package/.next/standalone/.next/server/app/api/network/projects/route.js.nft.json +1 -1
  179. package/.next/standalone/.next/server/app/api/network/search/route.js.nft.json +1 -1
  180. package/.next/standalone/.next/server/app/api/network/sessions/[id]/messages/route.js.nft.json +1 -1
  181. package/.next/standalone/.next/server/app/api/network/sessions/[id]/route.js.nft.json +1 -1
  182. package/.next/standalone/.next/server/app/api/network/sessions/route.js.nft.json +1 -1
  183. package/.next/standalone/.next/server/app/api/network/workspaces/[id]/route.js.nft.json +1 -1
  184. package/.next/standalone/.next/server/app/api/network/workspaces/route.js +1 -1
  185. package/.next/standalone/.next/server/app/api/network/workspaces/route.js.nft.json +1 -1
  186. package/.next/standalone/.next/server/app/api/panes/[id]/route.js.nft.json +1 -1
  187. package/.next/standalone/.next/server/app/api/panes/route.js.nft.json +1 -1
  188. package/.next/standalone/.next/server/app/api/projects/route.js.nft.json +1 -1
  189. package/.next/standalone/.next/server/app/api/search/route.js.nft.json +1 -1
  190. package/.next/standalone/.next/server/app/api/sessions/[id]/chat/route.js.nft.json +1 -1
  191. package/.next/standalone/.next/server/app/api/sessions/[id]/messages/route.js.nft.json +1 -1
  192. package/.next/standalone/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  193. package/.next/standalone/.next/server/app/api/sessions/route.js.nft.json +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.nft.json +1 -1
  196. package/.next/standalone/.next/server/app/api/tier/route.js.nft.json +1 -1
  197. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/[key]/route.js.nft.json +1 -1
  198. package/.next/standalone/.next/server/app/api/workspaces/[id]/context/route.js.nft.json +1 -1
  199. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/[msgId]/route.js.nft.json +1 -1
  200. package/.next/standalone/.next/server/app/api/workspaces/[id]/messages/route.js.nft.json +1 -1
  201. package/.next/standalone/.next/server/app/api/workspaces/[id]/route.js.nft.json +1 -1
  202. package/.next/standalone/.next/server/app/api/workspaces/[id]/sessions/route.js.nft.json +1 -1
  203. package/.next/standalone/.next/server/app/api/workspaces/route.js.nft.json +1 -1
  204. package/.next/standalone/.next/server/app/cortex.html +1 -1
  205. package/.next/standalone/.next/server/app/cortex.rsc +17 -16
  206. package/.next/standalone/.next/server/app/cortex.segments/!KGRlc2t0b3Ap/cortex/__PAGE__.segment.rsc +2 -2
  207. package/.next/standalone/.next/server/app/cortex.segments/!KGRlc2t0b3Ap/cortex.segment.rsc +1 -1
  208. package/.next/standalone/.next/server/app/cortex.segments/!KGRlc2t0b3Ap.segment.rsc +5 -4
  209. package/.next/standalone/.next/server/app/cortex.segments/_full.segment.rsc +17 -16
  210. package/.next/standalone/.next/server/app/cortex.segments/_head.segment.rsc +1 -1
  211. package/.next/standalone/.next/server/app/cortex.segments/_index.segment.rsc +2 -2
  212. package/.next/standalone/.next/server/app/cortex.segments/_tree.segment.rsc +2 -2
  213. package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
  214. package/.next/standalone/.next/server/app/login.html +1 -1
  215. package/.next/standalone/.next/server/app/login.rsc +2 -2
  216. package/.next/standalone/.next/server/app/login.segments/_full.segment.rsc +2 -2
  217. package/.next/standalone/.next/server/app/login.segments/_head.segment.rsc +1 -1
  218. package/.next/standalone/.next/server/app/login.segments/_index.segment.rsc +2 -2
  219. package/.next/standalone/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  220. package/.next/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
  221. package/.next/standalone/.next/server/app/login.segments/login.segment.rsc +1 -1
  222. package/.next/standalone/.next/server/app/m/page.js.nft.json +1 -1
  223. package/.next/standalone/.next/server/app/m/page_client-reference-manifest.js +1 -1
  224. package/.next/standalone/.next/server/app/m/projects/page.js.nft.json +1 -1
  225. package/.next/standalone/.next/server/app/m/projects/page_client-reference-manifest.js +1 -1
  226. package/.next/standalone/.next/server/app/m/projects.html +1 -1
  227. package/.next/standalone/.next/server/app/m/projects.rsc +4 -4
  228. package/.next/standalone/.next/server/app/m/projects.segments/_full.segment.rsc +4 -4
  229. package/.next/standalone/.next/server/app/m/projects.segments/_head.segment.rsc +1 -1
  230. package/.next/standalone/.next/server/app/m/projects.segments/_index.segment.rsc +2 -2
  231. package/.next/standalone/.next/server/app/m/projects.segments/_tree.segment.rsc +2 -2
  232. package/.next/standalone/.next/server/app/m/projects.segments/m/projects/__PAGE__.segment.rsc +2 -2
  233. package/.next/standalone/.next/server/app/m/projects.segments/m/projects.segment.rsc +1 -1
  234. package/.next/standalone/.next/server/app/m/projects.segments/m.segment.rsc +2 -2
  235. package/.next/standalone/.next/server/app/m/sessions/[id]/page.js.nft.json +1 -1
  236. package/.next/standalone/.next/server/app/m/sessions/[id]/page_client-reference-manifest.js +1 -1
  237. package/.next/standalone/.next/server/app/m/sessions/page.js.nft.json +1 -1
  238. package/.next/standalone/.next/server/app/m/sessions/page_client-reference-manifest.js +1 -1
  239. package/.next/standalone/.next/server/app/m/sessions.html +1 -1
  240. package/.next/standalone/.next/server/app/m/sessions.rsc +4 -4
  241. package/.next/standalone/.next/server/app/m/sessions.segments/_full.segment.rsc +4 -4
  242. package/.next/standalone/.next/server/app/m/sessions.segments/_head.segment.rsc +1 -1
  243. package/.next/standalone/.next/server/app/m/sessions.segments/_index.segment.rsc +2 -2
  244. package/.next/standalone/.next/server/app/m/sessions.segments/_tree.segment.rsc +2 -2
  245. package/.next/standalone/.next/server/app/m/sessions.segments/m/sessions/__PAGE__.segment.rsc +2 -2
  246. package/.next/standalone/.next/server/app/m/sessions.segments/m/sessions.segment.rsc +1 -1
  247. package/.next/standalone/.next/server/app/m/sessions.segments/m.segment.rsc +2 -2
  248. package/.next/standalone/.next/server/app/m/settings/page.js.nft.json +1 -1
  249. package/.next/standalone/.next/server/app/m/settings/page_client-reference-manifest.js +1 -1
  250. package/.next/standalone/.next/server/app/m/settings.html +1 -1
  251. package/.next/standalone/.next/server/app/m/settings.rsc +4 -4
  252. package/.next/standalone/.next/server/app/m/settings.segments/_full.segment.rsc +4 -4
  253. package/.next/standalone/.next/server/app/m/settings.segments/_head.segment.rsc +1 -1
  254. package/.next/standalone/.next/server/app/m/settings.segments/_index.segment.rsc +2 -2
  255. package/.next/standalone/.next/server/app/m/settings.segments/_tree.segment.rsc +2 -2
  256. package/.next/standalone/.next/server/app/m/settings.segments/m/settings/__PAGE__.segment.rsc +2 -2
  257. package/.next/standalone/.next/server/app/m/settings.segments/m/settings.segment.rsc +1 -1
  258. package/.next/standalone/.next/server/app/m/settings.segments/m.segment.rsc +2 -2
  259. package/.next/standalone/.next/server/app/m/terminal/page.js.nft.json +1 -1
  260. package/.next/standalone/.next/server/app/m/terminal/page_client-reference-manifest.js +1 -1
  261. package/.next/standalone/.next/server/app/m/terminal.html +1 -1
  262. package/.next/standalone/.next/server/app/m/terminal.rsc +4 -4
  263. package/.next/standalone/.next/server/app/m/terminal.segments/_full.segment.rsc +4 -4
  264. package/.next/standalone/.next/server/app/m/terminal.segments/_head.segment.rsc +1 -1
  265. package/.next/standalone/.next/server/app/m/terminal.segments/_index.segment.rsc +2 -2
  266. package/.next/standalone/.next/server/app/m/terminal.segments/_tree.segment.rsc +2 -2
  267. package/.next/standalone/.next/server/app/m/terminal.segments/m/terminal/__PAGE__.segment.rsc +2 -2
  268. package/.next/standalone/.next/server/app/m/terminal.segments/m/terminal.segment.rsc +1 -1
  269. package/.next/standalone/.next/server/app/m/terminal.segments/m.segment.rsc +2 -2
  270. package/.next/standalone/.next/server/app/m.html +1 -1
  271. package/.next/standalone/.next/server/app/m.rsc +4 -4
  272. package/.next/standalone/.next/server/app/m.segments/_full.segment.rsc +4 -4
  273. package/.next/standalone/.next/server/app/m.segments/_head.segment.rsc +1 -1
  274. package/.next/standalone/.next/server/app/m.segments/_index.segment.rsc +2 -2
  275. package/.next/standalone/.next/server/app/m.segments/_tree.segment.rsc +2 -2
  276. package/.next/standalone/.next/server/app/m.segments/m/__PAGE__.segment.rsc +2 -2
  277. package/.next/standalone/.next/server/app/m.segments/m.segment.rsc +2 -2
  278. package/.next/standalone/.next/server/app/network.html +1 -1
  279. package/.next/standalone/.next/server/app/network.rsc +17 -16
  280. package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap/network/__PAGE__.segment.rsc +2 -2
  281. package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap/network.segment.rsc +1 -1
  282. package/.next/standalone/.next/server/app/network.segments/!KGRlc2t0b3Ap.segment.rsc +5 -4
  283. package/.next/standalone/.next/server/app/network.segments/_full.segment.rsc +17 -16
  284. package/.next/standalone/.next/server/app/network.segments/_head.segment.rsc +1 -1
  285. package/.next/standalone/.next/server/app/network.segments/_index.segment.rsc +2 -2
  286. package/.next/standalone/.next/server/app/network.segments/_tree.segment.rsc +2 -2
  287. package/.next/standalone/.next/server/app/projects.html +1 -1
  288. package/.next/standalone/.next/server/app/projects.rsc +17 -16
  289. package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap/projects/__PAGE__.segment.rsc +2 -2
  290. package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap/projects.segment.rsc +1 -1
  291. package/.next/standalone/.next/server/app/projects.segments/!KGRlc2t0b3Ap.segment.rsc +5 -4
  292. package/.next/standalone/.next/server/app/projects.segments/_full.segment.rsc +17 -16
  293. package/.next/standalone/.next/server/app/projects.segments/_head.segment.rsc +1 -1
  294. package/.next/standalone/.next/server/app/projects.segments/_index.segment.rsc +2 -2
  295. package/.next/standalone/.next/server/app/projects.segments/_tree.segment.rsc +2 -2
  296. package/.next/standalone/.next/server/app/sessions.html +1 -1
  297. package/.next/standalone/.next/server/app/sessions.rsc +17 -16
  298. package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap/sessions/__PAGE__.segment.rsc +2 -2
  299. package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap/sessions.segment.rsc +1 -1
  300. package/.next/standalone/.next/server/app/sessions.segments/!KGRlc2t0b3Ap.segment.rsc +5 -4
  301. package/.next/standalone/.next/server/app/sessions.segments/_full.segment.rsc +17 -16
  302. package/.next/standalone/.next/server/app/sessions.segments/_head.segment.rsc +1 -1
  303. package/.next/standalone/.next/server/app/sessions.segments/_index.segment.rsc +2 -2
  304. package/.next/standalone/.next/server/app/sessions.segments/_tree.segment.rsc +2 -2
  305. package/.next/standalone/.next/server/app/settings.html +1 -1
  306. package/.next/standalone/.next/server/app/settings.rsc +17 -16
  307. package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap/settings/__PAGE__.segment.rsc +2 -2
  308. package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap/settings.segment.rsc +1 -1
  309. package/.next/standalone/.next/server/app/settings.segments/!KGRlc2t0b3Ap.segment.rsc +5 -4
  310. package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +17 -16
  311. package/.next/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  312. package/.next/standalone/.next/server/app/settings.segments/_index.segment.rsc +2 -2
  313. package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  314. package/.next/standalone/.next/server/app/terminal.html +1 -1
  315. package/.next/standalone/.next/server/app/terminal.rsc +17 -16
  316. package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap/terminal/__PAGE__.segment.rsc +2 -2
  317. package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap/terminal.segment.rsc +1 -1
  318. package/.next/standalone/.next/server/app/terminal.segments/!KGRlc2t0b3Ap.segment.rsc +5 -4
  319. package/.next/standalone/.next/server/app/terminal.segments/_full.segment.rsc +17 -16
  320. package/.next/standalone/.next/server/app/terminal.segments/_head.segment.rsc +1 -1
  321. package/.next/standalone/.next/server/app/terminal.segments/_index.segment.rsc +2 -2
  322. package/.next/standalone/.next/server/app/terminal.segments/_tree.segment.rsc +2 -2
  323. package/.next/standalone/.next/server/app/workspaces.html +1 -1
  324. package/.next/standalone/.next/server/app/workspaces.rsc +17 -16
  325. package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap/workspaces/__PAGE__.segment.rsc +2 -2
  326. package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap/workspaces.segment.rsc +1 -1
  327. package/.next/standalone/.next/server/app/workspaces.segments/!KGRlc2t0b3Ap.segment.rsc +5 -4
  328. package/.next/standalone/.next/server/app/workspaces.segments/_full.segment.rsc +17 -16
  329. package/.next/standalone/.next/server/app/workspaces.segments/_head.segment.rsc +1 -1
  330. package/.next/standalone/.next/server/app/workspaces.segments/_index.segment.rsc +2 -2
  331. package/.next/standalone/.next/server/app/workspaces.segments/_tree.segment.rsc +2 -2
  332. package/.next/standalone/.next/server/app-paths-manifest.json +7 -0
  333. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0041efe4._.js +98 -0
  334. package/.next/standalone/.next/server/chunks/[root-of-the-server]__00bf0ace._.js +2 -2
  335. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0e71d908._.js +2 -2
  336. package/.next/standalone/.next/server/chunks/[root-of-the-server]__0e9142f3._.js +2 -2
  337. package/.next/standalone/.next/server/chunks/[root-of-the-server]__10e47926._.js +1 -1
  338. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1665dc78._.js +2 -2
  339. package/.next/standalone/.next/server/chunks/[root-of-the-server]__175cbabf._.js +2 -2
  340. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1adae357._.js +2 -2
  341. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1d359752._.js +2 -2
  342. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1e8fabeb._.js +3 -3
  343. package/.next/standalone/.next/server/chunks/[root-of-the-server]__1f8deca0._.js +8 -8
  344. package/.next/standalone/.next/server/chunks/[root-of-the-server]__253fdda1._.js +2 -2
  345. package/.next/standalone/.next/server/chunks/[root-of-the-server]__28e6434f._.js +2 -2
  346. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2a386564._.js +1 -1
  347. package/.next/standalone/.next/server/chunks/[root-of-the-server]__2c20fb38._.js +2 -2
  348. package/.next/standalone/.next/server/chunks/[root-of-the-server]__309132cd._.js +1 -1
  349. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__cf3c60c2._.js → [root-of-the-server]__33fec964._.js} +4 -4
  350. package/.next/standalone/.next/server/chunks/[root-of-the-server]__3786d8ae._.js +1 -1
  351. package/.next/standalone/.next/server/chunks/[root-of-the-server]__3ae92407._.js +2 -2
  352. package/.next/standalone/.next/server/chunks/[root-of-the-server]__3beda9fe._.js +2 -2
  353. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4619e9bd._.js +1 -1
  354. package/.next/standalone/.next/server/chunks/[root-of-the-server]__4a051043._.js +1 -1
  355. package/.next/standalone/.next/server/chunks/[root-of-the-server]__508002e4._.js +2 -2
  356. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5086c373._.js +2 -2
  357. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5913e097._.js +2 -2
  358. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5b5f68d2._.js +2 -2
  359. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5c1f2459._.js +2 -2
  360. package/.next/standalone/.next/server/chunks/[root-of-the-server]__5ec8c977._.js +2 -2
  361. package/.next/standalone/.next/server/chunks/[root-of-the-server]__63cebc6c._.js +98 -0
  362. package/.next/standalone/.next/server/chunks/[root-of-the-server]__64d30d4d._.js +2 -2
  363. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6c54fc2e._.js +2 -2
  364. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6dc1fb7e._.js +1 -1
  365. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6e568102._.js +1 -1
  366. package/.next/standalone/.next/server/chunks/[root-of-the-server]__6faa04c0._.js +2 -2
  367. package/.next/standalone/.next/server/chunks/[root-of-the-server]__74a34dc3._.js +98 -0
  368. package/.next/standalone/.next/server/chunks/[root-of-the-server]__7e7250a4._.js +3 -3
  369. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8309e0a4._.js +2 -2
  370. package/.next/standalone/.next/server/chunks/[root-of-the-server]__86cc0e2b._.js +6 -6
  371. package/.next/standalone/.next/server/chunks/[root-of-the-server]__89c2565a._.js +2 -2
  372. package/.next/standalone/.next/server/chunks/[root-of-the-server]__8d178ad9._.js +2 -2
  373. package/.next/standalone/.next/server/chunks/[root-of-the-server]__93ee06f3._.js +3 -3
  374. package/.next/standalone/.next/server/chunks/[root-of-the-server]__9e4c154a._.js +2 -2
  375. package/.next/standalone/.next/server/chunks/[root-of-the-server]__a9d2e1d3._.js +2 -2
  376. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ae53d343._.js +2 -2
  377. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b3a04cef._.js +2 -2
  378. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b4270b77._.js +3 -0
  379. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b6b6ce60._.js +1 -1
  380. package/.next/standalone/.next/server/chunks/[root-of-the-server]__b9545dd9._.js +1 -1
  381. package/.next/standalone/.next/server/chunks/[root-of-the-server]__c88b63f7._.js +98 -0
  382. package/.next/standalone/.next/server/chunks/{[root-of-the-server]__eee4c5e8._.js → [root-of-the-server]__cba5f007._.js} +2 -2
  383. package/.next/standalone/.next/server/chunks/[root-of-the-server]__cbf4ceb0._.js +2 -2
  384. package/.next/standalone/.next/server/chunks/[root-of-the-server]__cefdba2f._.js +2 -2
  385. package/.next/standalone/.next/server/chunks/[root-of-the-server]__cf9e82bb._.js +2 -2
  386. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d2897392._.js +2 -2
  387. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d3b2d856._.js +2 -2
  388. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d73273ca._.js +1 -1
  389. package/.next/standalone/.next/server/chunks/[root-of-the-server]__d8417eb6._.js +2 -2
  390. package/.next/standalone/.next/server/chunks/[root-of-the-server]__dc2a55de._.js +2 -2
  391. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e0d4690b._.js +3 -3
  392. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e678dd53._.js +3 -0
  393. package/.next/standalone/.next/server/chunks/[root-of-the-server]__e9223f55._.js +2 -2
  394. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ea630076._.js +3 -3
  395. package/.next/standalone/.next/server/chunks/[root-of-the-server]__eb8acb65._.js +1 -1
  396. package/.next/standalone/.next/server/chunks/[root-of-the-server]__f26ca49d._.js +1 -1
  397. package/.next/standalone/.next/server/chunks/[root-of-the-server]__f33e1101._.js +1 -1
  398. package/.next/standalone/.next/server/chunks/[root-of-the-server]__f515f865._.js +2 -2
  399. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fceb5d60._.js +98 -0
  400. package/.next/standalone/.next/server/chunks/[root-of-the-server]__fed41403._.js +2 -2
  401. package/.next/standalone/.next/server/chunks/[root-of-the-server]__ff2e98c2._.js +2 -2
  402. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_cortex_curation_assess_route_actions_3e8ef2a6.js +3 -0
  403. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_cortex_curation_publish_route_actions_49238be3.js +3 -0
  404. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_cortex_curation_refine_route_actions_05675688.js +3 -0
  405. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_cortex_curation_review_route_actions_5cbb5f6b.js +3 -0
  406. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_cortex_curation_seed_route_actions_21084bdb.js +3 -0
  407. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_cortex_marketplace_browse_route_actions_7ed0768c.js +3 -0
  408. package/.next/standalone/.next/server/chunks/_next-internal_server_app_api_cortex_marketplace_preview_route_actions_38d4cc17.js +3 -0
  409. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__19afc53d._.js +3 -0
  410. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__66aca5d4._.js +1 -1
  411. package/.next/standalone/.next/server/chunks/ssr/{[root-of-the-server]__efef0a06._.js → [root-of-the-server]__ca5beb09._.js} +2 -2
  412. package/.next/standalone/.next/server/chunks/ssr/{_7dd2ac82._.js → _078dd64d._.js} +1 -1
  413. package/.next/standalone/.next/server/chunks/ssr/_163d0838._.js +3 -0
  414. package/.next/standalone/.next/server/chunks/ssr/{_a4eeff0d._.js → _2230ad2d._.js} +2 -2
  415. package/.next/standalone/.next/server/chunks/ssr/{_9303a965._.js → _701606d5._.js} +1 -1
  416. package/.next/standalone/.next/server/chunks/ssr/_72b1de37._.js +3 -0
  417. package/.next/standalone/.next/server/chunks/ssr/{_d39bcfda._.js → _93ef0f79._.js} +2 -2
  418. package/.next/standalone/.next/server/chunks/ssr/_950142a4._.js +1 -1
  419. package/.next/standalone/.next/server/chunks/ssr/_a22b5eb0._.js +3 -0
  420. package/.next/standalone/.next/server/chunks/ssr/_aeeff784._.js +3 -0
  421. package/.next/standalone/.next/server/chunks/ssr/_c1cfdd09._.js +3 -0
  422. package/.next/standalone/.next/server/chunks/ssr/_c2d3f6de._.js +3 -0
  423. package/.next/standalone/.next/server/chunks/ssr/{_8167090e._.js → _db2fec84._.js} +2 -2
  424. package/.next/standalone/.next/server/chunks/ssr/src_02bae6e5._.js +3 -0
  425. package/.next/standalone/.next/server/chunks/ssr/src_app_(desktop)_terminal_page_tsx_de5e8d85._.js +2 -2
  426. package/.next/standalone/.next/server/chunks/ssr/src_components_terminal_terminal-pane_tsx_803c5e2c._.js +2 -2
  427. package/.next/standalone/.next/server/edge/chunks/_d73df637._.js +1 -1
  428. package/.next/standalone/.next/server/middleware-manifest.json +5 -5
  429. package/.next/standalone/.next/server/pages/404.html +1 -1
  430. package/.next/standalone/.next/server/pages/500.html +2 -2
  431. package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
  432. package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
  433. package/.next/standalone/.next/static/chunks/25b7a243a404a1a7.js +1 -0
  434. package/.next/standalone/.next/static/chunks/2b997e211a5d547b.js +1 -0
  435. package/.next/standalone/.next/static/chunks/5e08abb00653754a.js +1 -0
  436. package/.next/standalone/.next/static/chunks/61f2ed39b75b1efc.js +1 -0
  437. package/.next/standalone/.next/static/chunks/6c78a1dfa7ec2959.css +3 -0
  438. package/.next/standalone/.next/static/chunks/7246f1ee445f7024.js +1 -0
  439. package/.next/standalone/.next/static/chunks/7424664c6ffa94bd.js +1 -0
  440. package/.next/standalone/.next/static/chunks/7e0091ab6c5ee8bd.js +1 -0
  441. package/.next/standalone/.next/static/chunks/8b3f4572fec83caa.js +5 -0
  442. package/.next/standalone/.next/static/chunks/{a7b2795949a6c63e.js → 9899cf4c2bdbe61d.js} +2 -2
  443. package/.next/standalone/.next/static/chunks/ac339e970df82fa5.js +5 -0
  444. package/.next/standalone/.next/static/chunks/{0e61e67b7b8fc3f3.js → c418112e102673ce.js} +1 -1
  445. package/.next/standalone/.next/static/chunks/e2f0a2330dedff4b.js +85 -0
  446. package/.next/standalone/.next/static/chunks/f0c8b3f8cc1939ec.js +1 -0
  447. package/.next/standalone/.next/static/chunks/f9f2628207848ac2.js +1 -0
  448. package/.next/standalone/bin/cortex-hook.sh +62 -62
  449. package/.next/standalone/bin/cortex-mcp.js +60 -60
  450. package/.next/standalone/docs/superpowers/plans/2026-03-13-cortex-wiring.md +1387 -1387
  451. package/.next/standalone/docs/superpowers/plans/2026-03-14-cortex-v2-entity-graph.md +1923 -1923
  452. package/.next/standalone/docs/superpowers/plans/2026-03-14-cortex-v2-knowledge-evolution.md +1113 -1113
  453. package/.next/standalone/docs/superpowers/plans/2026-03-15-cortex-v2-boundary-engine.md +853 -853
  454. package/.next/standalone/docs/superpowers/plans/2026-03-15-cortex-v2-context-engine.md +1274 -1274
  455. package/.next/standalone/docs/superpowers/plans/2026-03-15-cortex-v2-signal-ingestion.md +933 -933
  456. package/.next/standalone/docs/superpowers/plans/2026-03-16-cortex-lobes.md +1080 -1080
  457. package/.next/standalone/docs/superpowers/plans/2026-03-16-cortex-v2-gravity-system.md +768 -768
  458. package/.next/standalone/docs/superpowers/plans/2026-03-16-cortex-v2-ui.md +1108 -1108
  459. package/.next/standalone/docs/superpowers/plans/2026-03-18-cortex-ui-integration.md +1846 -0
  460. package/.next/standalone/docs/superpowers/specs/2026-03-13-cortex-wiring-design.md +268 -268
  461. package/.next/standalone/docs/superpowers/specs/2026-03-14-cortex-v2-design.md +623 -623
  462. package/.next/standalone/docs/superpowers/specs/2026-03-16-cortex-lobes-design.md +263 -263
  463. package/.next/standalone/docs/superpowers/specs/2026-03-16-cortex-v2-ui-design.md +240 -240
  464. package/.next/standalone/docs/superpowers/specs/2026-03-18-cortex-ui-integration-design.md +341 -0
  465. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/README.md +46 -0
  466. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  467. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/index.js +1 -0
  468. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  469. package/.next/standalone/node_modules/@img/sharp-libvips-linux-x64/package.json +42 -0
  470. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +46 -0
  471. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +221 -0
  472. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
  473. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  474. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
  475. package/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
  476. package/.next/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  477. package/.next/standalone/node_modules/@img/{sharp-win32-x64 → sharp-linux-x64}/package.json +46 -39
  478. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  479. package/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
  480. package/.next/standalone/package.json +102 -102
  481. package/.next/standalone/server.js +1 -1
  482. package/.next/standalone/src/app/(desktop)/cortex/page.tsx +78 -75
  483. package/.next/standalone/src/app/api/cortex/context/route.ts +78 -78
  484. package/.next/standalone/src/app/api/cortex/curation/assess/route.ts +27 -0
  485. package/.next/standalone/src/app/api/cortex/curation/publish/route.ts +23 -0
  486. package/.next/standalone/src/app/api/cortex/curation/refine/route.ts +23 -0
  487. package/.next/standalone/src/app/api/cortex/curation/review/route.ts +29 -0
  488. package/.next/standalone/src/app/api/cortex/curation/seed/route.ts +23 -0
  489. package/.next/standalone/src/app/api/cortex/export/route.ts +40 -40
  490. package/.next/standalone/src/app/api/cortex/federation/pending/route.ts +20 -20
  491. package/.next/standalone/src/app/api/cortex/federation/resolve/route.ts +43 -43
  492. package/.next/standalone/src/app/api/cortex/federation/search/route.ts +35 -35
  493. package/.next/standalone/src/app/api/cortex/federation/teach/route.ts +76 -76
  494. package/.next/standalone/src/app/api/cortex/graph/edges/route.ts +112 -112
  495. package/.next/standalone/src/app/api/cortex/graph/entities/[id]/route.ts +73 -73
  496. package/.next/standalone/src/app/api/cortex/graph/entities/route.ts +75 -75
  497. package/.next/standalone/src/app/api/cortex/graph/populate/route.ts +203 -203
  498. package/.next/standalone/src/app/api/cortex/import/route.ts +75 -43
  499. package/.next/standalone/src/app/api/cortex/import/status/route.ts +15 -15
  500. package/.next/standalone/src/app/api/cortex/ingest/bootstrap/route.ts +29 -29
  501. package/.next/standalone/src/app/api/cortex/ingest/status/route.ts +15 -15
  502. package/.next/standalone/src/app/api/cortex/knowledge/[id]/route.ts +91 -91
  503. package/.next/standalone/src/app/api/cortex/knowledge/route.ts +93 -93
  504. package/.next/standalone/src/app/api/cortex/lobes/[id]/route.ts +67 -67
  505. package/.next/standalone/src/app/api/cortex/lobes/route.ts +22 -22
  506. package/.next/standalone/src/app/api/cortex/lobes/share/route.ts +80 -80
  507. package/.next/standalone/src/app/api/cortex/marketplace/browse/route.ts +43 -0
  508. package/.next/standalone/src/app/api/cortex/marketplace/preview/route.ts +46 -0
  509. package/.next/standalone/src/app/api/cortex/mcp/call/route.ts +11 -11
  510. package/.next/standalone/src/app/api/cortex/mcp/tools/route.ts +6 -6
  511. package/.next/standalone/src/app/api/cortex/search/route.ts +43 -43
  512. package/.next/standalone/src/app/api/cortex/settings/route.ts +33 -33
  513. package/.next/standalone/src/app/api/cortex/status/route.ts +169 -129
  514. package/.next/standalone/src/app/api/cortex/timeline/route.ts +42 -42
  515. package/.next/standalone/src/app/api/cortex/usage/route.ts +31 -31
  516. package/.next/standalone/src/app/api/cortex/workspace/[id]/context/route.ts +41 -41
  517. package/.next/standalone/src/components/cortex/constants.ts +29 -0
  518. package/.next/standalone/src/components/cortex/cortex-dashboard.tsx +304 -228
  519. package/.next/standalone/src/components/cortex/cortex-indicator.tsx +44 -44
  520. package/.next/standalone/src/components/cortex/cortex-panel.tsx +140 -140
  521. package/.next/standalone/src/components/cortex/cortex-settings.tsx +221 -221
  522. package/.next/standalone/src/components/cortex/curation-tab.tsx +810 -0
  523. package/.next/standalone/src/components/cortex/entity-detail.tsx +101 -101
  524. package/.next/standalone/src/components/cortex/entity-graph.tsx +382 -382
  525. package/.next/standalone/src/components/cortex/import-dialog.tsx +212 -0
  526. package/.next/standalone/src/components/cortex/injection-badge.tsx +72 -72
  527. package/.next/standalone/src/components/cortex/knowledge-card.tsx +109 -127
  528. package/.next/standalone/src/components/cortex/knowledge-tab.tsx +158 -56
  529. package/.next/standalone/src/components/cortex/lobe-settings.tsx +215 -199
  530. package/.next/standalone/src/components/cortex/marketplace-card.tsx +126 -0
  531. package/.next/standalone/src/components/cortex/marketplace-tab.tsx +113 -0
  532. package/.next/standalone/src/lib/cortex/config.ts +40 -40
  533. package/.next/standalone/src/lib/cortex/debug.ts +10 -10
  534. package/.next/standalone/src/lib/cortex/distillation/usage-store.ts +18 -18
  535. package/.next/standalone/src/lib/cortex/graph/resolver.ts +10 -10
  536. package/.next/standalone/src/lib/cortex/graph/types.ts +22 -22
  537. package/.next/standalone/src/lib/cortex/index.ts +56 -56
  538. package/.next/standalone/src/lib/cortex/ingestion/bootstrap.ts +14 -14
  539. package/.next/standalone/src/lib/cortex/knowledge/compat.ts +14 -14
  540. package/.next/standalone/src/lib/cortex/knowledge/contradiction.ts +10 -10
  541. package/.next/standalone/src/lib/cortex/knowledge/types.ts +67 -67
  542. package/.next/standalone/src/lib/cortex/lobes/config.ts +16 -16
  543. package/.next/standalone/src/lib/cortex/lobes/resolver.ts +8 -8
  544. package/.next/standalone/src/lib/cortex/lobes/shares.ts +14 -14
  545. package/.next/standalone/src/lib/cortex/mcp/server.ts +8 -8
  546. package/.next/standalone/src/lib/cortex/portability/exporter.ts +6 -6
  547. package/.next/standalone/src/lib/cortex/portability/importer.ts +10 -10
  548. package/.next/standalone/src/lib/cortex/retrieval/context-engine.ts +10 -10
  549. package/.next/standalone/src/lib/cortex/types.ts +39 -38
  550. package/.next/standalone/tsconfig.json +34 -34
  551. package/LICENSE +661 -661
  552. package/README.md +131 -131
  553. package/bin/cortex-hook.sh +62 -62
  554. package/bin/cortex-mcp.js +60 -60
  555. package/bin/fix-standalone-externals.js +79 -79
  556. package/bin/lib/auto-setup.js +110 -110
  557. package/bin/mdns-service.js +171 -171
  558. package/bin/postinstall.js +35 -35
  559. package/bin/setup-admin.js +195 -195
  560. package/bin/spaces-dev.js +208 -208
  561. package/bin/spaces-install.js +599 -599
  562. package/bin/spaces-reset-totp.js +50 -50
  563. package/bin/spaces-service.js +1020 -1020
  564. package/bin/spaces-setup.js +253 -253
  565. package/bin/spaces.js +776 -728
  566. package/bin/ssh-auth-keys.sh +68 -68
  567. package/bin/terminal-server.js +1649 -1646
  568. package/package.json +102 -102
  569. package/.next/standalone/.claude/settings.local.json +0 -55
  570. package/.next/standalone/.claude/spaces-env.json +0 -1
  571. package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0ecce08b._.js +0 -3
  572. package/.next/standalone/.next/server/chunks/ssr/_7e63066a._.js +0 -3
  573. package/.next/standalone/.next/server/chunks/ssr/_a012c43b._.js +0 -3
  574. package/.next/standalone/.next/server/chunks/ssr/_b4db3983._.js +0 -3
  575. package/.next/standalone/.next/server/chunks/ssr/_cd50a174._.js +0 -3
  576. package/.next/standalone/.next/server/chunks/ssr/_e7a9e2b0._.js +0 -3
  577. package/.next/standalone/.next/server/chunks/ssr/_ed6c285b._.js +0 -3
  578. package/.next/standalone/.next/server/chunks/ssr/src_133a7c8a._.js +0 -3
  579. package/.next/standalone/.next/static/chunks/17d164c01fa1aaa9.js +0 -5
  580. package/.next/standalone/.next/static/chunks/19da759dde107f02.js +0 -1
  581. package/.next/standalone/.next/static/chunks/58d78765e5140dcb.js +0 -1
  582. package/.next/standalone/.next/static/chunks/596bd56e0ad09173.js +0 -5
  583. package/.next/standalone/.next/static/chunks/78dd908e70bf8c4b.js +0 -85
  584. package/.next/standalone/.next/static/chunks/79aacab676df80c4.js +0 -1
  585. package/.next/standalone/.next/static/chunks/846d6ef408f69390.js +0 -1
  586. package/.next/standalone/.next/static/chunks/8de5e432a2fc563a.js +0 -1
  587. package/.next/standalone/.next/static/chunks/9196173f0d081f2c.js +0 -1
  588. package/.next/standalone/.next/static/chunks/9bd8a119aaeafc9e.js +0 -1
  589. package/.next/standalone/.next/static/chunks/e35e863c09511a51.js +0 -1
  590. package/.next/standalone/.next/static/chunks/f644c11ace7a0d9d.css +0 -3
  591. package/.next/standalone/.spaces/cortex-context.md +0 -70
  592. package/.next/standalone/node_modules/@img/sharp-win32-x64/lib/sharp-win32-x64.node +0 -0
  593. package/.next/standalone/src/components/cortex/context-tab.tsx +0 -171
  594. /package/.next/standalone/.next/static/{B207XFa7QvXAYS7Sqq2_4 → 77VYbwIoyxFNr5xevTrCu}/_buildManifest.js +0 -0
  595. /package/.next/standalone/.next/static/{B207XFa7QvXAYS7Sqq2_4 → 77VYbwIoyxFNr5xevTrCu}/_clientMiddlewareManifest.json +0 -0
  596. /package/.next/standalone/.next/static/{B207XFa7QvXAYS7Sqq2_4 → 77VYbwIoyxFNr5xevTrCu}/_ssgManifest.js +0 -0
  597. /package/.next/standalone/node_modules/@img/{sharp-win32-x64 → sharp-libvips-linux-x64}/versions.json +0 -0
package/package.json CHANGED
@@ -1,102 +1,102 @@
1
- {
2
- "name": "@jlongo78/agent-spaces",
3
- "version": "0.7.3",
4
- "description": "Agent workspace manager for Claude, Codex, Gemini, and more",
5
- "bin": {
6
- "spaces": "./bin/spaces.js"
7
- },
8
- "files": [
9
- "bin/",
10
- ".next/standalone/"
11
- ],
12
- "engines": {
13
- "node": ">=20.9.0"
14
- },
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/jlongo78/spaces.git"
18
- },
19
- "keywords": [
20
- "ai",
21
- "agent",
22
- "workspace",
23
- "terminal",
24
- "claude",
25
- "codex",
26
- "gemini"
27
- ],
28
- "homepage": "http://www.agentspaces.co",
29
- "license": "AGPL-3.0-only",
30
- "scripts": {
31
- "start": "node bin/spaces.js",
32
- "dev": "node bin/spaces-dev.js",
33
- "build": "cross-env STANDALONE=1 next build && node -e \"const fs=require('fs');fs.cpSync('.next/static','.next/standalone/.next/static',{recursive:true});fs.cpSync('public','.next/standalone/public',{recursive:true})\" && node bin/fix-standalone-externals.js",
34
- "prepublishOnly": "npm run build",
35
- "setup": "node bin/spaces-setup.js",
36
- "setup-admin": "node bin/setup-admin.js",
37
- "server:build": "next build",
38
- "server:start": "next start --port 3457",
39
- "test": "vitest run",
40
- "test:watch": "vitest",
41
- "test:coverage": "vitest run --coverage",
42
- "lint": "eslint"
43
- },
44
- "dependencies": {
45
- "@huggingface/transformers": "^3.8.1",
46
- "@lancedb/lancedb": "^0.26.2",
47
- "@modelcontextprotocol/sdk": "^1.27.1",
48
- "@react-three/drei": "^10.7.7",
49
- "@react-three/fiber": "^9.5.0",
50
- "@react-three/postprocessing": "^3.0.4",
51
- "better-sqlite3": "^12.6.2",
52
- "bonjour-service": "^1.3.0",
53
- "force-graph": "^1.51.2",
54
- "node-pty": "^1.1.0",
55
- "three": "^0.183.2",
56
- "ws": "^8.19.0"
57
- },
58
- "devDependencies": {
59
- "@tailwindcss/postcss": "^4",
60
- "@tanstack/react-query": "^5.90.21",
61
- "@types/better-sqlite3": "^7.6.13",
62
- "@types/node": "^20",
63
- "@types/qrcode": "^1.5.6",
64
- "@types/react": "^19",
65
- "@types/react-dom": "^19",
66
- "@types/three": "^0.183.1",
67
- "@types/ws": "^8.18.1",
68
- "@vitest/coverage-v8": "^4.0.18",
69
- "@xterm/addon-fit": "^0.11.0",
70
- "@xterm/addon-web-links": "^0.12.0",
71
- "chokidar": "^5.0.0",
72
- "class-variance-authority": "^0.7.1",
73
- "clsx": "^2.1.1",
74
- "cross-env": "^10.1.0",
75
- "date-fns": "^4.1.0",
76
- "eslint": "^9",
77
- "eslint-config-next": "16.1.6",
78
- "geist": "^1.4.1",
79
- "lucide-react": "^0.575.0",
80
- "next": "16.1.6",
81
- "otpauth": "^9.5.0",
82
- "posthog-js": "^1.352.0",
83
- "posthog-node": "^5.21.2",
84
- "qrcode": "^1.5.4",
85
- "react": "19.2.3",
86
- "react-dom": "19.2.3",
87
- "react-markdown": "^10.1.0",
88
- "recharts": "^3.7.0",
89
- "rehype-highlight": "^7.0.2",
90
- "remark-gfm": "^4.0.1",
91
- "tailwind-merge": "^3.5.0",
92
- "tailwindcss": "^4",
93
- "typescript": "^5",
94
- "vitest": "^4.0.18",
95
- "xterm": "^5.3.0"
96
- },
97
- "optionalDependencies": {
98
- "@types/qrcode": "^1.5.6",
99
- "otpauth": "^9.5.0",
100
- "qrcode": "^1.5.4"
101
- }
102
- }
1
+ {
2
+ "name": "@jlongo78/agent-spaces",
3
+ "version": "0.7.5",
4
+ "description": "Agent workspace manager for Claude, Codex, Gemini, and more",
5
+ "bin": {
6
+ "spaces": "./bin/spaces.js"
7
+ },
8
+ "files": [
9
+ "bin/",
10
+ ".next/standalone/"
11
+ ],
12
+ "engines": {
13
+ "node": ">=20.9.0"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/jlongo78/spaces.git"
18
+ },
19
+ "keywords": [
20
+ "ai",
21
+ "agent",
22
+ "workspace",
23
+ "terminal",
24
+ "claude",
25
+ "codex",
26
+ "gemini"
27
+ ],
28
+ "homepage": "http://www.agentspaces.co",
29
+ "license": "AGPL-3.0-only",
30
+ "scripts": {
31
+ "start": "node bin/spaces.js",
32
+ "dev": "node bin/spaces-dev.js",
33
+ "build": "cross-env STANDALONE=1 next build && node -e \"const fs=require('fs');fs.cpSync('.next/static','.next/standalone/.next/static',{recursive:true});fs.cpSync('public','.next/standalone/public',{recursive:true})\" && node bin/fix-standalone-externals.js",
34
+ "prepublishOnly": "npm run build",
35
+ "setup": "node bin/spaces-setup.js",
36
+ "setup-admin": "node bin/setup-admin.js",
37
+ "server:build": "next build",
38
+ "server:start": "next start --port 3457",
39
+ "test": "vitest run",
40
+ "test:watch": "vitest",
41
+ "test:coverage": "vitest run --coverage",
42
+ "lint": "eslint"
43
+ },
44
+ "dependencies": {
45
+ "@huggingface/transformers": "^3.8.1",
46
+ "@lancedb/lancedb": "^0.26.2",
47
+ "@modelcontextprotocol/sdk": "^1.27.1",
48
+ "@react-three/drei": "^10.7.7",
49
+ "@react-three/fiber": "^9.5.0",
50
+ "@react-three/postprocessing": "^3.0.4",
51
+ "better-sqlite3": "^12.6.2",
52
+ "bonjour-service": "^1.3.0",
53
+ "force-graph": "^1.51.2",
54
+ "node-pty": "^1.1.0",
55
+ "three": "^0.183.2",
56
+ "ws": "^8.19.0"
57
+ },
58
+ "devDependencies": {
59
+ "@tailwindcss/postcss": "^4",
60
+ "@tanstack/react-query": "^5.90.21",
61
+ "@types/better-sqlite3": "^7.6.13",
62
+ "@types/node": "^20",
63
+ "@types/qrcode": "^1.5.6",
64
+ "@types/react": "^19",
65
+ "@types/react-dom": "^19",
66
+ "@types/three": "^0.183.1",
67
+ "@types/ws": "^8.18.1",
68
+ "@vitest/coverage-v8": "^4.0.18",
69
+ "@xterm/addon-fit": "^0.11.0",
70
+ "@xterm/addon-web-links": "^0.12.0",
71
+ "chokidar": "^5.0.0",
72
+ "class-variance-authority": "^0.7.1",
73
+ "clsx": "^2.1.1",
74
+ "cross-env": "^10.1.0",
75
+ "date-fns": "^4.1.0",
76
+ "eslint": "^9",
77
+ "eslint-config-next": "16.1.6",
78
+ "geist": "^1.4.1",
79
+ "lucide-react": "^0.575.0",
80
+ "next": "16.1.6",
81
+ "otpauth": "^9.5.0",
82
+ "posthog-js": "^1.352.0",
83
+ "posthog-node": "^5.21.2",
84
+ "qrcode": "^1.5.4",
85
+ "react": "19.2.3",
86
+ "react-dom": "19.2.3",
87
+ "react-markdown": "^10.1.0",
88
+ "recharts": "^3.7.0",
89
+ "rehype-highlight": "^7.0.2",
90
+ "remark-gfm": "^4.0.1",
91
+ "tailwind-merge": "^3.5.0",
92
+ "tailwindcss": "^4",
93
+ "typescript": "^5",
94
+ "vitest": "^4.0.18",
95
+ "xterm": "^5.3.0"
96
+ },
97
+ "optionalDependencies": {
98
+ "@types/qrcode": "^1.5.6",
99
+ "otpauth": "^9.5.0",
100
+ "qrcode": "^1.5.4"
101
+ }
102
+ }
@@ -1,55 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npm view:*)",
5
- "Bash(npm publish:*)",
6
- "Bash(where spaces:*)",
7
- "Bash(node:*)",
8
- "Bash(npm run:*)",
9
- "Bash(curl:*)",
10
- "Bash(powershell:*)",
11
- "Bash(spaces service:*)",
12
- "Bash(git:*)",
13
- "Bash(npm whoami:*)",
14
- "Read(//c/Users/johns/.spaces/packages/pro/**)",
15
- "Bash(npx tsc)",
16
- "Bash(node -e \"console.log\\(require\\('./package.json'\\).version\\)\")"
17
- ]
18
- },
19
- "hooks": {
20
- "UserPromptSubmit": [
21
- {
22
- "hooks": [
23
- {
24
- "type": "command",
25
- "command": "SPACES_PORT=3457 SPACES_SESSION_SECRET=\"5a6d378a74905803b16c414ac9c4e6aa9e9a6e22a2a94f206ca2841388d5f193\" node \"C:\\Users\\johns\\.spaces\\packages\\cortex\\dist\\hooks\\cortex-hook.js\"",
26
- "timeout": 5
27
- }
28
- ]
29
- }
30
- ],
31
- "Stop": [
32
- {
33
- "hooks": [
34
- {
35
- "type": "command",
36
- "command": "SPACES_PORT=3457 SPACES_SESSION_SECRET=\"5a6d378a74905803b16c414ac9c4e6aa9e9a6e22a2a94f206ca2841388d5f193\" node \"C:\\Users\\johns\\.spaces\\packages\\cortex\\dist\\hooks\\cortex-learn-hook.js\"",
37
- "timeout": 10
38
- }
39
- ]
40
- }
41
- ]
42
- },
43
- "mcpServers": {
44
- "cortex": {
45
- "command": "node",
46
- "args": [
47
- "D:\\projects\\spaces\\bin\\cortex-mcp.js"
48
- ],
49
- "env": {
50
- "SPACES_URL": "http://localhost:3457",
51
- "SPACES_INTERNAL_TOKEN": "5a6d378a74905803"
52
- }
53
- }
54
- }
55
- }
@@ -1 +0,0 @@
1
- {"workspaceId":"2","port":3457}
@@ -1,3 +0,0 @@
1
- module.exports=[36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},81560,a=>{"use strict";let b=(0,a.i(60137).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);a.s(["Trash2",()=>b],81560)},68063,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={getDeploymentId:function(){return f},getDeploymentIdQueryOrEmptyString:function(){return g}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(){return!1}function g(){return""}},63588,a=>{"use strict";let b=(0,a.i(60137).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);a.s(["MessageSquare",()=>b],63588)},96101,a=>{"use strict";let b=(0,a.i(60137).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);a.s(["FolderOpen",()=>b],96101)},17545,a=>{"use strict";let b=(0,a.i(60137).default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);a.s(["Layers",()=>b],17545)},87532,a=>{"use strict";let b=(0,a.i(60137).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);a.s(["Search",()=>b],87532)},73570,a=>{"use strict";let b=(0,a.i(60137).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);a.s(["AlertTriangle",()=>b],73570)},61545,a=>{"use strict";let b=(0,a.i(60137).default)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]);a.s(["Brain",()=>b],61545)},60137,a=>{"use strict";var b=a.i(72131);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)};var e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let f=(0,b.forwardRef)(({color:a="currentColor",size:d=24,strokeWidth:f=2,absoluteStrokeWidth:g,className:h="",children:i,iconNode:j,...k},l)=>(0,b.createElement)("svg",{ref:l,...e,width:d,height:d,stroke:a,strokeWidth:g?24*Number(f)/Number(d):f,className:c("lucide",h),...!i&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(k)&&{"aria-hidden":"true"},...k},[...j.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(i)?i:[i]])),g=(a,e)=>{let g=(0,b.forwardRef)(({className:g,...h},i)=>(0,b.createElement)(f,{ref:i,iconNode:e,className:c(`lucide-${d(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,g),...h}));return g.displayName=d(a),g};a.s(["default",()=>g],60137)},98621,a=>{"use strict";function b(){for(var a,b,c=0,d="",e=arguments.length;c<e;c++)(a=arguments[c])&&(b=function a(b){var c,d,e="";if("string"==typeof b||"number"==typeof b)e+=b;else if("object"==typeof b)if(Array.isArray(b)){var f=b.length;for(c=0;c<f;c++)b[c]&&(d=a(b[c]))&&(e&&(e+=" "),e+=d)}else for(d in b)b[d]&&(e&&(e+=" "),e+=d);return e}(a))&&(d&&(d+=" "),d+=b);return d}a.s(["clsx",()=>b])},46058,(a,b,c)=>{"use strict";function d(a){if("function"!=typeof WeakMap)return null;var b=new WeakMap,c=new WeakMap;return(d=function(a){return a?c:b})(a)}c._=function(a,b){if(!b&&a&&a.__esModule)return a;if(null===a||"object"!=typeof a&&"function"!=typeof a)return{default:a};var c=d(b);if(c&&c.has(a))return c.get(a);var e={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in a)if("default"!==g&&Object.prototype.hasOwnProperty.call(a,g)){var h=f?Object.getOwnPropertyDescriptor(a,g):null;h&&(h.get||h.set)?Object.defineProperty(e,g,h):e[g]=a[g]}return e.default=a,c&&c.set(a,e),e}},39118,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={DEFAULT_SEGMENT_KEY:function(){return l},NOT_FOUND_SEGMENT_KEY:function(){return m},PAGE_SEGMENT_KEY:function(){return k},addSearchParamsIfPageSegment:function(){return i},computeSelectedLayoutSegment:function(){return j},getSegmentValue:function(){return f},getSelectedLayoutSegmentPath:function(){return function a(b,c,d=!0,e=[]){let g;if(d)g=b[1][c];else{let a=b[1];g=a.children??Object.values(a)[0]}if(!g)return e;let h=f(g[0]);return!h||h.startsWith(k)?e:(e.push(h),a(g,c,!1,e))}},isGroupSegment:function(){return g},isParallelRouteSegment:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});function f(a){return Array.isArray(a)?a[1]:a}function g(a){return"("===a[0]&&a.endsWith(")")}function h(a){return a.startsWith("@")&&"@children"!==a}function i(a,b){if(a.includes(k)){let a=JSON.stringify(b);return"{}"!==a?k+"?"+a:k}return a}function j(a,b){if(!a||0===a.length)return null;let c="children"===b?a[0]:a[a.length-1];return c===l?null:c}let k="__PAGE__",l="__DEFAULT__",m="/_not-found"},41997,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={BailoutToCSRError:function(){return g},isBailoutToCSRError:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f="BAILOUT_TO_CLIENT_SIDE_RENDERING";class g extends Error{constructor(a){super(`Bail out to client-side rendering: ${a}`),this.reason=a,this.digest=f}}function h(a){return"object"==typeof a&&null!==a&&"digest"in a&&a.digest===f}},21161,a=>{"use strict";let b=(0,a.i(60137).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Settings",()=>b],21161)},33508,a=>{"use strict";let b=(0,a.i(60137).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);a.s(["X",()=>b],33508)},44494,a=>{"use strict";let b=(0,a.i(60137).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);a.s(["Globe",()=>b],44494)},60246,a=>{"use strict";let b=(0,a.i(60137).default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);a.s(["Users",()=>b],60246)},52495,a=>{"use strict";let b=(0,a.i(60137).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);a.s(["ExternalLink",()=>b],52495)},90669,a=>{"use strict";let b=(0,a.i(60137).default)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);a.s(["Activity",()=>b],90669)},30617,a=>{"use strict";let b=(0,a.i(60137).default)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);a.s(["LayoutDashboard",()=>b],30617)},39761,a=>{"use strict";let b=(0,a.i(60137).default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);a.s(["BarChart3",()=>b],39761)},20005,a=>{"use strict";let b=(0,a.i(60137).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);a.s(["LogOut",()=>b],20005)},88731,a=>{"use strict";var b=a.i(87924),c=a.i(81560),d=a.i(73570),e=a.i(19032);let f={decision:"bg-blue-500/20 text-blue-400",preference:"bg-pink-500/20 text-pink-400",pattern:"bg-green-500/20 text-green-400",error_fix:"bg-amber-500/20 text-amber-400",context:"bg-gray-500/20 text-gray-400",code_pattern:"bg-cyan-500/20 text-cyan-400",command:"bg-orange-500/20 text-orange-400",conversation:"bg-slate-500/20 text-slate-400",summary:"bg-violet-500/20 text-violet-400"},g={public:"bg-green-500/20 text-green-400",internal:"bg-indigo-500/20 text-indigo-400",restricted:"bg-amber-500/20 text-amber-400",confidential:"bg-red-500/20 text-red-400"};function h({unit:a,onDelete:h,compact:i}){var j;let k,l=f[a.type]||f.context,m=(j=a.created,0===(k=Math.floor((Date.now()-new Date(j).getTime())/864e5))?"today":1===k?"1d ago":k<30?`${k}d ago`:k<365?`${Math.floor(k/30)}mo ago`:`${Math.floor(k/365)}y ago`),n=(a.contradiction_refs?.length??0)>0,o=a.evidence_score??a.confidence,p=null!=a.evidence_score?`${o.toFixed(2)} evidence`:`${Math.round(100*o)}%`,q=async()=>{await fetch((0,e.api)(`/api/cortex/knowledge/${a.id}`),{method:"DELETE"}),h?.(a.id)};return(0,b.jsxs)("div",{className:"group border border-white/5 rounded-lg p-3 hover:border-white/10 transition-colors",children:[(0,b.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,b.jsxs)("div",{className:"flex items-center gap-1 flex-wrap",children:[(0,b.jsx)("span",{className:`text-[10px] px-1.5 py-0.5 rounded font-medium ${l}`,children:a.type.replace("_"," ")}),a.sensitivity&&(0,b.jsx)("span",{className:`text-[10px] px-1.5 py-0.5 rounded font-medium ${g[a.sensitivity]||g.internal}`,children:a.sensitivity}),a.scope&&(0,b.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded font-medium bg-purple-500/10 text-purple-400",children:a.scope.level}),(a.stale_score??0)>.3&&(0,b.jsx)("span",{className:"text-[10px] px-1.5 py-0.5 rounded font-medium bg-amber-500/20 text-amber-400",children:"stale"}),n&&(0,b.jsxs)("span",{className:"text-[10px] px-1.5 py-0.5 rounded font-medium bg-amber-500/20 text-amber-400 flex items-center gap-0.5",children:[(0,b.jsx)(d.AlertTriangle,{className:"w-2.5 h-2.5"})," contested"]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 text-[10px] text-gray-500 shrink-0",children:[(0,b.jsx)("span",{children:m}),h&&(0,b.jsx)("button",{onClick:q,className:"opacity-0 group-hover:opacity-100 transition-opacity text-red-400 hover:text-red-300",children:(0,b.jsx)(c.Trash2,{className:"w-3 h-3"})})]})]}),(0,b.jsx)("p",{className:"text-xs text-gray-300 mt-1.5 leading-relaxed line-clamp-3",children:a.text}),!i&&a.origin&&(0,b.jsxs)("div",{className:"flex items-center gap-1.5 mt-1.5 text-[10px] text-gray-500 flex-wrap",children:[(0,b.jsxs)("span",{children:["by ",a.origin.creator_entity_id.replace("person-","")]}),(0,b.jsx)("span",{children:"·"}),(0,b.jsxs)("span",{children:["via ",a.origin.source_type.replace("_"," ")]}),(a.corroborations??0)>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{children:"·"}),(0,b.jsxs)("span",{className:"text-green-400",children:[a.corroborations," corr."]})]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,b.jsx)("div",{className:"flex-1 h-1 bg-white/5 rounded-full overflow-hidden",children:(0,b.jsx)("div",{className:"h-full bg-purple-500/50 rounded-full",style:{width:`${Math.round(100*o)}%`}})}),(0,b.jsx)("span",{className:"text-[10px] text-gray-500 tabular-nums",children:p})]})]})}a.s(["KnowledgeCard",()=>h])},91693,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(50944),f=a.i(30617),g=a.i(63588),h=a.i(96101),i=a.i(17545),j=a.i(39761),k=a.i(21161),l=a.i(87532),m=a.i(60246),n=a.i(90669),o=a.i(20005),p=a.i(44494),q=a.i(61545),r=a.i(68114),s=a.i(58037),t=a.i(19032),u=a.i(97498);function v({onClick:a}){let{hasCortex:d}=(0,u.useTier)(),[e,f]=(0,c.useState)(null);if((0,c.useEffect)(()=>{if(!d)return;let a=async()=>{try{let a=await fetch((0,t.api)("/api/cortex/status"));a.ok&&f(await a.json())}catch{}};a();let b=setInterval(a,3e4);return()=>clearInterval(b)},[d]),!d||!e?.enabled)return null;let g=Object.values(e.layers||{}).reduce((a,b)=>a+(b.count||0),0),h="healthy"===e.status?"text-purple-400":"text-red-400";return(0,b.jsxs)("button",{onClick:a,className:`flex items-center gap-1.5 px-2 py-1 rounded-md hover:bg-white/5 transition-colors ${h}`,title:`Cortex: ${g} knowledge units`,children:[(0,b.jsx)(q.Brain,{className:"w-4 h-4"}),(0,b.jsx)("span",{className:"text-xs tabular-nums",children:g}),(0,b.jsx)("span",{className:"text-[9px] font-medium uppercase tracking-wider opacity-60",children:"Beta"})]})}var w=a.i(33508),x=a.i(52495),y=a.i(88731);function z({open:a,onClose:e}){let[f,g]=(0,c.useState)(""),[h,i]=(0,c.useState)([]),[j,k]=(0,c.useState)("workspace"),[m,n]=(0,c.useState)(null),[o,p]=(0,c.useState)(!1),q=(0,c.useCallback)(async()=>{try{let a=await fetch((0,t.api)("/api/cortex/status"));a.ok&&n(await a.json())}catch{}},[]),r=(0,c.useCallback)(async a=>{p(!0);try{let b=new URLSearchParams({limit:"20",layer:j});a&&b.set("q",a);let c=await fetch((0,t.api)(`/api/cortex/search?${b}`));if(c.ok){let a=await c.json();i(a.results||[])}}catch{}p(!1)},[j]);(0,c.useEffect)(()=>{a&&(q(),r(f||void 0))},[a,j,q,r]);let s=a=>{i(b=>b.filter(b=>b.id!==a)),q()};return a?(0,b.jsxs)("div",{className:"fixed right-0 top-0 bottom-0 w-96 bg-gray-950 border-l border-white/10 z-[60] flex flex-col shadow-2xl",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 p-4 border-b border-white/5",children:[(0,b.jsxs)("h2",{className:"text-sm font-medium text-gray-200",children:["Cortex",(0,b.jsx)("span",{className:"ml-2 text-[9px] font-medium uppercase tracking-wider text-purple-400 bg-purple-400/10 px-1.5 py-0.5 rounded",children:"Beta"})]}),(0,b.jsxs)(d.default,{href:"/cortex",className:"text-[10px] text-purple-400 hover:text-purple-300 flex items-center gap-1",onClick:e,children:["Full view ",(0,b.jsx)(x.ExternalLink,{className:"w-2.5 h-2.5"})]}),(0,b.jsx)("button",{onClick:e,className:"ml-auto text-gray-500 hover:text-gray-300",children:(0,b.jsx)(w.X,{className:"w-4 h-4"})})]}),m&&(0,b.jsx)("div",{className:"flex gap-4 px-4 py-2 text-[10px] text-gray-500 border-b border-white/5",children:Object.entries(m.layers||{}).map(([a,c])=>(0,b.jsxs)("span",{children:[a,": ",c.count]},a))}),(0,b.jsx)("div",{className:"p-3 border-b border-white/5",children:(0,b.jsx)("div",{className:"flex gap-2",children:(0,b.jsxs)("div",{className:"flex-1 relative",children:[(0,b.jsx)(l.Search,{className:"absolute left-2.5 top-2 w-3.5 h-3.5 text-gray-500"}),(0,b.jsx)("input",{value:f,onChange:a=>g(a.target.value),onKeyDown:a=>"Enter"===a.key&&void r(f.trim()||void 0),placeholder:"Search knowledge...",className:"w-full pl-8 pr-3 py-1.5 text-xs bg-white/5 border border-white/10 rounded-md text-gray-300 placeholder-gray-600 focus:outline-none focus:border-purple-500/50"})]})})}),(0,b.jsx)("div",{className:"flex border-b border-white/5",children:["personal","workspace","team"].map(a=>(0,b.jsx)("button",{onClick:()=>k(a),className:`flex-1 py-2 text-xs font-medium transition-colors ${j===a?"text-purple-400 border-b-2 border-purple-400":"text-gray-500 hover:text-gray-300"}`,children:a},a))}),(0,b.jsxs)("div",{className:"flex-1 overflow-y-auto p-3 space-y-2",children:[o&&(0,b.jsx)("p",{className:"text-xs text-gray-500 text-center py-4",children:"Searching..."}),!o&&0===h.length&&(0,b.jsx)("p",{className:"text-xs text-gray-500 text-center py-4",children:f?"No results":"No knowledge stored yet"}),h.map(a=>(0,b.jsx)(y.KnowledgeCard,{unit:a,onDelete:s},a.id))]})]}):null}let A=[{href:"/terminal",label:"Spaces",icon:i.Layers},{href:"/",label:"Dashboard",icon:f.LayoutDashboard},{href:"/sessions",label:"Sessions",icon:g.MessageSquare},{href:"/projects",label:"Projects",icon:h.FolderOpen},{href:"/analytics",label:"Analytics",icon:j.BarChart3},{href:"/network",label:"Network",icon:p.Globe},{href:"/cortex",label:"Cortex",icon:q.Brain},{href:"/settings",label:"Settings",icon:k.Settings}],B={"/":"dashboard","/terminal":"terminal","/sessions":"sessions","/projects":"projects","/analytics":"analytics","/network":"network","/cortex":"cortex","/settings":"settings","/admin/users":"admin_users","/admin/analytics":"admin_analytics"};function C(){let a=(0,e.usePathname)(),f=(0,e.useRouter)(),{hasAuth:g,hasAdmin:h,hasNetwork:i,hasCortex:j,basePath:k}=(0,u.useTier)(),[p,q]=(0,c.useState)(null),[w,x]=(0,c.useState)(!1);(0,c.useEffect)(()=>{let b=B[a]||(a.startsWith("/sessions/")?"session_detail":a.slice(1));(0,s.trackPageView)(b)},[a]),(0,c.useEffect)(()=>{g&&fetch((0,t.api)("/api/auth/me")).then(a=>a.json()).then(a=>q(a.role)).catch(()=>{})},[g]);let y=async()=>{await fetch((0,t.api)("/api/auth/logout"),{method:"POST"}),f.push("/login")};return(0,b.jsxs)("aside",{className:"w-56 border-r border-zinc-200 dark:border-zinc-800 bg-zinc-50 dark:bg-zinc-950 flex flex-col h-screen fixed left-0 top-0",children:[(0,b.jsx)("div",{className:"p-4 border-b border-zinc-200 dark:border-zinc-800",children:(0,b.jsx)(d.default,{href:"/",children:(0,b.jsx)("img",{src:`${k}/spaces_logo.png`,alt:"Spaces",width:180,height:60})})}),(0,b.jsxs)("nav",{className:"flex-1 p-2 space-y-1",children:[A.filter(({href:a})=>"/network"===a?i:"/cortex"!==a||j).map(({href:c,label:e,icon:f})=>{let g="/"===c?"/"===a:a.startsWith(c);return(0,b.jsxs)(d.default,{href:c,className:(0,r.cn)("flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors",g?"bg-indigo-50 text-indigo-700 dark:bg-indigo-950 dark:text-indigo-300 font-medium":"text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-900"),children:[(0,b.jsx)(f,{className:"w-4 h-4"}),e]},c)}),h&&"admin"===p&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(d.default,{href:"/admin/users",className:(0,r.cn)("flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors",a.startsWith("/admin/users")?"bg-indigo-50 text-indigo-700 dark:bg-indigo-950 dark:text-indigo-300 font-medium":"text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-900"),children:[(0,b.jsx)(m.Users,{className:"w-4 h-4"}),"Users"]}),(0,b.jsxs)(d.default,{href:"/admin/analytics",className:(0,r.cn)("flex items-center gap-3 px-3 py-2 rounded-md text-sm transition-colors",a.startsWith("/admin/analytics")?"bg-indigo-50 text-indigo-700 dark:bg-indigo-950 dark:text-indigo-300 font-medium":"text-zinc-600 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-900"),children:[(0,b.jsx)(n.Activity,{className:"w-4 h-4"}),"Activity"]})]})]}),(0,b.jsxs)("div",{className:"p-3 border-t border-zinc-200 dark:border-zinc-800 space-y-1",children:[j&&(0,b.jsx)("div",{className:"flex justify-center py-1",children:(0,b.jsx)(v,{onClick:()=>x(a=>!a)})}),j&&(0,b.jsx)(z,{open:w,onClose:()=>x(!1)}),(0,b.jsxs)(d.default,{href:"/sessions?search=true",className:"flex items-center gap-2 px-3 py-2 text-sm text-zinc-500 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-900 rounded-md",children:[(0,b.jsx)(l.Search,{className:"w-4 h-4"}),(0,b.jsx)("span",{children:"Search"}),(0,b.jsx)("kbd",{className:"ml-auto text-[10px] bg-zinc-200 dark:bg-zinc-800 px-1.5 py-0.5 rounded",children:"Ctrl+K"})]}),g&&(0,b.jsxs)("button",{onClick:y,className:"flex items-center gap-2 px-3 py-2 text-sm text-zinc-500 dark:text-zinc-400 hover:bg-zinc-100 dark:hover:bg-zinc-900 rounded-md w-full",children:[(0,b.jsx)(o.LogOut,{className:"w-4 h-4"}),(0,b.jsx)("span",{children:"Sign out"})]})]})]})}a.s(["Sidebar",()=>C],91693)}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0ecce08b._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[15618,a=>{"use strict";let b=(0,a.i(60137).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",()=>b],15618)},96221,a=>{"use strict";let b=(0,a.i(60137).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],96221)},99464,a=>{"use strict";let b=(0,a.i(60137).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);a.s(["Pencil",()=>b],99464)},33441,a=>{"use strict";let b=(0,a.i(60137).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["Check",()=>b],33441)},5151,a=>{"use strict";let b=(0,a.i(60137).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);a.s(["Copy",()=>b],5151)},69520,a=>{"use strict";let b=(0,a.i(60137).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);a.s(["RefreshCw",()=>b],69520)},1279,a=>{"use strict";var b=a.i(33217),c=a.i(70025),d=a.i(37927),e=a.i(19032);function f(){return(0,b.useQuery)({queryKey:["node-identity"],queryFn:async()=>(await fetch((0,e.api)("/api/network/identity"))).json()})}function g(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/network/identity"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["node-identity"]})}})}function h(a=!0){return(0,b.useQuery)({queryKey:["network-nodes"],queryFn:async()=>{let a=await fetch((0,e.api)("/api/network/nodes"));if(!a.ok)return[];let b=await a.json();return Array.isArray(b)?b:[]},enabled:a})}function i(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>{let b=await fetch((0,e.api)("/api/network/nodes"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!b.ok)throw Error((await b.json()).error||"Failed to add node");return b.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["network-nodes"]})}})}function j(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>{let b=await fetch((0,e.api)("/api/network/nodes"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:a.url,apiKey:a.apiKey,name:a.name})});if(!b.ok)throw Error((await b.json()).error||"Failed to connect");return b.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["network-nodes"]})}})}function k(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)(`/api/network/nodes/${a}`),{method:"DELETE"})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["network-nodes"]})}})}function l(){return(0,b.useQuery)({queryKey:["network-api-keys"],queryFn:async()=>(await fetch((0,e.api)("/api/network/keys"))).json()})}function m(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/network/keys"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["network-api-keys"]})}})}function n(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)(`/api/network/keys/${a}`),{method:"DELETE"})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["network-api-keys"]})}})}function o(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async()=>(await fetch((0,e.api)("/api/network/nodes/check"),{method:"POST"})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["network-nodes"]})}})}function p(){return(0,b.useQuery)({queryKey:["connection-requests"],queryFn:async()=>{let a=await fetch((0,e.api)("/api/network/connect-request"));return a.ok?a.json():{incoming:[],outgoing:[]}},refetchInterval:5e3})}function q(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>{let b=await fetch((0,e.api)("/api/network/connect-request"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({_sendRequest:!0,targetNodeId:a.nodeId,targetNodeName:a.nodeName,targetNodeUrl:a.nodeUrl})});if(!b.ok)throw Error((await b.json().catch(()=>({error:"Request failed"}))).error||`Request failed (${b.status})`);return b.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["connection-requests"]})}})}function r(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>{let b=await fetch((0,e.api)(`/api/network/connect-request/${a.id}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:a.action})});if(!b.ok)throw Error((await b.json().catch(()=>({error:"Failed"}))).error||"Failed to respond");return b.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["connection-requests"]}),a.invalidateQueries({queryKey:["network-nodes"]})}})}a.s(["useAddNode",()=>i,"useApiKeys",()=>l,"useCheckHealth",()=>o,"useConnectDiscoveredNode",()=>j,"useConnectionRequests",()=>p,"useCreateApiKey",()=>m,"useNodeIdentity",()=>f,"useNodes",()=>h,"useRemoveNode",()=>k,"useRespondToRequest",()=>r,"useRevokeApiKey",()=>n,"useSendConnectionRequest",()=>q,"useUpdateNodeName",()=>g])}];
2
-
3
- //# sourceMappingURL=_7e63066a._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[15618,a=>{"use strict";let b=(0,a.i(60137).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",()=>b],15618)},41710,a=>{"use strict";let b=(0,a.i(60137).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);a.s(["Clock",()=>b],41710)},96221,a=>{"use strict";let b=(0,a.i(60137).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],96221)},59603,a=>{"use strict";var b=a.i(33217),c=a.i(70025),d=a.i(37927),e=a.i(19032);function f(a={}){return(0,b.useQuery)({queryKey:["sessions",a],queryFn:async()=>{let b=new URLSearchParams;return a.projectId&&b.set("projectId",a.projectId),void 0!==a.starred&&b.set("starred",String(a.starred)),a.search&&b.set("search",a.search),a.agentType&&b.set("agentType",a.agentType),a.sortBy&&b.set("sortBy",a.sortBy),a.sortDir&&b.set("sortDir",a.sortDir),void 0!==a.offset&&b.set("offset",String(a.offset)),void 0!==a.limit&&b.set("limit",String(a.limit)),"all"===a.nodeFilter&&b.set("nodes","all"),(await fetch((0,e.api)(`/api/sessions?${b}`))).json()}})}function g(a){return(0,b.useQuery)({queryKey:["session",a],queryFn:async()=>{let b=await fetch((0,e.api)(`/api/sessions/${a}`));if(!b.ok)throw Error("Session not found");return b.json()},enabled:!!a})}function h(a,c=0,d=50,f){return(0,b.useQuery)({queryKey:["messages",a,c,d,f],queryFn:async()=>{let b=f?(0,e.api)(`/api/network/proxy/${f}/sessions/${a}/messages?offset=${c}&limit=${d}`):(0,e.api)(`/api/sessions/${a}/messages?offset=${c}&limit=${d}`);return(await fetch(b)).json()},enabled:!!a})}function i(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"star"})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function j(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,notes:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"notes",notes:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["session"]})}})}function k(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"tag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function l(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"removeTag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function m(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,name:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"rename",name:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function n(){return(0,b.useQuery)({queryKey:["tags"],queryFn:async()=>(await fetch((0,e.api)("/api/tags"))).json()})}function o(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",tagId:a})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function p(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({tagId:a,color:b})=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"updateColor",tagId:a,color:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function q(){return(0,b.useQuery)({queryKey:["workspaces"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces"))).json()})}function r(){return(0,b.useQuery)({queryKey:["workspaces","remote"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces?nodes=all"))).json()})}function s(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})=>{let h=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})});if(!h.ok)throw Error("Failed to add session to workspace");return h.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function t(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b})=>{let c=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b})});if(!c.ok)throw Error("Failed to remove session from workspace");return c.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function u(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/bulk"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["tags"]})}})}function v(){return(0,b.useQuery)({queryKey:["projects"],queryFn:async()=>(await fetch((0,e.api)("/api/projects"))).json()})}function w(){return(0,b.useQuery)({queryKey:["analytics"],queryFn:async()=>(await fetch((0,e.api)("/api/analytics/overview"))).json()})}function x(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async()=>(await fetch((0,e.api)("/api/sync"),{method:"POST"})).json(),onSuccess:()=>{a.invalidateQueries()}})}a.s(["useAddSessionToWorkspace",()=>s,"useAddTag",()=>k,"useAnalytics",()=>w,"useBulkAction",()=>u,"useDeleteTag",()=>o,"useMessages",()=>h,"useProjects",()=>v,"useRemoteWorkspaces",()=>r,"useRemoveSessionFromWorkspace",()=>t,"useRemoveTag",()=>l,"useRenameSession",()=>m,"useSession",()=>g,"useSessions",()=>f,"useSync",()=>x,"useTags",()=>n,"useToggleStar",()=>i,"useUpdateNotes",()=>j,"useUpdateTagColor",()=>p,"useWorkspaces",()=>q])},210,a=>{"use strict";let b=(0,a.i(60137).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",()=>b],210)},21374,a=>{"use strict";let b=(0,a.i(60137).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);a.s(["Star",()=>b],21374)},10948,a=>{"use strict";let b=(0,a.i(60137).default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]);a.s(["GitBranch",()=>b],10948)},2835,a=>{"use strict";let b=(0,a.i(60137).default)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);a.s(["Hash",()=>b],2835)},50522,4720,a=>{"use strict";var b=a.i(60137);let c=(0,b.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["ChevronRight",()=>c],50522);let d=(0,b.default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);a.s(["FileText",()=>d],4720)},77156,a=>{"use strict";let b=(0,a.i(60137).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Eye",()=>b],77156)},5151,a=>{"use strict";let b=(0,a.i(60137).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);a.s(["Copy",()=>b],5151)},5784,a=>{"use strict";let b=(0,a.i(60137).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);a.s(["ChevronDown",()=>b],5784)},92759,a=>{"use strict";let b=(0,a.i(60137).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);a.s(["Send",()=>b],92759)},99464,a=>{"use strict";let b=(0,a.i(60137).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);a.s(["Pencil",()=>b],99464)},33441,a=>{"use strict";let b=(0,a.i(60137).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["Check",()=>b],33441)},80386,a=>{"use strict";let b=(0,a.i(60137).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);a.s(["Terminal",()=>b],80386)},33350,a=>{"use strict";let b=(0,a.i(60137).default)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);a.s(["Tag",()=>b],33350)},67552,a=>{"use strict";let b=(0,a.i(60137).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);a.s(["ChevronUp",()=>b],67552)},63002,a=>{"use strict";var b=a.i(87924),c=a.i(68114);let d=["#ef4444","#f97316","#f59e0b","#eab308","#84cc16","#22c55e","#14b8a6","#06b6d4","#3b82f6","#6366f1","#8b5cf6","#a855f7","#d946ef","#ec4899","#f43f5e","#78716c"];function e({value:a,onChange:e,className:f}){return(0,b.jsx)("div",{className:(0,c.cn)("grid grid-cols-8 gap-1.5",f),children:d.map(d=>(0,b.jsx)("button",{onClick:()=>e(d),className:(0,c.cn)("w-6 h-6 rounded-full border-2 transition-transform hover:scale-110",a===d?"border-foreground scale-110":"border-transparent"),style:{backgroundColor:d},title:d},d))})}a.s(["ColorPicker",()=>e])}];
2
-
3
- //# sourceMappingURL=_a012c43b._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},96221,a=>{"use strict";let b=(0,a.i(60137).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],96221)},59603,a=>{"use strict";var b=a.i(33217),c=a.i(70025),d=a.i(37927),e=a.i(19032);function f(a={}){return(0,b.useQuery)({queryKey:["sessions",a],queryFn:async()=>{let b=new URLSearchParams;return a.projectId&&b.set("projectId",a.projectId),void 0!==a.starred&&b.set("starred",String(a.starred)),a.search&&b.set("search",a.search),a.agentType&&b.set("agentType",a.agentType),a.sortBy&&b.set("sortBy",a.sortBy),a.sortDir&&b.set("sortDir",a.sortDir),void 0!==a.offset&&b.set("offset",String(a.offset)),void 0!==a.limit&&b.set("limit",String(a.limit)),"all"===a.nodeFilter&&b.set("nodes","all"),(await fetch((0,e.api)(`/api/sessions?${b}`))).json()}})}function g(a){return(0,b.useQuery)({queryKey:["session",a],queryFn:async()=>{let b=await fetch((0,e.api)(`/api/sessions/${a}`));if(!b.ok)throw Error("Session not found");return b.json()},enabled:!!a})}function h(a,c=0,d=50,f){return(0,b.useQuery)({queryKey:["messages",a,c,d,f],queryFn:async()=>{let b=f?(0,e.api)(`/api/network/proxy/${f}/sessions/${a}/messages?offset=${c}&limit=${d}`):(0,e.api)(`/api/sessions/${a}/messages?offset=${c}&limit=${d}`);return(await fetch(b)).json()},enabled:!!a})}function i(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"star"})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function j(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,notes:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"notes",notes:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["session"]})}})}function k(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"tag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function l(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"removeTag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function m(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,name:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"rename",name:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function n(){return(0,b.useQuery)({queryKey:["tags"],queryFn:async()=>(await fetch((0,e.api)("/api/tags"))).json()})}function o(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",tagId:a})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function p(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({tagId:a,color:b})=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"updateColor",tagId:a,color:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function q(){return(0,b.useQuery)({queryKey:["workspaces"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces"))).json()})}function r(){return(0,b.useQuery)({queryKey:["workspaces","remote"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces?nodes=all"))).json()})}function s(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})=>{let h=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})});if(!h.ok)throw Error("Failed to add session to workspace");return h.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function t(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b})=>{let c=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b})});if(!c.ok)throw Error("Failed to remove session from workspace");return c.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function u(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/bulk"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["tags"]})}})}function v(){return(0,b.useQuery)({queryKey:["projects"],queryFn:async()=>(await fetch((0,e.api)("/api/projects"))).json()})}function w(){return(0,b.useQuery)({queryKey:["analytics"],queryFn:async()=>(await fetch((0,e.api)("/api/analytics/overview"))).json()})}function x(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async()=>(await fetch((0,e.api)("/api/sync"),{method:"POST"})).json(),onSuccess:()=>{a.invalidateQueries()}})}a.s(["useAddSessionToWorkspace",()=>s,"useAddTag",()=>k,"useAnalytics",()=>w,"useBulkAction",()=>u,"useDeleteTag",()=>o,"useMessages",()=>h,"useProjects",()=>v,"useRemoteWorkspaces",()=>r,"useRemoveSessionFromWorkspace",()=>t,"useRemoveTag",()=>l,"useRenameSession",()=>m,"useSession",()=>g,"useSessions",()=>f,"useSync",()=>x,"useTags",()=>n,"useToggleStar",()=>i,"useUpdateNotes",()=>j,"useUpdateTagColor",()=>p,"useWorkspaces",()=>q])},15618,a=>{"use strict";let b=(0,a.i(60137).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",()=>b],15618)},41710,a=>{"use strict";let b=(0,a.i(60137).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);a.s(["Clock",()=>b],41710)},1279,a=>{"use strict";var b=a.i(33217),c=a.i(70025),d=a.i(37927),e=a.i(19032);function f(){return(0,b.useQuery)({queryKey:["node-identity"],queryFn:async()=>(await fetch((0,e.api)("/api/network/identity"))).json()})}function g(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/network/identity"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:a})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["node-identity"]})}})}function h(a=!0){return(0,b.useQuery)({queryKey:["network-nodes"],queryFn:async()=>{let a=await fetch((0,e.api)("/api/network/nodes"));if(!a.ok)return[];let b=await a.json();return Array.isArray(b)?b:[]},enabled:a})}function i(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>{let b=await fetch((0,e.api)("/api/network/nodes"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!b.ok)throw Error((await b.json()).error||"Failed to add node");return b.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["network-nodes"]})}})}function j(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>{let b=await fetch((0,e.api)("/api/network/nodes"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:a.url,apiKey:a.apiKey,name:a.name})});if(!b.ok)throw Error((await b.json()).error||"Failed to connect");return b.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["network-nodes"]})}})}function k(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)(`/api/network/nodes/${a}`),{method:"DELETE"})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["network-nodes"]})}})}function l(){return(0,b.useQuery)({queryKey:["network-api-keys"],queryFn:async()=>(await fetch((0,e.api)("/api/network/keys"))).json()})}function m(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/network/keys"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["network-api-keys"]})}})}function n(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)(`/api/network/keys/${a}`),{method:"DELETE"})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["network-api-keys"]})}})}function o(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async()=>(await fetch((0,e.api)("/api/network/nodes/check"),{method:"POST"})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["network-nodes"]})}})}function p(){return(0,b.useQuery)({queryKey:["connection-requests"],queryFn:async()=>{let a=await fetch((0,e.api)("/api/network/connect-request"));return a.ok?a.json():{incoming:[],outgoing:[]}},refetchInterval:5e3})}function q(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>{let b=await fetch((0,e.api)("/api/network/connect-request"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({_sendRequest:!0,targetNodeId:a.nodeId,targetNodeName:a.nodeName,targetNodeUrl:a.nodeUrl})});if(!b.ok)throw Error((await b.json().catch(()=>({error:"Request failed"}))).error||`Request failed (${b.status})`);return b.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["connection-requests"]})}})}function r(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>{let b=await fetch((0,e.api)(`/api/network/connect-request/${a.id}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:a.action})});if(!b.ok)throw Error((await b.json().catch(()=>({error:"Failed"}))).error||"Failed to respond");return b.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["connection-requests"]}),a.invalidateQueries({queryKey:["network-nodes"]})}})}a.s(["useAddNode",()=>i,"useApiKeys",()=>l,"useCheckHealth",()=>o,"useConnectDiscoveredNode",()=>j,"useConnectionRequests",()=>p,"useCreateApiKey",()=>m,"useNodeIdentity",()=>f,"useNodes",()=>h,"useRemoveNode",()=>k,"useRespondToRequest",()=>r,"useRevokeApiKey",()=>n,"useSendConnectionRequest",()=>q,"useUpdateNodeName",()=>g])},81010,a=>{"use strict";let b=(0,a.i(60137).default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]);a.s(["Home",()=>b],81010)},41379,a=>{"use strict";let b=(0,a.i(60137).default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);a.s(["EyeOff",()=>b],41379)},80386,a=>{"use strict";let b=(0,a.i(60137).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);a.s(["Terminal",()=>b],80386)},5784,a=>{"use strict";let b=(0,a.i(60137).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);a.s(["ChevronDown",()=>b],5784)},92759,a=>{"use strict";let b=(0,a.i(60137).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);a.s(["Send",()=>b],92759)},50522,4720,a=>{"use strict";var b=a.i(60137);let c=(0,b.default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);a.s(["ChevronRight",()=>c],50522);let d=(0,b.default)("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);a.s(["FileText",()=>d],4720)},5151,a=>{"use strict";let b=(0,a.i(60137).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);a.s(["Copy",()=>b],5151)},77156,a=>{"use strict";let b=(0,a.i(60137).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Eye",()=>b],77156)},33350,a=>{"use strict";let b=(0,a.i(60137).default)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);a.s(["Tag",()=>b],33350)},67552,a=>{"use strict";let b=(0,a.i(60137).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);a.s(["ChevronUp",()=>b],67552)},63002,a=>{"use strict";var b=a.i(87924),c=a.i(68114);let d=["#ef4444","#f97316","#f59e0b","#eab308","#84cc16","#22c55e","#14b8a6","#06b6d4","#3b82f6","#6366f1","#8b5cf6","#a855f7","#d946ef","#ec4899","#f43f5e","#78716c"];function e({value:a,onChange:e,className:f}){return(0,b.jsx)("div",{className:(0,c.cn)("grid grid-cols-8 gap-1.5",f),children:d.map(d=>(0,b.jsx)("button",{onClick:()=>e(d),className:(0,c.cn)("w-6 h-6 rounded-full border-2 transition-transform hover:scale-110",a===d?"border-foreground scale-110":"border-transparent"),style:{backgroundColor:d},title:d},d))})}a.s(["ColorPicker",()=>e])},99464,a=>{"use strict";let b=(0,a.i(60137).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);a.s(["Pencil",()=>b],99464)},33441,a=>{"use strict";let b=(0,a.i(60137).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["Check",()=>b],33441)},5699,a=>{"use strict";let b={claude:{id:"claude",name:"Claude Code",command:"claude",resumeFlag:"--resume",supportsResume:!0,color:"#d97706",description:"Anthropic Claude Code CLI"},codex:{id:"codex",name:"Codex CLI",command:"codex",resumeFlag:"resume",supportsResume:!0,color:"#10b981",description:"OpenAI Codex CLI"},gemini:{id:"gemini",name:"Gemini CLI",command:"gemini",resumeFlag:"--resume",supportsResume:!0,color:"#3b82f6",description:"Google Gemini CLI"},aider:{id:"aider",name:"Aider",command:"aider",resumeFlag:"",supportsResume:!1,color:"#8b5cf6",description:"AI pair programming in your terminal"},shell:{id:"shell",name:"Shell",command:"",resumeFlag:"",supportsResume:!1,color:"#71717a",description:"Plain terminal shell"},custom:{id:"custom",name:"Custom",command:"",resumeFlag:"",supportsResume:!1,color:"#ec4899",description:"Custom command"}},c=Object.values(b);a.s(["AGENT_LIST",0,c,"AGENT_TYPES",0,b])},79082,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(96221),e=a.i(21161),f=a.i(50944),g=a.i(19032),h=a.i(97498);let i="spaces-terminal-token";function j({children:a}){let j=(0,f.useRouter)(),{isDesktop:k,basePath:l}=(0,h.useTier)(),[m,n]=(0,c.useState)("loading"),[o,p]=(0,c.useState)(""),[q,r]=(0,c.useState)(""),[s,t]=(0,c.useState)(""),[u,v]=(0,c.useState)(!1),w=(0,c.useRef)(null),x=`${l}/spaces_icon.png`;(0,c.useEffect)(()=>{if(k){p("desktop-local"),n("authorized");return}function a(){let a=sessionStorage.getItem(i);if(a){p(a),n("authorized");return}fetch((0,g.api)("/api/auth/totp/status")).then(a=>a.json()).then(a=>{a.enabled?(n("prompt"),setTimeout(()=>w.current?.focus(),100)):n("not-setup")}).catch(()=>n("not-setup"))}fetch((0,g.api)("/api/auth/me")).then(b=>{if(b.ok){p("session-auth"),n("authorized");return}return a()}).catch(()=>a())},[k]);let y=(0,c.useCallback)(async a=>{if(6!==a.length)return;v(!0),t("");let b=await fetch((0,g.api)("/api/auth/totp/verify"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:a,action:"verify"})}),c=await b.json();v(!1),c.success&&c.terminalToken?(sessionStorage.setItem(i,c.terminalToken),p(c.terminalToken),n("authorized")):(t(c.error||"Invalid code"),r(""),w.current?.focus())},[]);return"loading"===m?(0,b.jsx)("div",{className:"flex items-center justify-center h-screen bg-zinc-950",children:(0,b.jsx)(d.Loader2,{className:"w-6 h-6 animate-spin text-indigo-500"})}):"authorized"===m?(0,b.jsx)(b.Fragment,{children:a(o)}):"not-setup"===m?(0,b.jsx)("div",{className:"flex items-center justify-center h-screen bg-zinc-950",children:(0,b.jsxs)("div",{className:"text-center space-y-4 max-w-sm",children:[(0,b.jsx)("img",{src:x,alt:"Spaces",className:"w-12 h-12 mx-auto opacity-40"}),(0,b.jsx)("h2",{className:"text-lg font-semibold text-white",children:"2FA Required"}),(0,b.jsx)("p",{className:"text-sm text-zinc-400",children:"Two-factor authentication must be set up before you can use terminals."}),(0,b.jsxs)("button",{onClick:()=>j.push("/settings"),className:"inline-flex items-center gap-2 px-4 py-2 text-sm bg-indigo-600 text-white rounded-md hover:bg-indigo-500",children:[(0,b.jsx)(e.Settings,{className:"w-4 h-4"}),"Go to Settings"]})]})}):(0,b.jsx)("div",{className:"flex items-center justify-center h-screen bg-zinc-950",children:(0,b.jsxs)("div",{className:"text-center space-y-4 max-w-sm",children:[(0,b.jsx)("img",{src:x,alt:"Spaces",className:"w-12 h-12 mx-auto"}),(0,b.jsx)("h2",{className:"text-lg font-semibold text-white",children:"Terminal Verification"}),(0,b.jsx)("p",{className:"text-sm text-zinc-400",children:"Enter the 6-digit code from your authenticator app."}),(0,b.jsxs)("div",{children:[(0,b.jsx)("input",{ref:w,type:"text",inputMode:"numeric",autoComplete:"one-time-code",placeholder:"000000",value:q,onChange:a=>{let b;r(b=a.target.value.replace(/\D/g,"").slice(0,6)),t(""),6===b.length&&y(b)},disabled:u,className:"w-48 px-3 py-3 text-2xl font-mono tracking-[0.4em] text-center bg-zinc-800 border border-zinc-700 rounded-lg focus:outline-none focus:border-indigo-500 text-white disabled:opacity-50",autoFocus:!0}),u&&(0,b.jsxs)("div",{className:"flex items-center justify-center gap-2 mt-3 text-xs text-zinc-400",children:[(0,b.jsx)(d.Loader2,{className:"w-3 h-3 animate-spin"}),"Verifying..."]}),s&&(0,b.jsx)("p",{className:"text-sm text-red-400 mt-3",children:s})]}),(0,b.jsx)("p",{className:"text-[11px] text-zinc-600",children:"Token is valid for 8 hours after verification."})]})})}a.s(["TotpGate",()=>j])},92e3,a=>{"use strict";let b=(0,a.i(60137).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);a.s(["AlertCircle",()=>b],92e3)},11809,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_xterm_lib_xterm_2d364f66.js"].map(b=>a.l(b))).then(()=>b(18407)))},71789,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@xterm_addon-fit_lib_addon-fit_mjs_9b7cb17b._.js"].map(b=>a.l(b))).then(()=>b(99813)))},14391,a=>{a.v(b=>Promise.all(["server/chunks/ssr/node_modules_@xterm_addon-web-links_lib_addon-web-links_mjs_54276680._.js"].map(b=>a.l(b))).then(()=>b(13521)))}];
2
-
3
- //# sourceMappingURL=_b4db3983._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[96221,a=>{"use strict";let b=(0,a.i(60137).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],96221)},59603,a=>{"use strict";var b=a.i(33217),c=a.i(70025),d=a.i(37927),e=a.i(19032);function f(a={}){return(0,b.useQuery)({queryKey:["sessions",a],queryFn:async()=>{let b=new URLSearchParams;return a.projectId&&b.set("projectId",a.projectId),void 0!==a.starred&&b.set("starred",String(a.starred)),a.search&&b.set("search",a.search),a.agentType&&b.set("agentType",a.agentType),a.sortBy&&b.set("sortBy",a.sortBy),a.sortDir&&b.set("sortDir",a.sortDir),void 0!==a.offset&&b.set("offset",String(a.offset)),void 0!==a.limit&&b.set("limit",String(a.limit)),"all"===a.nodeFilter&&b.set("nodes","all"),(await fetch((0,e.api)(`/api/sessions?${b}`))).json()}})}function g(a){return(0,b.useQuery)({queryKey:["session",a],queryFn:async()=>{let b=await fetch((0,e.api)(`/api/sessions/${a}`));if(!b.ok)throw Error("Session not found");return b.json()},enabled:!!a})}function h(a,c=0,d=50,f){return(0,b.useQuery)({queryKey:["messages",a,c,d,f],queryFn:async()=>{let b=f?(0,e.api)(`/api/network/proxy/${f}/sessions/${a}/messages?offset=${c}&limit=${d}`):(0,e.api)(`/api/sessions/${a}/messages?offset=${c}&limit=${d}`);return(await fetch(b)).json()},enabled:!!a})}function i(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"star"})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function j(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,notes:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"notes",notes:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["session"]})}})}function k(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"tag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function l(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,tagName:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"removeTag",tagName:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]}),a.invalidateQueries({queryKey:["tags"]})}})}function m(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({sessionId:a,name:b})=>(await fetch((0,e.api)(`/api/sessions/${a}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"rename",name:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function n(){return(0,b.useQuery)({queryKey:["tags"],queryFn:async()=>(await fetch((0,e.api)("/api/tags"))).json()})}function o(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete",tagId:a})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function p(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({tagId:a,color:b})=>(await fetch((0,e.api)("/api/tags"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"updateColor",tagId:a,color:b})})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["tags"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function q(){return(0,b.useQuery)({queryKey:["workspaces"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces"))).json()})}function r(){return(0,b.useQuery)({queryKey:["workspaces","remote"],queryFn:async()=>(await fetch((0,e.api)("/api/workspaces?nodes=all"))).json()})}function s(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})=>{let h=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b,nodeId:c,title:d,cwd:f,agentType:g})});if(!h.ok)throw Error("Failed to add session to workspace");return h.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function t(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async({workspaceId:a,sessionId:b})=>{let c=await fetch((0,e.api)(`/api/workspaces/${a}/sessions`),{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:b})});if(!c.ok)throw Error("Failed to remove session from workspace");return c.json()},onSuccess:()=>{a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["workspace-sessions"]}),a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["session"]})}})}function u(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async a=>(await fetch((0,e.api)("/api/bulk"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).json(),onSuccess:()=>{a.invalidateQueries({queryKey:["sessions"]}),a.invalidateQueries({queryKey:["workspaces"]}),a.invalidateQueries({queryKey:["tags"]})}})}function v(){return(0,b.useQuery)({queryKey:["projects"],queryFn:async()=>(await fetch((0,e.api)("/api/projects"))).json()})}function w(){return(0,b.useQuery)({queryKey:["analytics"],queryFn:async()=>(await fetch((0,e.api)("/api/analytics/overview"))).json()})}function x(){let a=(0,d.useQueryClient)();return(0,c.useMutation)({mutationFn:async()=>(await fetch((0,e.api)("/api/sync"),{method:"POST"})).json(),onSuccess:()=>{a.invalidateQueries()}})}a.s(["useAddSessionToWorkspace",()=>s,"useAddTag",()=>k,"useAnalytics",()=>w,"useBulkAction",()=>u,"useDeleteTag",()=>o,"useMessages",()=>h,"useProjects",()=>v,"useRemoteWorkspaces",()=>r,"useRemoveSessionFromWorkspace",()=>t,"useRemoveTag",()=>l,"useRenameSession",()=>m,"useSession",()=>g,"useSessions",()=>f,"useSync",()=>x,"useTags",()=>n,"useToggleStar",()=>i,"useUpdateNotes",()=>j,"useUpdateTagColor",()=>p,"useWorkspaces",()=>q])},210,a=>{"use strict";let b=(0,a.i(60137).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",()=>b],210)},17299,a=>{"use strict";var b=a.i(87924),c=a.i(50944),d=a.i(210),e=a.i(68114);function f({title:a,showBack:f,backHref:g,right:h,className:i}){let j=(0,c.useRouter)();return(0,b.jsxs)("header",{className:(0,e.cn)("sticky top-0 z-40 bg-zinc-950/95 backdrop-blur-sm border-b border-zinc-800","flex items-center gap-3 px-4 h-14 flex-shrink-0",i),children:[f&&(0,b.jsx)("button",{onClick:()=>{g?j.push(g):j.back()},className:"p-1 -ml-1 text-zinc-400 hover:text-white",children:(0,b.jsx)(d.ArrowLeft,{className:"w-5 h-5"})}),(0,b.jsx)("h1",{className:"text-base font-semibold truncate flex-1",children:a}),h&&(0,b.jsx)("div",{className:"flex items-center gap-2 flex-shrink-0",children:h})]})}a.s(["MobileHeader",()=>f])},39761,a=>{"use strict";let b=(0,a.i(60137).default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);a.s(["BarChart3",()=>b],39761)},20005,a=>{"use strict";let b=(0,a.i(60137).default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);a.s(["LogOut",()=>b],20005)},33508,a=>{"use strict";let b=(0,a.i(60137).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);a.s(["X",()=>b],33508)},15618,a=>{"use strict";let b=(0,a.i(60137).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",()=>b],15618)},69520,a=>{"use strict";let b=(0,a.i(60137).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);a.s(["RefreshCw",()=>b],69520)},3314,a=>{"use strict";let b=(0,a.i(60137).default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);a.s(["Shield",()=>b],3314)},67453,63572,a=>{"use strict";var b=a.i(60137);let c=(0,b.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);a.s(["CheckCircle2",()=>c],67453);let d=(0,b.default)("folder-code",[["path",{d:"M10 10.5 8 13l2 2.5",key:"m4t9c1"}],["path",{d:"m14 10.5 2 2.5-2 2.5",key:"14w2eb"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2z",key:"1u1bxd"}]]);a.s(["FolderCode",()=>d],63572)},61552,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(59603),e=a.i(50944),f=a.i(17299),g=a.i(69520),h=a.i(96101),i=a.i(96221),j=a.i(3314),k=a.i(67453),l=a.i(39761),m=a.i(21161),n=a.i(20005),o=a.i(15618),p=a.i(33508),q=a.i(63572),r=a.i(19032),s=a.i(58037),t=a.i(97498);function u(){let{hasAuth:a,tier:u,version:v}=(0,t.useTier)(),w=(0,e.useRouter)(),x=(0,d.useSync)(),[y,z]=(0,c.useState)(""),[A,B]=(0,c.useState)([]),[C,D]=(0,c.useState)(""),[E,F]=(0,c.useState)(!1),[G,H]=(0,c.useState)(!0);(0,c.useEffect)(()=>{fetch((0,r.api)("/api/config")).then(a=>a.json()).then(a=>{F(a.telemetryOptOut),B(a.devDirectories||[]),H(!1)}).catch(()=>H(!1))},[]);let I=async a=>{B(a),await fetch((0,r.api)("/api/config"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({devDirectories:a})})},J=()=>{let a=C.trim();!a||A.includes(a)||(a.startsWith("/")||/^[A-Za-z]:[\\/]/.test(a))&&(I([...A,a]),D(""))},K=async()=>{let a=await x.mutateAsync();z(`Synced ${a.projects} projects, ${a.sessions} sessions`)},L=async()=>{let a=!E;F(a),(0,s.setOptOut)(a),await fetch((0,r.api)("/api/config"),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({telemetryOptOut:a})})},M=async()=>{await fetch((0,r.api)("/api/auth/logout"),{method:"POST"}),w.push("/login")};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.MobileHeader,{title:"Settings"}),(0,b.jsxs)("div",{className:"px-4 py-4 space-y-4",children:[a&&(0,b.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,b.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,b.jsx)(j.Shield,{className:"w-4 h-4"}),"Terminal Security"]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(k.CheckCircle2,{className:"w-4 h-4 text-green-500"}),(0,b.jsx)("span",{className:"text-xs text-green-500",children:"2FA Enabled"})]}),(0,b.jsx)("p",{className:"text-[11px] text-zinc-500 mt-1.5",children:"2FA is managed through the login flow."})]}),(0,b.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,b.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,b.jsx)(h.FolderOpen,{className:"w-4 h-4"}),"Data Source"]}),(0,b.jsxs)("div",{className:"space-y-2 text-xs",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{className:"text-zinc-500",children:"Agent Data:"}),(0,b.jsx)("span",{className:"font-mono ml-2",children:"~/.claude/ ~/.codex/ ~/.gemini/"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{className:"text-zinc-500",children:"Database:"}),(0,b.jsx)("span",{className:"font-mono ml-2",children:"~/.spaces/spaces.db"})]})]})]}),(0,b.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,b.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,b.jsx)(q.FolderCode,{className:"w-4 h-4"}),"Dev Directories"]}),(0,b.jsx)("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Restrict pane creation to these project roots."}),A.length>0&&(0,b.jsx)("div",{className:"space-y-1.5 mb-3",children:A.map(a=>(0,b.jsxs)("div",{className:"flex items-center gap-2 px-2.5 py-1.5 bg-zinc-800 rounded-md",children:[(0,b.jsx)(h.FolderOpen,{className:"w-3 h-3 text-amber-500/70 flex-shrink-0"}),(0,b.jsx)("span",{className:"font-mono text-[11px] flex-1 truncate",children:a}),(0,b.jsx)("button",{onClick:()=>{I(A.filter(b=>b!==a))},className:"text-zinc-500 hover:text-red-400",children:(0,b.jsx)(p.X,{className:"w-3 h-3"})})]},a))}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("input",{type:"text",placeholder:"u">typeof navigator&&navigator.platform?.startsWith("Win")?"C:\\Users\\you\\projects":"/home/user/projects",value:C,onChange:a=>D(a.target.value),onKeyDown:a=>"Enter"===a.key&&J(),className:"flex-1 px-2.5 py-1.5 text-xs bg-zinc-800 border border-zinc-700 rounded-md focus:outline-none focus:border-indigo-500 font-mono"}),(0,b.jsxs)("button",{onClick:J,disabled:!C.trim()||!(C.trim().startsWith("/")||/^[A-Za-z]:[\\/]/.test(C.trim())),className:"flex items-center gap-1 px-2.5 py-1.5 text-xs bg-indigo-600 text-white rounded-md disabled:opacity-50",children:[(0,b.jsx)(o.Plus,{className:"w-3 h-3"}),"Add"]})]})]}),(0,b.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,b.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,b.jsx)(g.RefreshCw,{className:"w-4 h-4"}),"Data Sync"]}),(0,b.jsx)("p",{className:"text-[11px] text-zinc-500 mb-3",children:"Re-scan all agent sessions."}),(0,b.jsxs)("button",{onClick:K,disabled:x.isPending,className:"flex items-center gap-2 px-3 py-2 text-xs bg-indigo-600 text-white rounded-lg disabled:opacity-50",children:[x.isPending?(0,b.jsx)(i.Loader2,{className:"w-3.5 h-3.5 animate-spin"}):(0,b.jsx)(g.RefreshCw,{className:"w-3.5 h-3.5"}),"Re-sync Now"]}),y&&(0,b.jsx)("p",{className:"text-[11px] text-green-500 mt-2",children:y})]}),(0,b.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,b.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,b.jsx)(l.BarChart3,{className:"w-4 h-4"}),"Telemetry"]}),G?(0,b.jsx)(i.Loader2,{className:"w-4 h-4 animate-spin text-zinc-500"}):(0,b.jsxs)("label",{className:"flex items-center gap-3 cursor-pointer",children:[(0,b.jsx)("input",{type:"checkbox",checked:!E,onChange:L,className:"w-4 h-4 rounded border-zinc-700 text-indigo-500 focus:ring-indigo-500"}),(0,b.jsx)("span",{className:"text-xs",children:"Send anonymous usage data"})]})]}),(0,b.jsxs)("div",{className:"bg-zinc-900 border border-zinc-800 rounded-lg p-4",children:[(0,b.jsxs)("h3",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,b.jsx)(m.Settings,{className:"w-4 h-4"}),"About"]}),(0,b.jsxs)("div",{className:"text-xs space-y-1 text-zinc-400",children:[(0,b.jsxs)("p",{children:["Version: ",v||"..."]}),(0,b.jsxs)("p",{children:["Tier: ",(0,b.jsx)("span",{className:"capitalize",children:u})]}),(0,b.jsx)("p",{children:"Data access: Read-only"})]})]}),a&&(0,b.jsxs)("button",{onClick:M,className:"flex items-center gap-2 w-full px-4 py-3 text-sm text-red-400 bg-zinc-900 border border-zinc-800 rounded-lg",children:[(0,b.jsx)(n.LogOut,{className:"w-4 h-4"}),"Sign out"]})]})]})}a.s(["default",()=>u])}];
2
-
3
- //# sourceMappingURL=_cd50a174._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},5784,a=>{"use strict";let b=(0,a.i(60137).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);a.s(["ChevronDown",()=>b],5784)},67552,a=>{"use strict";let b=(0,a.i(60137).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);a.s(["ChevronUp",()=>b],67552)},65870,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(19032);function e(){let[a,e]=(0,c.useState)(null),[f,g]=(0,c.useState)(null),[h,i]=(0,c.useState)(null),[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)("");(0,c.useEffect)(()=>{fetch((0,d.api)("/api/cortex/settings")).then(a=>a.json()).then(e).catch(()=>{}),fetch((0,d.api)("/api/cortex/usage")).then(a=>a.json()).then(i).catch(()=>{})},[]);let n=async a=>{k(!0);try{if((await fetch((0,d.api)("/api/cortex/settings"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok){let b={...a};b.anthropic_api_key&&(b.anthropic_api_key=`…${b.anthropic_api_key.slice(-4)}`),b.openai_api_key&&(b.openai_api_key=`…${b.openai_api_key.slice(-4)}`),e(a=>({...a,...b}))}}catch{}finally{k(!1)}},o=async()=>{await fetch((0,d.api)("/api/cortex/ingest/bootstrap"),{method:"POST"});let a=setInterval(async()=>{let b=await fetch((0,d.api)("/api/cortex/ingest/status")),c=await b.json();g(c),("complete"===c.status||"error"===c.status)&&clearInterval(a)},2e3)},p=a?.enabled??!1,q=p?"":"opacity-40 pointer-events-none";return(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("h3",{className:"text-sm font-medium text-gray-200",children:["Cortex",(0,b.jsx)("span",{className:"ml-2 text-[9px] font-medium uppercase tracking-wider text-purple-400 bg-purple-400/10 px-1.5 py-0.5 rounded",children:"Beta"})]}),(0,b.jsxs)("label",{className:"flex items-center justify-between",children:[(0,b.jsx)("span",{className:"text-xs text-gray-400",children:"Enable Cortex"}),(0,b.jsx)("input",{type:"checkbox",checked:p,disabled:!a,onChange:a=>n({enabled:a.target.checked}),className:"accent-purple-500"})]}),!a&&(0,b.jsx)("p",{className:"text-[10px] text-gray-500",children:"Loading…"}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)("span",{className:"text-xs text-gray-400",children:"Anthropic API key"}),a?.anthropic_api_key?(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("span",{className:"text-xs text-gray-500 font-mono",children:["sk-ant-",a.anthropic_api_key]}),(0,b.jsx)("button",{onClick:()=>n({anthropic_api_key:""}),className:"text-[10px] text-gray-600 hover:text-red-400",children:"remove"})]}):(0,b.jsxs)("div",{className:"flex gap-1",children:[(0,b.jsx)("input",{type:"password",value:l,onChange:a=>m(a.target.value),placeholder:"sk-ant-…",className:"flex-1 text-xs bg-white/5 border border-white/10 rounded px-2 py-1 text-gray-300 placeholder-gray-600"}),(0,b.jsx)("button",{onClick:()=>{l&&(n({anthropic_api_key:l}),m(""))},disabled:!l,className:"text-xs px-2 py-1 bg-purple-600 hover:bg-purple-500 text-white rounded disabled:opacity-30",children:"Save"})]}),(0,b.jsx)("p",{className:"text-[10px] text-gray-600",children:"Used for LLM distillation. Falls back to ANTHROPIC_API_KEY env var."})]}),(0,b.jsxs)("label",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{className:"text-xs text-gray-400",children:"Debug logging"}),(0,b.jsx)("p",{className:"text-[10px] text-gray-600",children:"Verbose memory, LanceDB, embedding, and distillation logs in server console"})]}),(0,b.jsx)("input",{type:"checkbox",checked:a?.debug??!1,onChange:a=>n({debug:a.target.checked}),className:"accent-purple-500 shrink-0 ml-3"})]}),(0,b.jsxs)("div",{className:`flex items-center justify-between ${q}`,children:[(0,b.jsx)("span",{className:"text-xs text-gray-400",children:"Embedding provider"}),(0,b.jsx)("span",{className:"text-xs text-gray-300",children:a?.embedding?.provider||"auto"})]}),(0,b.jsxs)("div",{className:`block ${q}`,children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,b.jsx)("span",{className:"text-xs text-gray-400",children:"Context injection budget"}),(0,b.jsxs)("span",{className:"text-[10px] text-gray-500",children:[a?.injection?.max_tokens||2e3," tokens"]})]}),(0,b.jsx)("input",{type:"range",min:500,max:2e4,step:500,value:a?.injection?.max_tokens||2e3,onChange:a=>n({injection:{max_tokens:parseInt(a.target.value)}}),className:"w-full"}),(0,b.jsx)("p",{className:"text-[10px] text-gray-600 mt-0.5",children:"Tokens of retrieved knowledge injected per prompt (Claude context: 200K)"})]}),(0,b.jsxs)("label",{className:`flex items-center justify-between ${q}`,children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{className:"text-xs text-gray-400",children:"LLM distillation"}),(0,b.jsx)("p",{className:"text-[10px] text-gray-600",children:"4 Haiku API calls per session end — cleaner knowledge at ~$0.03–0.05/session"})]}),(0,b.jsx)("input",{type:"checkbox",checked:a?.ingestion?.distillation??!0,onChange:a=>n({ingestion:{distillation:a.target.checked}}),className:"accent-purple-500 shrink-0 ml-3"})]}),(0,b.jsxs)("div",{className:`block ${q}`,children:[(0,b.jsx)("span",{className:"text-xs text-gray-400",children:"Federation sync mode"}),(0,b.jsx)("p",{className:"text-[10px] text-gray-600 mb-1",children:"How knowledge is shared across multiple Spaces instances"}),(0,b.jsxs)("select",{value:a?.federation?.sync_mode||"query-only",onChange:a=>n({federation:{sync_mode:a.target.value}}),className:"w-full text-xs bg-white/5 border border-white/10 rounded px-2 py-1 text-gray-300",children:[(0,b.jsx)("option",{value:"query-only",children:"Query Only — read from remotes, no push"}),(0,b.jsx)("option",{value:"background-sync",children:"Background Sync — periodic two-way sync"}),(0,b.jsx)("option",{value:"real-time-sync",children:"Real-time Sync — sync on every store"})]})]}),h&&h.distillation?.calls>0&&(0,b.jsxs)("div",{className:"pt-2 border-t border-white/5",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,b.jsx)("span",{className:"text-xs text-gray-400",children:"Distillation usage"}),(0,b.jsx)("button",{onClick:()=>fetch((0,d.api)("/api/cortex/usage"),{method:"DELETE"}).then(()=>i(null)),className:"text-[10px] text-gray-600 hover:text-gray-400",children:"reset"})]}),(0,b.jsxs)("div",{className:"text-[10px] text-gray-500 space-y-0.5",children:[(0,b.jsxs)("div",{className:"flex justify-between",children:[(0,b.jsx)("span",{children:"API calls"}),(0,b.jsx)("span",{className:"text-gray-400",children:h.distillation.calls.toLocaleString()})]}),(0,b.jsxs)("div",{className:"flex justify-between",children:[(0,b.jsx)("span",{children:"Tokens in / out"}),(0,b.jsxs)("span",{className:"text-gray-400",children:[(h.distillation.input_tokens/1e3).toFixed(1),"K / ",(h.distillation.output_tokens/1e3).toFixed(1),"K"]})]}),(0,b.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,b.jsx)("span",{children:"Estimated cost"}),(0,b.jsxs)("span",{className:"text-purple-400",children:["$",h.distillation.estimated_cost_usd.toFixed(4)]})]})]})]}),(0,b.jsxs)("div",{className:`pt-2 border-t border-white/5 ${q}`,children:[(0,b.jsx)("button",{onClick:o,disabled:f?.status==="running",className:"text-xs px-3 py-1.5 bg-purple-600 hover:bg-purple-500 text-white rounded disabled:opacity-50",children:f?.status==="running"?"Ingesting...":"Bootstrap Ingestion"}),f?.status==="running"&&(0,b.jsxs)("div",{className:"mt-2",children:[(0,b.jsx)("div",{className:"w-full h-1.5 bg-white/5 rounded-full overflow-hidden",children:(0,b.jsx)("div",{className:"h-full bg-purple-500 rounded-full transition-all",style:{width:`${f.processedFiles/Math.max(f.totalFiles,1)*100}%`}})}),(0,b.jsxs)("span",{className:"text-[10px] text-gray-500",children:[f.processedFiles,"/",f.totalFiles," files"]})]})]})]})}a.s(["CortexSettings",()=>e])}];
2
-
3
- //# sourceMappingURL=_e7a9e2b0._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[96221,a=>{"use strict";let b=(0,a.i(60137).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],96221)},99464,a=>{"use strict";let b=(0,a.i(60137).default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);a.s(["Pencil",()=>b],99464)},15618,a=>{"use strict";let b=(0,a.i(60137).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",()=>b],15618)},72825,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(60246),e=a.i(15618),f=a.i(99464),g=a.i(81560),h=a.i(96221);let i=(0,a.i(60137).default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);var j=a.i(33508),k=a.i(19032);function l(){let[a,l]=(0,c.useState)([]),[m,n]=(0,c.useState)(!0),[o,p]=(0,c.useState)(""),[q,r]=(0,c.useState)(!1),[s,t]=(0,c.useState)({username:"",password:"",displayName:"",shellUser:"",role:"user"}),[u,v]=(0,c.useState)(""),[w,x]=(0,c.useState)(!1),[y,z]=(0,c.useState)(null),[A,B]=(0,c.useState)({displayName:"",shellUser:"",role:"",password:""}),[C,D]=(0,c.useState)(""),[E,F]=(0,c.useState)(!1),G=async()=>{try{let a=await fetch((0,k.api)("/api/admin/users"));if(!a.ok)throw Error("Failed to load users");l(await a.json())}catch(a){p(a.message)}n(!1)};(0,c.useEffect)(()=>{G()},[]);let H=async b=>{b.preventDefault(),x(!0),v("");let c=await fetch((0,k.api)("/api/admin/users"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),d=await c.json();(x(!1),c.ok)?(l([...a,d]),r(!1),t({username:"",password:"",displayName:"",shellUser:"",role:"user"})):v(d.error)},I=async b=>{if(b.preventDefault(),!y)return;F(!0),D("");let c={displayName:A.displayName,shellUser:A.shellUser,role:A.role};A.password&&(c.password=A.password);let d=await fetch((0,k.api)(`/api/admin/users/${y.id}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}),e=await d.json();(F(!1),d.ok)?(l(a.map(a=>a.id===y.id?e:a)),z(null)):D(e.error)},J=async b=>{if(!confirm(`Reset 2FA for ${b.username}? They will need to set up TOTP again on next login.`))return;let c=await fetch((0,k.api)(`/api/admin/users/${b.id}`),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({totpReset:!0})}),d=await c.json();c.ok&&l(a.map(a=>a.id===b.id?d:a))},K=async b=>{if(!confirm(`Delete user "${b.username}"? This cannot be undone.`))return;let c=await fetch((0,k.api)(`/api/admin/users/${b.id}`),{method:"DELETE"}),d=await c.json();c.ok?l(a.filter(a=>a.id!==b.id)):alert(d.error||"Failed to delete user")};return m?(0,b.jsxs)("div",{className:"p-6 flex items-center gap-2 text-zinc-400",children:[(0,b.jsx)(h.Loader2,{className:"w-4 h-4 animate-spin"}),"Loading users..."]}):(0,b.jsxs)("div",{className:"p-6 max-w-4xl",children:[(0,b.jsxs)("div",{className:"mb-6 flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h1",{className:"text-2xl font-bold flex items-center gap-2",children:[(0,b.jsx)(d.Users,{className:"w-6 h-6"}),"User Management"]}),(0,b.jsx)("p",{className:"text-muted-foreground text-sm mt-1",children:"Manage users and their OS shell user mappings"})]}),(0,b.jsxs)("button",{onClick:()=>r(!q),className:"flex items-center gap-2 px-4 py-2 text-sm bg-indigo-600 text-white rounded-md hover:bg-indigo-500",children:[(0,b.jsx)(e.Plus,{className:"w-4 h-4"}),"Add User"]})]}),o&&(0,b.jsx)("p",{className:"text-red-400 text-sm mb-4",children:o}),q&&(0,b.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-lg p-5 mb-6",children:[(0,b.jsx)("h3",{className:"font-semibold mb-4",children:"New User"}),(0,b.jsxs)("form",{onSubmit:H,className:"grid grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"text-xs text-zinc-400 block mb-1",children:"Username"}),(0,b.jsx)("input",{type:"text",value:s.username,onChange:a=>t({...s,username:a.target.value}),required:!0,className:"w-full px-3 py-2 text-sm bg-zinc-50 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md focus:outline-none focus:border-indigo-500"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"text-xs text-zinc-400 block mb-1",children:"Password"}),(0,b.jsx)("input",{type:"password",value:s.password,onChange:a=>t({...s,password:a.target.value}),required:!0,minLength:8,className:"w-full px-3 py-2 text-sm bg-zinc-50 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md focus:outline-none focus:border-indigo-500"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"text-xs text-zinc-400 block mb-1",children:"Display Name"}),(0,b.jsx)("input",{type:"text",value:s.displayName,onChange:a=>t({...s,displayName:a.target.value}),placeholder:"Optional",className:"w-full px-3 py-2 text-sm bg-zinc-50 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md focus:outline-none focus:border-indigo-500"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"text-xs text-zinc-400 block mb-1",children:"Shell User (OS user)"}),(0,b.jsx)("input",{type:"text",value:s.shellUser,onChange:a=>t({...s,shellUser:a.target.value}),required:!0,placeholder:"e.g. devuser",className:"w-full px-3 py-2 text-sm bg-zinc-50 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md focus:outline-none focus:border-indigo-500"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"text-xs text-zinc-400 block mb-1",children:"Role"}),(0,b.jsxs)("select",{value:s.role,onChange:a=>t({...s,role:a.target.value}),className:"w-full px-3 py-2 text-sm bg-zinc-50 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md focus:outline-none focus:border-indigo-500",children:[(0,b.jsx)("option",{value:"user",children:"User"}),(0,b.jsx)("option",{value:"admin",children:"Admin"})]})]}),(0,b.jsxs)("div",{className:"flex items-end gap-2",children:[(0,b.jsxs)("button",{type:"submit",disabled:w,className:"flex items-center gap-2 px-4 py-2 text-sm bg-indigo-600 text-white rounded-md hover:bg-indigo-500 disabled:opacity-50",children:[w&&(0,b.jsx)(h.Loader2,{className:"w-3 h-3 animate-spin"}),"Create"]}),(0,b.jsx)("button",{type:"button",onClick:()=>r(!1),className:"px-4 py-2 text-sm text-zinc-400 hover:text-white",children:"Cancel"})]}),u&&(0,b.jsx)("p",{className:"text-red-400 text-sm col-span-2",children:u})]})]}),y&&(0,b.jsxs)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-lg p-5 mb-6",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,b.jsxs)("h3",{className:"font-semibold",children:["Edit: ",y.username]}),(0,b.jsx)("button",{onClick:()=>z(null),className:"text-zinc-400 hover:text-white",children:(0,b.jsx)(j.X,{className:"w-4 h-4"})})]}),(0,b.jsxs)("form",{onSubmit:I,className:"grid grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"text-xs text-zinc-400 block mb-1",children:"Display Name"}),(0,b.jsx)("input",{type:"text",value:A.displayName,onChange:a=>B({...A,displayName:a.target.value}),className:"w-full px-3 py-2 text-sm bg-zinc-50 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md focus:outline-none focus:border-indigo-500"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"text-xs text-zinc-400 block mb-1",children:"Shell User"}),(0,b.jsx)("input",{type:"text",value:A.shellUser,onChange:a=>B({...A,shellUser:a.target.value}),className:"w-full px-3 py-2 text-sm bg-zinc-50 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md focus:outline-none focus:border-indigo-500"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"text-xs text-zinc-400 block mb-1",children:"Role"}),(0,b.jsxs)("select",{value:A.role,onChange:a=>B({...A,role:a.target.value}),className:"w-full px-3 py-2 text-sm bg-zinc-50 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md focus:outline-none focus:border-indigo-500",children:[(0,b.jsx)("option",{value:"user",children:"User"}),(0,b.jsx)("option",{value:"admin",children:"Admin"})]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"text-xs text-zinc-400 block mb-1",children:"New Password (leave empty to keep)"}),(0,b.jsx)("input",{type:"password",value:A.password,onChange:a=>B({...A,password:a.target.value}),placeholder:"Unchanged",minLength:8,className:"w-full px-3 py-2 text-sm bg-zinc-50 dark:bg-zinc-800 border border-zinc-200 dark:border-zinc-700 rounded-md focus:outline-none focus:border-indigo-500"})]}),(0,b.jsxs)("div",{className:"flex items-end gap-2 col-span-2",children:[(0,b.jsxs)("button",{type:"submit",disabled:E,className:"flex items-center gap-2 px-4 py-2 text-sm bg-indigo-600 text-white rounded-md hover:bg-indigo-500 disabled:opacity-50",children:[E&&(0,b.jsx)(h.Loader2,{className:"w-3 h-3 animate-spin"}),"Save"]}),(0,b.jsx)("button",{type:"button",onClick:()=>z(null),className:"px-4 py-2 text-sm text-zinc-400 hover:text-white",children:"Cancel"})]}),C&&(0,b.jsx)("p",{className:"text-red-400 text-sm col-span-2",children:C})]})]}),(0,b.jsx)("div",{className:"bg-white dark:bg-zinc-900 border border-zinc-200 dark:border-zinc-800 rounded-lg overflow-hidden",children:(0,b.jsxs)("table",{className:"w-full text-sm",children:[(0,b.jsx)("thead",{className:"bg-zinc-50 dark:bg-zinc-800/50",children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{className:"text-left px-4 py-3 font-medium text-zinc-500",children:"Username"}),(0,b.jsx)("th",{className:"text-left px-4 py-3 font-medium text-zinc-500",children:"Display Name"}),(0,b.jsx)("th",{className:"text-left px-4 py-3 font-medium text-zinc-500",children:"Shell User"}),(0,b.jsx)("th",{className:"text-left px-4 py-3 font-medium text-zinc-500",children:"Role"}),(0,b.jsx)("th",{className:"text-left px-4 py-3 font-medium text-zinc-500",children:"2FA"}),(0,b.jsx)("th",{className:"text-left px-4 py-3 font-medium text-zinc-500",children:"Created"}),(0,b.jsx)("th",{className:"text-right px-4 py-3 font-medium text-zinc-500",children:"Actions"})]})}),(0,b.jsxs)("tbody",{className:"divide-y divide-zinc-100 dark:divide-zinc-800",children:[a.map(a=>(0,b.jsxs)("tr",{className:"hover:bg-zinc-50 dark:hover:bg-zinc-800/30",children:[(0,b.jsx)("td",{className:"px-4 py-3 font-mono",children:a.username}),(0,b.jsx)("td",{className:"px-4 py-3",children:a.displayName}),(0,b.jsx)("td",{className:"px-4 py-3 font-mono text-zinc-400",children:a.shellUser}),(0,b.jsx)("td",{className:"px-4 py-3",children:(0,b.jsx)("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-xs font-medium ${"admin"===a.role?"bg-indigo-100 text-indigo-700 dark:bg-indigo-900/30 dark:text-indigo-300":"bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400"}`,children:a.role})}),(0,b.jsx)("td",{className:"px-4 py-3",children:(0,b.jsx)("span",{className:`text-xs ${a.totpEnabled?"text-green-500":"text-zinc-500"}`,children:a.totpEnabled?"Enabled":"Not set"})}),(0,b.jsx)("td",{className:"px-4 py-3 text-zinc-400 text-xs",children:a.created?new Date(a.created+"Z").toLocaleDateString():""}),(0,b.jsx)("td",{className:"px-4 py-3 text-right",children:(0,b.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,b.jsx)("button",{onClick:()=>{z(a),B({displayName:a.displayName,shellUser:a.shellUser,role:a.role,password:""}),D("")},className:"p-1.5 text-zinc-400 hover:text-indigo-400 rounded",title:"Edit",children:(0,b.jsx)(f.Pencil,{className:"w-3.5 h-3.5"})}),a.totpEnabled&&(0,b.jsx)("button",{onClick:()=>J(a),className:"p-1.5 text-zinc-400 hover:text-amber-400 rounded",title:"Reset 2FA",children:(0,b.jsx)(i,{className:"w-3.5 h-3.5"})}),(0,b.jsx)("button",{onClick:()=>K(a),className:"p-1.5 text-zinc-400 hover:text-red-400 rounded",title:"Delete",children:(0,b.jsx)(g.Trash2,{className:"w-3.5 h-3.5"})})]})})]},a.id)),0===a.length&&(0,b.jsx)("tr",{children:(0,b.jsxs)("td",{colSpan:7,className:"px-4 py-8 text-center text-zinc-500",children:["No users yet. Run ",(0,b.jsx)("code",{className:"bg-zinc-800 px-1.5 py-0.5 rounded text-xs",children:"npm run setup-admin"})," to create the first admin."]})})]})]})})]})}a.s(["default",()=>l],72825)}];
2
-
3
- //# sourceMappingURL=_ed6c285b._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[10924,a=>{"use strict";a.s(["Sidebar",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call Sidebar() from the server but Sidebar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/layout/sidebar.tsx <module evaluation>","Sidebar")},82671,a=>{"use strict";a.s(["Sidebar",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call Sidebar() from the server but Sidebar is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/layout/sidebar.tsx","Sidebar")},45534,a=>{"use strict";a.i(10924);var b=a.i(82671);a.n(b)},96773,a=>{"use strict";var b=a.i(7997),c=a.i(45534);function d({children:a}){return(0,b.jsxs)("div",{className:"flex min-h-screen",children:[(0,b.jsx)(c.Sidebar,{}),(0,b.jsx)("main",{className:"flex-1 ml-56",children:a})]})}a.s(["default",()=>d])}];
2
-
3
- //# sourceMappingURL=src_133a7c8a._.js.map