@sleep2agi/agent-network-dashboard 0.4.6-preview.4 → 0.4.6-preview.405

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 (1200) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +3 -0
  3. package/.next/build/chunks/00jm_02mlcew._.js +6766 -0
  4. package/.next/build/chunks/00jm_02mlcew._.js.map +47 -0
  5. package/.next/build/chunks/[root-of-the-server]__0tgc-8p._.js +500 -0
  6. package/.next/build/chunks/[root-of-the-server]__13z64y.._.js +206 -0
  7. package/.next/build/chunks/[root-of-the-server]__13z64y.._.js.map +8 -0
  8. package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0r4x5ys._.js +13 -0
  9. package/.next/build/chunks/[turbopack]_runtime.js +1 -1
  10. package/.next/build/postcss.js +4 -4
  11. package/.next/build-manifest.json +8 -8
  12. package/.next/diagnostics/route-bundle-stats.json +157 -143
  13. package/.next/fallback-build-manifest.json +3 -3
  14. package/.next/next-minimal-server.js.nft.json +1 -1
  15. package/.next/next-server.js.nft.json +1 -1
  16. package/.next/prerender-manifest.json +3 -3
  17. package/.next/required-server-files.js +4 -4
  18. package/.next/required-server-files.json +4 -4
  19. package/.next/routes-manifest.json +22 -0
  20. package/.next/server/app/_global-error/page/build-manifest.json +5 -5
  21. package/.next/server/app/_global-error/page.js +9 -9
  22. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  23. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/_global-error.html +1 -1
  25. package/.next/server/app/_global-error.rsc +8 -8
  26. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
  27. package/.next/server/app/_global-error.segments/_full.segment.rsc +8 -8
  28. package/.next/server/app/_global-error.segments/_head.segment.rsc +4 -4
  29. package/.next/server/app/_global-error.segments/_index.segment.rsc +3 -3
  30. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  31. package/.next/server/app/_not-found/page/build-manifest.json +5 -5
  32. package/.next/server/app/_not-found/page/next-font-manifest.json +1 -1
  33. package/.next/server/app/_not-found/page.js +12 -12
  34. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  35. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/_not-found.html +2 -2
  37. package/.next/server/app/_not-found.rsc +12 -12
  38. package/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
  39. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  40. package/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
  41. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  42. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  43. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  44. package/.next/server/app/admin/page/build-manifest.json +5 -5
  45. package/.next/server/app/admin/page/next-font-manifest.json +1 -1
  46. package/.next/server/app/admin/page.js +13 -13
  47. package/.next/server/app/admin/page.js.nft.json +1 -1
  48. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  49. package/.next/server/app/admin.html +2 -2
  50. package/.next/server/app/admin.rsc +14 -14
  51. package/.next/server/app/admin.segments/_full.segment.rsc +14 -14
  52. package/.next/server/app/admin.segments/_head.segment.rsc +4 -4
  53. package/.next/server/app/admin.segments/_index.segment.rsc +7 -7
  54. package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
  55. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +4 -4
  56. package/.next/server/app/admin.segments/admin.segment.rsc +3 -3
  57. package/.next/server/app/api/anet/config/route.js +6 -6
  58. package/.next/server/app/api/anet/config/route.js.nft.json +1 -1
  59. package/.next/server/app/api/auth/login/route.js +7 -7
  60. package/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  61. package/.next/server/app/api/auth/logout/route.js +7 -7
  62. package/.next/server/app/api/auth/logout/route.js.nft.json +1 -1
  63. package/.next/server/app/api/auth/v3/route.js +7 -7
  64. package/.next/server/app/api/auth/v3/route.js.nft.json +1 -1
  65. package/.next/server/app/api/hub/audit-log/route.js +6 -6
  66. package/.next/server/app/api/hub/audit-log/route.js.nft.json +1 -1
  67. package/.next/server/app/api/hub/auth/route.js +7 -7
  68. package/.next/server/app/api/hub/auth/route.js.nft.json +1 -1
  69. package/.next/server/app/api/hub/broadcast/route.js +6 -6
  70. package/.next/server/app/api/hub/broadcast/route.js.nft.json +1 -1
  71. package/.next/server/app/api/hub/events/route.js +6 -6
  72. package/.next/server/app/api/hub/events/route.js.nft.json +1 -1
  73. package/.next/server/app/api/hub/health/route.js +6 -6
  74. package/.next/server/app/api/hub/health/route.js.nft.json +1 -1
  75. package/.next/server/app/api/hub/inbox/route.js +6 -6
  76. package/.next/server/app/api/hub/inbox/route.js.nft.json +1 -1
  77. package/.next/server/app/api/hub/license/route.js +6 -6
  78. package/.next/server/app/api/hub/license/route.js.nft.json +1 -1
  79. package/.next/server/app/api/hub/messages/route.js +6 -6
  80. package/.next/server/app/api/hub/messages/route.js.nft.json +1 -1
  81. package/.next/server/app/api/hub/networks/route.js +6 -6
  82. package/.next/server/app/api/hub/networks/route.js.nft.json +1 -1
  83. package/.next/server/app/api/hub/nodes/route.js +6 -6
  84. package/.next/server/app/api/hub/nodes/route.js.nft.json +1 -1
  85. package/.next/server/app/api/hub/register/route.js +6 -6
  86. package/.next/server/app/api/hub/register/route.js.nft.json +1 -1
  87. package/.next/server/app/api/hub/send/route.js +6 -6
  88. package/.next/server/app/api/hub/send/route.js.nft.json +1 -1
  89. package/.next/server/app/api/hub/server/[hostname]/agents/route/app-paths-manifest.json +3 -0
  90. package/.next/server/app/api/hub/server/[hostname]/agents/route/build-manifest.json +9 -0
  91. package/.next/server/app/api/hub/server/[hostname]/agents/route/server-reference-manifest.json +4 -0
  92. package/.next/server/app/api/hub/server/[hostname]/agents/route.js +7 -0
  93. package/.next/server/app/api/hub/server/[hostname]/agents/route.js.map +5 -0
  94. package/.next/server/app/api/hub/server/[hostname]/agents/route.js.nft.json +1 -0
  95. package/.next/server/app/api/hub/server/[hostname]/agents/route_client-reference-manifest.js +3 -0
  96. package/.next/server/app/api/hub/server/[hostname]/health/route/app-paths-manifest.json +3 -0
  97. package/.next/server/app/api/hub/server/[hostname]/health/route/build-manifest.json +9 -0
  98. package/.next/server/app/api/hub/server/[hostname]/health/route/server-reference-manifest.json +4 -0
  99. package/.next/server/app/api/hub/server/[hostname]/health/route.js +7 -0
  100. package/.next/server/app/api/hub/server/[hostname]/health/route.js.map +5 -0
  101. package/.next/server/app/api/hub/server/[hostname]/health/route.js.nft.json +1 -0
  102. package/.next/server/app/api/hub/server/[hostname]/health/route_client-reference-manifest.js +3 -0
  103. package/.next/server/app/api/hub/server-logs/route.js +6 -6
  104. package/.next/server/app/api/hub/server-logs/route.js.nft.json +1 -1
  105. package/.next/server/app/api/hub/servers/route/app-paths-manifest.json +3 -0
  106. package/.next/server/app/api/hub/servers/route/build-manifest.json +9 -0
  107. package/.next/server/app/api/hub/servers/route/server-reference-manifest.json +4 -0
  108. package/.next/server/app/api/hub/servers/route.js +7 -0
  109. package/.next/server/app/api/hub/servers/route.js.map +5 -0
  110. package/.next/server/app/api/hub/servers/route.js.nft.json +1 -0
  111. package/.next/server/app/api/hub/servers/route_client-reference-manifest.js +3 -0
  112. package/.next/server/app/api/hub/session/route.js +6 -6
  113. package/.next/server/app/api/hub/session/route.js.nft.json +1 -1
  114. package/.next/server/app/api/hub/stats/route.js +6 -6
  115. package/.next/server/app/api/hub/stats/route.js.nft.json +1 -1
  116. package/.next/server/app/api/hub/status/route.js +6 -6
  117. package/.next/server/app/api/hub/status/route.js.nft.json +1 -1
  118. package/.next/server/app/api/hub/task-events/route.js +6 -6
  119. package/.next/server/app/api/hub/task-events/route.js.nft.json +1 -1
  120. package/.next/server/app/api/hub/tasks/route.js +6 -6
  121. package/.next/server/app/api/hub/tasks/route.js.nft.json +1 -1
  122. package/.next/server/app/api/hub/tmux/route.js +6 -6
  123. package/.next/server/app/api/hub/tmux/route.js.nft.json +1 -1
  124. package/.next/server/app/api/hub/tokens/route.js +6 -6
  125. package/.next/server/app/api/hub/tokens/route.js.nft.json +1 -1
  126. package/.next/server/app/favicon.ico/route.js +6 -6
  127. package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
  128. package/.next/server/app/index.html +2 -2
  129. package/.next/server/app/index.rsc +14 -14
  130. package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  131. package/.next/server/app/index.segments/_full.segment.rsc +14 -14
  132. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  133. package/.next/server/app/index.segments/_index.segment.rsc +7 -7
  134. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  135. package/.next/server/app/login/page/build-manifest.json +5 -5
  136. package/.next/server/app/login/page/next-font-manifest.json +1 -1
  137. package/.next/server/app/login/page.js +13 -13
  138. package/.next/server/app/login/page.js.nft.json +1 -1
  139. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  140. package/.next/server/app/login.html +2 -2
  141. package/.next/server/app/login.rsc +14 -14
  142. package/.next/server/app/login.segments/_full.segment.rsc +14 -14
  143. package/.next/server/app/login.segments/_head.segment.rsc +4 -4
  144. package/.next/server/app/login.segments/_index.segment.rsc +7 -7
  145. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  146. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  147. package/.next/server/app/login.segments/login.segment.rsc +3 -3
  148. package/.next/server/app/logs/page/build-manifest.json +5 -5
  149. package/.next/server/app/logs/page/next-font-manifest.json +1 -1
  150. package/.next/server/app/logs/page.js +13 -13
  151. package/.next/server/app/logs/page.js.nft.json +1 -1
  152. package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  153. package/.next/server/app/logs.html +2 -2
  154. package/.next/server/app/logs.rsc +14 -14
  155. package/.next/server/app/logs.segments/_full.segment.rsc +14 -14
  156. package/.next/server/app/logs.segments/_head.segment.rsc +4 -4
  157. package/.next/server/app/logs.segments/_index.segment.rsc +7 -7
  158. package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
  159. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +4 -4
  160. package/.next/server/app/logs.segments/logs.segment.rsc +3 -3
  161. package/.next/server/app/messages/page/build-manifest.json +5 -5
  162. package/.next/server/app/messages/page/next-font-manifest.json +1 -1
  163. package/.next/server/app/messages/page.js +13 -13
  164. package/.next/server/app/messages/page.js.nft.json +1 -1
  165. package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
  166. package/.next/server/app/messages.html +2 -2
  167. package/.next/server/app/messages.rsc +14 -14
  168. package/.next/server/app/messages.segments/_full.segment.rsc +14 -14
  169. package/.next/server/app/messages.segments/_head.segment.rsc +4 -4
  170. package/.next/server/app/messages.segments/_index.segment.rsc +7 -7
  171. package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
  172. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +4 -4
  173. package/.next/server/app/messages.segments/messages.segment.rsc +3 -3
  174. package/.next/server/app/node/page/build-manifest.json +5 -5
  175. package/.next/server/app/node/page/next-font-manifest.json +1 -1
  176. package/.next/server/app/node/page.js +13 -13
  177. package/.next/server/app/node/page.js.nft.json +1 -1
  178. package/.next/server/app/node/page_client-reference-manifest.js +1 -1
  179. package/.next/server/app/node.html +2 -2
  180. package/.next/server/app/node.rsc +14 -14
  181. package/.next/server/app/node.segments/_full.segment.rsc +14 -14
  182. package/.next/server/app/node.segments/_head.segment.rsc +4 -4
  183. package/.next/server/app/node.segments/_index.segment.rsc +7 -7
  184. package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
  185. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +4 -4
  186. package/.next/server/app/node.segments/node.segment.rsc +3 -3
  187. package/.next/server/app/nodes/page/build-manifest.json +5 -5
  188. package/.next/server/app/nodes/page/next-font-manifest.json +1 -1
  189. package/.next/server/app/nodes/page.js +13 -13
  190. package/.next/server/app/nodes/page.js.nft.json +1 -1
  191. package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  192. package/.next/server/app/nodes.html +2 -2
  193. package/.next/server/app/nodes.rsc +14 -14
  194. package/.next/server/app/nodes.segments/_full.segment.rsc +14 -14
  195. package/.next/server/app/nodes.segments/_head.segment.rsc +4 -4
  196. package/.next/server/app/nodes.segments/_index.segment.rsc +7 -7
  197. package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
  198. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +4 -4
  199. package/.next/server/app/nodes.segments/nodes.segment.rsc +3 -3
  200. package/.next/server/app/page/build-manifest.json +5 -5
  201. package/.next/server/app/page/next-font-manifest.json +1 -1
  202. package/.next/server/app/page.js +13 -13
  203. package/.next/server/app/page.js.nft.json +1 -1
  204. package/.next/server/app/page_client-reference-manifest.js +1 -1
  205. package/.next/server/app/server-logs/page/build-manifest.json +5 -5
  206. package/.next/server/app/server-logs/page/next-font-manifest.json +1 -1
  207. package/.next/server/app/server-logs/page.js +13 -13
  208. package/.next/server/app/server-logs/page.js.nft.json +1 -1
  209. package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
  210. package/.next/server/app/server-logs.html +2 -2
  211. package/.next/server/app/server-logs.rsc +14 -14
  212. package/.next/server/app/server-logs.segments/_full.segment.rsc +14 -14
  213. package/.next/server/app/server-logs.segments/_head.segment.rsc +4 -4
  214. package/.next/server/app/server-logs.segments/_index.segment.rsc +7 -7
  215. package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
  216. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +4 -4
  217. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +3 -3
  218. package/.next/server/app/settings/networks/page/build-manifest.json +5 -5
  219. package/.next/server/app/settings/networks/page/next-font-manifest.json +1 -1
  220. package/.next/server/app/settings/networks/page.js +13 -13
  221. package/.next/server/app/settings/networks/page.js.nft.json +1 -1
  222. package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
  223. package/.next/server/app/settings/networks.html +2 -2
  224. package/.next/server/app/settings/networks.rsc +14 -14
  225. package/.next/server/app/settings/networks.segments/_full.segment.rsc +14 -14
  226. package/.next/server/app/settings/networks.segments/_head.segment.rsc +4 -4
  227. package/.next/server/app/settings/networks.segments/_index.segment.rsc +7 -7
  228. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
  229. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +4 -4
  230. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +3 -3
  231. package/.next/server/app/settings/networks.segments/settings.segment.rsc +3 -3
  232. package/.next/server/app/settings/page/build-manifest.json +5 -5
  233. package/.next/server/app/settings/page/next-font-manifest.json +1 -1
  234. package/.next/server/app/settings/page.js +13 -13
  235. package/.next/server/app/settings/page.js.nft.json +1 -1
  236. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  237. package/.next/server/app/settings/tokens/page/build-manifest.json +5 -5
  238. package/.next/server/app/settings/tokens/page/next-font-manifest.json +1 -1
  239. package/.next/server/app/settings/tokens/page.js +13 -13
  240. package/.next/server/app/settings/tokens/page.js.nft.json +1 -1
  241. package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
  242. package/.next/server/app/settings/tokens.html +2 -2
  243. package/.next/server/app/settings/tokens.rsc +14 -14
  244. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +14 -14
  245. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +4 -4
  246. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +7 -7
  247. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
  248. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +4 -4
  249. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +3 -3
  250. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +3 -3
  251. package/.next/server/app/settings.html +2 -2
  252. package/.next/server/app/settings.rsc +14 -14
  253. package/.next/server/app/settings.segments/_full.segment.rsc +14 -14
  254. package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  255. package/.next/server/app/settings.segments/_index.segment.rsc +7 -7
  256. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  257. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  258. package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  259. package/.next/server/app/tasks/[id]/page/build-manifest.json +5 -5
  260. package/.next/server/app/tasks/[id]/page/next-font-manifest.json +1 -1
  261. package/.next/server/app/tasks/[id]/page.js +13 -13
  262. package/.next/server/app/tasks/[id]/page.js.nft.json +1 -1
  263. package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  264. package/.next/server/app/tasks/page/build-manifest.json +5 -5
  265. package/.next/server/app/tasks/page/next-font-manifest.json +1 -1
  266. package/.next/server/app/tasks/page.js +13 -13
  267. package/.next/server/app/tasks/page.js.nft.json +1 -1
  268. package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  269. package/.next/server/app/tasks.html +2 -2
  270. package/.next/server/app/tasks.rsc +14 -14
  271. package/.next/server/app/tasks.segments/_full.segment.rsc +14 -14
  272. package/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
  273. package/.next/server/app/tasks.segments/_index.segment.rsc +7 -7
  274. package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
  275. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
  276. package/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
  277. package/.next/server/app-paths-manifest.json +3 -0
  278. package/.next/server/chunks/00jm_next_04f3gac._.js +10 -0
  279. package/.next/server/chunks/00jm_next_04f3gac._.js.map +1 -0
  280. package/.next/server/chunks/00jm_next_dist_esm_build_templates_app-route_02f430o.js +3 -0
  281. package/.next/server/chunks/00jm_next_dist_esm_build_templates_app-route_02f430o.js.map +1 -0
  282. package/.next/server/chunks/0ci9_nt-network-dashboard__next-internal_server_app_api_auth_v3_route_actions_0f5nbzr.js +3 -0
  283. package/.next/server/chunks/0ci9_nt-network-dashboard__next-internal_server_app_favicon_ico_route_actions_0t0eu9r.js +3 -0
  284. package/.next/server/chunks/0dk5_next-internal_server_app_api_hub_server_[hostname]_agents_route_actions_0vr92s4.js +3 -0
  285. package/.next/server/chunks/0dk5_next-internal_server_app_api_hub_server_[hostname]_health_route_actions_0vr-bv5.js +3 -0
  286. package/.next/server/chunks/0ykm__next-internal_server_app_api_anet_config_route_actions_0a~v55_.js +3 -0
  287. package/.next/server/chunks/0ykm__next-internal_server_app_api_auth_login_route_actions_0xnxfs4.js +3 -0
  288. package/.next/server/chunks/0ykm__next-internal_server_app_api_auth_logout_route_actions_0p8p0rn.js +3 -0
  289. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_audit-log_route_actions_06uquwi.js +3 -0
  290. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_auth_route_actions_0f_y1ey.js +3 -0
  291. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_broadcast_route_actions_0ao3j43.js +3 -0
  292. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_events_route_actions_0_5ndld.js +3 -0
  293. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_health_route_actions_0mpzl74.js +3 -0
  294. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_inbox_route_actions_0stoyto.js +3 -0
  295. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_license_route_actions_0a4.fuh.js +3 -0
  296. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_messages_route_actions_059rw1o.js +3 -0
  297. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_networks_route_actions_03sehpn.js +3 -0
  298. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_nodes_route_actions_11fbp28.js +3 -0
  299. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_register_route_actions_0l.d7~n.js +3 -0
  300. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_send_route_actions_0.p82vy.js +3 -0
  301. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_server-logs_route_actions_05~c5lb.js +3 -0
  302. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_servers_route_actions_08-m-cs.js +3 -0
  303. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_session_route_actions_0b9ef2i.js +3 -0
  304. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_stats_route_actions_03u65u0.js +3 -0
  305. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_status_route_actions_0_71ear.js +3 -0
  306. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_task-events_route_actions_07md_ee.js +3 -0
  307. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_tasks_route_actions_0er3uvk.js +3 -0
  308. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_tmux_route_actions_0o_1-8u.js +3 -0
  309. package/.next/server/chunks/0ykm__next-internal_server_app_api_hub_tokens_route_actions_09doluz.js +3 -0
  310. package/.next/server/chunks/[root-of-the-server]__0-2le8-._.js +3 -0
  311. package/.next/server/chunks/[root-of-the-server]__0-2le8-._.js.map +1 -0
  312. package/.next/server/chunks/[root-of-the-server]__0-g~15e._.js +3 -0
  313. package/.next/server/chunks/[root-of-the-server]__0-g~15e._.js.map +1 -0
  314. package/.next/server/chunks/[root-of-the-server]__00194.t._.js +3 -0
  315. package/.next/server/chunks/[root-of-the-server]__00194.t._.js.map +1 -0
  316. package/.next/server/chunks/[root-of-the-server]__02p2n3n._.js +3 -0
  317. package/.next/server/chunks/[root-of-the-server]__02p2n3n._.js.map +1 -0
  318. package/.next/server/chunks/[root-of-the-server]__02y-i-p._.js +6 -0
  319. package/.next/server/chunks/[root-of-the-server]__02y-i-p._.js.map +1 -0
  320. package/.next/server/chunks/[root-of-the-server]__043tnx2._.js +3 -0
  321. package/.next/server/chunks/[root-of-the-server]__043tnx2._.js.map +1 -0
  322. package/.next/server/chunks/[root-of-the-server]__04z62zk._.js +3 -0
  323. package/.next/server/chunks/[root-of-the-server]__04z62zk._.js.map +1 -0
  324. package/.next/server/chunks/[root-of-the-server]__05nyivw._.js +3 -0
  325. package/.next/server/chunks/[root-of-the-server]__05nyivw._.js.map +1 -0
  326. package/.next/server/chunks/[root-of-the-server]__06p6kkp._.js +3 -0
  327. package/.next/server/chunks/[root-of-the-server]__06p6kkp._.js.map +1 -0
  328. package/.next/server/chunks/[root-of-the-server]__07ztet2._.js +3 -0
  329. package/.next/server/chunks/[root-of-the-server]__07ztet2._.js.map +1 -0
  330. package/.next/server/chunks/[root-of-the-server]__08uyvdq._.js +20 -0
  331. package/.next/server/chunks/[root-of-the-server]__08uyvdq._.js.map +1 -0
  332. package/.next/server/chunks/[root-of-the-server]__0b7v51y._.js +3 -0
  333. package/.next/server/chunks/[root-of-the-server]__0b7v51y._.js.map +1 -0
  334. package/.next/server/chunks/[root-of-the-server]__0e3ucl1._.js +3 -0
  335. package/.next/server/chunks/[root-of-the-server]__0e3ucl1._.js.map +1 -0
  336. package/.next/server/chunks/[root-of-the-server]__0e6yail._.js +3 -0
  337. package/.next/server/chunks/[root-of-the-server]__0e6yail._.js.map +1 -0
  338. package/.next/server/chunks/[root-of-the-server]__0floe3h._.js +3 -0
  339. package/.next/server/chunks/[root-of-the-server]__0floe3h._.js.map +1 -0
  340. package/.next/server/chunks/[root-of-the-server]__0gx2_6a._.js +3 -0
  341. package/.next/server/chunks/[root-of-the-server]__0gx2_6a._.js.map +1 -0
  342. package/.next/server/chunks/[root-of-the-server]__0hcnyp.._.js +3 -0
  343. package/.next/server/chunks/[root-of-the-server]__0hcnyp.._.js.map +1 -0
  344. package/.next/server/chunks/[root-of-the-server]__0hg3_8r._.js +3 -0
  345. package/.next/server/chunks/[root-of-the-server]__0hg3_8r._.js.map +1 -0
  346. package/.next/server/chunks/[root-of-the-server]__0mxw4vb._.js +3 -0
  347. package/.next/server/chunks/[root-of-the-server]__0mxw4vb._.js.map +1 -0
  348. package/.next/server/chunks/[root-of-the-server]__0mzopco._.js +3 -0
  349. package/.next/server/chunks/[root-of-the-server]__0mzopco._.js.map +1 -0
  350. package/.next/server/chunks/[root-of-the-server]__0o45a4q._.js +3 -0
  351. package/.next/server/chunks/[root-of-the-server]__0o45a4q._.js.map +1 -0
  352. package/.next/server/chunks/[root-of-the-server]__0q-teo6._.js +3 -0
  353. package/.next/server/chunks/[root-of-the-server]__0q-teo6._.js.map +1 -0
  354. package/.next/server/chunks/[root-of-the-server]__0qcxxzf._.js +3 -0
  355. package/.next/server/chunks/[root-of-the-server]__0qcxxzf._.js.map +1 -0
  356. package/.next/server/chunks/[root-of-the-server]__0rovr5-._.js +3 -0
  357. package/.next/server/chunks/[root-of-the-server]__0rovr5-._.js.map +1 -0
  358. package/.next/server/chunks/[root-of-the-server]__0tx8s8i._.js +3 -0
  359. package/.next/server/chunks/[root-of-the-server]__0tx8s8i._.js.map +1 -0
  360. package/.next/server/chunks/[root-of-the-server]__0xtp-et._.js +3 -0
  361. package/.next/server/chunks/[root-of-the-server]__0xtp-et._.js.map +1 -0
  362. package/.next/server/chunks/[root-of-the-server]__10pvabe._.js +3 -0
  363. package/.next/server/chunks/[root-of-the-server]__10pvabe._.js.map +1 -0
  364. package/.next/server/chunks/[root-of-the-server]__10t11zq._.js +3 -0
  365. package/.next/server/chunks/[root-of-the-server]__10t11zq._.js.map +1 -0
  366. package/.next/server/chunks/[root-of-the-server]__12r~omy._.js +3 -0
  367. package/.next/server/chunks/[root-of-the-server]__12r~omy._.js.map +1 -0
  368. package/.next/server/chunks/[root-of-the-server]__1389~cs._.js +3 -0
  369. package/.next/server/chunks/[root-of-the-server]__1389~cs._.js.map +1 -0
  370. package/.next/server/chunks/[root-of-the-server]__13n8t..._.js +3 -0
  371. package/.next/server/chunks/[root-of-the-server]__13n8t..._.js.map +1 -0
  372. package/.next/server/chunks/[turbopack]_runtime.js +1 -1
  373. package/.next/server/chunks/ssr/00jm_03rn9vn._.js +3 -0
  374. package/.next/server/chunks/ssr/00jm_03rn9vn._.js.map +1 -0
  375. package/.next/server/chunks/ssr/00jm_059ns68._.js +33 -0
  376. package/.next/server/chunks/ssr/00jm_059ns68._.js.map +1 -0
  377. package/.next/server/chunks/ssr/00jm_09ae-q0._.js +3 -0
  378. package/.next/server/chunks/ssr/00jm_09ae-q0._.js.map +1 -0
  379. package/.next/server/chunks/ssr/00jm_0j7__z.._.js +3 -0
  380. package/.next/server/chunks/ssr/00jm_0j7__z.._.js.map +1 -0
  381. package/.next/server/chunks/ssr/00jm_next_01-0urn._.js +6 -0
  382. package/.next/server/chunks/ssr/00jm_next_01-0urn._.js.map +1 -0
  383. package/.next/server/chunks/ssr/00jm_next_dist_05rlh5d._.js +6 -0
  384. package/.next/server/chunks/ssr/00jm_next_dist_05rlh5d._.js.map +1 -0
  385. package/.next/server/chunks/ssr/00jm_next_dist_client_components_0gkudcq._.js +3 -0
  386. package/.next/server/chunks/ssr/00jm_next_dist_client_components_0gkudcq._.js.map +1 -0
  387. package/.next/server/chunks/ssr/00jm_next_dist_client_components_builtin_forbidden_0ecus3e.js +3 -0
  388. package/.next/server/chunks/ssr/00jm_next_dist_client_components_builtin_forbidden_0ecus3e.js.map +1 -0
  389. package/.next/server/chunks/ssr/00jm_next_dist_client_components_builtin_global-error_07n8pg2.js +3 -0
  390. package/.next/server/chunks/ssr/00jm_next_dist_client_components_builtin_global-error_07n8pg2.js.map +1 -0
  391. package/.next/server/chunks/ssr/00jm_next_dist_client_components_builtin_unauthorized_0r0uq4j.js +3 -0
  392. package/.next/server/chunks/ssr/00jm_next_dist_client_components_builtin_unauthorized_0r0uq4j.js.map +1 -0
  393. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0..ddwm.js +4 -0
  394. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0..ddwm.js.map +1 -0
  395. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_02bxi6j.js +4 -0
  396. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_02bxi6j.js.map +1 -0
  397. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_05oassd.js +4 -0
  398. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_05oassd.js.map +1 -0
  399. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_05vxtby.js +4 -0
  400. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_05vxtby.js.map +1 -0
  401. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_05~eml4.js +4 -0
  402. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_05~eml4.js.map +1 -0
  403. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0_-g_q2.js +4 -0
  404. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0_-g_q2.js.map +1 -0
  405. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0_ec0xu.js +4 -0
  406. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0_ec0xu.js.map +1 -0
  407. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0czb6wz.js +4 -0
  408. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0czb6wz.js.map +1 -0
  409. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0e-cn.p.js +4 -0
  410. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0e-cn.p.js.map +1 -0
  411. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0k8_sr8.js +4 -0
  412. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0k8_sr8.js.map +1 -0
  413. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0lt_3bw.js +4 -0
  414. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0lt_3bw.js.map +1 -0
  415. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0uyh3yt.js +4 -0
  416. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0uyh3yt.js.map +1 -0
  417. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0v-a2ps.js +4 -0
  418. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_0v-a2ps.js.map +1 -0
  419. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_12.4r9~.js +4 -0
  420. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_12.4r9~.js.map +1 -0
  421. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_13mqkay.js +4 -0
  422. package/.next/server/chunks/ssr/00jm_next_dist_esm_build_templates_app-page_13mqkay.js.map +1 -0
  423. package/.next/server/chunks/ssr/0dwh_ent-network-dashboard__next-internal_server_app_server-logs_page_actions_0hkk815.js +3 -0
  424. package/.next/server/chunks/ssr/0yas_gent-network-dashboard__next-internal_server_app__not-found_page_actions_0u.f-rz.js +3 -0
  425. package/.next/server/chunks/ssr/0yas_gent-network-dashboard__next-internal_server_app_tasks_[id]_page_actions_0r3~lho.js +3 -0
  426. package/.next/server/chunks/ssr/0ykm__next-internal_server_app__global-error_page_actions_100fxls.js +3 -0
  427. package/.next/server/chunks/ssr/0ykm__next-internal_server_app_settings_networks_page_actions_0jgy57m.js +3 -0
  428. package/.next/server/chunks/ssr/0ykm__next-internal_server_app_settings_tokens_page_actions_0l5h.k~.js +3 -0
  429. package/.next/server/chunks/ssr/[root-of-the-server]__030vg4n._.js +3 -0
  430. package/.next/server/chunks/ssr/[root-of-the-server]__030vg4n._.js.map +1 -0
  431. package/.next/server/chunks/ssr/[root-of-the-server]__03b.f76._.js +3 -0
  432. package/.next/server/chunks/ssr/[root-of-the-server]__03b.f76._.js.map +1 -0
  433. package/.next/server/chunks/ssr/[root-of-the-server]__063~dul._.js +3 -0
  434. package/.next/server/chunks/ssr/[root-of-the-server]__063~dul._.js.map +1 -0
  435. package/.next/server/chunks/ssr/[root-of-the-server]__07io.d8._.js +3 -0
  436. package/.next/server/chunks/ssr/[root-of-the-server]__07io.d8._.js.map +1 -0
  437. package/.next/server/chunks/ssr/[root-of-the-server]__08d6lp4._.js +3 -0
  438. package/.next/server/chunks/ssr/[root-of-the-server]__08d6lp4._.js.map +1 -0
  439. package/.next/server/chunks/ssr/[root-of-the-server]__09f1wn6._.js +3 -0
  440. package/.next/server/chunks/ssr/[root-of-the-server]__09f1wn6._.js.map +1 -0
  441. package/.next/server/chunks/ssr/[root-of-the-server]__0c4xtkg._.js +3 -0
  442. package/.next/server/chunks/ssr/[root-of-the-server]__0c4xtkg._.js.map +1 -0
  443. package/.next/server/chunks/ssr/[root-of-the-server]__0erfzjn._.js +3 -0
  444. package/.next/server/chunks/ssr/[root-of-the-server]__0erfzjn._.js.map +1 -0
  445. package/.next/server/chunks/ssr/[root-of-the-server]__0ezjwje._.js +3 -0
  446. package/.next/server/chunks/ssr/[root-of-the-server]__0ezjwje._.js.map +1 -0
  447. package/.next/server/chunks/ssr/[root-of-the-server]__0fhoq8i._.js +3 -0
  448. package/.next/server/chunks/ssr/[root-of-the-server]__0fhoq8i._.js.map +1 -0
  449. package/.next/server/chunks/ssr/[root-of-the-server]__0gc.4uk._.js +33 -0
  450. package/.next/server/chunks/ssr/[root-of-the-server]__0gc.4uk._.js.map +1 -0
  451. package/.next/server/chunks/ssr/[root-of-the-server]__0h_p~-4._.js +19 -0
  452. package/.next/server/chunks/ssr/[root-of-the-server]__0h_p~-4._.js.map +1 -0
  453. package/.next/server/chunks/ssr/[root-of-the-server]__0jdr1e5._.js +3 -0
  454. package/.next/server/chunks/ssr/[root-of-the-server]__0jdr1e5._.js.map +1 -0
  455. package/.next/server/chunks/ssr/[root-of-the-server]__0lw16mu._.js +3 -0
  456. package/.next/server/chunks/ssr/[root-of-the-server]__0lw16mu._.js.map +1 -0
  457. package/.next/server/chunks/ssr/[root-of-the-server]__0mjly~-._.js +33 -0
  458. package/.next/server/chunks/ssr/[root-of-the-server]__0mjly~-._.js.map +1 -0
  459. package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js +3 -0
  460. package/.next/server/chunks/ssr/[root-of-the-server]__0nw~zhp._.js.map +1 -0
  461. package/.next/server/chunks/ssr/[root-of-the-server]__0p-95r_._.js +3 -0
  462. package/.next/server/chunks/ssr/[root-of-the-server]__0p-95r_._.js.map +1 -0
  463. package/.next/server/chunks/ssr/[root-of-the-server]__0u5aqkk._.js +8 -0
  464. package/.next/server/chunks/ssr/[root-of-the-server]__0u5aqkk._.js.map +1 -0
  465. package/.next/server/chunks/ssr/[root-of-the-server]__0ue5.fy._.js +3 -0
  466. package/.next/server/chunks/ssr/[root-of-the-server]__0ue5.fy._.js.map +1 -0
  467. package/.next/server/chunks/ssr/[root-of-the-server]__0uggxvx._.js +3 -0
  468. package/.next/server/chunks/ssr/[root-of-the-server]__0uggxvx._.js.map +1 -0
  469. package/.next/server/chunks/ssr/[root-of-the-server]__0zjk5ro._.js +3 -0
  470. package/.next/server/chunks/ssr/[root-of-the-server]__0zjk5ro._.js.map +1 -0
  471. package/.next/server/chunks/ssr/[root-of-the-server]__0zz3v7a._.js +3 -0
  472. package/.next/server/chunks/ssr/[root-of-the-server]__0zz3v7a._.js.map +1 -0
  473. package/.next/server/chunks/ssr/[root-of-the-server]__0~y12ef._.js +3 -0
  474. package/.next/server/chunks/ssr/[root-of-the-server]__0~y12ef._.js.map +1 -0
  475. package/.next/server/chunks/ssr/[root-of-the-server]__129sc_9._.js +3 -0
  476. package/.next/server/chunks/ssr/[root-of-the-server]__129sc_9._.js.map +1 -0
  477. package/.next/server/chunks/ssr/[turbopack]_runtime.js +1 -1
  478. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +6 -0
  479. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -0
  480. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_admin_page_actions_0i~.x~j.js +3 -0
  481. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_login_page_actions_0frwl15.js +3 -0
  482. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_logs_page_actions_0xa2ox_.js +3 -0
  483. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_messages_page_actions_10j3tg4.js +3 -0
  484. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_node_page_actions_0sl4ntd.js +3 -0
  485. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_nodes_page_actions_0cpgkfs.js +3 -0
  486. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_page_actions_08nuo36.js +3 -0
  487. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_page_actions_08nuo36.js.map +1 -0
  488. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_settings_page_actions_0iv.lmk.js +3 -0
  489. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_settings_page_actions_0iv.lmk.js.map +1 -0
  490. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_tasks_page_actions_08c7qlx.js +3 -0
  491. package/.next/server/chunks/ssr/agent-network-dashboard__next-internal_server_app_tasks_page_actions_08c7qlx.js.map +1 -0
  492. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +3 -0
  493. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -0
  494. package/.next/server/chunks/ssr/agent-network-dashboard_app_057q.ne._.js +3 -0
  495. package/.next/server/chunks/ssr/agent-network-dashboard_app_057q.ne._.js.map +1 -0
  496. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +3 -0
  497. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -0
  498. package/.next/server/chunks/ssr/agent-network-dashboard_app_0_d45-d._.js +3 -0
  499. package/.next/server/chunks/ssr/agent-network-dashboard_app_0_d45-d._.js.map +1 -0
  500. package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js +3 -0
  501. package/.next/server/chunks/ssr/agent-network-dashboard_app_0i3759l._.js.map +1 -0
  502. package/.next/server/chunks/ssr/agent-network-dashboard_app_0xgney8._.js +3 -0
  503. package/.next/server/chunks/ssr/agent-network-dashboard_app_0xgney8._.js.map +1 -0
  504. package/.next/server/chunks/ssr/agent-network-dashboard_app_10hjgv4._.js +3 -0
  505. package/.next/server/chunks/ssr/agent-network-dashboard_app_10hjgv4._.js.map +1 -0
  506. package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js +9 -0
  507. package/.next/server/chunks/ssr/agent-network-dashboard_app_1153xeb._.js.map +1 -0
  508. package/.next/server/chunks/ssr/agent-network-dashboard_app_12l4oto._.js +3 -0
  509. package/.next/server/chunks/ssr/agent-network-dashboard_app_12l4oto._.js.map +1 -0
  510. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js +9 -0
  511. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js.map +1 -0
  512. package/.next/server/chunks/ssr/agent-network-dashboard_app_server-logs_page_tsx_0dg.l_8._.js +3 -0
  513. package/.next/server/chunks/ssr/agent-network-dashboard_app_server-logs_page_tsx_0dg.l_8._.js.map +1 -0
  514. package/.next/server/chunks/ssr/agent-network-dashboard_app_tasks_page_tsx_0mwxy4z._.js +3 -0
  515. package/.next/server/chunks/ssr/agent-network-dashboard_app_tasks_page_tsx_0mwxy4z._.js.map +1 -0
  516. package/.next/server/middleware-build-manifest.js +8 -8
  517. package/.next/server/middleware.js +3 -3
  518. package/.next/server/middleware.js.nft.json +1 -1
  519. package/.next/server/next-font-manifest.js +1 -1
  520. package/.next/server/next-font-manifest.json +14 -14
  521. package/.next/server/pages/404.html +2 -2
  522. package/.next/server/pages/500.html +1 -1
  523. package/.next/server/server-reference-manifest.js +1 -1
  524. package/.next/server/server-reference-manifest.json +1 -1
  525. package/.next/static/chunks/0-mpa_947ipeq.js +1 -0
  526. package/.next/static/chunks/0.66f3.rtcybb.js +1 -0
  527. package/.next/static/chunks/01lmbsd37fybu.js +1 -0
  528. package/.next/static/chunks/039-b.v_9-_rm.js +1 -0
  529. package/.next/static/chunks/03o.h6kvmw4l_.js +1 -0
  530. package/.next/static/chunks/03~~oirxz7~vc.js +1 -0
  531. package/.next/static/chunks/05oi25hh7b81r.js +31 -0
  532. package/.next/static/chunks/05uk96gc~9mni.js +1 -0
  533. package/.next/static/chunks/07~8sx3_5uiox.js +1 -0
  534. package/.next/static/chunks/08kf-.bgs10ze.js +1 -0
  535. package/.next/static/chunks/0_pxg.4pebw__.js +4 -0
  536. package/.next/static/chunks/0aauz~36q5n2a.css +2 -0
  537. package/.next/static/chunks/0b8wnt4put-5n.js +2 -0
  538. package/.next/static/chunks/0eov~nkwaf-qa.js +1 -0
  539. package/.next/static/chunks/0glmrdj9112tc.js +7 -0
  540. package/.next/static/chunks/0ku0fjqlm9mca.js +1 -0
  541. package/.next/static/chunks/0l_~q07bhpkcx.js +7 -0
  542. package/.next/static/chunks/0p42f.w~nasx3.js +4 -0
  543. package/.next/static/chunks/0rxrez_cjn.eh.js +1 -0
  544. package/.next/static/chunks/0tvn2l1pc.h65.js +1 -0
  545. package/.next/static/chunks/0u3b93reo9xci.js +1 -0
  546. package/.next/static/chunks/0v5u4e6y0r6.e.js +1 -0
  547. package/.next/static/chunks/0wbkxvicldo40.js +1 -0
  548. package/.next/static/chunks/0x8x.29hkju5a.js +1 -0
  549. package/.next/static/chunks/174re5ar~kxne.js +1 -0
  550. package/.next/static/chunks/turbopack-0.7dvsf9rllt0.js +1 -0
  551. package/.next/trace +2 -2
  552. package/.next/trace-build +1 -1
  553. package/.next/types/routes.d.ts +4 -1
  554. package/.next/types/validator.ts +27 -0
  555. package/app/api/hub/server/[hostname]/agents/route.ts +62 -0
  556. package/app/api/hub/server/[hostname]/health/route.ts +58 -0
  557. package/app/api/hub/servers/route.ts +126 -0
  558. package/app/components/AppShell.tsx +2 -0
  559. package/app/components/ChatPopover.tsx +43 -7
  560. package/app/components/CommandPalette.tsx +107 -0
  561. package/app/components/HelpOverlay.tsx +126 -0
  562. package/app/components/ServersDrawer.tsx +382 -0
  563. package/app/components/TaskChatPanel.tsx +39 -39
  564. package/app/components/TopoGraph.tsx +7305 -287
  565. package/app/components/types.ts +3 -0
  566. package/app/components/utils.ts +8 -7
  567. package/app/globals.css +110 -5
  568. package/app/lib/time.ts +36 -0
  569. package/app/lib/vendorIdentity.ts +14 -3
  570. package/app/page.tsx +18 -1
  571. package/docs/rfc/v0.10.0-hero3-dashboard-upgrade.md +230 -0
  572. package/package.json +2 -2
  573. package/public/sleep2agi-logo.svg +11 -0
  574. package/public/vendors/claude.svg +11 -0
  575. package/public/vendors/minimax.svg +11 -0
  576. package/public/vendors/openai.svg +12 -0
  577. package/screenshots/r293-p0/after-full.png +0 -0
  578. package/screenshots/r293-p0/after-topo.png +0 -0
  579. package/screenshots/r293-p0/baseline-full.png +0 -0
  580. package/screenshots/r293-p0/baseline-topo.png +0 -0
  581. package/screenshots/r293-p0/logo-integrated-full.png +0 -0
  582. package/screenshots/r293-p0/logo-integrated-topo.png +0 -0
  583. package/screenshots/r293-p0/servers-drawer-v0.10.0-full.png +0 -0
  584. package/screenshots/r293-p0/servers-drawer-v0.10.0.png +0 -0
  585. package/screenshots/r293-p0/wave1-after-full.png +0 -0
  586. package/screenshots/r293-p0/wave1-after-topo.png +0 -0
  587. package/scripts/chat-popover-test.mjs +2 -0
  588. package/scripts/chat-theme-test.mjs +98 -0
  589. package/scripts/help-overlay-topo-test.mjs +44 -0
  590. package/scripts/p0-servers-drawer-screenshot.mjs +99 -0
  591. package/scripts/p0-topo-screenshot.mjs +82 -0
  592. package/scripts/servers-drawer-live-test.mjs +96 -0
  593. package/scripts/topo-active-filter-pill-test.mjs +101 -0
  594. package/scripts/topo-active-links-chip-hover-test.mjs +103 -0
  595. package/scripts/topo-active-links-chip-nav-test.mjs +117 -0
  596. package/scripts/topo-active-links-chip-self-hover-test.mjs +171 -0
  597. package/scripts/topo-active-links-chip-test.mjs +73 -0
  598. package/scripts/topo-active-links-empty-recede-test.mjs +125 -0
  599. package/scripts/topo-active-links-freshness-test.mjs +113 -0
  600. package/scripts/topo-active-links-tooltip-test.mjs +79 -0
  601. package/scripts/topo-active-pulse-ease-test.mjs +120 -0
  602. package/scripts/topo-arrow-tier-test.mjs +61 -0
  603. package/scripts/topo-auto-fit-test.mjs +73 -0
  604. package/scripts/topo-brand-logo-transition-test.mjs +94 -0
  605. package/scripts/topo-brand-watermark-test.mjs +97 -0
  606. package/scripts/topo-canvas-aria-test.mjs +108 -0
  607. package/scripts/topo-canvas-brand-fade-test.mjs +87 -0
  608. package/scripts/topo-chat-focus-ring-test.mjs +77 -0
  609. package/scripts/topo-chat-target-breath-test.mjs +84 -0
  610. package/scripts/topo-chat-target-ring-ease-test.mjs +82 -0
  611. package/scripts/topo-chat-target-ring-fade-test.mjs +124 -0
  612. package/scripts/topo-chip-empty-recede-test.mjs +116 -0
  613. package/scripts/topo-chip-focus-test.mjs +95 -0
  614. package/scripts/topo-chip-pin-mirror-test.mjs +113 -0
  615. package/scripts/topo-chip-row-gap-test.mjs +90 -0
  616. package/scripts/topo-chip-row-semantic-gap-test.mjs +97 -0
  617. package/scripts/topo-chip-row-tabular-test.mjs +111 -0
  618. package/scripts/topo-chiprow-data-weight-test.mjs +94 -0
  619. package/scripts/topo-chrome-a11y-test.mjs +107 -0
  620. package/scripts/topo-chrome-active-weight-test.mjs +104 -0
  621. package/scripts/topo-chrome-focus-ring-unify-test.mjs +100 -0
  622. package/scripts/topo-chrome-gap-test.mjs +73 -0
  623. package/scripts/topo-chrome-icon-stroke-test.mjs +95 -0
  624. package/scripts/topo-chrome-inactive-color-test.mjs +90 -0
  625. package/scripts/topo-chrome-pop-extension-test.mjs +98 -0
  626. package/scripts/topo-chrome-pop-nodesize-test.mjs +88 -0
  627. package/scripts/topo-chrome-press-state-test.mjs +135 -0
  628. package/scripts/topo-chrome-strip-semantic-gap-test.mjs +99 -0
  629. package/scripts/topo-chrome-strip-theme-ease-test.mjs +99 -0
  630. package/scripts/topo-chrome-zoom-level-pop-test.mjs +122 -0
  631. package/scripts/topo-chrome-zoom-pop-test.mjs +130 -0
  632. package/scripts/topo-chrome-zoom-readout-weight-test.mjs +81 -0
  633. package/scripts/topo-click-ripple-ease-test.mjs +94 -0
  634. package/scripts/topo-click-ripple-test.mjs +66 -0
  635. package/scripts/topo-cmdk-edge-clear-test.mjs +109 -0
  636. package/scripts/topo-cmdk-layout-view-test.mjs +108 -0
  637. package/scripts/topo-cmdk-pin-test.mjs +123 -0
  638. package/scripts/topo-cmdk-vendor-clear-test.mjs +133 -0
  639. package/scripts/topo-cmdk-vendor-pin-test.mjs +103 -0
  640. package/scripts/topo-corner-radius-unify-test.mjs +103 -0
  641. package/scripts/topo-cwd-tooltip-test.mjs +64 -0
  642. package/scripts/topo-dblclick-reset-test.mjs +74 -0
  643. package/scripts/topo-dense-alias-fill-transition-test.mjs +133 -0
  644. package/scripts/topo-discrete-zoom-smooth-test.mjs +125 -0
  645. package/scripts/topo-edge-badge-click-pin-test.mjs +94 -0
  646. package/scripts/topo-edge-badge-crossfade-test.mjs +138 -0
  647. package/scripts/topo-edge-badge-hot-test.mjs +115 -0
  648. package/scripts/topo-edge-badge-hover-test.mjs +85 -0
  649. package/scripts/topo-edge-badge-lift-test.mjs +150 -0
  650. package/scripts/topo-edge-badge-ripple-test.mjs +111 -0
  651. package/scripts/topo-edge-badge-stroke-transition-test.mjs +118 -0
  652. package/scripts/topo-edge-badge-text-pin-test.mjs +121 -0
  653. package/scripts/topo-edge-badge-theme-ease-test.mjs +89 -0
  654. package/scripts/topo-edge-count-badge-test.mjs +86 -0
  655. package/scripts/topo-edge-endpoint-highlight-test.mjs +111 -0
  656. package/scripts/topo-edge-fadein-test.mjs +106 -0
  657. package/scripts/topo-edge-focus-test.mjs +113 -0
  658. package/scripts/topo-edge-hover-test.mjs +93 -0
  659. package/scripts/topo-edge-pill-hot-test.mjs +129 -0
  660. package/scripts/topo-edge-pill-test.mjs +105 -0
  661. package/scripts/topo-edge-ping-pulse-retired-test.mjs +119 -0
  662. package/scripts/topo-edge-stroke-ease-test.mjs +100 -0
  663. package/scripts/topo-edge-stroke-transition-test.mjs +132 -0
  664. package/scripts/topo-edge-tooltip-test.mjs +70 -0
  665. package/scripts/topo-empty-hint-tracking-test.mjs +84 -0
  666. package/scripts/topo-empty-state-breath-test.mjs +150 -0
  667. package/scripts/topo-empty-state-crossfade-test.mjs +130 -0
  668. package/scripts/topo-empty-state-recenter-test.mjs +107 -0
  669. package/scripts/topo-empty-subhint-tracking-test.mjs +87 -0
  670. package/scripts/topo-endpoint-ring-fade-test.mjs +132 -0
  671. package/scripts/topo-endpoint-ring-test.mjs +93 -0
  672. package/scripts/topo-endpoint-ring-thicken-test.mjs +112 -0
  673. package/scripts/topo-esc-clears-pin-test.mjs +98 -0
  674. package/scripts/topo-filter-pill-aliases-test.mjs +121 -0
  675. package/scripts/topo-filter-pill-body-click-test.mjs +112 -0
  676. package/scripts/topo-filter-pill-count-tabular-test.mjs +135 -0
  677. package/scripts/topo-filter-pill-count-test.mjs +110 -0
  678. package/scripts/topo-filter-pill-mobile-test.mjs +90 -0
  679. package/scripts/topo-fit-key-test.mjs +106 -0
  680. package/scripts/topo-freshness-chip-test.mjs +74 -0
  681. package/scripts/topo-freshness-chip-transition-test.mjs +80 -0
  682. package/scripts/topo-freshness-chip-weight-test.mjs +90 -0
  683. package/scripts/topo-freshness-conditional-render-test.mjs +92 -0
  684. package/scripts/topo-fullscreen-active-test.mjs +115 -0
  685. package/scripts/topo-group-box-pinned-state-test.mjs +95 -0
  686. package/scripts/topo-group-count-test.mjs +68 -0
  687. package/scripts/topo-group-hover-test.mjs +82 -0
  688. package/scripts/topo-group-label-a11y-test.mjs +113 -0
  689. package/scripts/topo-group-label-count-inherit-test.mjs +99 -0
  690. package/scripts/topo-group-label-hover-test.mjs +119 -0
  691. package/scripts/topo-group-label-pin-spacing-test.mjs +136 -0
  692. package/scripts/topo-group-label-tint-test.mjs +99 -0
  693. package/scripts/topo-group-label-title-test.mjs +83 -0
  694. package/scripts/topo-group-pin-test.mjs +119 -0
  695. package/scripts/topo-group-pip-fadein-test.mjs +104 -0
  696. package/scripts/topo-group-pip-singletier-drop-test.mjs +131 -0
  697. package/scripts/topo-group-pip-tabular-test.mjs +95 -0
  698. package/scripts/topo-group-status-pips-test.mjs +103 -0
  699. package/scripts/topo-groupbox-fadein-test.mjs +95 -0
  700. package/scripts/topo-groupbox-hover-lift-test.mjs +127 -0
  701. package/scripts/topo-groupbox-hubcore-ease-test.mjs +106 -0
  702. package/scripts/topo-groupbox-live-test.mjs +100 -0
  703. package/scripts/topo-groupbox-march-busyness-test.mjs +155 -0
  704. package/scripts/topo-groupbox-test.mjs +120 -0
  705. package/scripts/topo-header-gap-test.mjs +94 -0
  706. package/scripts/topo-help-overlay-r109-test.mjs +67 -0
  707. package/scripts/topo-help-overlay-r118-test.mjs +69 -0
  708. package/scripts/topo-help-overlay-r123-test.mjs +69 -0
  709. package/scripts/topo-help-overlay-r134-test.mjs +74 -0
  710. package/scripts/topo-help-overlay-r137-test.mjs +81 -0
  711. package/scripts/topo-help-overlay-r141-test.mjs +86 -0
  712. package/scripts/topo-help-overlay-r153-test.mjs +85 -0
  713. package/scripts/topo-help-overlay-r59-test.mjs +67 -0
  714. package/scripts/topo-help-overlay-r65-test.mjs +64 -0
  715. package/scripts/topo-help-overlay-r70-test.mjs +63 -0
  716. package/scripts/topo-help-overlay-r78-test.mjs +59 -0
  717. package/scripts/topo-help-overlay-r81-test.mjs +58 -0
  718. package/scripts/topo-help-overlay-r87-test.mjs +64 -0
  719. package/scripts/topo-help-overlay-r91-test.mjs +65 -0
  720. package/scripts/topo-hot-tail-crossfade-test.mjs +117 -0
  721. package/scripts/topo-html-overlay-padding-unify-test.mjs +120 -0
  722. package/scripts/topo-hub-a11y-test.mjs +112 -0
  723. package/scripts/topo-hub-busyness-test.mjs +100 -0
  724. package/scripts/topo-hub-center-crossfade-test.mjs +124 -0
  725. package/scripts/topo-hub-click-fit-test.mjs +137 -0
  726. package/scripts/topo-hub-digit-scale-test.mjs +129 -0
  727. package/scripts/topo-hub-fadein-test.mjs +88 -0
  728. package/scripts/topo-hub-hover-lift-test.mjs +101 -0
  729. package/scripts/topo-hub-hover-ring-test.mjs +82 -0
  730. package/scripts/topo-hub-pip-theme-ease-test.mjs +116 -0
  731. package/scripts/topo-hub-spoke-ease-test.mjs +120 -0
  732. package/scripts/topo-hub-title-test.mjs +93 -0
  733. package/scripts/topo-hub-working-count-test.mjs +99 -0
  734. package/scripts/topo-ingroup-edge-test.mjs +103 -0
  735. package/scripts/topo-inner-radar-ring-retired-test.mjs +89 -0
  736. package/scripts/topo-kicker-color-test.mjs +93 -0
  737. package/scripts/topo-kicker-tracking-test.mjs +101 -0
  738. package/scripts/topo-kicker-weight-test.mjs +98 -0
  739. package/scripts/topo-label-card-theme-ease-test.mjs +85 -0
  740. package/scripts/topo-label-lift-test.mjs +119 -0
  741. package/scripts/topo-label-scale-test.mjs +78 -0
  742. package/scripts/topo-lastseen-tooltip-test.mjs +59 -0
  743. package/scripts/topo-layout-hover-text-preview-test.mjs +101 -0
  744. package/scripts/topo-layout-key-test.mjs +91 -0
  745. package/scripts/topo-layout-switch-crossfade-test.mjs +126 -0
  746. package/scripts/topo-layout-test.mjs +1 -0
  747. package/scripts/topo-layout-toggle-border-unify-test.mjs +104 -0
  748. package/scripts/topo-layout-toggle-test.mjs +131 -0
  749. package/scripts/topo-layout-trailer-mr-test.mjs +82 -0
  750. package/scripts/topo-legend-compress-test.mjs +107 -0
  751. package/scripts/topo-legend-count-empty-test.mjs +126 -0
  752. package/scripts/topo-legend-count-tabular-parity-test.mjs +90 -0
  753. package/scripts/topo-legend-count-tabular-test.mjs +87 -0
  754. package/scripts/topo-legend-count-test.mjs +88 -0
  755. package/scripts/topo-legend-count-tier-fill-test.mjs +121 -0
  756. package/scripts/topo-legend-count-weight-test.mjs +86 -0
  757. package/scripts/topo-legend-header-symmetric-inset-test.mjs +112 -0
  758. package/scripts/topo-legend-hitbox-swatch-center-test.mjs +93 -0
  759. package/scripts/topo-legend-hover-test.mjs +113 -0
  760. package/scripts/topo-legend-offline-delimiter-test.mjs +84 -0
  761. package/scripts/topo-legend-offline-label-simplify-test.mjs +86 -0
  762. package/scripts/topo-legend-panel-count-weight-test.mjs +89 -0
  763. package/scripts/topo-legend-panel-header-test.mjs +83 -0
  764. package/scripts/topo-legend-pin-ring-fade-test.mjs +112 -0
  765. package/scripts/topo-legend-pin-test.mjs +128 -0
  766. package/scripts/topo-legend-row-hover-lift-test.mjs +109 -0
  767. package/scripts/topo-legend-row-labels-simplify-test.mjs +80 -0
  768. package/scripts/topo-legend-row-pin-spacing-test.mjs +124 -0
  769. package/scripts/topo-legend-row-tint-test.mjs +95 -0
  770. package/scripts/topo-legend-row-title-test.mjs +102 -0
  771. package/scripts/topo-legend-swatch-grow-test.mjs +116 -0
  772. package/scripts/topo-legend-swatch-radius-test.mjs +78 -0
  773. package/scripts/topo-minimap-a11y-test.mjs +101 -0
  774. package/scripts/topo-minimap-dot-transition-test.mjs +113 -0
  775. package/scripts/topo-minimap-radius-test.mjs +88 -0
  776. package/scripts/topo-minimap-rect-stroke-test.mjs +94 -0
  777. package/scripts/topo-minimap-test.mjs +68 -0
  778. package/scripts/topo-minimap-viewport-smooth-test.mjs +124 -0
  779. package/scripts/topo-mobile-chips-test.mjs +103 -0
  780. package/scripts/topo-monogram-font-test.mjs +112 -0
  781. package/scripts/topo-monogram-stroke-test.mjs +101 -0
  782. package/scripts/topo-more-flows-letterspacing-test.mjs +111 -0
  783. package/scripts/topo-node-a11y-test.mjs +107 -0
  784. package/scripts/topo-node-alias-chat-pin-test.mjs +95 -0
  785. package/scripts/topo-node-hover-lift-test.mjs +85 -0
  786. package/scripts/topo-node-label-card-elevation-test.mjs +157 -0
  787. package/scripts/topo-node-label-card-stroke-test.mjs +135 -0
  788. package/scripts/topo-node-stroke-transition-test.mjs +103 -0
  789. package/scripts/topo-node-text-fill-transition-test.mjs +119 -0
  790. package/scripts/topo-node-title-peers-test.mjs +107 -0
  791. package/scripts/topo-node-title-test.mjs +101 -0
  792. package/scripts/topo-nodesize-active-hover-test.mjs +109 -0
  793. package/scripts/topo-nodesize-crossfade-test.mjs +141 -0
  794. package/scripts/topo-offline-dim-test.mjs +70 -0
  795. package/scripts/topo-online-chip-nav-test.mjs +143 -0
  796. package/scripts/topo-orbit-particles-retired-test.mjs +91 -0
  797. package/scripts/topo-overlap-test.mjs +164 -0
  798. package/scripts/topo-p0round-test.mjs +166 -0
  799. package/scripts/topo-pan-cursor-test.mjs +62 -0
  800. package/scripts/topo-panel-count-unit-test.mjs +112 -0
  801. package/scripts/topo-panel-elevation-test.mjs +76 -0
  802. package/scripts/topo-panel-fadein-test.mjs +102 -0
  803. package/scripts/topo-panel-hot-tail-fade-test.mjs +132 -0
  804. package/scripts/topo-panel-hover-elevation-test.mjs +118 -0
  805. package/scripts/topo-panel-rx-test.mjs +90 -0
  806. package/scripts/topo-panel-theme-ease-test.mjs +85 -0
  807. package/scripts/topo-panel-title-fill-ease-test.mjs +91 -0
  808. package/scripts/topo-panel-title-tracking-test.mjs +78 -0
  809. package/scripts/topo-particle-stagger-test.mjs +82 -0
  810. package/scripts/topo-pin-intersection-color-ease-test.mjs +111 -0
  811. package/scripts/topo-pin-intersection-empty-test.mjs +129 -0
  812. package/scripts/topo-pin-intersection-tabular-test.mjs +96 -0
  813. package/scripts/topo-pin-intersection-test.mjs +121 -0
  814. package/scripts/topo-pin-intersection-warning-crossfade-test.mjs +107 -0
  815. package/scripts/topo-pin-mirror-transition-test.mjs +101 -0
  816. package/scripts/topo-pin-persistence-test.mjs +105 -0
  817. package/scripts/topo-popover-meta-test.mjs +78 -0
  818. package/scripts/topo-prefix-opacity-test.mjs +107 -0
  819. package/scripts/topo-prepublish-guard-test.mjs +95 -0
  820. package/scripts/topo-pressure-bar-test.mjs +69 -0
  821. package/scripts/topo-pressure-hover-test.mjs +123 -0
  822. package/scripts/topo-pressure-pin-test.mjs +119 -0
  823. package/scripts/topo-pressure-seg-self-hover-test.mjs +126 -0
  824. package/scripts/topo-pressure-seg-tooltip-test.mjs +98 -0
  825. package/scripts/topo-pressure-seg-transition-test.mjs +107 -0
  826. package/scripts/topo-pulse-dot-crossfade-test.mjs +122 -0
  827. package/scripts/topo-pulse-dot-retired-test.mjs +86 -0
  828. package/scripts/topo-pulse-rate-test.mjs +71 -0
  829. package/scripts/topo-recent-panel-count-freshness-test.mjs +109 -0
  830. package/scripts/topo-recent-panel-count-test.mjs +72 -0
  831. package/scripts/topo-recent-panel-count-weight-test.mjs +91 -0
  832. package/scripts/topo-recent-panel-footer-breath-test.mjs +142 -0
  833. package/scripts/topo-recent-panel-hot-header-test.mjs +132 -0
  834. package/scripts/topo-recent-panel-hot-tabular-test.mjs +113 -0
  835. package/scripts/topo-recent-panel-more-crossfade-test.mjs +124 -0
  836. package/scripts/topo-recent-panel-more-cyan-hover-test.mjs +151 -0
  837. package/scripts/topo-recent-panel-more-nav-test.mjs +127 -0
  838. package/scripts/topo-recent-panel-more-test.mjs +106 -0
  839. package/scripts/topo-recent-panel-readability-bump-test.mjs +151 -0
  840. package/scripts/topo-recent-row-count-fill-test.mjs +129 -0
  841. package/scripts/topo-recent-row-count-weight-test.mjs +112 -0
  842. package/scripts/topo-recent-row-fadein-test.mjs +107 -0
  843. package/scripts/topo-recent-row-freshness-test.mjs +102 -0
  844. package/scripts/topo-recent-row-hot-test.mjs +110 -0
  845. package/scripts/topo-recent-row-hover-lift-test.mjs +128 -0
  846. package/scripts/topo-recent-row-hover-test.mjs +122 -0
  847. package/scripts/topo-recent-row-pin-spacing-test.mjs +137 -0
  848. package/scripts/topo-recent-row-pin-test.mjs +126 -0
  849. package/scripts/topo-recent-row-tint-test.mjs +91 -0
  850. package/scripts/topo-recent-row-title-test.mjs +112 -0
  851. package/scripts/topo-recent-row-ts-alpha-test.mjs +100 -0
  852. package/scripts/topo-recent-row-ts-tabular-test.mjs +108 -0
  853. package/scripts/topo-recent-row-ts-test.mjs +95 -0
  854. package/scripts/topo-recent-row-typography-test.mjs +119 -0
  855. package/scripts/topo-recent-signal-empty-hint-test.mjs +73 -0
  856. package/scripts/topo-recent-signal-empty-test.mjs +63 -0
  857. package/scripts/topo-reduced-motion-test.mjs +77 -0
  858. package/scripts/topo-rename-test.mjs +107 -0
  859. package/scripts/topo-reset-spin-test.mjs +120 -0
  860. package/scripts/topo-runtime-badge-grow-test.mjs +114 -0
  861. package/scripts/topo-spokes-retired-test.mjs +93 -0
  862. package/scripts/topo-starfield-density-test.mjs +89 -0
  863. package/scripts/topo-status-chip-hover-test.mjs +101 -0
  864. package/scripts/topo-status-chip-tooltip-test.mjs +95 -0
  865. package/scripts/topo-statusbar-chips-self-hover-test.mjs +177 -0
  866. package/scripts/topo-svg-focus-test.mjs +112 -0
  867. package/scripts/topo-sweep-busyness-test.mjs +94 -0
  868. package/scripts/topo-tabular-nums-sweep-test.mjs +93 -0
  869. package/scripts/topo-tier-guide-dashes-test.mjs +86 -0
  870. package/scripts/topo-tier-ring-fadein-test.mjs +107 -0
  871. package/scripts/topo-tier-ring-occupancy-test.mjs +87 -0
  872. package/scripts/topo-tier-ring-test.mjs +69 -0
  873. package/scripts/topo-tier-ring-tint-test.mjs +110 -0
  874. package/scripts/topo-tier-stagger-test.mjs +89 -0
  875. package/scripts/topo-title-block-tight-leading-test.mjs +95 -0
  876. package/scripts/topo-title-tracking-test.mjs +98 -0
  877. package/scripts/topo-titleblock-gap-test.mjs +86 -0
  878. package/scripts/topo-titleblock-margin-test.mjs +83 -0
  879. package/scripts/topo-toggle-inactive-cyan-hover-test.mjs +110 -0
  880. package/scripts/topo-top-rail-theme-ease-test.mjs +89 -0
  881. package/scripts/topo-tz-ghost-test.mjs +69 -0
  882. package/scripts/topo-vendor-chip-hover-test.mjs +111 -0
  883. package/scripts/topo-vendor-chip-self-hover-test.mjs +131 -0
  884. package/scripts/topo-vendor-chip-tabular-test.mjs +92 -0
  885. package/scripts/topo-vendor-chip-threshold-test.mjs +78 -0
  886. package/scripts/topo-vendor-chip-weight-test.mjs +87 -0
  887. package/scripts/topo-vendor-count-suffix-test.mjs +95 -0
  888. package/scripts/topo-vendor-letter-tooltip-test.mjs +92 -0
  889. package/scripts/topo-vendor-pill-test.mjs +125 -0
  890. package/scripts/topo-vendor-pin-test.mjs +125 -0
  891. package/scripts/topo-vendor-test.mjs +1 -0
  892. package/scripts/topo-view-smooth-test.mjs +131 -0
  893. package/scripts/topo-watermark-tracking-test.mjs +99 -0
  894. package/scripts/topo-wheel-zoom-test.mjs +79 -0
  895. package/scripts/topo-working-chip-pin-test.mjs +154 -0
  896. package/scripts/topo-working-halo-breath-retired-test.mjs +99 -0
  897. package/scripts/topo-wrapper-flow-arrow-theme-test.mjs +97 -0
  898. package/scripts/topo-wrapper-radius-test.mjs +73 -0
  899. package/scripts/topo-wrapper-shadow-theme-ease-test.mjs +89 -0
  900. package/scripts/topo-zoom-keys-test.mjs +89 -0
  901. package/.next/build/chunks/[root-of-the-server]__0d-m0h0._.js +0 -206
  902. package/.next/build/chunks/[root-of-the-server]__0d-m0h0._.js.map +0 -8
  903. package/.next/build/chunks/[root-of-the-server]__0ubbtyl._.js +0 -500
  904. package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_06e.r3r._.js +0 -13
  905. package/.next/build/chunks/node_modules_13sb.px._.js +0 -6766
  906. package/.next/build/chunks/node_modules_13sb.px._.js.map +0 -47
  907. package/.next/server/chunks/[root-of-the-server]__0-mykaf._.js +0 -3
  908. package/.next/server/chunks/[root-of-the-server]__0-mykaf._.js.map +0 -1
  909. package/.next/server/chunks/[root-of-the-server]__0.d_kqy._.js +0 -3
  910. package/.next/server/chunks/[root-of-the-server]__0.d_kqy._.js.map +0 -1
  911. package/.next/server/chunks/[root-of-the-server]__02pocyg._.js +0 -3
  912. package/.next/server/chunks/[root-of-the-server]__02pocyg._.js.map +0 -1
  913. package/.next/server/chunks/[root-of-the-server]__03ueci3._.js +0 -3
  914. package/.next/server/chunks/[root-of-the-server]__03ueci3._.js.map +0 -1
  915. package/.next/server/chunks/[root-of-the-server]__04aud7x._.js +0 -3
  916. package/.next/server/chunks/[root-of-the-server]__04aud7x._.js.map +0 -1
  917. package/.next/server/chunks/[root-of-the-server]__05fnt3n._.js +0 -3
  918. package/.next/server/chunks/[root-of-the-server]__05fnt3n._.js.map +0 -1
  919. package/.next/server/chunks/[root-of-the-server]__077tsd.._.js +0 -20
  920. package/.next/server/chunks/[root-of-the-server]__077tsd.._.js.map +0 -1
  921. package/.next/server/chunks/[root-of-the-server]__08wy1jr._.js +0 -3
  922. package/.next/server/chunks/[root-of-the-server]__08wy1jr._.js.map +0 -1
  923. package/.next/server/chunks/[root-of-the-server]__0adhu1m._.js +0 -3
  924. package/.next/server/chunks/[root-of-the-server]__0adhu1m._.js.map +0 -1
  925. package/.next/server/chunks/[root-of-the-server]__0aqv02v._.js +0 -3
  926. package/.next/server/chunks/[root-of-the-server]__0aqv02v._.js.map +0 -1
  927. package/.next/server/chunks/[root-of-the-server]__0cawhfq._.js +0 -3
  928. package/.next/server/chunks/[root-of-the-server]__0cawhfq._.js.map +0 -1
  929. package/.next/server/chunks/[root-of-the-server]__0d_-_k.._.js +0 -3
  930. package/.next/server/chunks/[root-of-the-server]__0d_-_k.._.js.map +0 -1
  931. package/.next/server/chunks/[root-of-the-server]__0f6bxfl._.js +0 -3
  932. package/.next/server/chunks/[root-of-the-server]__0f6bxfl._.js.map +0 -1
  933. package/.next/server/chunks/[root-of-the-server]__0h15edq._.js +0 -3
  934. package/.next/server/chunks/[root-of-the-server]__0h15edq._.js.map +0 -1
  935. package/.next/server/chunks/[root-of-the-server]__0k.vegl._.js +0 -3
  936. package/.next/server/chunks/[root-of-the-server]__0k.vegl._.js.map +0 -1
  937. package/.next/server/chunks/[root-of-the-server]__0kltbce._.js +0 -3
  938. package/.next/server/chunks/[root-of-the-server]__0kltbce._.js.map +0 -1
  939. package/.next/server/chunks/[root-of-the-server]__0mn04fw._.js +0 -3
  940. package/.next/server/chunks/[root-of-the-server]__0mn04fw._.js.map +0 -1
  941. package/.next/server/chunks/[root-of-the-server]__0o29v8c._.js +0 -3
  942. package/.next/server/chunks/[root-of-the-server]__0o29v8c._.js.map +0 -1
  943. package/.next/server/chunks/[root-of-the-server]__0o4qfn9._.js +0 -3
  944. package/.next/server/chunks/[root-of-the-server]__0o4qfn9._.js.map +0 -1
  945. package/.next/server/chunks/[root-of-the-server]__0o7ya7r._.js +0 -3
  946. package/.next/server/chunks/[root-of-the-server]__0o7ya7r._.js.map +0 -1
  947. package/.next/server/chunks/[root-of-the-server]__0p3fo6l._.js +0 -6
  948. package/.next/server/chunks/[root-of-the-server]__0p3fo6l._.js.map +0 -1
  949. package/.next/server/chunks/[root-of-the-server]__0p6tutt._.js +0 -3
  950. package/.next/server/chunks/[root-of-the-server]__0p6tutt._.js.map +0 -1
  951. package/.next/server/chunks/[root-of-the-server]__0pn3wsx._.js +0 -3
  952. package/.next/server/chunks/[root-of-the-server]__0pn3wsx._.js.map +0 -1
  953. package/.next/server/chunks/[root-of-the-server]__0rg9ifx._.js +0 -3
  954. package/.next/server/chunks/[root-of-the-server]__0rg9ifx._.js.map +0 -1
  955. package/.next/server/chunks/[root-of-the-server]__0x.-194._.js +0 -3
  956. package/.next/server/chunks/[root-of-the-server]__0x.-194._.js.map +0 -1
  957. package/.next/server/chunks/[root-of-the-server]__0x.a_yh._.js +0 -3
  958. package/.next/server/chunks/[root-of-the-server]__0x.a_yh._.js.map +0 -1
  959. package/.next/server/chunks/[root-of-the-server]__0~h2uqi._.js +0 -3
  960. package/.next/server/chunks/[root-of-the-server]__0~h2uqi._.js.map +0 -1
  961. package/.next/server/chunks/[root-of-the-server]__139~d6a._.js +0 -3
  962. package/.next/server/chunks/[root-of-the-server]__139~d6a._.js.map +0 -1
  963. package/.next/server/chunks/_next-internal_server_app_api_anet_config_route_actions_0xzy73j.js +0 -3
  964. package/.next/server/chunks/_next-internal_server_app_api_auth_login_route_actions_0zukc38.js +0 -3
  965. package/.next/server/chunks/_next-internal_server_app_api_auth_logout_route_actions_0fm~3ij.js +0 -3
  966. package/.next/server/chunks/_next-internal_server_app_api_auth_v3_route_actions_0ndzs5l.js +0 -3
  967. package/.next/server/chunks/_next-internal_server_app_api_hub_audit-log_route_actions_11k8fqt.js +0 -3
  968. package/.next/server/chunks/_next-internal_server_app_api_hub_auth_route_actions_0gs7ttk.js +0 -3
  969. package/.next/server/chunks/_next-internal_server_app_api_hub_broadcast_route_actions_0ads-kd.js +0 -3
  970. package/.next/server/chunks/_next-internal_server_app_api_hub_events_route_actions_0opktby.js +0 -3
  971. package/.next/server/chunks/_next-internal_server_app_api_hub_health_route_actions_0tzzt~x.js +0 -3
  972. package/.next/server/chunks/_next-internal_server_app_api_hub_inbox_route_actions_0xvslrg.js +0 -3
  973. package/.next/server/chunks/_next-internal_server_app_api_hub_license_route_actions_0i3tlr3.js +0 -3
  974. package/.next/server/chunks/_next-internal_server_app_api_hub_messages_route_actions_08-gi-s.js +0 -3
  975. package/.next/server/chunks/_next-internal_server_app_api_hub_networks_route_actions_02vejq2.js +0 -3
  976. package/.next/server/chunks/_next-internal_server_app_api_hub_nodes_route_actions_0nx8ryn.js +0 -3
  977. package/.next/server/chunks/_next-internal_server_app_api_hub_register_route_actions_086wi_3.js +0 -3
  978. package/.next/server/chunks/_next-internal_server_app_api_hub_send_route_actions_0-ga_ug.js +0 -3
  979. package/.next/server/chunks/_next-internal_server_app_api_hub_server-logs_route_actions_00euexv.js +0 -3
  980. package/.next/server/chunks/_next-internal_server_app_api_hub_session_route_actions_041wa62.js +0 -3
  981. package/.next/server/chunks/_next-internal_server_app_api_hub_stats_route_actions_1242~od.js +0 -3
  982. package/.next/server/chunks/_next-internal_server_app_api_hub_status_route_actions_0aml09a.js +0 -3
  983. package/.next/server/chunks/_next-internal_server_app_api_hub_task-events_route_actions_02v1tmm.js +0 -3
  984. package/.next/server/chunks/_next-internal_server_app_api_hub_tasks_route_actions_0nl77v4.js +0 -3
  985. package/.next/server/chunks/_next-internal_server_app_api_hub_tmux_route_actions_0u~aaza.js +0 -3
  986. package/.next/server/chunks/_next-internal_server_app_api_hub_tokens_route_actions_09hzf_1.js +0 -3
  987. package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_095lj93.js +0 -3
  988. package/.next/server/chunks/node_modules_next_11synfn._.js +0 -10
  989. package/.next/server/chunks/node_modules_next_11synfn._.js.map +0 -1
  990. package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0yubv2d.js +0 -3
  991. package/.next/server/chunks/node_modules_next_dist_esm_build_templates_app-route_0yubv2d.js.map +0 -1
  992. package/.next/server/chunks/ssr/[root-of-the-server]__014uja_._.js +0 -3
  993. package/.next/server/chunks/ssr/[root-of-the-server]__014uja_._.js.map +0 -1
  994. package/.next/server/chunks/ssr/[root-of-the-server]__02hi65f._.js +0 -3
  995. package/.next/server/chunks/ssr/[root-of-the-server]__02hi65f._.js.map +0 -1
  996. package/.next/server/chunks/ssr/[root-of-the-server]__02xqa5z._.js +0 -3
  997. package/.next/server/chunks/ssr/[root-of-the-server]__02xqa5z._.js.map +0 -1
  998. package/.next/server/chunks/ssr/[root-of-the-server]__04ph1de._.js +0 -3
  999. package/.next/server/chunks/ssr/[root-of-the-server]__04ph1de._.js.map +0 -1
  1000. package/.next/server/chunks/ssr/[root-of-the-server]__05wc5-z._.js +0 -3
  1001. package/.next/server/chunks/ssr/[root-of-the-server]__05wc5-z._.js.map +0 -1
  1002. package/.next/server/chunks/ssr/[root-of-the-server]__06-2p1a._.js +0 -33
  1003. package/.next/server/chunks/ssr/[root-of-the-server]__06-2p1a._.js.map +0 -1
  1004. package/.next/server/chunks/ssr/[root-of-the-server]__08qr2ji._.js +0 -33
  1005. package/.next/server/chunks/ssr/[root-of-the-server]__08qr2ji._.js.map +0 -1
  1006. package/.next/server/chunks/ssr/[root-of-the-server]__09l8xaa._.js +0 -3
  1007. package/.next/server/chunks/ssr/[root-of-the-server]__09l8xaa._.js.map +0 -1
  1008. package/.next/server/chunks/ssr/[root-of-the-server]__09z7o2x._.js +0 -19
  1009. package/.next/server/chunks/ssr/[root-of-the-server]__09z7o2x._.js.map +0 -1
  1010. package/.next/server/chunks/ssr/[root-of-the-server]__0a0ffmv._.js +0 -3
  1011. package/.next/server/chunks/ssr/[root-of-the-server]__0a0ffmv._.js.map +0 -1
  1012. package/.next/server/chunks/ssr/[root-of-the-server]__0b7uu-_._.js +0 -3
  1013. package/.next/server/chunks/ssr/[root-of-the-server]__0b7uu-_._.js.map +0 -1
  1014. package/.next/server/chunks/ssr/[root-of-the-server]__0bl_wqk._.js +0 -3
  1015. package/.next/server/chunks/ssr/[root-of-the-server]__0bl_wqk._.js.map +0 -1
  1016. package/.next/server/chunks/ssr/[root-of-the-server]__0ft0rpu._.js +0 -3
  1017. package/.next/server/chunks/ssr/[root-of-the-server]__0ft0rpu._.js.map +0 -1
  1018. package/.next/server/chunks/ssr/[root-of-the-server]__0i~g-2t._.js +0 -3
  1019. package/.next/server/chunks/ssr/[root-of-the-server]__0i~g-2t._.js.map +0 -1
  1020. package/.next/server/chunks/ssr/[root-of-the-server]__0jl4ukn._.js +0 -3
  1021. package/.next/server/chunks/ssr/[root-of-the-server]__0jl4ukn._.js.map +0 -1
  1022. package/.next/server/chunks/ssr/[root-of-the-server]__0mook08._.js +0 -3
  1023. package/.next/server/chunks/ssr/[root-of-the-server]__0mook08._.js.map +0 -1
  1024. package/.next/server/chunks/ssr/[root-of-the-server]__0n46s~k._.js +0 -3
  1025. package/.next/server/chunks/ssr/[root-of-the-server]__0n46s~k._.js.map +0 -1
  1026. package/.next/server/chunks/ssr/[root-of-the-server]__0qchqb~._.js +0 -3
  1027. package/.next/server/chunks/ssr/[root-of-the-server]__0qchqb~._.js.map +0 -1
  1028. package/.next/server/chunks/ssr/[root-of-the-server]__0rrm~-q._.js +0 -3
  1029. package/.next/server/chunks/ssr/[root-of-the-server]__0rrm~-q._.js.map +0 -1
  1030. package/.next/server/chunks/ssr/[root-of-the-server]__0w2ay2h._.js +0 -3
  1031. package/.next/server/chunks/ssr/[root-of-the-server]__0w2ay2h._.js.map +0 -1
  1032. package/.next/server/chunks/ssr/[root-of-the-server]__0xjish~._.js +0 -3
  1033. package/.next/server/chunks/ssr/[root-of-the-server]__0xjish~._.js.map +0 -1
  1034. package/.next/server/chunks/ssr/[root-of-the-server]__0xm3h9x._.js +0 -3
  1035. package/.next/server/chunks/ssr/[root-of-the-server]__0xm3h9x._.js.map +0 -1
  1036. package/.next/server/chunks/ssr/[root-of-the-server]__0ywihy_._.js +0 -8
  1037. package/.next/server/chunks/ssr/[root-of-the-server]__0ywihy_._.js.map +0 -1
  1038. package/.next/server/chunks/ssr/[root-of-the-server]__12ad1n.._.js +0 -3
  1039. package/.next/server/chunks/ssr/[root-of-the-server]__12ad1n.._.js.map +0 -1
  1040. package/.next/server/chunks/ssr/_0nne7mz._.js +0 -3
  1041. package/.next/server/chunks/ssr/_0nne7mz._.js.map +0 -1
  1042. package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0k77kol.js +0 -3
  1043. package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0eq97pa.js +0 -3
  1044. package/.next/server/chunks/ssr/_next-internal_server_app_admin_page_actions_0ycnu8f.js +0 -3
  1045. package/.next/server/chunks/ssr/_next-internal_server_app_login_page_actions_02kefem.js +0 -3
  1046. package/.next/server/chunks/ssr/_next-internal_server_app_logs_page_actions_0rvsl~d.js +0 -3
  1047. package/.next/server/chunks/ssr/_next-internal_server_app_messages_page_actions_0gsqep_.js +0 -3
  1048. package/.next/server/chunks/ssr/_next-internal_server_app_node_page_actions_0wd8cgl.js +0 -3
  1049. package/.next/server/chunks/ssr/_next-internal_server_app_nodes_page_actions_0-.rv67.js +0 -3
  1050. package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_09-gtaw.js +0 -3
  1051. package/.next/server/chunks/ssr/_next-internal_server_app_server-logs_page_actions_0g1gb5c.js +0 -3
  1052. package/.next/server/chunks/ssr/_next-internal_server_app_settings_networks_page_actions_09uw.sw.js +0 -3
  1053. package/.next/server/chunks/ssr/_next-internal_server_app_settings_page_actions_0mr68ai.js +0 -3
  1054. package/.next/server/chunks/ssr/_next-internal_server_app_settings_tokens_page_actions_0yi54x8.js +0 -3
  1055. package/.next/server/chunks/ssr/_next-internal_server_app_tasks_[id]_page_actions_0k_hm9g.js +0 -3
  1056. package/.next/server/chunks/ssr/_next-internal_server_app_tasks_page_actions_0_2o_cr.js +0 -3
  1057. package/.next/server/chunks/ssr/app_0.zbtn5._.js +0 -9
  1058. package/.next/server/chunks/ssr/app_0.zbtn5._.js.map +0 -1
  1059. package/.next/server/chunks/ssr/app_01y-~mp._.js +0 -3
  1060. package/.next/server/chunks/ssr/app_01y-~mp._.js.map +0 -1
  1061. package/.next/server/chunks/ssr/app_04n78pr._.js +0 -3
  1062. package/.next/server/chunks/ssr/app_04n78pr._.js.map +0 -1
  1063. package/.next/server/chunks/ssr/app_0_agk0r._.js +0 -3
  1064. package/.next/server/chunks/ssr/app_0_agk0r._.js.map +0 -1
  1065. package/.next/server/chunks/ssr/app_0aenxef._.js +0 -3
  1066. package/.next/server/chunks/ssr/app_0aenxef._.js.map +0 -1
  1067. package/.next/server/chunks/ssr/app_0aum_g5._.js +0 -3
  1068. package/.next/server/chunks/ssr/app_0aum_g5._.js.map +0 -1
  1069. package/.next/server/chunks/ssr/app_0emvkn2._.js +0 -3
  1070. package/.next/server/chunks/ssr/app_0emvkn2._.js.map +0 -1
  1071. package/.next/server/chunks/ssr/app_0esuljp._.js +0 -3
  1072. package/.next/server/chunks/ssr/app_0esuljp._.js.map +0 -1
  1073. package/.next/server/chunks/ssr/app_0izi28j._.js +0 -3
  1074. package/.next/server/chunks/ssr/app_0izi28j._.js.map +0 -1
  1075. package/.next/server/chunks/ssr/app_components_08ys5y3._.js +0 -9
  1076. package/.next/server/chunks/ssr/app_components_08ys5y3._.js.map +0 -1
  1077. package/.next/server/chunks/ssr/app_server-logs_page_tsx_0_kpp1p._.js +0 -3
  1078. package/.next/server/chunks/ssr/app_server-logs_page_tsx_0_kpp1p._.js.map +0 -1
  1079. package/.next/server/chunks/ssr/app_tasks_page_tsx_0z-d6mp._.js +0 -3
  1080. package/.next/server/chunks/ssr/app_tasks_page_tsx_0z-d6mp._.js.map +0 -1
  1081. package/.next/server/chunks/ssr/node_modules_09w7yel._.js +0 -33
  1082. package/.next/server/chunks/ssr/node_modules_09w7yel._.js.map +0 -1
  1083. package/.next/server/chunks/ssr/node_modules_0ck2~9g._.js +0 -3
  1084. package/.next/server/chunks/ssr/node_modules_0ck2~9g._.js.map +0 -1
  1085. package/.next/server/chunks/ssr/node_modules_0r_.s40._.js +0 -3
  1086. package/.next/server/chunks/ssr/node_modules_0r_.s40._.js.map +0 -1
  1087. package/.next/server/chunks/ssr/node_modules_0vtdjw7._.js +0 -3
  1088. package/.next/server/chunks/ssr/node_modules_0vtdjw7._.js.map +0 -1
  1089. package/.next/server/chunks/ssr/node_modules_next_0w2y7fz._.js +0 -6
  1090. package/.next/server/chunks/ssr/node_modules_next_0w2y7fz._.js.map +0 -1
  1091. package/.next/server/chunks/ssr/node_modules_next_dist_0e1izl_._.js +0 -6
  1092. package/.next/server/chunks/ssr/node_modules_next_dist_0e1izl_._.js.map +0 -1
  1093. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js +0 -3
  1094. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js.map +0 -1
  1095. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js +0 -3
  1096. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js.map +0 -1
  1097. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js +0 -3
  1098. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js.map +0 -1
  1099. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js +0 -3
  1100. package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js.map +0 -1
  1101. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_002l7yi.js +0 -4
  1102. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_002l7yi.js.map +0 -1
  1103. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_02suzhc.js +0 -4
  1104. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_02suzhc.js.map +0 -1
  1105. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_07uu-xq.js +0 -4
  1106. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_07uu-xq.js.map +0 -1
  1107. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0d2yq5t.js +0 -4
  1108. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0d2yq5t.js.map +0 -1
  1109. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0dm~kj8.js +0 -4
  1110. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0dm~kj8.js.map +0 -1
  1111. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0foejvu.js +0 -4
  1112. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0foejvu.js.map +0 -1
  1113. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0l-fh0i.js +0 -4
  1114. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0l-fh0i.js.map +0 -1
  1115. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0nsg22r.js +0 -4
  1116. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0nsg22r.js.map +0 -1
  1117. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0o9vt1n.js +0 -4
  1118. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0o9vt1n.js.map +0 -1
  1119. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0qm1-a1.js +0 -4
  1120. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0qm1-a1.js.map +0 -1
  1121. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0uccf9z.js +0 -4
  1122. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0uccf9z.js.map +0 -1
  1123. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0uv6jyc.js +0 -4
  1124. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0uv6jyc.js.map +0 -1
  1125. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_10~~o-h.js +0 -4
  1126. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_10~~o-h.js.map +0 -1
  1127. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_13leyhk.js +0 -4
  1128. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_13leyhk.js.map +0 -1
  1129. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_13s07li.js +0 -4
  1130. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_13s07li.js.map +0 -1
  1131. package/.next/static/chunks/0-hlcuoemhe7w.js +0 -7
  1132. package/.next/static/chunks/01xlw8hd842-c.js +0 -1
  1133. package/.next/static/chunks/0257pdz1-imal.js +0 -2
  1134. package/.next/static/chunks/02_zpo7taex9o.js +0 -7
  1135. package/.next/static/chunks/04p678v0aui~f.js +0 -1
  1136. package/.next/static/chunks/06n3d~fbbtagk.js +0 -1
  1137. package/.next/static/chunks/07eba1lz2u3p4.js +0 -1
  1138. package/.next/static/chunks/07epshqd2k_l_.js +0 -1
  1139. package/.next/static/chunks/09n9xs.6dvvo2.css +0 -2
  1140. package/.next/static/chunks/0av2~0.96~d~g.js +0 -1
  1141. package/.next/static/chunks/0c1bp~g7.8ru..js +0 -1
  1142. package/.next/static/chunks/0e-.zgw81gela.js +0 -31
  1143. package/.next/static/chunks/0g9aof0ob_fcj.js +0 -1
  1144. package/.next/static/chunks/0gtbwcilfu6b7.js +0 -1
  1145. package/.next/static/chunks/0pqt~8bl3ukh4.js +0 -4
  1146. package/.next/static/chunks/0s8jo6jypzkx5.js +0 -1
  1147. package/.next/static/chunks/0sxaea_g05hbz.js +0 -1
  1148. package/.next/static/chunks/0u359llqm1_01.js +0 -1
  1149. package/.next/static/chunks/0ubqqhhpsaez4.js +0 -1
  1150. package/.next/static/chunks/0w1zwt8kq_7nb.js +0 -1
  1151. package/.next/static/chunks/0~qw9kxksr1v2.js +0 -1
  1152. package/.next/static/chunks/12gprw3l0kvvf.js +0 -1
  1153. package/.next/static/chunks/12yuo353giomx.js +0 -1
  1154. package/.next/static/chunks/14bsg3_-taiw4.js +0 -1
  1155. package/.next/static/chunks/turbopack-01f1xs~cq_~si.js +0 -1
  1156. /package/.next/build/chunks/{[root-of-the-server]__0ubbtyl._.js.map → [root-of-the-server]__0tgc-8p._.js.map} +0 -0
  1157. /package/.next/build/chunks/{[turbopack-node]_transforms_postcss_ts_06e.r3r._.js.map → [turbopack-node]_transforms_postcss_ts_0r4x5ys._.js.map} +0 -0
  1158. /package/.next/server/chunks/{_next-internal_server_app_api_anet_config_route_actions_0xzy73j.js.map → 0ci9_nt-network-dashboard__next-internal_server_app_api_auth_v3_route_actions_0f5nbzr.js.map} +0 -0
  1159. /package/.next/server/chunks/{_next-internal_server_app_api_auth_login_route_actions_0zukc38.js.map → 0ci9_nt-network-dashboard__next-internal_server_app_favicon_ico_route_actions_0t0eu9r.js.map} +0 -0
  1160. /package/.next/server/chunks/{_next-internal_server_app_api_auth_logout_route_actions_0fm~3ij.js.map → 0dk5_next-internal_server_app_api_hub_server_[hostname]_agents_route_actions_0vr92s4.js.map} +0 -0
  1161. /package/.next/server/chunks/{_next-internal_server_app_api_auth_v3_route_actions_0ndzs5l.js.map → 0dk5_next-internal_server_app_api_hub_server_[hostname]_health_route_actions_0vr-bv5.js.map} +0 -0
  1162. /package/.next/server/chunks/{_next-internal_server_app_api_hub_audit-log_route_actions_11k8fqt.js.map → 0ykm__next-internal_server_app_api_anet_config_route_actions_0a~v55_.js.map} +0 -0
  1163. /package/.next/server/chunks/{_next-internal_server_app_api_hub_auth_route_actions_0gs7ttk.js.map → 0ykm__next-internal_server_app_api_auth_login_route_actions_0xnxfs4.js.map} +0 -0
  1164. /package/.next/server/chunks/{_next-internal_server_app_api_hub_broadcast_route_actions_0ads-kd.js.map → 0ykm__next-internal_server_app_api_auth_logout_route_actions_0p8p0rn.js.map} +0 -0
  1165. /package/.next/server/chunks/{_next-internal_server_app_api_hub_events_route_actions_0opktby.js.map → 0ykm__next-internal_server_app_api_hub_audit-log_route_actions_06uquwi.js.map} +0 -0
  1166. /package/.next/server/chunks/{_next-internal_server_app_api_hub_health_route_actions_0tzzt~x.js.map → 0ykm__next-internal_server_app_api_hub_auth_route_actions_0f_y1ey.js.map} +0 -0
  1167. /package/.next/server/chunks/{_next-internal_server_app_api_hub_inbox_route_actions_0xvslrg.js.map → 0ykm__next-internal_server_app_api_hub_broadcast_route_actions_0ao3j43.js.map} +0 -0
  1168. /package/.next/server/chunks/{_next-internal_server_app_api_hub_license_route_actions_0i3tlr3.js.map → 0ykm__next-internal_server_app_api_hub_events_route_actions_0_5ndld.js.map} +0 -0
  1169. /package/.next/server/chunks/{_next-internal_server_app_api_hub_messages_route_actions_08-gi-s.js.map → 0ykm__next-internal_server_app_api_hub_health_route_actions_0mpzl74.js.map} +0 -0
  1170. /package/.next/server/chunks/{_next-internal_server_app_api_hub_networks_route_actions_02vejq2.js.map → 0ykm__next-internal_server_app_api_hub_inbox_route_actions_0stoyto.js.map} +0 -0
  1171. /package/.next/server/chunks/{_next-internal_server_app_api_hub_nodes_route_actions_0nx8ryn.js.map → 0ykm__next-internal_server_app_api_hub_license_route_actions_0a4.fuh.js.map} +0 -0
  1172. /package/.next/server/chunks/{_next-internal_server_app_api_hub_register_route_actions_086wi_3.js.map → 0ykm__next-internal_server_app_api_hub_messages_route_actions_059rw1o.js.map} +0 -0
  1173. /package/.next/server/chunks/{_next-internal_server_app_api_hub_send_route_actions_0-ga_ug.js.map → 0ykm__next-internal_server_app_api_hub_networks_route_actions_03sehpn.js.map} +0 -0
  1174. /package/.next/server/chunks/{_next-internal_server_app_api_hub_server-logs_route_actions_00euexv.js.map → 0ykm__next-internal_server_app_api_hub_nodes_route_actions_11fbp28.js.map} +0 -0
  1175. /package/.next/server/chunks/{_next-internal_server_app_api_hub_session_route_actions_041wa62.js.map → 0ykm__next-internal_server_app_api_hub_register_route_actions_0l.d7~n.js.map} +0 -0
  1176. /package/.next/server/chunks/{_next-internal_server_app_api_hub_stats_route_actions_1242~od.js.map → 0ykm__next-internal_server_app_api_hub_send_route_actions_0.p82vy.js.map} +0 -0
  1177. /package/.next/server/chunks/{_next-internal_server_app_api_hub_status_route_actions_0aml09a.js.map → 0ykm__next-internal_server_app_api_hub_server-logs_route_actions_05~c5lb.js.map} +0 -0
  1178. /package/.next/server/chunks/{_next-internal_server_app_api_hub_task-events_route_actions_02v1tmm.js.map → 0ykm__next-internal_server_app_api_hub_servers_route_actions_08-m-cs.js.map} +0 -0
  1179. /package/.next/server/chunks/{_next-internal_server_app_api_hub_tasks_route_actions_0nl77v4.js.map → 0ykm__next-internal_server_app_api_hub_session_route_actions_0b9ef2i.js.map} +0 -0
  1180. /package/.next/server/chunks/{_next-internal_server_app_api_hub_tmux_route_actions_0u~aaza.js.map → 0ykm__next-internal_server_app_api_hub_stats_route_actions_03u65u0.js.map} +0 -0
  1181. /package/.next/server/chunks/{_next-internal_server_app_api_hub_tokens_route_actions_09hzf_1.js.map → 0ykm__next-internal_server_app_api_hub_status_route_actions_0_71ear.js.map} +0 -0
  1182. /package/.next/server/chunks/{_next-internal_server_app_favicon_ico_route_actions_095lj93.js.map → 0ykm__next-internal_server_app_api_hub_task-events_route_actions_07md_ee.js.map} +0 -0
  1183. /package/.next/server/chunks/{ssr/_next-internal_server_app__global-error_page_actions_0k77kol.js.map → 0ykm__next-internal_server_app_api_hub_tasks_route_actions_0er3uvk.js.map} +0 -0
  1184. /package/.next/server/chunks/{ssr/_next-internal_server_app__not-found_page_actions_0eq97pa.js.map → 0ykm__next-internal_server_app_api_hub_tmux_route_actions_0o_1-8u.js.map} +0 -0
  1185. /package/.next/server/chunks/{ssr/_next-internal_server_app_admin_page_actions_0ycnu8f.js.map → 0ykm__next-internal_server_app_api_hub_tokens_route_actions_09doluz.js.map} +0 -0
  1186. /package/.next/server/chunks/ssr/{_next-internal_server_app_login_page_actions_02kefem.js.map → 0dwh_ent-network-dashboard__next-internal_server_app_server-logs_page_actions_0hkk815.js.map} +0 -0
  1187. /package/.next/server/chunks/ssr/{_next-internal_server_app_logs_page_actions_0rvsl~d.js.map → 0yas_gent-network-dashboard__next-internal_server_app__not-found_page_actions_0u.f-rz.js.map} +0 -0
  1188. /package/.next/server/chunks/ssr/{_next-internal_server_app_messages_page_actions_0gsqep_.js.map → 0yas_gent-network-dashboard__next-internal_server_app_tasks_[id]_page_actions_0r3~lho.js.map} +0 -0
  1189. /package/.next/server/chunks/ssr/{_next-internal_server_app_node_page_actions_0wd8cgl.js.map → 0ykm__next-internal_server_app__global-error_page_actions_100fxls.js.map} +0 -0
  1190. /package/.next/server/chunks/ssr/{_next-internal_server_app_nodes_page_actions_0-.rv67.js.map → 0ykm__next-internal_server_app_settings_networks_page_actions_0jgy57m.js.map} +0 -0
  1191. /package/.next/server/chunks/ssr/{_next-internal_server_app_page_actions_09-gtaw.js.map → 0ykm__next-internal_server_app_settings_tokens_page_actions_0l5h.k~.js.map} +0 -0
  1192. /package/.next/server/chunks/ssr/{_next-internal_server_app_server-logs_page_actions_0g1gb5c.js.map → agent-network-dashboard__next-internal_server_app_admin_page_actions_0i~.x~j.js.map} +0 -0
  1193. /package/.next/server/chunks/ssr/{_next-internal_server_app_settings_networks_page_actions_09uw.sw.js.map → agent-network-dashboard__next-internal_server_app_login_page_actions_0frwl15.js.map} +0 -0
  1194. /package/.next/server/chunks/ssr/{_next-internal_server_app_settings_page_actions_0mr68ai.js.map → agent-network-dashboard__next-internal_server_app_logs_page_actions_0xa2ox_.js.map} +0 -0
  1195. /package/.next/server/chunks/ssr/{_next-internal_server_app_settings_tokens_page_actions_0yi54x8.js.map → agent-network-dashboard__next-internal_server_app_messages_page_actions_10j3tg4.js.map} +0 -0
  1196. /package/.next/server/chunks/ssr/{_next-internal_server_app_tasks_[id]_page_actions_0k_hm9g.js.map → agent-network-dashboard__next-internal_server_app_node_page_actions_0sl4ntd.js.map} +0 -0
  1197. /package/.next/server/chunks/ssr/{_next-internal_server_app_tasks_page_actions_0_2o_cr.js.map → agent-network-dashboard__next-internal_server_app_nodes_page_actions_0cpgkfs.js.map} +0 -0
  1198. /package/.next/static/{q2pRPNeRoK1vOr1EX-qOG → KCOIbpiGzvmJzz6UsLrWH}/_buildManifest.js +0 -0
  1199. /package/.next/static/{q2pRPNeRoK1vOr1EX-qOG → KCOIbpiGzvmJzz6UsLrWH}/_clientMiddlewareManifest.js +0 -0
  1200. /package/.next/static/{q2pRPNeRoK1vOr1EX-qOG → KCOIbpiGzvmJzz6UsLrWH}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../agent-network-dashboard/app/lib/hub.ts","../../../../agent-network-dashboard/app/api/hub/tmux/route.ts","../../../../agent-network-dashboard/node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import { getV3UserToken } from './dashboard-auth';\n\nfunction getHubUrl() {\n return process.env.COMMHUB_URL || 'http://127.0.0.1:9200';\n}\n\nexport const HUB_URL = getHubUrl();\n\nexport function hubHeaders(): Record<string, string> {\n return {};\n}\n\n/**\n * Fetch from CommHub. Uses the browser session's V3 user token when available.\n * Dashboard is a thin proxy and does not fall back to a service/master token.\n */\nexport async function hubFetch(path: string, init?: RequestInit): Promise<Response> {\n const url = `${getHubUrl()}${path}`;\n\n // Build auth: prefer V3 token cookie unless caller supplied Authorization.\n let authHeader: Record<string, string> = {};\n\n // Only try V3 token if no Authorization already in init.headers\n const initHeaders = init?.headers as Record<string, string> | undefined;\n if (!initHeaders?.['Authorization']) {\n try {\n const userToken = await getV3UserToken();\n if (userToken) {\n authHeader = { 'Authorization': `Bearer ${userToken}` };\n }\n } catch {\n // cookies() not available in this context, ignore\n }\n\n }\n\n return fetch(url, {\n ...init,\n headers: { ...authHeader, ...init?.headers },\n next: { revalidate: 0 },\n } as RequestInit);\n}\n","import { requireDashboardAuth } from '@/app/lib/dashboard-auth';\nimport { hubFetch } from '@/app/lib/hub';\n\nexport async function GET(req: Request) {\n const authFailure = await requireDashboardAuth();\n if (authFailure) return authFailure;\n\n const { searchParams } = new URL(req.url);\n const name = searchParams.get('name') || '';\n const lines = searchParams.get('lines') || '30';\n\n if (!name) return Response.json({ error: 'name required' }, { status: 400 });\n\n try {\n const res = await hubFetch(`/api/tmux/${encodeURIComponent(name)}?lines=${lines}`);\n const ct = res.headers.get('content-type') || '';\n if (res.ok && ct.includes('application/json')) return Response.json(await res.json());\n return Response.json({ ok: false, error: `tmux capture failed (${res.status})` });\n } catch (e: unknown) {\n return Response.json({ error: 'failed', detail: e instanceof Error ? e.message : String(e) }, { status: 502 });\n }\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/hub/tmux/route\",\n pathname: \"/api/hub/tmux\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/agent-network-dashboard/app/api/hub/tmux/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/hub/tmux/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":["getHubUrl","process","env","COMMHUB_URL","HUB_URL","hubHeaders","hubFetch","path","init","url","authHeader","initHeaders","headers","userToken","fetch","next","revalidate","GET","req","authFailure","searchParams","URL","name","get","lines","Error","Response","json","error","status","res","encodeURIComponent","ct","ok","includes","e","detail","message","String"],"mappings":"wjCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OAEA,SAASA,IACP,OAAOC,QAAQC,GAAG,CAACC,WAAW,EAAI,uBACpC,CAYO,eAAeG,EAASC,CAAY,CAAEC,CAAkB,EAC7D,IAAMC,EAAM,CAAA,EAAGT,IAAAA,EAAcO,EAAAA,CAAM,CAG/BG,EAAqC,CAAC,EAGpCC,EAAcH,GAAMI,QAC1B,GAAI,CAACD,GAAc,UAAD,IAChB,EADiC,CAC7B,CAD+B,AAEjC,IAAME,EAAY,MAAM,CAAA,EAAA,EAAA,cAAc,AAAd,IACpBA,IACFH,EAAa,CAAE,IADF,UACmB,CAAC,OAAO,EAAEG,EAAAA,CAAW,CAAC,CAE1D,CAAE,KAAM,CAER,CAIF,OAAOC,MAAML,EAAK,CAChB,GAAGD,CAAI,CACPI,QAAS,CAAE,GAAGF,CAAU,CAAE,GAAGF,GAAMI,OAAO,AAAC,EAC3CG,KAAM,CAAEC,WAAY,CAAE,CACxB,EACF,CAnCuBhB,kDENvB,IAAA,EAAA,EAAA,CAAA,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AY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA3TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAA,AAAW,EAAC,kBACf,uBACA,CACJ,EACJ","ignoreList":[2]}
@@ -0,0 +1,3 @@
1
+ module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},98319,e=>{"use strict";var t=e.i(76631);function r(){return process.env.COMMHUB_URL||"http://127.0.0.1:9200"}async function a(e,a){let n=`${r()}${e}`,s={},o=a?.headers;if(!o?.Authorization)try{let e=await (0,t.getV3UserToken)();e&&(s={Authorization:`Bearer ${e}`})}catch{}return fetch(n,{...a,headers:{...s,...a?.headers},next:{revalidate:0}})}r(),e.s(["hubFetch",0,a])},42614,e=>{"use strict";var t=e.i(29124),r=e.i(96565),a=e.i(29718),n=e.i(23850),s=e.i(47878),o=e.i(19885),i=e.i(86384),l=e.i(90127),u=e.i(89548),d=e.i(23489),p=e.i(53565),c=e.i(25859),h=e.i(37031),x=e.i(34816),R=e.i(37020),v=e.i(93695);e.i(69409);var f=e.i(56394),g=e.i(76631),w=e.i(98319);async function m(){let e=await (0,g.requireDashboardAuth)();if(e)return e;try{let e=await (0,w.hubFetch)("/api/auth/tokens"),t=e.headers.get("content-type")||"";if(e.ok&&t.includes("application/json"))return Response.json(await e.json());return Response.json({ok:!0,tokens:[]})}catch(e){return Response.json({error:"failed"},{status:502})}}e.s(["GET",0,m],88212);var E=e.i(88212);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/hub/tokens/route",pathname:"/api/hub/tokens",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/agent-network-dashboard/app/api/hub/tokens/route.ts",nextConfigOutput:"",userland:E,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:b,serverHooks:A}=y;async function k(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/hub/tokens/route";g=g.replace(/\/index$/,"")||"/";let w=await y.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:m,params:E,nextConfig:C,parsedUrl:b,isDraftMode:A,prerenderManifest:k,routerServerContext:T,isOnDemandRevalidate:q,revalidateOnlyGenerated:N,resolvedPathname:P,clientReferenceManifest:_,serverActionsManifest:j}=w,O=(0,i.normalizeAppPath)(g),S=!!(k.dynamicRoutes[O]||k.routes[P]),U=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,b,!1):t.end("This page could not be found"),null);if(S&&!A){let e=!!k.routes[P],t=k.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await U();throw new v.NoFallbackError}}let H=null;!S||y.isDev||A||(H="/index"===(H=P)?"/":H);let M=!0===y.isDev||!S,I=S&&!M;j&&_&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:_,serverActionsManifest:j});let D=e.method||"GET",$=(0,s.getTracer)(),F=$.getActiveScopeSpan(),B=!!(null==T?void 0:T.isWrappedByNextServer),K=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await y.getIncrementalCache(e,C,k,K);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:k.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:M,incrementalCache:L,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,T)},sharedContext:{buildId:m}},V=new l.NodeNextRequest(e),z=new l.NodeNextResponse(t),W=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let n,o=async e=>y.handle(W,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${g}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!K&&q&&N&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!S)return await (0,c.sendResponse)(V,z,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:q})},!1,T),t}},u=await y.handleResponse({req:e,nextConfig:C,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:k,isRoutePPREnabled:!1,isOnDemandRevalidate:q,revalidateOnlyGenerated:N,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:K});if(!S)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",q?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return K&&S||d.delete(R.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(V,z,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};B&&F?await i(F):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${D} ${g}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!B))}catch(t){if(t instanceof v.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:q})},!1,T),S)throw t;return await (0,c.sendResponse)(V,z,new Response(null,{status:500})),null}}e.s(["handler",0,k,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:b})},"routeModule",0,y,"serverHooks",0,A,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,b],42614)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__10pvabe._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../agent-network-dashboard/app/lib/hub.ts","../../../../agent-network-dashboard/node_modules/next/dist/esm/build/templates/app-route.js","../../../../agent-network-dashboard/app/api/hub/tokens/route.ts"],"sourcesContent":["import { getV3UserToken } from './dashboard-auth';\n\nfunction getHubUrl() {\n return process.env.COMMHUB_URL || 'http://127.0.0.1:9200';\n}\n\nexport const HUB_URL = getHubUrl();\n\nexport function hubHeaders(): Record<string, string> {\n return {};\n}\n\n/**\n * Fetch from CommHub. Uses the browser session's V3 user token when available.\n * Dashboard is a thin proxy and does not fall back to a service/master token.\n */\nexport async function hubFetch(path: string, init?: RequestInit): Promise<Response> {\n const url = `${getHubUrl()}${path}`;\n\n // Build auth: prefer V3 token cookie unless caller supplied Authorization.\n let authHeader: Record<string, string> = {};\n\n // Only try V3 token if no Authorization already in init.headers\n const initHeaders = init?.headers as Record<string, string> | undefined;\n if (!initHeaders?.['Authorization']) {\n try {\n const userToken = await getV3UserToken();\n if (userToken) {\n authHeader = { 'Authorization': `Bearer ${userToken}` };\n }\n } catch {\n // cookies() not available in this context, ignore\n }\n\n }\n\n return fetch(url, {\n ...init,\n headers: { ...authHeader, ...init?.headers },\n next: { revalidate: 0 },\n } as RequestInit);\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/hub/tokens/route\",\n pathname: \"/api/hub/tokens\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/agent-network-dashboard/app/api/hub/tokens/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/hub/tokens/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n","import { requireDashboardAuth } from '@/app/lib/dashboard-auth';\nimport { hubFetch } from '@/app/lib/hub';\n\nexport async function GET() {\n const authFailure = await requireDashboardAuth();\n if (authFailure) return authFailure;\n\n try {\n const res = await hubFetch('/api/auth/tokens');\n const ct = res.headers.get('content-type') || '';\n if (res.ok && ct.includes('application/json')) return Response.json(await res.json());\n return Response.json({ ok: true, tokens: [] });\n } catch (e: unknown) {\n return Response.json({ error: 'failed' }, { status: 502 });\n }\n}\n"],"names":["getHubUrl","process","env","COMMHUB_URL","HUB_URL","hubHeaders","hubFetch","path","init","url","authHeader","initHeaders","headers","userToken","fetch","next","revalidate","GET","authFailure","res","ct","get","ok","includes","Response","json","tokens","e","error","status"],"mappings":"wjCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OAEA,SAASA,IACP,OAAOC,QAAQC,GAAG,CAACC,WAAW,EAAI,uBACpC,CAYO,eAAeG,EAASC,CAAY,CAAEC,CAAkB,EAC7D,IAAMC,EAAM,CAAA,EAAGT,IAAAA,EAAcO,EAAAA,CAAM,CAG/BG,EAAqC,CAAC,EAGpCC,EAAcH,GAAMI,QAC1B,GAAI,CAACD,GAAc,UAAD,IAChB,EADiC,CAC7B,CAD+B,AAEjC,IAAME,EAAY,MAAM,CAAA,EAAA,EAAA,cAAc,AAAd,IACpBA,IACFH,EAAa,CAAE,IADF,UACmB,CAAC,OAAO,EAAEG,EAAAA,CAAW,CAAC,CAE1D,CAAE,KAAM,CAER,CAIF,OAAOC,MAAML,EAAK,CAChB,GAAGD,CAAI,CACPI,QAAS,CAAE,GAAGF,CAAU,CAAE,GAAGF,GAAMI,OAAQ,AAAD,EAC1CG,KAAM,CAAEC,WAAY,CAAE,CACxB,EACF,CAnCuBhB,kDCNvB,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,CAAA,CAAA,OAAA,IAA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EAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,QAAiB,EAAW,CAAC,GAE5C,CAAE,MAAO,EAAK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,EATmB,CAShB,EAAY,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA3TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAA,AAAW,EAAC,kBACf,uBACA,CACJ,EACJ","ignoreList":[1]}
@@ -0,0 +1,3 @@
1
+ module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},98319,e=>{"use strict";var t=e.i(76631);function r(){return process.env.COMMHUB_URL||"http://127.0.0.1:9200"}async function a(e,a){let n=`${r()}${e}`,o={},i=a?.headers;if(!i?.Authorization)try{let e=await (0,t.getV3UserToken)();e&&(o={Authorization:`Bearer ${e}`})}catch{}return fetch(n,{...a,headers:{...o,...a?.headers},next:{revalidate:0}})}r(),e.s(["hubFetch",0,a])},21235,e=>{"use strict";var t=e.i(29124),r=e.i(96565),a=e.i(29718),n=e.i(23850),o=e.i(47878),i=e.i(19885),s=e.i(86384),l=e.i(90127),u=e.i(89548),d=e.i(23489),p=e.i(53565),c=e.i(25859),h=e.i(37031),w=e.i(34816),R=e.i(37020),f=e.i(93695);e.i(69409);var x=e.i(56394),g=e.i(76631),v=e.i(49882),y=e.i(98319);async function m(e){let t=await (0,g.requireDashboardAuth)();if(t)return t;try{let{action:t,...r}=await e.json();if("create_token"===t){let{token:e,name:t}=r,a=await (0,y.hubFetch)("/api/auth/tokens",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({name:t})});return Response.json(await a.json())}if("revoke_token"===t){let{token:e,token_id:t}=r,a=await (0,y.hubFetch)(`/api/auth/tokens/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${e}`}});return Response.json(await a.json())}if("change_password"===t){let{token:t,current_password:a,new_password:n}=r,o=await (0,y.hubFetch)("/api/auth/password",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({old_password:a,new_password:n})}),i=await o.json(),s=v.NextResponse.json(i);if(i.ok&&i.token){let t=e.headers.get("x-forwarded-proto")||new URL(e.url).protocol.replace(":","");s.cookies.set(g.DASHBOARD_SESSION_COOKIE,`v3:${i.token}`,{httpOnly:!0,secure:"https"===t&&"1"!==process.env.COOKIE_INSECURE,sameSite:"lax",path:"/",maxAge:86400})}return s}if("create_network"===t){let{token:e,name:t,description:a}=r,n=await (0,y.hubFetch)("/api/networks",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({name:t,description:a})});return Response.json(await n.json())}if("delete_network"===t){let{token:e,network_id:t}=r,a=await (0,y.hubFetch)(`/api/networks/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${e}`}});return Response.json(await a.json())}if("invite_member"===t){let{token:e,network_id:t,role:a}=r,n=await (0,y.hubFetch)(`/api/networks/${t}/invite`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({role:a})});return Response.json(await n.json())}if("update_profile"===t){let{token:e,display_name:t,email:a}=r,n=await (0,y.hubFetch)("/api/auth/me",{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({display_name:t,email:a})});return Response.json(await n.json())}let a="register"===t?"/api/auth/register":"login"===t?"/api/auth/login":null;if(!a)return Response.json({error:"invalid action"},{status:400});let n=await (0,y.hubFetch)(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});return Response.json(await n.json())}catch(e){return Response.json({error:"failed",detail:e instanceof Error?e.message:String(e)},{status:502})}}async function E(e){let t=await (0,g.requireDashboardAuth)();if(t)return t;let{searchParams:r}=new URL(e.url),a=r.get("token")||"",n=r.get("endpoint")||"/api/auth/me";try{let e=await (0,y.hubFetch)(n,{headers:a?{Authorization:`Bearer ${a}`}:{}}),t=e.headers.get("content-type")||"";if(e.ok&&t.includes("application/json"))return Response.json(await e.json());return Response.json({ok:!1,error:"endpoint not available"},{status:404})}catch(e){return Response.json({error:"failed",detail:e instanceof Error?e.message:String(e)},{status:502})}}e.s(["GET",0,E,"POST",0,m],15056);var b=e.i(15056);let j=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/hub/auth/route",pathname:"/api/hub/auth",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/agent-network-dashboard/app/api/hub/auth/route.ts",nextConfigOutput:"",userland:b,...{}}),{workAsyncStorage:k,workUnitAsyncStorage:C,serverHooks:A}=j;async function S(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),j.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/hub/auth/route";g=g.replace(/\/index$/,"")||"/";let v=await j.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:y,params:m,nextConfig:E,parsedUrl:b,isDraftMode:k,prerenderManifest:C,routerServerContext:A,isOnDemandRevalidate:S,revalidateOnlyGenerated:T,resolvedPathname:O,clientReferenceManifest:N,serverActionsManifest:_}=v,P=(0,s.normalizeAppPath)(g),q=!!(C.dynamicRoutes[P]||C.routes[O]),$=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,b,!1):t.end("This page could not be found"),null);if(q&&!k){let e=!!C.routes[O],t=C.dynamicRoutes[P];if(t&&!1===t.fallback&&!e){if(E.adapterPath)return await $();throw new f.NoFallbackError}}let U=null;!q||j.isDev||k||(U="/index"===(U=O)?"/":U);let I=!0===j.isDev||!q,D=q&&!I;_&&N&&(0,i.setManifestsSingleton)({page:g,clientReferenceManifest:N,serverActionsManifest:_});let H=e.method||"GET",F=(0,o.getTracer)(),B=F.getActiveScopeSpan(),M=!!(null==A?void 0:A.isWrappedByNextServer),z=!!(0,n.getRequestMeta)(e,"minimalMode"),K=(0,n.getRequestMeta)(e,"incrementalCache")||await j.getIncrementalCache(e,E,C,z);null==K||K.resetRequestCache(),globalThis.__incrementalCache=K;let L={params:m,previewProps:C.preview,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:I,incrementalCache:K,cacheLifeProfiles:E.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>j.onRequestError(e,t,a,n,A)},sharedContext:{buildId:y}},J=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),V=u.NextRequestAdapter.fromNodeNextRequest(J,(0,u.signalFromNodeResponse)(t));try{let n,i=async e=>j.handle(V,L).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${H} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${H} ${g}`)}),s=async n=>{var o,s;let l=async({previousCacheEntry:r})=>{try{if(!z&&S&&T&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let o=await i(n);e.fetchMetrics=L.renderOpts.fetchMetrics;let s=L.renderOpts.pendingWaitUntil;s&&a.waitUntil&&(a.waitUntil(s),s=void 0);let l=L.renderOpts.collectedTags;if(!q)return await (0,c.sendResponse)(J,G,o,L.renderOpts.pendingWaitUntil),null;{let e=await o.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(o.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,a=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:x.CachedRouteKind.APP_ROUTE,status:o.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await j.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:S})},!1,A),t}},u=await j.handleResponse({req:e,nextConfig:E,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:T,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:z});if(!q)return null;if((null==u||null==(o=u.value)?void 0:o.kind)!==x.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(s=u.value)?void 0:s.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});z||t.setHeader("x-nextjs-cache",S?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),k&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return z&&q||d.delete(R.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,w.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(J,G,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};M&&B?await s(B):(n=F.getActiveScopeSpan(),await F.withPropagatedContext(e.headers,()=>F.trace(d.BaseServerSpan.handleRequest,{spanName:`${H} ${g}`,kind:o.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},s),void 0,!M))}catch(t){if(t instanceof f.NoFallbackError||await j.onRequestError(e,t,{routerKind:"App Router",routePath:P,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:S})},!1,A),q)throw t;return await (0,c.sendResponse)(J,G,new Response(null,{status:500})),null}}e.s(["handler",0,S,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:C})},"routeModule",0,j,"serverHooks",0,A,"workAsyncStorage",0,k,"workUnitAsyncStorage",0,C],21235)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__10t11zq._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../agent-network-dashboard/app/lib/hub.ts","../../../../agent-network-dashboard/node_modules/next/dist/esm/build/templates/app-route.js","../../../../agent-network-dashboard/app/api/hub/auth/route.ts"],"sourcesContent":["import { getV3UserToken } from './dashboard-auth';\n\nfunction getHubUrl() {\n return process.env.COMMHUB_URL || 'http://127.0.0.1:9200';\n}\n\nexport const HUB_URL = getHubUrl();\n\nexport function hubHeaders(): Record<string, string> {\n return {};\n}\n\n/**\n * Fetch from CommHub. Uses the browser session's V3 user token when available.\n * Dashboard is a thin proxy and does not fall back to a service/master token.\n */\nexport async function hubFetch(path: string, init?: RequestInit): Promise<Response> {\n const url = `${getHubUrl()}${path}`;\n\n // Build auth: prefer V3 token cookie unless caller supplied Authorization.\n let authHeader: Record<string, string> = {};\n\n // Only try V3 token if no Authorization already in init.headers\n const initHeaders = init?.headers as Record<string, string> | undefined;\n if (!initHeaders?.['Authorization']) {\n try {\n const userToken = await getV3UserToken();\n if (userToken) {\n authHeader = { 'Authorization': `Bearer ${userToken}` };\n }\n } catch {\n // cookies() not available in this context, ignore\n }\n\n }\n\n return fetch(url, {\n ...init,\n headers: { ...authHeader, ...init?.headers },\n next: { revalidate: 0 },\n } as RequestInit);\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/hub/auth/route\",\n pathname: \"/api/hub/auth\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/agent-network-dashboard/app/api/hub/auth/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/hub/auth/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n","import { requireDashboardAuth } from '@/app/lib/dashboard-auth';\nimport { NextResponse } from 'next/server';\nimport { DASHBOARD_SESSION_COOKIE } from '@/app/lib/dashboard-auth';\nimport { hubFetch } from '@/app/lib/hub';\n\n/**\n * Proxy for CommHub V3 Auth API.\n * POST: register or login (action in body)\n * GET: /api/auth/me (requires user token in query)\n */\nexport async function POST(req: Request) {\n const authFailure = await requireDashboardAuth();\n if (authFailure) return authFailure;\n\n try {\n const body = await req.json();\n const { action, ...payload } = body;\n\n if (action === 'create_token') {\n const { token: userToken, name } = payload;\n const res = await hubFetch('/api/auth/tokens', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${userToken}` },\n body: JSON.stringify({ name }),\n });\n return Response.json(await res.json());\n }\n\n if (action === 'revoke_token') {\n const { token: userToken, token_id } = payload;\n const res = await hubFetch(`/api/auth/tokens/${token_id}`, {\n method: 'DELETE',\n headers: { 'Authorization': `Bearer ${userToken}` },\n });\n return Response.json(await res.json());\n }\n\n if (action === 'change_password') {\n const { token: userToken, current_password, new_password } = payload;\n const res = await hubFetch('/api/auth/password', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${userToken}` },\n body: JSON.stringify({ old_password: current_password, new_password }),\n });\n const data = await res.json();\n const response = NextResponse.json(data);\n if (data.ok && data.token) {\n const proto = req.headers.get('x-forwarded-proto') || new URL(req.url).protocol.replace(':', '');\n response.cookies.set(DASHBOARD_SESSION_COOKIE, `v3:${data.token}`, {\n httpOnly: true,\n secure: proto === 'https' && process.env.COOKIE_INSECURE !== '1',\n sameSite: 'lax',\n path: '/',\n maxAge: 60 * 60 * 24,\n });\n }\n return response;\n }\n\n if (action === 'create_network') {\n const { token: userToken, name, description } = payload;\n const res = await hubFetch('/api/networks', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${userToken}` },\n body: JSON.stringify({ name, description }),\n });\n return Response.json(await res.json());\n }\n\n if (action === 'delete_network') {\n const { token: userToken, network_id } = payload;\n const res = await hubFetch(`/api/networks/${network_id}`, {\n method: 'DELETE',\n headers: { 'Authorization': `Bearer ${userToken}` },\n });\n return Response.json(await res.json());\n }\n\n if (action === 'invite_member') {\n const { token: userToken, network_id, role } = payload;\n const res = await hubFetch(`/api/networks/${network_id}/invite`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${userToken}` },\n body: JSON.stringify({ role }),\n });\n return Response.json(await res.json());\n }\n\n if (action === 'update_profile') {\n const { token: userToken, display_name, email } = payload;\n const res = await hubFetch('/api/auth/me', {\n method: 'PUT',\n headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${userToken}` },\n body: JSON.stringify({ display_name, email }),\n });\n return Response.json(await res.json());\n }\n\n const endpoint = action === 'register' ? '/api/auth/register'\n : action === 'login' ? '/api/auth/login'\n : null;\n\n if (!endpoint) {\n return Response.json({ error: 'invalid action' }, { status: 400 });\n }\n\n const res = await hubFetch(endpoint, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(payload),\n });\n return Response.json(await res.json());\n } catch (e: unknown) {\n return Response.json({ error: 'failed', detail: e instanceof Error ? e.message : String(e) }, { status: 502 });\n }\n}\n\nexport async function GET(req: Request) {\n const authFailure = await requireDashboardAuth();\n if (authFailure) return authFailure;\n\n const { searchParams } = new URL(req.url);\n const userToken = searchParams.get('token') || '';\n const endpoint = searchParams.get('endpoint') || '/api/auth/me';\n\n try {\n const res = await hubFetch(endpoint, {\n headers: userToken ? { 'Authorization': `Bearer ${userToken}` } : {},\n });\n const contentType = res.headers.get('content-type') || '';\n if (res.ok && contentType.includes('application/json')) {\n return Response.json(await res.json());\n }\n return Response.json({ ok: false, error: 'endpoint not available' }, { status: 404 });\n } catch (e: unknown) {\n return Response.json({ error: 'failed', detail: e instanceof Error ? e.message : String(e) }, { status: 502 });\n }\n}\n"],"names":["getHubUrl","process","env","COMMHUB_URL","HUB_URL","hubHeaders","hubFetch","path","init","url","authHeader","initHeaders","headers","userToken","fetch","next","revalidate","POST","req","authFailure","body","json","action","payload","token","name","res","method","JSON","stringify","Response","token_id","current_password","new_password","old_password","data","response","ok","proto","get","URL","protocol","replace","cookies","set","httpOnly","secure","COOKIE_INSECURE","sameSite","maxAge","description","network_id","role","display_name","email","e","endpoint","error","status","detail","Error","message","String","GET","searchParams","contentType","includes"],"mappings":"wjCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OAEA,SAASA,IACP,OAAOC,QAAQC,GAAG,CAACC,WAAW,EAAI,uBACpC,CAYO,eAAeG,EAASC,CAAY,CAAEC,CAAkB,EAC7D,IAAMC,EAAM,CAAA,EAAGT,IAAAA,EAAcO,EAAAA,CAAM,CAG/BG,EAAqC,CAAC,EAGpCC,EAAcH,GAAMI,QAC1B,GAAI,CAACD,GAAc,UAAD,IAChB,EADiC,CAC7B,CAD+B,AAEjC,IAAME,EAAY,MAAM,CAAA,EAAA,EAAA,cAAA,AAAc,IAClCA,IACFH,EAAa,CAAE,IADF,UACmB,CAAC,OAAO,EAAEG,EAAAA,CAAW,CAAC,CAE1D,CAAE,KAAM,CAER,CAIF,OAAOC,MAAML,EAAK,CAChB,GAAGD,CAAI,CACPI,QAAS,CAAE,GAAGF,CAAU,CAAE,GAAGF,GAAMI,OAAO,AAAC,EAC3CG,KAAM,CAAEC,WAAY,CAAE,CACxB,EACF,CAnCuBhB,kDCNvB,IAAA,EAAA,EAAA,CAAA,CAAA,OAC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AAO,EAAK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA3TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAA,AAAW,EAAC,kBACf,uBACA,CACJ,EACJ","ignoreList":[1]}
@@ -0,0 +1,3 @@
1
+ module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},98319,e=>{"use strict";var t=e.i(76631);function r(){return process.env.COMMHUB_URL||"http://127.0.0.1:9200"}async function a(e,a){let n=`${r()}${e}`,s={},i=a?.headers;if(!i?.Authorization)try{let e=await (0,t.getV3UserToken)();e&&(s={Authorization:`Bearer ${e}`})}catch{}return fetch(n,{...a,headers:{...s,...a?.headers},next:{revalidate:0}})}r(),e.s(["hubFetch",0,a])},81208,e=>{"use strict";var t=e.i(29124),r=e.i(96565),a=e.i(29718),n=e.i(23850),s=e.i(47878),i=e.i(19885),o=e.i(86384),l=e.i(90127),u=e.i(89548),d=e.i(23489),p=e.i(53565),c=e.i(25859),h=e.i(37031),g=e.i(34816),x=e.i(37020),R=e.i(93695);e.i(69409);var v=e.i(56394),w=e.i(76631),m=e.i(98319);async function f(e){let t=await (0,w.requireDashboardAuth)();if(t)return t;let{searchParams:r}=new URL(e.url),a=r.get("limit")||"50",n=r.get("network_id")||"",s=r.get("since")||new Date(Date.now()-6048e5).toISOString().replace("T"," ").slice(0,19),i=new URLSearchParams({limit:a,since:s});n&&i.set("network_id",n);try{let e=await (0,m.hubFetch)(`/api/messages?${i.toString()}`),t=await e.json();if(n&&t.ok&&(!t.messages||0===t.messages.length)){let e=new URLSearchParams({limit:a,since:s}),t=await (0,m.hubFetch)(`/api/messages?${e.toString()}`),r=await t.json();if(r.ok&&r.messages?.length>0)return Response.json({...r,source:"global"})}return Response.json(t)}catch(e){return Response.json({ok:!1,messages:[]},{status:502})}}e.s(["GET",0,f],57403);var E=e.i(57403);let b=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/hub/messages/route",pathname:"/api/hub/messages",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/agent-network-dashboard/app/api/hub/messages/route.ts",nextConfigOutput:"",userland:E,...{}}),{workAsyncStorage:y,workUnitAsyncStorage:C,serverHooks:A}=b;async function k(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),b.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/hub/messages/route";w=w.replace(/\/index$/,"")||"/";let m=await b.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:f,params:E,nextConfig:y,parsedUrl:C,isDraftMode:A,prerenderManifest:k,routerServerContext:S,isOnDemandRevalidate:T,revalidateOnlyGenerated:q,resolvedPathname:P,clientReferenceManifest:N,serverActionsManifest:_}=m,O=(0,o.normalizeAppPath)(w),j=!!(k.dynamicRoutes[O]||k.routes[P]),U=async()=>((null==S?void 0:S.render404)?await S.render404(e,t,C,!1):t.end("This page could not be found"),null);if(j&&!A){let e=!!k.routes[P],t=k.dynamicRoutes[O];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await U();throw new R.NoFallbackError}}let H=null;!j||b.isDev||A||(H="/index"===(H=P)?"/":H);let I=!0===b.isDev||!j,M=j&&!I;_&&N&&(0,i.setManifestsSingleton)({page:w,clientReferenceManifest:N,serverActionsManifest:_});let D=e.method||"GET",$=(0,s.getTracer)(),F=$.getActiveScopeSpan(),L=!!(null==S?void 0:S.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),K=(0,n.getRequestMeta)(e,"incrementalCache")||await b.getIncrementalCache(e,y,k,B);null==K||K.resetRequestCache(),globalThis.__incrementalCache=K;let G={params:E,previewProps:k.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:I,incrementalCache:K,cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,S)},sharedContext:{buildId:f}},V=new l.NodeNextRequest(e),z=new l.NodeNextResponse(t),W=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let n,i=async e=>b.handle(W,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${w}`)}),o=async n=>{var s,o;let l=async({previousCacheEntry:r})=>{try{if(!B&&T&&q&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let o=G.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let l=G.renderOpts.collectedTags;if(!j)return await (0,c.sendResponse)(V,z,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[x.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=x.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=x.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,S),t}},u=await b.handleResponse({req:e,nextConfig:y,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:k,isRoutePPREnabled:!1,isOnDemandRevalidate:T,revalidateOnlyGenerated:q,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:B});if(!j)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(o=u.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",T?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return B&&j||d.delete(x.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,g.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(V,z,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};L&&F?await o(F):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${D} ${w}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},o),void 0,!L))}catch(t){if(t instanceof R.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:O,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:T})},!1,S),j)throw t;return await (0,c.sendResponse)(V,z,new Response(null,{status:500})),null}}e.s(["handler",0,k,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:C})},"routeModule",0,b,"serverHooks",0,A,"workAsyncStorage",0,y,"workUnitAsyncStorage",0,C],81208)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__12r~omy._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../agent-network-dashboard/app/lib/hub.ts","../../../../agent-network-dashboard/app/api/hub/messages/route.ts","../../../../agent-network-dashboard/node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import { getV3UserToken } from './dashboard-auth';\n\nfunction getHubUrl() {\n return process.env.COMMHUB_URL || 'http://127.0.0.1:9200';\n}\n\nexport const HUB_URL = getHubUrl();\n\nexport function hubHeaders(): Record<string, string> {\n return {};\n}\n\n/**\n * Fetch from CommHub. Uses the browser session's V3 user token when available.\n * Dashboard is a thin proxy and does not fall back to a service/master token.\n */\nexport async function hubFetch(path: string, init?: RequestInit): Promise<Response> {\n const url = `${getHubUrl()}${path}`;\n\n // Build auth: prefer V3 token cookie unless caller supplied Authorization.\n let authHeader: Record<string, string> = {};\n\n // Only try V3 token if no Authorization already in init.headers\n const initHeaders = init?.headers as Record<string, string> | undefined;\n if (!initHeaders?.['Authorization']) {\n try {\n const userToken = await getV3UserToken();\n if (userToken) {\n authHeader = { 'Authorization': `Bearer ${userToken}` };\n }\n } catch {\n // cookies() not available in this context, ignore\n }\n\n }\n\n return fetch(url, {\n ...init,\n headers: { ...authHeader, ...init?.headers },\n next: { revalidate: 0 },\n } as RequestInit);\n}\n","import { requireDashboardAuth } from '@/app/lib/dashboard-auth';\nimport { hubFetch } from '@/app/lib/hub';\n\nexport async function GET(req: Request) {\n const authFailure = await requireDashboardAuth();\n if (authFailure) return authFailure;\n\n const { searchParams } = new URL(req.url);\n const limit = searchParams.get('limit') || '50';\n const networkId = searchParams.get('network_id') || '';\n // Show last 7 days by default (server defaults to 1 hour which is too short)\n const since = searchParams.get('since') || new Date(Date.now() - 7 * 86400000).toISOString().replace('T', ' ').slice(0, 19);\n const qs = new URLSearchParams({ limit, since });\n if (networkId) qs.set('network_id', networkId);\n try {\n const res = await hubFetch(`/api/messages?${qs.toString()}`);\n const data = await res.json();\n // Fallback: if network filter returns empty, retry without filter\n if (networkId && data.ok && (!data.messages || data.messages.length === 0)) {\n const fbQs = new URLSearchParams({ limit, since });\n const fbRes = await hubFetch(`/api/messages?${fbQs.toString()}`);\n const fbData = await fbRes.json();\n if (fbData.ok && fbData.messages?.length > 0) {\n return Response.json({ ...fbData, source: 'global' });\n }\n }\n return Response.json(data);\n } catch (e: unknown) {\n return Response.json({ ok: false, messages: [] }, { status: 502 });\n }\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/hub/messages/route\",\n pathname: \"/api/hub/messages\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/agent-network-dashboard/app/api/hub/messages/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/hub/messages/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":["getHubUrl","process","env","COMMHUB_URL","HUB_URL","hubHeaders","hubFetch","path","init","url","authHeader","initHeaders","headers","userToken","fetch","next","revalidate","GET","req","authFailure","searchParams","URL","limit","get","networkId","since","Date","now","toISOString","replace","slice","qs","URLSearchParams","set","res","toString","data","json","ok","messages","length","fbQs","fbRes","fbData","Response","source","e","status"],"mappings":"wjCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OAEA,SAASA,IACP,OAAOC,QAAQC,GAAG,CAACC,WAAW,EAAI,uBACpC,CAYO,eAAeG,EAASC,CAAY,CAAEC,CAAkB,EAC7D,IAAMC,EAAM,CAAA,EAAGT,IAAAA,EAAcO,EAAAA,CAAM,CAG/BG,EAAqC,CAAC,EAGpCC,EAAcH,GAAMI,QAC1B,GAAI,CAACD,GAAc,UAAD,IAChB,EADiC,CAC7B,CAD+B,AAEjC,IAAME,EAAY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AA,qBAAA,AAAqB,EAAC,EAAW,YAAY,GAE9E,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAChC,IAAI,SAAS,EAAW,KAAK,CAAC,IAAI,CAAE,SAChC,EACA,OAAQ,EAAW,KAAK,CAAC,MAAM,EAAI,GACvC,IACO,IACX,EAGI,GAAyB,EACzB,MAAM,EAAe,EADgB,EAGrC,EAAa,EAAO,kBAAkB,GACtC,MAAM,EAAO,qBAAqB,CAAC,EAAI,OAAO,CAAE,IAAI,EAAO,KAAK,CAAC,EAAA,cAAc,CAAC,aAAa,CAAE,CACvF,SAAU,CAAA,EAAG,EAAO,CAAC,EAAE,EAAA,CAAS,CAChC,KAAM,EAAA,QAAQ,CAAC,MAAM,CACrB,WAAY,CACR,cAAe,EACf,cAAe,EAAI,GAAG,AAC1B,CACJ,EAAG,QAAiB,EAAW,CAAC,GAE5C,CAAE,MAAO,EAAK,CAeV,GAdM,aAAe,EAAA,eAAe,EAEhC,CAFmC,KAE7B,EAAY,cAAc,CAAC,EAAK,EAAK,CACvC,WAAY,aACZ,UAAW,EACX,UAAW,QACX,iBAAkB,CAAA,EAAA,EAAA,mBAAA,AAAmB,EAAC,oBAClC,uBACA,CACJ,EACJ,GAAG,AATgB,EASJ,GAIf,EAAO,MAAM,EAKjB,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA3TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAA,AAAW,EAAC,kBACf,uBACA,CACJ,EACJ","ignoreList":[2]}
@@ -0,0 +1,3 @@
1
+ module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},98319,e=>{"use strict";var t=e.i(76631);function r(){return process.env.COMMHUB_URL||"http://127.0.0.1:9200"}async function a(e,a){let n=`${r()}${e}`,s={},o=a?.headers;if(!o?.Authorization)try{let e=await (0,t.getV3UserToken)();e&&(s={Authorization:`Bearer ${e}`})}catch{}return fetch(n,{...a,headers:{...s,...a?.headers},next:{revalidate:0}})}r(),e.s(["hubFetch",0,a])},72192,e=>{"use strict";var t=e.i(29124),r=e.i(96565),a=e.i(29718),n=e.i(23850),s=e.i(47878),o=e.i(19885),i=e.i(86384),l=e.i(90127),u=e.i(89548),d=e.i(23489),p=e.i(53565),c=e.i(25859),h=e.i(37031),x=e.i(34816),R=e.i(37020),g=e.i(93695);e.i(69409);var v=e.i(56394),f=e.i(76631),w=e.i(98319);async function m(e){let t=await (0,f.requireDashboardAuth)();if(t)return t;let{searchParams:r}=new URL(e.url),a=new URLSearchParams;for(let e of["limit","action","user_id","network_id"]){let t=r.get(e);t&&a.set(e,t)}let n=r.get("token")||"";try{let e={};n&&(e.headers={Authorization:`Bearer ${n}`});let t=await (0,w.hubFetch)(`/api/audit-log?${a.toString()}`,e),r=t.headers.get("content-type")||"";if(t.ok&&r.includes("application/json"))return Response.json(await t.json());let s=await t.text().catch(()=>"");return Response.json({ok:!1,logs:[],count:0,error:s||`status ${t.status}`})}catch(e){return Response.json({error:"failed",detail:e instanceof Error?e.message:String(e)},{status:502})}}e.s(["GET",0,m],29961);var E=e.i(29961);let y=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/hub/audit-log/route",pathname:"/api/hub/audit-log",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/agent-network-dashboard/app/api/hub/audit-log/route.ts",nextConfigOutput:"",userland:E,...{}}),{workAsyncStorage:C,workUnitAsyncStorage:b,serverHooks:A}=y;async function k(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),y.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/hub/audit-log/route";f=f.replace(/\/index$/,"")||"/";let w=await y.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:m,params:E,nextConfig:C,parsedUrl:b,isDraftMode:A,prerenderManifest:k,routerServerContext:T,isOnDemandRevalidate:q,revalidateOnlyGenerated:N,resolvedPathname:P,clientReferenceManifest:S,serverActionsManifest:_}=w,j=(0,i.normalizeAppPath)(f),O=!!(k.dynamicRoutes[j]||k.routes[P]),U=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,b,!1):t.end("This page could not be found"),null);if(O&&!A){let e=!!k.routes[P],t=k.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(C.adapterPath)return await U();throw new g.NoFallbackError}}let H=null;!O||y.isDev||A||(H="/index"===(H=P)?"/":H);let M=!0===y.isDev||!O,I=O&&!M;_&&S&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:S,serverActionsManifest:_});let $=e.method||"GET",D=(0,s.getTracer)(),F=D.getActiveScopeSpan(),B=!!(null==T?void 0:T.isWrappedByNextServer),K=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await y.getIncrementalCache(e,C,k,K);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let z={params:E,previewProps:k.preview,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts},cacheComponents:!!C.cacheComponents,supportsDynamicResponse:M,incrementalCache:L,cacheLifeProfiles:C.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>y.onRequestError(e,t,a,n,T)},sharedContext:{buildId:m}},G=new l.NodeNextRequest(e),V=new l.NodeNextResponse(t),W=u.NextRequestAdapter.fromNodeNextRequest(G,(0,u.signalFromNodeResponse)(t));try{let n,o=async e=>y.handle(W,z).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=D.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${$} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${$} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!K&&q&&N&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=z.renderOpts.fetchMetrics;let i=z.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=z.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(G,V,s,z.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==z.renderOpts.collectedRevalidate&&!(z.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&z.renderOpts.collectedRevalidate,a=void 0===z.renderOpts.collectedExpire||z.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:z.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await y.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:q})},!1,T),t}},u=await y.handleResponse({req:e,nextConfig:C,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:k,isRoutePPREnabled:!1,isOnDemandRevalidate:q,revalidateOnlyGenerated:N,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:K});if(!O)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",q?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return K&&O||d.delete(R.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(G,V,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};B&&F?await i(F):(n=D.getActiveScopeSpan(),await D.withPropagatedContext(e.headers,()=>D.trace(d.BaseServerSpan.handleRequest,{spanName:`${$} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},i),void 0,!B))}catch(t){if(t instanceof g.NoFallbackError||await y.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:I,isOnDemandRevalidate:q})},!1,T),O)throw t;return await (0,c.sendResponse)(G,V,new Response(null,{status:500})),null}}e.s(["handler",0,k,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:b})},"routeModule",0,y,"serverHooks",0,A,"workAsyncStorage",0,C,"workUnitAsyncStorage",0,b],72192)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__1389~cs._.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../agent-network-dashboard/app/lib/hub.ts","../../../../agent-network-dashboard/app/api/hub/audit-log/route.ts","../../../../agent-network-dashboard/node_modules/next/dist/esm/build/templates/app-route.js"],"sourcesContent":["import { getV3UserToken } from './dashboard-auth';\n\nfunction getHubUrl() {\n return process.env.COMMHUB_URL || 'http://127.0.0.1:9200';\n}\n\nexport const HUB_URL = getHubUrl();\n\nexport function hubHeaders(): Record<string, string> {\n return {};\n}\n\n/**\n * Fetch from CommHub. Uses the browser session's V3 user token when available.\n * Dashboard is a thin proxy and does not fall back to a service/master token.\n */\nexport async function hubFetch(path: string, init?: RequestInit): Promise<Response> {\n const url = `${getHubUrl()}${path}`;\n\n // Build auth: prefer V3 token cookie unless caller supplied Authorization.\n let authHeader: Record<string, string> = {};\n\n // Only try V3 token if no Authorization already in init.headers\n const initHeaders = init?.headers as Record<string, string> | undefined;\n if (!initHeaders?.['Authorization']) {\n try {\n const userToken = await getV3UserToken();\n if (userToken) {\n authHeader = { 'Authorization': `Bearer ${userToken}` };\n }\n } catch {\n // cookies() not available in this context, ignore\n }\n\n }\n\n return fetch(url, {\n ...init,\n headers: { ...authHeader, ...init?.headers },\n next: { revalidate: 0 },\n } as RequestInit);\n}\n","import { requireDashboardAuth } from '@/app/lib/dashboard-auth';\nimport { hubFetch } from '@/app/lib/hub';\n\nexport async function GET(req: Request) {\n const authFailure = await requireDashboardAuth();\n if (authFailure) return authFailure;\n\n const { searchParams } = new URL(req.url);\n const params = new URLSearchParams();\n for (const key of ['limit', 'action', 'user_id', 'network_id']) {\n const val = searchParams.get(key);\n if (val) params.set(key, val);\n }\n // User token overrides CommHub token for user-scoped access\n const userToken = searchParams.get('token') || '';\n\n try {\n const init: RequestInit = {};\n if (userToken) {\n init.headers = { 'Authorization': `Bearer ${userToken}` };\n }\n // Without userToken, hubFetch uses CommHub auth token\n\n const res = await hubFetch(`/api/audit-log?${params.toString()}`, init);\n const contentType = res.headers.get('content-type') || '';\n if (res.ok && contentType.includes('application/json')) {\n return Response.json(await res.json());\n }\n // Graceful fallback\n const text = await res.text().catch(() => '');\n return Response.json({ ok: false, logs: [], count: 0, error: text || `status ${res.status}` });\n } catch (e: unknown) {\n return Response.json({ error: 'failed', detail: e instanceof Error ? e.message : String(e) }, { status: 502 });\n }\n}\n","import { AppRouteRouteModule } from \"next/dist/esm/server/route-modules/app-route/module.compiled\";\nimport { RouteKind } from \"next/dist/esm/server/route-kind\";\nimport { patchFetch as _patchFetch } from \"next/dist/esm/server/lib/patch-fetch\";\nimport { addRequestMeta, getRequestMeta, setRequestMeta } from \"next/dist/esm/server/request-meta\";\nimport { getTracer, SpanKind } from \"next/dist/esm/server/lib/trace/tracer\";\nimport { setManifestsSingleton } from \"next/dist/esm/server/app-render/manifests-singleton\";\nimport { normalizeAppPath } from \"next/dist/esm/shared/lib/router/utils/app-paths\";\nimport { NodeNextRequest, NodeNextResponse } from \"next/dist/esm/server/base-http/node\";\nimport { NextRequestAdapter, signalFromNodeResponse } from \"next/dist/esm/server/web/spec-extension/adapters/next-request\";\nimport { BaseServerSpan } from \"next/dist/esm/server/lib/trace/constants\";\nimport { getRevalidateReason } from \"next/dist/esm/server/instrumentation/utils\";\nimport { sendResponse } from \"next/dist/esm/server/send-response\";\nimport { fromNodeOutgoingHttpHeaders, toNodeOutgoingHttpHeaders } from \"next/dist/esm/server/web/utils\";\nimport { getCacheControlHeader } from \"next/dist/esm/server/lib/cache-control\";\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from \"next/dist/esm/lib/constants\";\nimport { NoFallbackError } from \"next/dist/esm/shared/lib/no-fallback-error.external\";\nimport { CachedRouteKind } from \"next/dist/esm/server/response-cache\";\nimport * as userland from \"INNER_APP_ROUTE\";\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\nconst nextConfigOutput = \"\"\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: \"/api/hub/audit-log/route\",\n pathname: \"/api/hub/audit-log\",\n filename: \"route\",\n bundlePath: \"\"\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: \"[project]/agent-network-dashboard/app/api/hub/audit-log/route.ts\",\n nextConfigOutput,\n // The static import is used for initialization (methods, dynamic, etc.).\n userland: userland,\n // In Turbopack dev mode, also provide a getter that calls require() on every\n // request. This re-reads from devModuleCache so HMR updates are picked up,\n // and the async wrapper unwraps async-module Promises (ESM-only\n // serverExternalPackages) automatically.\n ...process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER ? {\n getUserland: ()=>import(\"INNER_APP_ROUTE\")\n } : {}\n});\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule;\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage\n });\n}\nexport { routeModule, workAsyncStorage, workUnitAsyncStorage, serverHooks, patchFetch, };\nexport async function handler(req, res, ctx) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta);\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint());\n }\n let srcPage = \"/api/hub/audit-log/route\";\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/';\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/';\n }\n const multiZoneDraftMode = process.env.__NEXT_MULTI_ZONE_DRAFT_MODE;\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode\n });\n if (!prepareResult) {\n res.statusCode = 400;\n res.end('Bad Request');\n ctx.waitUntil == null ? void 0 : ctx.waitUntil.call(ctx, Promise.resolve());\n return null;\n }\n const { buildId, params, nextConfig, parsedUrl, isDraftMode, prerenderManifest, routerServerContext, isOnDemandRevalidate, revalidateOnlyGenerated, resolvedPathname, clientReferenceManifest, serverActionsManifest } = prepareResult;\n const normalizedSrcPage = normalizeAppPath(srcPage);\n let isIsr = Boolean(prerenderManifest.dynamicRoutes[normalizedSrcPage] || prerenderManifest.routes[resolvedPathname]);\n const render404 = async ()=>{\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext == null ? void 0 : routerServerContext.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false);\n } else {\n res.end('This page could not be found');\n }\n return null;\n };\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname]);\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage];\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404();\n }\n throw new NoFallbackError();\n }\n }\n }\n let cacheKey = null;\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname;\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey;\n }\n const supportsDynamicResponse = // If we're in development, we always support dynamic HTML\n routeModule.isDev === true || // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr;\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse;\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest\n });\n }\n const method = req.method || 'GET';\n const tracer = getTracer();\n const activeSpan = tracer.getActiveScopeSpan();\n const isWrappedByNextServer = Boolean(routerServerContext == null ? void 0 : routerServerContext.isWrappedByNextServer);\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'));\n const incrementalCache = getRequestMeta(req, 'incrementalCache') || await routeModule.getIncrementalCache(req, nextConfig, prerenderManifest, isMinimalMode);\n incrementalCache == null ? void 0 : incrementalCache.resetRequestCache();\n globalThis.__incrementalCache = incrementalCache;\n const context = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts)\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n supportsDynamicResponse,\n incrementalCache,\n cacheLifeProfiles: nextConfig.cacheLife,\n waitUntil: ctx.waitUntil,\n onClose: (cb)=>{\n res.on('close', cb);\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (error, _request, errorContext, silenceLog)=>routeModule.onRequestError(req, error, errorContext, silenceLog, routerServerContext)\n },\n sharedContext: {\n buildId\n }\n };\n const nodeNextReq = new NodeNextRequest(req);\n const nodeNextRes = new NodeNextResponse(res);\n const nextReq = NextRequestAdapter.fromNodeNextRequest(nodeNextReq, signalFromNodeResponse(res));\n try {\n let parentSpan;\n const invokeRouteModule = async (span)=>{\n return routeModule.handle(nextReq, context).finally(()=>{\n if (!span) return;\n span.setAttributes({\n 'http.status_code': res.statusCode,\n 'next.rsc': false\n });\n const rootSpanAttributes = tracer.getRootSpanAttributes();\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return;\n }\n if (rootSpanAttributes.get('next.span_type') !== BaseServerSpan.handleRequest) {\n console.warn(`Unexpected root span type '${rootSpanAttributes.get('next.span_type')}'. Please report this Next.js issue https://github.com/vercel/next.js`);\n return;\n }\n const route = rootSpanAttributes.get('next.route');\n if (route) {\n const name = `${method} ${route}`;\n span.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name\n });\n span.updateName(name);\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== span) {\n parentSpan.setAttribute('http.route', route);\n parentSpan.updateName(name);\n }\n } else {\n span.updateName(`${method} ${srcPage}`);\n }\n });\n };\n const handleResponse = async (currentSpan)=>{\n var _cacheEntry_value;\n const responseGenerator = async ({ previousCacheEntry })=>{\n try {\n if (!isMinimalMode && isOnDemandRevalidate && revalidateOnlyGenerated && !previousCacheEntry) {\n res.statusCode = 404;\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED');\n res.end('This page could not be found');\n return null;\n }\n const response = await invokeRouteModule(currentSpan);\n req.fetchMetrics = context.renderOpts.fetchMetrics;\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil;\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil);\n pendingWaitUntil = undefined;\n }\n }\n const cacheTags = context.renderOpts.collectedTags;\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob();\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers);\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags;\n }\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type;\n }\n const revalidate = typeof context.renderOpts.collectedRevalidate === 'undefined' || context.renderOpts.collectedRevalidate >= INFINITE_CACHE ? false : context.renderOpts.collectedRevalidate;\n const expire = typeof context.renderOpts.collectedExpire === 'undefined' || context.renderOpts.collectedExpire >= INFINITE_CACHE ? undefined : context.renderOpts.collectedExpire;\n // Create the cache entry for the response.\n const cacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers\n },\n cacheControl: {\n revalidate,\n expire\n }\n };\n return cacheEntry;\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, context.renderOpts.pendingWaitUntil);\n return null;\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry == null ? void 0 : previousCacheEntry.isStale) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n throw err;\n }\n };\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode\n });\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return null;\n }\n if ((cacheEntry == null ? void 0 : (_cacheEntry_value = cacheEntry.value) == null ? void 0 : _cacheEntry_value.kind) !== CachedRouteKind.APP_ROUTE) {\n var _cacheEntry_value1;\n throw Object.defineProperty(new Error(`Invariant: app-route received invalid cache entry ${cacheEntry == null ? void 0 : (_cacheEntry_value1 = cacheEntry.value) == null ? void 0 : _cacheEntry_value1.kind}`), \"__NEXT_ERROR_CODE\", {\n value: \"E701\",\n enumerable: false,\n configurable: true\n });\n }\n if (!isMinimalMode) {\n res.setHeader('x-nextjs-cache', isOnDemandRevalidate ? 'REVALIDATED' : cacheEntry.isMiss ? 'MISS' : cacheEntry.isStale ? 'STALE' : 'HIT');\n }\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader('Cache-Control', 'private, no-cache, no-store, max-age=0, must-revalidate');\n }\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers);\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER);\n }\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (cacheEntry.cacheControl && !res.getHeader('Cache-Control') && !headers.get('Cache-Control')) {\n headers.set('Cache-Control', getCacheControlHeader(cacheEntry.cacheControl));\n }\n await sendResponse(nodeNextReq, nodeNextRes, // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200\n }));\n return null;\n };\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan);\n } else {\n parentSpan = tracer.getActiveScopeSpan();\n await tracer.withPropagatedContext(req.headers, ()=>tracer.trace(BaseServerSpan.handleRequest, {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url\n }\n }, handleResponse), undefined, !isWrappedByNextServer);\n }\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false;\n await routeModule.onRequestError(req, err, {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate\n })\n }, silenceLog, routerServerContext);\n }\n // rethrow so that we can handle serving error page\n // If this is during static generation, throw the error again.\n if (isIsr) throw err;\n // Otherwise, send a 500 response.\n await sendResponse(nodeNextReq, nodeNextRes, new Response(null, {\n status: 500\n }));\n return null;\n }\n}\n\n//# sourceMappingURL=app-route.js.map\n"],"names":["getHubUrl","process","env","COMMHUB_URL","HUB_URL","hubHeaders","hubFetch","path","init","url","authHeader","initHeaders","headers","userToken","fetch","next","revalidate","GET","req","authFailure","searchParams","URL","params","URLSearchParams","key","res","val","get","set","toString","contentType","ok","includes","Response","json","text","catch","logs","count","error","status","e","detail","Error","message","String"],"mappings":"wjCAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OAEA,SAASA,IACP,OAAOC,QAAQC,GAAG,CAACC,WAAW,EAAI,uBACpC,CAYO,eAAeG,EAASC,CAAY,CAAEC,CAAkB,EAC7D,IAAMC,EAAM,CAAA,EAAGT,IAAAA,EAAcO,EAAAA,CAAM,CAG/BG,EAAqC,CAAC,EAGpCC,EAAcH,GAAMI,QAC1B,GAAI,CAACD,GAAc,UAAD,IAChB,EADiC,CAC7B,CAD+B,AAEjC,IAAME,EAAY,MAAM,CAAA,EAAA,EAAA,cAAc,AAAd,IACpBA,IACFH,EAAa,CAAE,IADF,UACmB,CAAC,OAAO,EAAEG,EAAAA,CAAW,CAAC,CAE1D,CAAE,KAAM,CAER,CAIF,OAAOC,MAAML,EAAK,CAChB,GAAGD,CAAI,CACPI,QAAS,CAAE,GAAGF,CAAU,CAAE,GAAGF,GAAMI,OAAO,AAAC,EAC3CG,KAAM,CAAEC,WAAY,CAAE,CACxB,EACF,CAnCuBhB,kDENvB,IAAA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACAyB,EAAAA,EAAAA,CAAAA,CAAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CA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,OAHA,MAAM,CAAA,EAAA,EAAA,YAAA,AAAY,EAAC,EAAa,EAAa,IAAI,SAAS,KAAM,CAC5D,OAAQ,GACZ,IACO,IACX,CACJ,mCA3TA,SAAS,EACL,MAAO,CAAA,EAAA,EAAA,UAAA,AAAW,EAAC,kBACf,uBACA,CACJ,EACJ","ignoreList":[2]}
@@ -0,0 +1,3 @@
1
+ module.exports=[50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},98319,e=>{"use strict";var t=e.i(76631);function r(){return process.env.COMMHUB_URL||"http://127.0.0.1:9200"}async function a(e,a){let n=`${r()}${e}`,s={},o=a?.headers;if(!o?.Authorization)try{let e=await (0,t.getV3UserToken)();e&&(s={Authorization:`Bearer ${e}`})}catch{}return fetch(n,{...a,headers:{...s,...a?.headers},next:{revalidate:0}})}r(),e.s(["hubFetch",0,a])},32360,e=>{"use strict";var t=e.i(29124),r=e.i(96565),a=e.i(29718),n=e.i(23850),s=e.i(47878),o=e.i(19885),i=e.i(86384),l=e.i(90127),u=e.i(89548),d=e.i(23489),p=e.i(53565),c=e.i(25859),h=e.i(37031),x=e.i(34816),R=e.i(37020),v=e.i(93695);e.i(69409);var g=e.i(56394),f=e.i(76631),w=e.i(98319);async function m(e){let t=await (0,f.requireDashboardAuth)();if(t)return t;let{searchParams:r}=new URL(e.url),a=r.get("network_id")||"",n=a?`?network_id=${encodeURIComponent(a)}`:"";try{let e=await (0,w.hubFetch)(`/api/stats${n}`),t=e.headers.get("content-type")||"";if(e.ok&&t.includes("application/json"))return Response.json(await e.json());return Response.json({ok:!1,error:"stats endpoint not available"},{status:404})}catch(e){return Response.json({error:"CommHub unreachable",detail:e instanceof Error?e.message:String(e)},{status:502})}}e.s(["GET",0,m],4912);var E=e.i(4912);let b=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/hub/stats/route",pathname:"/api/hub/stats",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/agent-network-dashboard/app/api/hub/stats/route.ts",nextConfigOutput:"",userland:E,...{}}),{workAsyncStorage:y,workUnitAsyncStorage:C,serverHooks:A}=b;async function k(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),b.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/hub/stats/route";f=f.replace(/\/index$/,"")||"/";let w=await b.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:m,params:E,nextConfig:y,parsedUrl:C,isDraftMode:A,prerenderManifest:k,routerServerContext:T,isOnDemandRevalidate:q,revalidateOnlyGenerated:N,resolvedPathname:_,clientReferenceManifest:P,serverActionsManifest:S}=w,j=(0,i.normalizeAppPath)(f),O=!!(k.dynamicRoutes[j]||k.routes[_]),U=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,C,!1):t.end("This page could not be found"),null);if(O&&!A){let e=!!k.routes[_],t=k.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await U();throw new v.NoFallbackError}}let H=null;!O||b.isDev||A||(H="/index"===(H=_)?"/":H);let I=!0===b.isDev||!O,M=O&&!I;S&&P&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:P,serverActionsManifest:S});let D=e.method||"GET",$=(0,s.getTracer)(),F=$.getActiveScopeSpan(),B=!!(null==T?void 0:T.isWrappedByNextServer),K=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await b.getIncrementalCache(e,y,k,K);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:k.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:I,incrementalCache:L,cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,T)},sharedContext:{buildId:m}},V=new l.NodeNextRequest(e),z=new l.NodeNextResponse(t),W=u.NextRequestAdapter.fromNodeNextRequest(V,(0,u.signalFromNodeResponse)(t));try{let n,o=async e=>b.handle(W,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=$.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${D} ${f}`)}),i=async n=>{var s,i;let l=async({previousCacheEntry:r})=>{try{if(!K&&q&&N&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=G.renderOpts.fetchMetrics;let i=G.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let l=G.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(V,z,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,a=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:g.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:q})},!1,T),t}},u=await b.handleResponse({req:e,nextConfig:y,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:k,isRoutePPREnabled:!1,isOnDemandRevalidate:q,revalidateOnlyGenerated:N,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:K});if(!O)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==g.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(i=u.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",q?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),A&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let d=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return K&&O||d.delete(R.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||d.get("Cache-Control")||d.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(V,z,new Response(u.value.body,{headers:d,status:u.value.status||200})),null};B&&F?await i(F):(n=$.getActiveScopeSpan(),await $.withPropagatedContext(e.headers,()=>$.trace(d.BaseServerSpan.handleRequest,{spanName:`${D} ${f}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},i),void 0,!B))}catch(t){if(t instanceof v.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:q})},!1,T),O)throw t;return await (0,c.sendResponse)(V,z,new Response(null,{status:500})),null}}e.s(["handler",0,k,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:y,workUnitAsyncStorage:C})},"routeModule",0,b,"serverHooks",0,A,"workAsyncStorage",0,y,"workUnitAsyncStorage",0,C],32360)}];
2
+
3
+ //# sourceMappingURL=%5Broot-of-the-server%5D__13n8t..._.js.map