@sleep2agi/agent-network-dashboard 0.6.3-preview.52 → 0.6.3-preview.53

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 (198) hide show
  1. package/.next/BUILD_COMMIT +1 -1
  2. package/.next/BUILD_ID +1 -1
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/diagnostics/route-bundle-stats.json +17 -17
  5. package/.next/fallback-build-manifest.json +3 -3
  6. package/.next/prerender-manifest.json +3 -3
  7. package/.next/server/app/_global-error.html +1 -1
  8. package/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/_not-found.html +2 -2
  16. package/.next/server/app/_not-found.rsc +2 -2
  17. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  18. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  22. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  23. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/admin.html +2 -2
  25. package/.next/server/app/admin.rsc +2 -2
  26. package/.next/server/app/admin.segments/_full.segment.rsc +2 -2
  27. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  28. package/.next/server/app/admin.segments/_index.segment.rsc +2 -2
  29. package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
  30. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  31. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  32. package/.next/server/app/index.html +2 -2
  33. package/.next/server/app/index.rsc +3 -3
  34. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  35. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  36. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  37. package/.next/server/app/index.segments/_index.segment.rsc +2 -2
  38. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  39. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  40. package/.next/server/app/login.html +2 -2
  41. package/.next/server/app/login.rsc +3 -3
  42. package/.next/server/app/login.segments/_full.segment.rsc +3 -3
  43. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  44. package/.next/server/app/login.segments/_index.segment.rsc +2 -2
  45. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  46. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  47. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  48. package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  49. package/.next/server/app/logs.html +2 -2
  50. package/.next/server/app/logs.rsc +2 -2
  51. package/.next/server/app/logs.segments/_full.segment.rsc +2 -2
  52. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  53. package/.next/server/app/logs.segments/_index.segment.rsc +2 -2
  54. package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
  55. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  56. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  57. package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
  58. package/.next/server/app/messages.html +2 -2
  59. package/.next/server/app/messages.rsc +2 -2
  60. package/.next/server/app/messages.segments/_full.segment.rsc +2 -2
  61. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  62. package/.next/server/app/messages.segments/_index.segment.rsc +2 -2
  63. package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
  64. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  65. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  66. package/.next/server/app/node/page_client-reference-manifest.js +1 -1
  67. package/.next/server/app/node.html +2 -2
  68. package/.next/server/app/node.rsc +3 -3
  69. package/.next/server/app/node.segments/_full.segment.rsc +3 -3
  70. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  71. package/.next/server/app/node.segments/_index.segment.rsc +2 -2
  72. package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
  73. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +2 -2
  74. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  75. package/.next/server/app/nodes/[alias]/page_client-reference-manifest.js +1 -1
  76. package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  77. package/.next/server/app/nodes.html +2 -2
  78. package/.next/server/app/nodes.rsc +3 -3
  79. package/.next/server/app/nodes.segments/_full.segment.rsc +3 -3
  80. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  81. package/.next/server/app/nodes.segments/_index.segment.rsc +2 -2
  82. package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
  83. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +2 -2
  84. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  85. package/.next/server/app/page_client-reference-manifest.js +1 -1
  86. package/.next/server/app/providers/page_client-reference-manifest.js +1 -1
  87. package/.next/server/app/providers.html +2 -2
  88. package/.next/server/app/providers.rsc +2 -2
  89. package/.next/server/app/providers.segments/_full.segment.rsc +2 -2
  90. package/.next/server/app/providers.segments/_head.segment.rsc +1 -1
  91. package/.next/server/app/providers.segments/_index.segment.rsc +2 -2
  92. package/.next/server/app/providers.segments/_tree.segment.rsc +2 -2
  93. package/.next/server/app/providers.segments/providers/__PAGE__.segment.rsc +1 -1
  94. package/.next/server/app/providers.segments/providers.segment.rsc +1 -1
  95. package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
  96. package/.next/server/app/server-logs.html +2 -2
  97. package/.next/server/app/server-logs.rsc +2 -2
  98. package/.next/server/app/server-logs.segments/_full.segment.rsc +2 -2
  99. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  100. package/.next/server/app/server-logs.segments/_index.segment.rsc +2 -2
  101. package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
  102. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  103. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  104. package/.next/server/app/servers/page_client-reference-manifest.js +1 -1
  105. package/.next/server/app/servers.html +2 -2
  106. package/.next/server/app/servers.rsc +2 -2
  107. package/.next/server/app/servers.segments/_full.segment.rsc +2 -2
  108. package/.next/server/app/servers.segments/_head.segment.rsc +1 -1
  109. package/.next/server/app/servers.segments/_index.segment.rsc +2 -2
  110. package/.next/server/app/servers.segments/_tree.segment.rsc +2 -2
  111. package/.next/server/app/servers.segments/servers/__PAGE__.segment.rsc +1 -1
  112. package/.next/server/app/servers.segments/servers.segment.rsc +1 -1
  113. package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
  114. package/.next/server/app/settings/networks.html +2 -2
  115. package/.next/server/app/settings/networks.rsc +2 -2
  116. package/.next/server/app/settings/networks.segments/_full.segment.rsc +2 -2
  117. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  118. package/.next/server/app/settings/networks.segments/_index.segment.rsc +2 -2
  119. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
  120. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  121. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  122. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  123. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  124. package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
  125. package/.next/server/app/settings/tokens.html +2 -2
  126. package/.next/server/app/settings/tokens.rsc +2 -2
  127. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +2 -2
  128. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  129. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +2 -2
  130. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
  131. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  132. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  133. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  134. package/.next/server/app/settings.html +2 -2
  135. package/.next/server/app/settings.rsc +3 -3
  136. package/.next/server/app/settings.segments/_full.segment.rsc +3 -3
  137. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  138. package/.next/server/app/settings.segments/_index.segment.rsc +2 -2
  139. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  140. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  141. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  142. package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  143. package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  144. package/.next/server/app/tasks.html +2 -2
  145. package/.next/server/app/tasks.rsc +3 -3
  146. package/.next/server/app/tasks.segments/_full.segment.rsc +3 -3
  147. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  148. package/.next/server/app/tasks.segments/_index.segment.rsc +2 -2
  149. package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
  150. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +2 -2
  151. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  152. package/.next/server/chunks/[root-of-the-server]__0t--g3k._.js +1 -1
  153. package/.next/server/chunks/[root-of-the-server]__0t--g3k._.js.map +1 -1
  154. package/.next/server/chunks/ssr/[root-of-the-server]__06w5i08._.js +1 -1
  155. package/.next/server/chunks/ssr/[root-of-the-server]__06w5i08._.js.map +1 -1
  156. package/.next/server/chunks/ssr/[root-of-the-server]__0dcez4x._.js +1 -1
  157. package/.next/server/chunks/ssr/[root-of-the-server]__0dcez4x._.js.map +1 -1
  158. package/.next/server/chunks/ssr/[root-of-the-server]__0j-def.._.js +1 -1
  159. package/.next/server/chunks/ssr/[root-of-the-server]__0j-def.._.js.map +1 -1
  160. package/.next/server/chunks/ssr/dash-stageb-wt_app_0qn7hvc._.js +1 -1
  161. package/.next/server/chunks/ssr/dash-stageb-wt_app_0qn7hvc._.js.map +1 -1
  162. package/.next/server/chunks/ssr/dash-stageb-wt_app_0ss0pj-._.js +1 -1
  163. package/.next/server/chunks/ssr/dash-stageb-wt_app_0ss0pj-._.js.map +1 -1
  164. package/.next/server/chunks/ssr/dash-stageb-wt_app_nodes_NodesView_tsx_0patjj7._.js +1 -1
  165. package/.next/server/chunks/ssr/dash-stageb-wt_app_nodes_NodesView_tsx_0patjj7._.js.map +1 -1
  166. package/.next/server/chunks/ssr/dash-stageb-wt_app_tasks_TasksView_tsx_0pnz7dd._.js +1 -1
  167. package/.next/server/chunks/ssr/dash-stageb-wt_app_tasks_TasksView_tsx_0pnz7dd._.js.map +1 -1
  168. package/.next/server/functions-config-manifest.json +4 -0
  169. package/.next/server/middleware-build-manifest.js +3 -3
  170. package/.next/server/pages/404.html +2 -2
  171. package/.next/server/pages/500.html +1 -1
  172. package/.next/server/server-reference-manifest.js +1 -1
  173. package/.next/server/server-reference-manifest.json +1 -1
  174. package/.next/static/chunks/{0pg4pce.q5ne_.js → 051a-ut_4_f~3.js} +3 -3
  175. package/.next/static/chunks/{051p0pw4z~6ag.js → 0hhij-plsekos.js} +1 -1
  176. package/.next/static/chunks/{0_4ljrbp.stxy.js → 0i465ex5.l573.js} +1 -1
  177. package/.next/static/chunks/{10px7ehmo7eq0.js → 0jbkmykrnr~q6.js} +1 -1
  178. package/.next/static/chunks/{0wf03_efeii.w.css → 0lc115vavown3.css} +1 -1
  179. package/.next/static/chunks/{14x094g58kg61.js → 0n_7389-uuzik.js} +1 -1
  180. package/.next/static/chunks/{00adqh_rd04uf.js → 0oai8y23-yy20.js} +3 -3
  181. package/.next/static/chunks/{0lf8e-h91s10h.js → 0p3f6dx723h6w.js} +1 -1
  182. package/.next/static/chunks/0sy8dlbnq8b.5.js +2 -0
  183. package/.next/static/{RiXBfeE2zY5tzXRmF7kBD → wbJm2a-VxMJqS77WvU7--}/_clientMiddlewareManifest.js +4 -0
  184. package/.next/trace +2 -2
  185. package/.next/trace-build +1 -1
  186. package/CHANGELOG.md +143 -0
  187. package/app/components/ChatPane.tsx +40 -23
  188. package/app/components/ChatPaneOverflowMenu.tsx +152 -0
  189. package/app/components/TaskChatPanel.tsx +16 -0
  190. package/app/tasks/TasksView.tsx +12 -2
  191. package/package.json +1 -1
  192. package/proxy.ts +50 -1
  193. package/tests/e2e-batch-list-actions.spec.ts +6 -0
  194. package/tests/e2e-chatpane-header-menu.spec.ts +259 -0
  195. package/tests/e2e-proxy-auth-boundary.spec.ts +196 -0
  196. package/.next/static/chunks/0-ot~88nectgp.js +0 -2
  197. /package/.next/static/{RiXBfeE2zY5tzXRmF7kBD → wbJm2a-VxMJqS77WvU7--}/_buildManifest.js +0 -0
  198. /package/.next/static/{RiXBfeE2zY5tzXRmF7kBD → wbJm2a-VxMJqS77WvU7--}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22752,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.6.3-preview.52"],22752)},10536,e=>{"use strict";var t=e.i(90724),r=e.i(87854),s=e.i(22752);e.s(["default",0,function(){let[e,a]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,m]=(0,r.useState)(""),[g,h]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),h(!0),m("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}m(r.error||"Login failed")}catch{m("Connection failed")}h(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0b0b0d] text-gray-100 flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-[460px] h-[460px] rounded-full bg-cyan-500/[0.045] blur-[110px] pointer-events-none","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#161618] border border-[#26262b] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-400 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-500",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-500",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#26262b] bg-[#161618] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{a(r),m("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#26262b] bg-[#161618]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0e0e10] border border-[#26262b] rounded-lg px-4 py-3 text-base sm:text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0e0e10] border border-[#26262b] rounded-lg px-4 pr-11 py-3 text-base sm:text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center justify-center min-w-[44px] px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:g||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[g&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:g?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",s.DASHBOARD_VERSION]})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,22752,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.6.3-preview.53"],22752)},10536,e=>{"use strict";var t=e.i(90724),r=e.i(87854),s=e.i(22752);e.s(["default",0,function(){let[e,a]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,m]=(0,r.useState)(""),[g,h]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),h(!0),m("");try{let t=await fetch("/api/auth/v3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:e,username:n,password:i})}),r=await t.json();if(r.ok){r.token&&sessionStorage.setItem("anet_v3_auth",JSON.stringify({user:r.user,token:r.token,networks:r.networks||[],currentNetwork:r.network_id||r.networks?.[0]?.network_id||""})),window.location.assign("/");return}m(r.error||"Login failed")}catch{m("Connection failed")}h(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0b0b0d] text-gray-100 flex items-center justify-center relative overflow-hidden px-4 py-10 sm:py-16",children:[(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anet-login-bg","aria-hidden":!0}),(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 w-[460px] h-[460px] rounded-full bg-cyan-500/[0.045] blur-[110px] pointer-events-none","aria-hidden":!0}),(0,t.jsxs)("div",{className:"relative w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-7",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-4 rounded-2xl bg-[#161618] border border-[#26262b] anet-login-mark",children:(0,t.jsxs)("svg",{className:"w-9 h-9",viewBox:"0 0 32 32","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"16",cy:"16",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"1.5",opacity:"0.25",className:"text-cyan-400 anet-login-mark-ring"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"10",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"16",y1:"10",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("line",{x1:"10",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"1",opacity:"0.5",className:"text-cyan-400 anet-login-mark-edge"}),(0,t.jsx)("circle",{cx:"16",cy:"10",r:"3",fill:"currentColor",className:"text-cyan-400 anet-login-mark-node-a"}),(0,t.jsx)("circle",{cx:"10",cy:"20",r:"3",fill:"currentColor",className:"text-green-400 anet-login-mark-node-b"}),(0,t.jsx)("circle",{cx:"22",cy:"20",r:"3",fill:"currentColor",className:"text-violet-400 anet-login-mark-node-c"})]})}),(0,t.jsx)("h1",{className:"text-[22px] sm:text-2xl font-semibold text-white tracking-tight",children:"Agent Network"}),(0,t.jsx)("p",{className:"text-[13px] text-gray-400 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-500",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-500",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#26262b] bg-[#161618] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{a(r),m("")},className:`flex-1 rounded-md px-3 py-2 text-sm transition-colors ${e===r?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"login"===r?"Sign in":"Register"},r))}),(0,t.jsxs)("form",{onSubmit:u,className:"border border-[#26262b] bg-[#161618]/80 backdrop-blur-sm rounded-xl p-6 shadow-2xl shadow-black/30",children:[(0,t.jsx)("label",{htmlFor:"username",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Username"}),(0,t.jsx)("input",{id:"username",type:"text",value:n,onChange:e=>o(e.target.value),autoFocus:!0,placeholder:"Enter username",className:"w-full bg-[#0e0e10] border border-[#26262b] rounded-lg px-4 py-3 text-base sm:text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all mb-4"}),(0,t.jsx)("label",{htmlFor:"password",className:"block text-xs text-gray-500 mb-2 uppercase tracking-wider",children:"Password"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{id:"password",type:c?"text":"password",value:i,onChange:e=>l(e.target.value),placeholder:"Enter password",className:"w-full bg-[#0e0e10] border border-[#26262b] rounded-lg px-4 pr-11 py-3 text-base sm:text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:ring-1 focus:ring-cyan-500/20 focus:outline-none transition-all"}),(0,t.jsx)("button",{type:"button",onClick:()=>d(e=>!e),tabIndex:-1,"aria-label":c?"Hide password":"Show password",className:"absolute inset-y-0 right-0 flex items-center justify-center min-w-[44px] px-3 text-gray-600 hover:text-gray-300 transition-colors",children:c?(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})})]}),x&&(0,t.jsx)("div",{className:"mt-3 text-sm text-red-300 bg-red-500/5 border border-red-500/10 rounded-lg px-3 py-2",children:x}),(0,t.jsxs)("button",{type:"submit",disabled:g||!i||!n.trim(),className:"mt-5 w-full flex items-center justify-center gap-2 px-4 py-3 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-lg transition-all shadow-lg shadow-cyan-500/10 hover:shadow-cyan-500/20 disabled:shadow-none",children:[g&&(0,t.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,t.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,t.jsx)("span",{children:g?"login"===e?"Signing in…":"Registering…":"login"===e?"Sign in":"Create account"})]})]}),(0,t.jsxs)("p",{className:"text-center text-[11px] text-gray-700 mt-6",children:["Sleep2AGI · Apache-2.0 · ",(0,t.jsx)("a",{href:"https://anet.sh",className:"hover:text-gray-500 transition-colors",children:"anet.sh"}),(0,t.jsx)("span",{className:"mx-1 text-gray-800",children:"·"}),(0,t.jsxs)("span",{className:"font-mono",title:"@sleep2agi/agent-network-dashboard",children:["v",s.DASHBOARD_VERSION]})]})]})]})}])}]);
@@ -0,0 +1,2 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,35599,e=>{"use strict";var t=e.i(90724),a=e.i(87854),s=e.i(91342),n=e.i(74069),r=e.i(55480),l=e.i(25879);function i({networkId:e,value:s,onChange:n}){let[r,l]=(0,a.useState)("loading"),[c,x]=(0,a.useState)([]),[u,m]=(0,a.useState)(""),[h,p]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{let t=!0;return l("loading"),m(""),fetch(e?`/api/anet/host-supervisors?network_id=${encodeURIComponent(e)}`:"/api/anet/host-supervisors",{cache:"no-store"}).then(e=>e.json().then(t=>({status:e.status,body:t}))).then(({status:e,body:a})=>{if(!t)return;if(501===e||a?.unconfirmed){l("unconfirmed"),m(a?.error||"hub /api/host-supervisors unavailable — upgrade to >=0.9.0-preview.8"),x([]);return}if(!a?.ok){l("error"),m(a?.error||`hub ${e}`),x([]);return}let r=Array.isArray(a.daemons)?a.daemons:[];x(r),l("ready"),1!==r.length||s||n(r[0].daemon_node_id,r[0])}).catch(e=>{t&&(l("error"),m(e instanceof Error?e.message:String(e)),x([]))}),()=>{t=!1}},[e]),"loading"===r)return(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-md border border-[#26262b] bg-[#0e0e10] px-3 py-3 text-xs text-gray-500",children:[(0,t.jsxs)("svg",{className:"h-3.5 w-3.5 animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),"正在查询可用的 host_supervisor 节点…"]});if("unconfirmed"===r)return(0,t.jsxs)("div",{className:"rounded-md border border-amber-700/40 bg-amber-900/10 px-3 py-3 text-xs text-amber-200",children:[(0,t.jsx)("div",{className:"font-semibold mb-1",children:"hub 暂未升级"}),(0,t.jsx)("div",{className:"text-amber-200/80",children:u}),(0,t.jsxs)("div",{className:"mt-1 text-[11px] text-amber-200/60",children:["升级到 ",(0,t.jsx)("code",{className:"rounded bg-black/40 px-1 py-0.5",children:"@sleep2agi/commhub-server@0.9.0-preview.8"})," 后选服务器功能才会出现。"]})]});if("error"===r)return(0,t.jsxs)("div",{className:"rounded-md border border-red-700/40 bg-red-900/10 px-3 py-3 text-xs text-red-200",children:["查询 host_supervisor 节点失败:",u]});if(0===c.length)return(0,t.jsxs)("div",{className:"rounded-md border border-[#26262b] bg-[#0e0e10] px-3 py-4 text-xs text-gray-300",children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-gray-200",children:"还没有可用的 host_supervisor 节点"}),(0,t.jsx)("p",{className:"mt-1 text-gray-500",children:"要在某台机器上创建节点,先在那台机器上跑一次 daemon 初始化命令:"}),(0,t.jsx)("pre",{className:"mt-2 overflow-x-auto rounded bg-black/40 p-2 text-[11px] text-cyan-300",children:`# 任选一台目标机器(你的笔记本 / 一台服务器都行)
2
+ anet daemon up my-daemon`}),(0,t.jsx)("p",{className:"mt-2 text-gray-500",children:"注册成功后这里会自动出现,无需刷新。"})]});if(1===c.length&&!h){let e=c[0];return(0,t.jsxs)("div",{className:"rounded-md border border-cyan-700/40 bg-cyan-900/10 px-3 py-3 text-xs text-cyan-100",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"text-cyan-400/80",children:"将在"})," ",(0,t.jsx)("span",{className:"font-semibold",children:e.alias}),(0,t.jsxs)("span",{className:"text-cyan-300/60",children:[" (",e.hostname||"—",") "]}),(0,t.jsx)("span",{className:"text-cyan-400/80",children:"上创建"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>p(!0),className:"text-[11px] text-cyan-400 hover:text-cyan-200 underline-offset-2 hover:underline",children:"详情 →"})]}),(0,t.jsx)(d,{runtimes:e.runtimes_supported,className:"mt-1"})]})}return(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between text-xs text-gray-400",children:[(0,t.jsxs)("span",{children:["选择一台 host_supervisor 节点(",c.length," 台在线)"]}),h&&1===c.length&&(0,t.jsx)("button",{type:"button",onClick:()=>p(!1),className:"text-[11px] text-gray-500 hover:text-gray-300",children:"← 折叠"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-2 md:grid-cols-2 lg:grid-cols-3",children:c.map(e=>(0,t.jsx)(o,{daemon:e,selected:e.daemon_node_id===s,onClick:()=>n(e.daemon_node_id,e)},e.daemon_node_id))})]})}function o({daemon:e,selected:a,onClick:s}){let n=e.host_telemetry?.alert_level||"gray";return(0,t.jsxs)("button",{type:"button",onClick:s,"aria-pressed":a,className:`flex w-full flex-col gap-1.5 rounded-md border px-3 py-2.5 text-left text-xs transition-colors ${a?"border-cyan-600 bg-cyan-900/15 text-cyan-100":"border-[#26262b] bg-[#0e0e10] text-gray-300 hover:border-[#3a3a41]"}`,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("span",{className:"truncate font-semibold",children:e.alias}),(0,t.jsx)(c,{level:n})]}),(0,t.jsx)("div",{className:"truncate text-[11px] text-gray-500",children:e.hostname||"—"}),(0,t.jsx)(d,{runtimes:e.runtimes_supported}),(e.host_telemetry?.cpu_cores!=null||e.host_telemetry?.mem_gb!=null)&&(0,t.jsxs)("div",{className:"flex gap-3 text-[10px] text-gray-500",children:[e.host_telemetry?.cpu_cores!=null&&(0,t.jsxs)("span",{children:[e.host_telemetry.cpu_cores," 核"]}),e.host_telemetry?.mem_gb!=null&&(0,t.jsxs)("span",{children:[e.host_telemetry.mem_gb," GB"]})]})]})}function d({runtimes:e,className:a=""}){return e&&0!==e.length?(0,t.jsx)("div",{className:`flex flex-wrap gap-1 ${a}`,children:e.map(e=>(0,t.jsx)("span",{className:"rounded bg-[#1c1c1f] px-1.5 py-0.5 text-[10px] text-gray-400",children:e},e))}):(0,t.jsx)("div",{className:`text-[10px] text-gray-600 ${a}`,children:"runtimes_supported: —"})}function c({level:e}){return(0,t.jsx)("span",{className:`rounded border px-1.5 py-0.5 text-[10px] ${{green:"bg-green-600/20 text-green-300 border-green-700/40",yellow:"bg-amber-600/20 text-amber-300 border-amber-700/40",red:"bg-red-600/20 text-red-300 border-red-700/40",gray:"bg-gray-600/20 text-gray-400 border-gray-700/40"}[e]}`,children:{green:"正常",yellow:"注意",red:"警报",gray:"离线"}[e]})}let x=[{id:"claude-agent-sdk",label:"Claude Agent SDK",models:["deepseek-v4-pro","MiniMax-M3","claude-sonnet-4-6","claude-opus-4-x"],defaultModel:"claude-sonnet-4-6"},{id:"codex-sdk",label:"Codex SDK",models:["gpt-5.5"],defaultModel:"gpt-5.5"},{id:"grok-build-acp",label:"Grok (build-acp)",models:["grok-build"],defaultModel:"grok-build"}],u=["default","acceptEdits","plan","bypassPermissions"],m=["服务器","名字","Runtime","模型","参数","确认"];function h({networkId:e,onClose:s,onCreated:n}){let[r,o]=(0,a.useState)(0),[d,c]=(0,a.useState)(null),[p,g]=(0,a.useState)(null),[b,f]=(0,a.useState)(""),[y,j]=(0,a.useState)(x[0].id),[v,N]=(0,a.useState)(""),[w,k]=(0,a.useState)("default"),[C,S]=(0,a.useState)(""),[_,M]=(0,a.useState)(""),[$,E]=(0,a.useState)(""),[A,L]=(0,a.useState)("form"),[T,I]=(0,a.useState)(""),[R,B]=(0,a.useState)(!1),{networkId:D}=(0,l.useNetworkId)(),U=e||D;(0,a.useEffect)(()=>{let e=e=>{"Escape"===e.key&&"creating"!==A&&s()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[s,A]),(0,a.useEffect)(()=>{if("done"!==A||R)return;let e=!0,t=0,a=b.trim(),s=async()=>{t+=1;try{let t=U?`/api/hub/status?network_id=${encodeURIComponent(U)}`:"/api/hub/status",s=await fetch(t,{cache:"no-store"}),n=await s.json().catch(()=>({})),r=Array.isArray(n?.sessions)?n.sessions:Array.isArray(n)?n:[];if(e&&r.some(e=>e?.alias===a))return void B(!0)}catch{}e&&t<16&&window.setTimeout(s,1500)},n=window.setTimeout(s,1200);return()=>{e=!1,window.clearTimeout(n)}},[A,R,U,b]);let P=x.find(e=>e.id===y)||x[0],W=b.trim().length>0,O=0===r&&!!d||1===r&&W||r>=2&&r<m.length,z="creating"===A;async function F(){L("creating"),I("");let t=e=>""===e.trim()?void 0:Number(e),a=v||P.defaultModel,s={name:b.trim(),runtime:y,model:a,flags:{permissionMode:w,maxTurns:t(C),budget:t(_),timeout:t($)}};try{let t=await fetch("/api/anet/node-create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({node_spec:s,...d?{daemon_node_id:d}:{},...e?{network_id:e}:{}})}),a=await t.json().catch(()=>({}));t.ok&&a?.ok?(L("done"),I("创建请求已下发,节点正在拉起…"),n?.(a.result)):a?.unconfirmed?(L("unconfirmed"),I(`后端 create_node 未就绪:${a?.error||"不可用"}(测试 hub 可能未含 #299)`)):(L("error"),I(a?.error?`创建失败:${a.error}`:"创建失败"))}catch(e){L("error"),I(`创建失败:${e instanceof Error?e.message:"网络错误"}`)}}let H="w-full rounded-md border border-[#26262b] bg-[#0e0e10] px-3 py-2 text-sm text-gray-200 focus:border-cyan-600 focus:outline-none";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-black/50 z-40",onClick:s,"aria-hidden":!0}),(0,t.jsxs)("div",{role:"dialog","aria-label":"新建节点",className:"fixed left-1/2 top-1/2 z-50 w-[min(94vw,440px)] md:w-[min(92vw,720px)] -translate-x-1/2 -translate-y-1/2 rounded-xl border border-[#26262b] bg-[#161618] shadow-2xl",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-[#26262b] px-4 py-3",children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-white",children:"新建节点"}),(0,t.jsx)("button",{onClick:s,"aria-label":"关闭",className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-gray-500 hover:bg-white/5 hover:text-white",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M18 6 6 18M6 6l12 12"})})})]}),(0,t.jsx)("div",{className:"flex items-center gap-1.5 px-4 pt-3",children:m.map((e,a)=>(0,t.jsxs)("div",{className:"flex flex-1 flex-col items-center gap-1",children:[(0,t.jsx)("div",{className:`h-1 w-full rounded-full ${a<=r?"bg-cyan-500":"bg-[#26262b]"}`}),(0,t.jsx)("span",{className:`text-[10px] ${a===r?"text-cyan-300":"text-gray-600"}`,children:e})]},e))}),(0,t.jsx)("div",{className:"min-h-[180px] px-4 py-4",children:"form"!==A?(0,t.jsxs)("div",{className:"flex h-[180px] flex-col items-center justify-center gap-3 text-center",children:[z&&(0,t.jsxs)("svg",{className:"h-7 w-7 animate-spin text-cyan-400",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),(0,t.jsx)("div",{className:`text-sm ${"done"===A?"text-green-300":"error"===A?"text-red-300":"unconfirmed"===A?"text-amber-300":"text-gray-300"}`,children:z?"正在创建…":"done"===A&&R?`✓ ${b.trim()} 已上线`:T}),"done"===A&&(R?(0,t.jsx)("p",{className:"text-[11px] text-green-500/80",children:"节点已注册,已出现在节点列表。"}):(0,t.jsxs)("p",{className:"inline-flex items-center gap-1.5 text-[11px] text-gray-500",children:[(0,t.jsxs)("svg",{className:"h-3 w-3 animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-90",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),"正在监测 ",b.trim()," 注册…(最长 ~24s)"]}))]}):(0,t.jsxs)(t.Fragment,{children:[0===r&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("span",{className:"text-xs text-gray-400",children:"在哪台机器上创建"}),(0,t.jsx)(i,{networkId:U||void 0,value:d,onChange:(e,t)=>{c(e),g(t);let a=t?.runtimes_supported;a&&a.length>0&&!a.includes(y)&&(j(a[0]),N(""))}}),!d&&(0,t.jsxs)("p",{className:"text-[11px] text-gray-600",children:["没选服务器之前无法继续;如果列表是空的,按提示在目标机器上跑 ",(0,t.jsx)("code",{className:"rounded bg-black/40 px-1 py-0.5",children:"anet daemon up <name>"}),"。"]})]}),1===r&&(0,t.jsxs)("label",{className:"block space-y-1.5",children:[(0,t.jsx)("span",{className:"text-xs text-gray-400",children:"节点名字"}),(0,t.jsx)("input",{autoFocus:!0,value:b,onChange:e=>f(e.target.value),placeholder:"例如 my-agent-1",className:H}),!W&&(0,t.jsx)("span",{className:"text-[11px] text-gray-600",children:"名字不能为空"})]}),2===r&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("span",{className:"text-xs text-gray-400",children:["Runtime",p?`(${p.alias} 支持)`:""]}),x.map(e=>{let a=p?.runtimes_supported,s=Array.isArray(a)&&a.length>0&&!a.includes(e.id),n=y===e.id;return(0,t.jsxs)("button",{type:"button",disabled:s,onClick:()=>{s||(j(e.id),N(""))},title:s?`${p?.alias||"该 daemon"} 未声明支持此 runtime`:void 0,className:`flex w-full items-center justify-between rounded-md border px-3 py-2 text-sm transition-colors ${s?"border-[#1c1c1f] bg-[#0a0a0c] text-gray-600 cursor-not-allowed":n?"border-cyan-600 bg-cyan-900/15 text-cyan-200":"border-[#26262b] bg-[#0e0e10] text-gray-300 hover:border-[#3a3a41]"}`,children:[(0,t.jsxs)("span",{children:[e.label,s&&(0,t.jsx)("span",{className:"ml-2 text-[10px] text-gray-700",children:"该 daemon 不支持"})]}),n&&!s&&(0,t.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})})]},e.id)})]}),3===r&&(0,t.jsxs)("label",{className:"block space-y-1.5",children:[(0,t.jsxs)("span",{className:"text-xs text-gray-400",children:["模型(",P.label,")"]}),(0,t.jsxs)("select",{value:v,onChange:e=>N(e.target.value),className:H,children:[(0,t.jsxs)("option",{value:"",children:["默认(",P.defaultModel,")"]}),P.models.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})]}),4===r&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("label",{className:"block space-y-1.5",children:[(0,t.jsx)("span",{className:"text-xs text-gray-400",children:"permissionMode"}),(0,t.jsx)("select",{value:w,onChange:e=>k(e.target.value),className:H,children:u.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,t.jsxs)("label",{className:"space-y-1",children:[(0,t.jsx)("span",{className:"text-[11px] text-gray-500",children:"maxTurns"}),(0,t.jsx)("input",{inputMode:"numeric",value:C,onChange:e=>S(e.target.value),className:H})]}),(0,t.jsxs)("label",{className:"space-y-1",children:[(0,t.jsx)("span",{className:"text-[11px] text-gray-500",children:"budget"}),(0,t.jsx)("input",{inputMode:"numeric",value:_,onChange:e=>M(e.target.value),className:H})]}),(0,t.jsxs)("label",{className:"space-y-1",children:[(0,t.jsx)("span",{className:"text-[11px] text-gray-500",children:"timeout"}),(0,t.jsx)("input",{inputMode:"numeric",value:$,onChange:e=>E(e.target.value),className:H})]})]})]}),5===r&&(0,t.jsx)("div",{className:"space-y-2 text-sm",children:(0,t.jsx)("div",{className:"rounded-md border border-[#26262b] bg-[#0e0e10] divide-y divide-[#1c1c1f]",children:[["服务器",d?`${d.slice(0,24)}…`:"—"],["名字",b.trim()||"—"],["Runtime",P.label],["模型",v||`默认(${P.defaultModel})`],["permissionMode",w],["maxTurns / budget / timeout",`${C||"—"} / ${_||"—"} / ${$||"—"}`]].map(([e,a])=>(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 px-3 py-2",children:[(0,t.jsx)("span",{className:"shrink-0 text-gray-500 text-xs",children:e}),(0,t.jsx)("span",{className:"text-right text-gray-200 text-xs break-all",children:a})]},e))})})]})}),"form"===A?(0,t.jsxs)("div",{className:"flex items-center justify-between border-t border-[#26262b] px-4 py-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>0===r?s():o(r-1),className:"rounded-md px-3 py-1.5 text-sm text-gray-400 hover:text-gray-200",children:0===r?"取消":"上一步"}),r<m.length-1?(0,t.jsx)("button",{type:"button",disabled:!O,onClick:()=>o(r+1),className:`rounded-md px-4 py-1.5 text-sm font-medium ${O?"bg-cyan-600 text-white hover:bg-cyan-500":"bg-[#1c1c1f] text-gray-600 cursor-not-allowed"}`,children:"下一步"}):(0,t.jsx)("button",{type:"button",onClick:F,className:"rounded-md bg-green-600 px-4 py-1.5 text-sm font-medium text-white hover:bg-green-500",children:"创建节点"})]}):(0,t.jsxs)("div",{className:"flex items-center justify-end border-t border-[#26262b] px-4 py-3",children:[(0,t.jsx)("button",{type:"button",onClick:s,className:"rounded-md bg-[#1c1c1f] px-4 py-1.5 text-sm text-gray-200 hover:bg-[#26262b]",children:"done"===A?"完成":"关闭"}),("error"===A||"unconfirmed"===A)&&(0,t.jsx)("button",{type:"button",onClick:()=>L("form"),className:"ml-2 rounded-md bg-cyan-600 px-4 py-1.5 text-sm text-white hover:bg-cyan-500",children:"返回修改"})]})]})]})}var p=e.i(576),g=e.i(3068),b=e.i(57835),f=e.i(30842),y=e.i(56827),j=e.i(25371),v=e.i(99825),N=e.i(54258),w=e.i(32182),k=e.i(23996),C=e.i(519);function S({alias:e,x:s,y:n,onClose:r}){let i=(0,j.usePinned)(e),o=(0,y.useMuted)(e),{networkId:d}=(0,l.useNetworkId)(),{unreadCount:c}=(0,w.useChatUnread)(),x=c(e),u=(0,a.useRef)(null),[m,h]=(0,a.useState)({top:n,left:s,flippedY:!1,flippedX:!1});(0,a.useLayoutEffect)(()=>{let e=u.current;if(!e)return;let t=e.getBoundingClientRect().height||120,a=window.innerHeight,r=window.innerWidth,l=n,i=s,o=!1,d=!1;n+t+8>a&&(l=Math.max(8,n-t),o=!0),s+200+8>r&&(i=Math.max(8,s-200),d=!0),h({top:l=Math.max(8,Math.min(l,a-t-8)),left:i=Math.max(8,Math.min(i,r-200-8)),flippedY:o,flippedX:d})},[s,n]),(0,a.useEffect)(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&r()},t=e=>{"Escape"===e.key&&(e.stopPropagation(),r())};return document.addEventListener("mousedown",e,!0),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("keydown",t)}},[r]);let p=e=>()=>{e(),r()},g="group w-full text-left flex items-center gap-2.5 px-2.5 py-1.5 text-[13px] font-medium text-[#E2E8F0] hover:bg-[rgba(125,211,252,0.10)] hover:text-white active:bg-[rgba(125,211,252,0.18)] disabled:text-[#475569] disabled:cursor-not-allowed disabled:hover:bg-transparent",b=(0,t.jsxs)("div",{ref:u,role:"menu","aria-label":(0,C.t)(`节点 ${e} 操作菜单`,`Actions for node ${e}`),"data-testid":"node-context-menu","data-target-alias":e,"data-flipped-y":m.flippedY?"true":void 0,"data-flipped-x":m.flippedX?"true":void 0,style:{position:"fixed",top:m.top,left:m.left,width:200,zIndex:60},className:"rounded-lg border border-[rgba(255,255,255,0.10)] bg-[#1E293B] py-1",onContextMenu:e=>e.preventDefault(),children:[(0,t.jsxs)("button",{type:"button",role:"menuitem","data-testid":"ctx-pin",onClick:p(()=>(0,j.togglePin)(e)),className:g,children:[(0,t.jsx)(_,{className:"shrink-0 w-5 h-5 text-[#94A3B8] group-hover:text-[#7DD3FC]"}),i?(0,C.t)("取消置顶","Unpin"):(0,C.t)("置顶会话","Pin conversation")]}),(0,t.jsxs)("button",{type:"button",role:"menuitem","data-testid":"ctx-mute",onClick:p(()=>(0,y.toggleMute)(e)),className:g,children:[(0,t.jsx)(M,{muted:!0,className:"shrink-0 w-5 h-5 text-[#94A3B8] group-hover:text-[#7DD3FC]"}),o?(0,C.t)("取消免打扰","Unmute"):(0,C.t)("免打扰","Mute")]}),(0,t.jsxs)("button",{type:"button",role:"menuitem","data-testid":"ctx-mark-read",onClick:p(()=>(0,w.markChatRead)(e,d)),disabled:0===x,className:g,children:[(0,t.jsx)($,{className:"shrink-0 w-5 h-5 text-[#94A3B8] group-hover:text-[#7DD3FC] group-disabled:text-[#475569]"}),(0,C.t)(x>0?`标记已读 (${x})`:"标记已读",x>0?`Mark ${x} read`:"Mark read")]})]});return"u"<typeof document?null:(0,k.createPortal)(b,document.body)}function _({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M12 17v5"}),(0,t.jsx)("path",{d:"M5 10l7 7 7-7"}),(0,t.jsx)("path",{d:"M5 10l3-8h8l3 8z"})]})}function M({className:e,muted:a}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 00-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5"}),(0,t.jsx)("path",{d:"M13.7 21a2 2 0 01-3.4 0"}),a&&(0,t.jsx)("path",{d:"M3 3l18 18"})]})}function $({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M5 13l4 4L19 7"})})}function E({session:e,selected:a,unread:s,onSelect:n,onContextMenu:r}){let l=(0,j.usePinned)(e.alias),i=(0,y.useMuted)(e.alias);return(0,t.jsxs)("button",{type:"button","data-node-list-item":!0,"data-node-list-alias":e.alias,"data-selected":a?"true":"false","data-node-pinned":l?"true":"false","data-node-muted":i?"true":"false",onClick:()=>n(e.alias),onContextMenu:t=>r(e.alias,t),className:`w-full flex items-center gap-2.5 px-3 py-2.5 text-left transition-colors border-b border-[#1a1a1d] ${a?"bg-cyan-500/8":l?"bg-[rgba(125,211,252,0.04)] hover:bg-[rgba(125,211,252,0.08)]":"hover:bg-[#161618]"}`,children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)(b.AliasAvatar,{alias:e.alias,size:32}),e.online&&(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute -bottom-0.5 -right-0.5 w-2.5 h-2.5 rounded-full bg-green-400 ring-2 ring-[#0F1320]"})]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:`text-[13px] truncate flex items-center gap-1.5 min-w-0 ${a?"text-cyan-200 font-medium":"text-gray-200"}`,children:[(0,t.jsx)("span",{className:"truncate",children:e.alias}),i&&(0,t.jsxs)("svg",{"aria-label":(0,C.t)("已免打扰","Muted"),"data-mute-icon":!0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#64748B",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"shrink-0",children:[(0,t.jsx)("path",{d:"M15 17h5l-1.4-1.4A2 2 0 0118 14.2V11a6 6 0 00-4-5.7"}),(0,t.jsx)("path",{d:"M6 8v3.2c0 .5-.2 1-.6 1.4L4 14h9"}),(0,t.jsx)("path",{d:"M13.7 21a2 2 0 01-3.4 0"}),(0,t.jsx)("path",{d:"M3 3l18 18"})]})]}),s>0&&(0,t.jsx)("span",{"aria-label":i?(0,C.t)(`已免打扰,未读 ${s}`,`Muted, ${s} unread`):(0,C.t)(`${s} 条未读`,`${s} unread`),"data-unread-badge":!0,"data-badge-variant":i?"muted":"default",className:`shrink-0 min-w-[16px] h-4 px-1 rounded-full text-[9px] font-semibold leading-4 text-center ${i?"bg-[#475569] text-[#CBD5E1]":"bg-[#EF4444] text-white"}`,children:s>99?"99+":s})]}),(0,t.jsx)("div",{className:"mt-0.5 flex items-center gap-1.5",children:(0,t.jsx)(A,{alias:e.alias,session:e})})]})]},e.alias)}function A({alias:e,session:a}){return(0,f.useHasDraft)(e)?(0,t.jsxs)("span",{className:"text-[11px] text-red-400/90 truncate","aria-label":(0,C.t)("有未发送草稿","Unsent draft"),children:[(0,C.t)("[草稿]","[draft]")," ",a.task?a.task.slice(0,40):""]}):a.task?(0,t.jsx)("span",{className:"text-[11px] text-gray-500 truncate",children:a.task}):a.online?(0,t.jsx)("span",{className:"text-[11px] text-gray-600",children:(0,C.t)("空闲","idle")}):(0,t.jsx)("span",{className:"text-[11px] text-gray-600 italic",children:(0,C.t)("离线","offline")})}function L({sessions:e,selectedAlias:s,onSelect:n,search:r,onSearchChange:l}){let{unreadCount:i}=(0,w.useChatUnread)(),[o,d]=(0,a.useState)(null),c=(0,a.useRef)(null),x=(0,a.useRef)({sessions:e,selectedAlias:s,onSelect:n});return(0,a.useEffect)(()=>{x.current={sessions:e,selectedAlias:s,onSelect:n}}),(0,a.useEffect)(()=>{let e=e=>{if("ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"Enter"!==e.key)return;let t=document.activeElement;if(t){let e=t.tagName;if("INPUT"===e||"TEXTAREA"===e||"SELECT"===e||t.isContentEditable)return}let{sessions:a,selectedAlias:s,onSelect:n}=x.current;if(0===a.length)return;let r=s?a.findIndex(e=>e.alias===s):-1;if("Enter"===e.key){-1===r&&(e.preventDefault(),n(a[0].alias));return}e.preventDefault();let l=-1===r?"ArrowDown"===e.key?0:a.length-1:"ArrowDown"===e.key?Math.min(a.length-1,r+1):Math.max(0,r-1);l!==r&&n(a[l].alias)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,a.useEffect)(()=>{if(!s)return;let e=c.current?.querySelector(`[data-node-list-alias="${CSS.escape(s)}"]`);e&&e.scrollIntoView({block:"nearest"})},[s]),(0,t.jsxs)("div",{"data-node-list-rail":!0,"data-node-list-count":e.length,className:"flex flex-col w-full overflow-hidden bg-[#0F1320] border-r border-[rgba(255,255,255,0.06)]","aria-label":(0,C.t)("节点列表","Node list"),children:[(0,t.jsx)("div",{className:"p-2 border-b border-[#1e1e22] shrink-0",children:(0,t.jsx)("input",{type:"search",value:r,onChange:e=>l(e.target.value),placeholder:(0,C.t)("搜索节点(拼音可)","Search nodes (pinyin ok)"),"aria-label":(0,C.t)("搜索节点","Search nodes"),"data-testid":"rail-search",className:"w-full rounded-md bg-[#0A0D18] border border-[rgba(255,255,255,0.08)] px-2.5 py-1.5 text-[12px] text-gray-200 placeholder:text-gray-600 focus:outline-none focus:border-cyan-500/40"})}),(0,t.jsx)("div",{className:"px-3 py-2 text-[11px] text-gray-500 tracking-wide uppercase border-b border-[#1e1e22] shrink-0",children:(0,C.t)(`节点 ${e.length}`,`Nodes \xb7 ${e.length}`)}),o&&(0,t.jsx)(S,{alias:o.alias,x:o.x,y:o.y,onClose:()=>d(null)}),(0,t.jsx)("div",{ref:c,"data-testid":"node-list-scroll",className:"flex-1 min-h-0 overflow-y-auto pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-0",children:0===e.length?r?(0,t.jsxs)("div",{className:"p-4 text-[11px] text-gray-500","data-testid":"rail-search-empty",children:[(0,C.t)(`没有节点匹配 “${r}”`,`No match — no nodes named "${r}"`),(0,t.jsx)("button",{type:"button",onClick:()=>l(""),className:"ml-2 text-cyan-400/80 hover:text-cyan-300 underline-offset-2 hover:underline",children:(0,C.t)("清除","Clear")})]}):(0,t.jsx)("div",{className:"p-4 text-[11px] text-gray-600",children:(0,C.t)("列表为空 —— 右侧的筛选控件或空态说明会告诉你原因。","Rail is empty — the filter controls or empty state on the right explain why.")}):e.map(e=>(0,t.jsx)(E,{session:e,selected:e.alias===s,unread:i(e.alias),onSelect:n,onContextMenu:(e,t)=>{t.preventDefault(),d({alias:e,x:t.clientX,y:t.clientY})}},e.alias))})]})}var T=e.i(96650),I=e.i(58895);function R({alias:e,anchorRef:s,onClose:n,onOpenSettings:r}){let l=(0,j.usePinned)(e),i=(0,a.useRef)(null),[o,d]=(0,a.useState)({top:0,left:0,flippedY:!1,flippedX:!1});return(0,a.useLayoutEffect)(()=>{if(!s.current||!i.current)return;let e=s.current.getBoundingClientRect(),t=i.current.getBoundingClientRect(),a=window.innerHeight,n=window.innerWidth,r=e.bottom+4,l=e.right-t.width,o=!1,c=!1;r+t.height+8>a&&(r=Math.max(8,e.top-t.height-4),o=!0),l<8&&(l=e.left,c=!0),d({top:r=Math.max(8,Math.min(r,a-t.height-8)),left:l=Math.max(8,Math.min(l,n-t.width-8)),flippedY:o,flippedX:c})},[s]),(0,a.useEffect)(()=>{let e=e=>{let t=e.target;i.current?.contains(t)||s.current?.contains(t)||n()},t=e=>{"Escape"===e.key&&n()};return document.addEventListener("mousedown",e,!0),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("keydown",t)}},[s,n]),(0,k.createPortal)((0,t.jsxs)("div",{ref:i,role:"menu","aria-label":(0,C.t)("会话溢出菜单","Chat overflow menu"),"data-testid":"chat-pane-overflow-menu","data-flipped-y":o.flippedY?"true":void 0,"data-flipped-x":o.flippedX?"true":void 0,style:{position:"fixed",top:o.top,left:o.left,width:200,zIndex:200},className:"rounded-md border border-[rgba(255,255,255,0.08)] bg-[#1E293B] py-1 text-[13px] text-gray-100",children:[(0,t.jsx)(B,{testid:"chat-pane-overflow-pin",onClick:()=>{(0,j.togglePin)(e),n()},children:l?(0,C.t)("移除标签页","Remove tab"):(0,C.t)("添加标签页","Add as tab")}),(0,t.jsx)(D,{testid:"chat-pane-overflow-view-tasks",href:`/tasks?to_name=${encodeURIComponent(e)}`,onClick:n,children:(0,C.t)("查看任务","View tasks")}),(0,t.jsx)(B,{testid:"chat-pane-settings",onClick:()=>{r(),n()},children:(0,C.t)("会话设置","Conversation settings")}),(0,t.jsx)("div",{role:"separator","data-testid":"chat-pane-overflow-separator",className:"my-1 h-px bg-[rgba(255,255,255,0.08)]"})]}),document.body)}function B({children:e,onClick:a,testid:s}){return(0,t.jsx)("button",{type:"button",role:"menuitem","data-testid":s,onClick:a,className:"flex h-8 w-full items-center px-3 text-left hover:bg-[rgba(125,211,252,0.08)] focus:bg-[rgba(125,211,252,0.08)] focus:outline-none",children:e})}function D({children:e,href:a,onClick:s,testid:n}){return(0,t.jsx)("a",{role:"menuitem","data-testid":n,href:a,onClick:s,className:"flex h-8 w-full items-center px-3 text-left hover:bg-[rgba(125,211,252,0.08)] focus:bg-[rgba(125,211,252,0.08)] focus:outline-none",children:e})}function U({alias:e,onClose:s,variant:r="column",onBack:l}){let[i,o]=(0,a.useState)(!1),[d,c]=(0,a.useState)(!1),x=(0,a.useRef)(null),{sessions:u}=(0,n.useSessions)(),m=u.find(t=>t.alias===e);return(0,t.jsxs)("aside",{"data-testid":"chat-pane","data-chat-alias":e,className:"page"===r?"relative flex flex-col w-full min-w-0 h-full bg-[#141826] pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-0":"relative hidden md:flex md:flex-col flex-1 min-w-0 h-full bg-[#141826] pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-0",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2.5 border-b border-[rgba(255,255,255,0.06)] bg-[#141826] shrink-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:["page"===r&&(0,t.jsx)("button",{type:"button",onClick:l??s,"aria-label":(0,C.t)("返回列表","Back to list"),"data-testid":"chat-back",className:"inline-flex h-8 w-8 -ml-1 items-center justify-center rounded-lg text-gray-400 hover:text-gray-100 hover:bg-[#1c1c1f] transition-colors shrink-0",children:(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"})})}),(0,t.jsx)(b.AliasAvatar,{alias:e,size:26}),(0,t.jsx)("span",{className:"truncate text-sm font-semibold text-white",children:e})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,t.jsx)("button",{ref:x,type:"button",onClick:()=>c(e=>!e),"aria-label":(0,C.t)("会话溢出菜单","Chat overflow menu"),"aria-haspopup":"menu","aria-expanded":d,title:(0,C.t)("更多","More"),"data-testid":"chat-pane-more","data-menu-open":d?"true":"false",className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-gray-500 hover:text-gray-200 hover:bg-[#1c1c1f] transition-colors",children:(0,t.jsxs)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[(0,t.jsx)("circle",{cx:"12",cy:"5",r:"1.5",fill:"currentColor"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"}),(0,t.jsx)("circle",{cx:"12",cy:"19",r:"1.5",fill:"currentColor"})]})}),(0,t.jsx)("a",{href:`/tasks?to_name=${encodeURIComponent(e)}`,"aria-label":(0,C.t)(`查看 ${e} 的任务`,`View ${e} tasks`),title:(0,C.t)("查看任务","View tasks"),"data-testid":"chat-pane-view-tasks",className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-gray-500 hover:text-gray-200 hover:bg-[#1c1c1f] transition-colors",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7V3M16 7V3M4 11h16M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),(0,t.jsx)("button",{type:"button",onClick:()=>window.dispatchEvent(new CustomEvent("chat:open-search",{detail:{alias:e}})),"aria-label":(0,C.t)("会话内搜索","In-chat search"),title:(0,C.t)("搜索(⌘/Ctrl+F)","Search (⌘/Ctrl+F)"),"data-testid":"chat-pane-search","data-search-enabled":"true",className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-gray-500 hover:text-gray-200 hover:bg-[#1c1c1f] transition-colors",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),(0,t.jsx)("button",{type:"button",onClick:s,"aria-label":(0,C.t)("关闭会话","Close chat"),"data-testid":"chat-pane-close",className:"inline-flex h-8 w-8 items-center justify-center rounded-md text-gray-500 hover:text-gray-200 hover:bg-[#1c1c1f] transition-colors",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})]}),(0,t.jsx)("div",{className:"flex-1 min-h-0",children:(0,t.jsx)(T.TaskChatPanel,{alias:e,onClose:s,inline:!0})}),i&&m&&(0,t.jsx)(I.NodeSettingsPanel,{session:m,onClose:()=>o(!1),positioning:"absolute"}),d&&(0,t.jsx)(R,{alias:e,anchorRef:x,onClose:()=>c(!1),onOpenSettings:()=>o(!0)})]})}var P=e.i(90991);function W(e){return e?e.length>12?`${e.slice(0,8)}…`:e:"—"}function O(e){try{return decodeURIComponent(e)}catch{return e}}let z="(min-width: 768px)";function F(e){let t=window.matchMedia(z);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)}function H({alias:e}){return(0,f.useHasDraft)(e)?(0,t.jsx)("span",{className:"shrink-0 text-[9px] text-red-400/90","aria-label":(0,C.t)("有未发送草稿","Unsent draft"),children:(0,C.t)("[草稿]","[draft]")}):null}e.s(["NodesView",0,function({initialAlias:e=null}){let l,{sessions:i,isLoading:o}=(0,n.useSessions)(),{health:d}=(0,n.useHealth)(),{lifecycleByAlias:c,nodeIdByAlias:x,attrsByAlias:u}=(0,n.useNodeLifecycle)(),{hasUnread:m,unreadCount:f,lastActivityAt:k}=(0,w.useChatUnread)(),{mutate:S}=(0,r.useSWRConfig)(),_=()=>{S(e=>"string"==typeof e&&(e.startsWith("/api/hub/nodes")||e.startsWith("/api/hub/status")))},M=d?.sse_sessions||{},$=e=>(e.network_id?M[`${e.network_id}:${e.alias}`]:void 0)??M[e.alias],[E,A]=(0,a.useState)(""),[T,I]=(0,a.useState)(""),[R,B]=(0,a.useState)([]),[D,V]=(0,a.useState)(""),K=Array.from(new Set(i.map(e=>u[e.alias]?.team).filter(e=>!!e&&e.length>0))).sort(),X=Array.from(new Set(i.flatMap(e=>u[e.alias]?.tags??[]).filter(e=>e&&e.length>0))).sort(),Y=K.length>0||X.length>0;(0,v.usePinyinReady)(),(0,y.useMuteVersion)(),(0,j.usePinVersion)();let[q,G]=(0,a.useState)("list"),[J,Q]=(0,a.useState)(e),Z=(0,a.useSyncExternalStore)(F,()=>window.matchMedia(z).matches,()=>!0),ee=e=>{try{let e=document.querySelector('[data-testid="node-list-scroll"]');e&&(eN.current=e.scrollTop)}catch{}Q(e);try{window.history.pushState({},"",`/nodes/${encodeURIComponent(e)}`)}catch{}},et=()=>{el.current=!0,Q(null);try{window.history.pushState({},"","/nodes")}catch{}};(0,a.useEffect)(()=>{let e=()=>{let e=window.location.pathname.match(/^\/nodes\/([^/]+)\/?$/);Q(e?O(e[1]):null)};return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)},[]);let ea=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=ea.current;if(!e)return;let t=()=>{let t=e.getBoundingClientRect().top+window.scrollY;e.style.height=`${Math.max(240,window.innerHeight-t)}px`};t(),window.addEventListener("resize",t);let a=new ResizeObserver(t);return a.observe(document.body),()=>{window.removeEventListener("resize",t),a.disconnect()}},[]);let[es,en]=(0,a.useState)(()=>"1"===window.localStorage.getItem("anet-nodes-manage-view")),er=(0,a.useRef)(!1),el=(0,a.useRef)(!1),ei=()=>{en(e=>{let t=!e;try{window.localStorage.setItem("anet-nodes-manage-view",t?"1":"0")}catch{}return t?(el.current=!0,J&&et()):(el.current=!1,er.current=!1),t})},[eo,ed]=(0,a.useState)(!1),[ec,ex]=(0,a.useState)(()=>{let e=window.localStorage.getItem("anet-nodes-rail");return null===e||"0"!==e}),eu=(0,N.useCollapsibleSearch)({value:D,onChange:V,placeholder:(0,C.t)("搜索节点(支持拼音/首字母)…","Search nodes (pinyin ok)…"),label:"Search nodes",enabled:i.length>0}),em=(0,a.useRef)(new Map),eh=Date.now(),ep=(e,t)=>(t&&em.current.set(e,eh),+(eh-(em.current.get(e)||0)<6e4)),eg=i.map(e=>({...e,online:!!$(e)})).filter(e=>"online"===E?e.online:"offline"===E?!e.online:!E||E===e.status).filter(e=>{if(!T)return!0;let t=u[e.alias]?.team??null;return"__NO_TEAM__"===T?null===t||""===t:t===T}).filter(e=>{if(0===R.length)return!0;let t=u[e.alias]?.tags??[];return R.every(e=>t.includes(e))}).filter(e=>!D||(0,v.pinyinMatch)(e.alias,D)||(0,v.pinyinMatch)(e.agent||"",D)).sort((e,t)=>!!(0,j.isPinned)(t.alias)-!!(0,j.isPinned)(e.alias)||ep(t.alias,t.online)-ep(e.alias,e.online)||k(t.alias)-k(e.alias)),eb=i.filter(e=>$(e)).length,ef=eg.length>0?eg[0].alias:null;(0,a.useEffect)(()=>{if(Z&&!es&&!J&&!el.current&&!er.current&&ef){er.current=!0,Q(ef);try{window.history.replaceState({},"",`/nodes/${encodeURIComponent(ef)}`)}catch{}}},[Z,es,J,ef]);let ey=!!J&&Z&&i.length>0,ej=!Z&&!J&&!es&&i.length>0,ev=!Z&&!!J,eN=(0,a.useRef)(0);return(0,a.useEffect)(()=>{if(Z||J)return;let e=requestAnimationFrame(()=>{let e=document.querySelector('[data-testid="node-list-scroll"]');e&&(e.scrollTop=eN.current)});return()=>cancelAnimationFrame(e)},[Z,J]),(0,t.jsxs)("div",{ref:ea,"data-testid":"nodes-layout","data-rail-visible":ec?"true":"false",className:"h-[100dvh] max-w-full overflow-hidden bg-[#0b0b0d] text-gray-100 flex",children:[(ej||Z&&(ec||ey)&&i.length>0)&&(0,t.jsxs)("aside",{"data-testid":"node-list-rail",className:"flex flex-col w-full md:w-[280px] shrink-0 h-full min-h-0 bg-[#0F1320]",children:[(0,t.jsx)(L,{sessions:eg,selectedAlias:J,onSelect:ee,search:D,onSearchChange:V}),(0,t.jsx)("button",{type:"button",onClick:ei,"data-testid":"manage-view-toggle",className:"shrink-0 border-t border-[rgba(255,255,255,0.06)] bg-[#0F1320] px-3 py-2 text-left text-[11px] text-gray-500 hover:text-gray-200 transition-colors",children:es?(0,C.t)("≡ 对话视图","≡ Conversation view"):(0,C.t)("☷ 管理视图","☷ Manage view")})]}),(Z?!ey:es&&!J)&&(0,t.jsxs)("div",{className:"flex-1 min-w-0 max-w-full h-full overflow-y-auto overflow-x-hidden p-4 sm:p-6 pb-[calc(5rem+env(safe-area-inset-bottom))] lg:pb-6",children:[!Z&&es&&(0,t.jsx)("button",{type:"button",onClick:ei,"data-testid":"manage-view-toggle-mobile",className:"md:hidden mb-3 rounded-lg border border-[rgba(255,255,255,0.08)] bg-[#0F1320] px-3 py-1.5 text-[12px] text-gray-400 hover:text-gray-200",children:(0,C.t)("≡ 返回对话视图","≡ Back to conversations")}),(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-4 sm:mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-white lg:ml-0 ml-10",children:"Nodes"}),(0,t.jsxs)("span",{className:"text-xs bg-green-900/30 text-green-400 px-2 py-0.5 rounded-full border border-green-800/30 shrink-0",children:[eb," online"]}),(0,t.jsxs)("span",{className:"text-xs bg-gray-900/30 text-gray-400 px-2 py-0.5 rounded-full border border-gray-800/30 shrink-0",children:[i.length," total"]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{ex(e=>{let t=!e;try{window.localStorage.setItem("anet-nodes-rail",t?"1":"0")}catch{}return t})},"aria-pressed":ec,"data-testid":"toggle-rail",title:ec?(0,C.t)("隐藏节点列表","Hide node list"):(0,C.t)("显示节点列表","Show node list"),className:"hidden sm:inline-flex items-center gap-1 rounded-lg border border-[#26262b] bg-[#161618] px-2.5 py-1.5 text-xs text-gray-400 hover:text-gray-200 hover:border-[#3a3a40] transition-colors",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"text-sm leading-none",children:ec?"☷":"☰"}),(0,t.jsx)("span",{className:"hidden md:inline",children:ec?(0,C.t)("密视图","Dense"):(0,C.t)("分栏","Split")})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>ed(!0),"aria-label":"新建节点",className:"inline-flex items-center gap-1 rounded-lg border border-cyan-700/50 bg-cyan-900/15 px-3 py-1.5 text-sm font-medium text-cyan-300 hover:bg-cyan-900/25 transition-colors",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"text-base leading-none",children:"+"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"新建节点"})]}),(0,t.jsx)(eu.Button,{})]})]}),eo&&(0,t.jsx)(h,{onClose:()=>ed(!1)}),(0,t.jsx)(eu.Row,{}),i.length>0&&(0,t.jsxs)("div",{className:"flex flex-wrap gap-3 mb-4 sm:mb-6",children:[(0,t.jsxs)("select",{value:E,onChange:e=>A(e.target.value),className:"bg-[#161618] border border-[#26262b] rounded-lg px-3 py-2 text-base sm:text-sm text-white focus:border-blue-500/50 focus:outline-none",children:[(0,t.jsx)("option",{value:"",children:"All"}),(0,t.jsx)("option",{value:"online",children:"Online"}),(0,t.jsx)("option",{value:"offline",children:"Offline"}),(0,t.jsx)("option",{value:"working",children:"Working"}),(0,t.jsx)("option",{value:"idle",children:"Idle"}),(0,t.jsx)("option",{value:"blocked",children:"Blocked"}),(0,t.jsx)("option",{value:"error",children:"Error"})]}),K.length>0&&(0,t.jsxs)("select",{value:T,onChange:e=>I(e.target.value),"aria-label":(0,C.t)("按 Team 过滤","Filter by team"),"data-testid":"filter-team",className:"bg-[#161618] border border-[#26262b] rounded-lg px-3 py-2 text-base sm:text-sm text-white focus:border-blue-500/50 focus:outline-none",children:[(0,t.jsx)("option",{value:"",children:(0,C.t)("全部 Team","All teams")}),(0,t.jsx)("option",{value:"__NO_TEAM__",children:(0,C.t)("未分组","(no team)")}),K.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)("div",{className:"hidden sm:flex ml-auto rounded-lg border border-[#26262b] bg-[#161618] p-1 text-sm",children:["list","grid"].map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>G(e),className:`rounded-md px-3 py-1.5 transition-colors ${q===e?"bg-cyan-500/10 text-cyan-300":"text-gray-500 hover:text-gray-200"}`,children:"list"===e?"List":"Grid"},e))})]}),i.length>0&&X.length>0&&(0,t.jsxs)("div",{className:"mb-4 sm:mb-6 flex flex-wrap items-center gap-1.5","data-testid":"filter-tags-row",children:[(0,t.jsx)("span",{className:"text-[11px] text-gray-500 mr-1",children:(0,C.t)("Tags:","Tags:")}),X.map((e,a)=>{let s=R.includes(e);return s&&R.slice(0,R.indexOf(e)).length,(0,t.jsx)("button",{type:"button",onClick:()=>B(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),"aria-pressed":s,"data-tag":e,"data-selected":s?"true":"false",className:`text-xs rounded-full px-2.5 py-1 border transition-colors ${s?"bg-cyan-500/15 text-cyan-200 border-cyan-500/40":"bg-[#161618] text-gray-400 border-[#26262b] hover:text-gray-200 hover:border-[#3a3a40]"}`,children:e},e)}),R.length>=2&&(0,t.jsx)("span",{className:"text-[10px] text-cyan-300/80 ml-1 tabular-nums","data-testid":"filter-tags-and-hint",children:(0,C.t)(`= 同时具有 ${R.length} 个标签`,`= AND of ${R.length} tags`)}),(R.length>0||T)&&(0,t.jsx)("button",{type:"button",onClick:()=>{B([]),I("")},className:"text-[11px] text-gray-500 hover:text-gray-200 underline-offset-2 hover:underline ml-2","data-testid":"clear-attr-filters",children:(0,C.t)("清除","Clear")})]}),o?(0,t.jsx)("div",{className:"animate-pulse space-y-2",children:[1,2,3,4].map(e=>(0,t.jsx)("div",{className:"h-16 bg-gray-800/20 rounded-lg"},e))}):0===eg.length?0===i.length?(0,t.jsx)(g.NodesEmptyState,{}):T||R.length>0?(0,t.jsx)(g.EmptyState,{variant:"nodes",title:(0,C.t)("没有节点符合当前属性筛选","No nodes match the current attribute filters"),sub:(l=[],"__NO_TEAM__"===T?l.push((0,C.t)("未分组","no-team")):T&&l.push((0,C.t)(`Team = ${T}`,`Team = ${T}`)),1===R.length?l.push((0,C.t)(`标签 ${R[0]}`,`tag ${R[0]}`)):R.length>=2&&l.push((0,C.t)(`同时具有标签 ${R.join(" 和 ")}`,`all of tags: ${R.join(" AND ")}`)),(0,C.t)(`没有节点满足:${l.join(" + ")}。清除筛选或减少标签。`,`No node satisfies: ${l.join(" + ")}. Clear filters or drop a tag.`))}):!Y&&(E||D)?(0,t.jsx)(g.EmptyState,{variant:"nodes",title:(0,C.t)("还没有节点被打过标签","No nodes have been tagged yet"),sub:(0,C.t)("先在节点详情里给几个节点分配 team / tag,然后就可以按属性筛选。","Assign team / tag to a few nodes first, then attribute filters will show up.")}):(0,t.jsx)(g.EmptyState,{variant:"nodes",title:"No nodes match your filters",sub:"Try clearing search or status filters, or wait for an agent to register."}):"grid"===q?(0,t.jsx)("div",{className:"grid min-w-0 grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:eg.map(e=>{let a=e.online?e.status:"offline",n="number"==typeof e.progress?e.progress:0,r=m(e.alias);return(0,t.jsxs)("div",{role:"button",tabIndex:0,"data-node-card":!0,"data-node-alias":e.alias,onClick:()=>ee(e.alias),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),ee(e.alias))},className:`relative min-w-0 max-w-full overflow-hidden rounded-xl border border-[#26262b] bg-[#161618] p-4 transition-colors hover:border-cyan-500/40 cursor-pointer ${!e.online?"opacity-60":""}`,children:[!e.online&&(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("span",{className:"rotate-[-20deg] rounded-xl border border-white/10 bg-black/20 px-5 py-2 text-xl font-bold uppercase tracking-[0.35em] text-white/10",children:"Offline"})}),(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsxs)("span",{className:"relative inline-flex shrink-0",children:[(0,t.jsx)(b.AliasAvatar,{alias:e.alias,size:36}),f(e.alias)>0&&(0,y.isMuted)(e.alias)&&(0,t.jsx)("span",{"aria-label":(0,C.t)("有未读(已静音)","Unread (muted)"),className:"absolute -top-0.5 -right-1 h-2.5 w-2.5 rounded-full bg-red-500/80 ring-2 ring-[#161618]"}),f(e.alias)>0&&!(0,y.isMuted)(e.alias)&&(0,t.jsx)("span",{"aria-label":(0,C.t)(`${f(e.alias)} 条未读`,`${f(e.alias)} unread`),className:"absolute -top-1 -right-1.5 min-w-[16px] h-4 px-1 rounded-full bg-red-500 text-white text-[9px] font-semibold leading-4 text-center ring-2 ring-[#161618]",children:f(e.alias)>99?"99+":f(e.alias)})]}),r&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-3 w-3 rounded-full border-2 border-[#161618] bg-red-500"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"truncate text-base font-semibold text-white",children:e.alias}),(0,t.jsx)(H,{alias:e.alias}),r&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-red-300",children:"New"}),(0,t.jsx)("span",{className:`shrink-0 rounded-md border px-2 py-0.5 text-[10px] uppercase tracking-wide ${P.SESSION_STATUS_CHIP_CLASS[a]||P.SESSION_STATUS_CHIP_CLASS.offline}`,children:a})]}),(0,t.jsxs)("div",{className:"mt-0.5 truncate text-xs text-gray-500",children:[e.agent||"—",(0,t.jsx)("span",{className:"text-gray-700 mx-1.5",children:"·"}),(0,t.jsx)("span",{title:e.server||"",children:W(e.server)})]})]}),(0,t.jsx)("span",{className:"hidden shrink-0 rounded-lg border border-cyan-500/15 bg-cyan-500/5 px-2 py-1 text-[10px] text-cyan-300/70 sm:inline",children:"Tap to chat"}),(0,t.jsx)(p.NodeLifecycleMenu,{nodeId:x[e.alias]||e.node_id||e.alias,alias:e.alias,lifecycleState:c[e.alias],networkId:e.network_id||null,onCompleted:_,attrsSnapshot:u[e.alias]})]}),(0,t.jsxs)("div",{className:"mt-3 rounded-lg border border-[#1c1c1f] bg-[#0e0e10] px-3 py-2 text-xs",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("span",{className:"text-[10px] uppercase tracking-wide text-gray-600",children:"Current task"}),(0,t.jsx)("span",{className:"text-[10px] text-gray-600",children:(0,s.timeAgo)(e.last_seen_at||e.updated_at)})]}),(0,t.jsx)("div",{className:`mt-1 line-clamp-2 ${e.task?"text-gray-300":"text-gray-600 italic"}`,children:e.task||"No current task"})]}),n>0&&n<100&&(0,t.jsx)("div",{className:"mt-3 h-1.5 overflow-hidden rounded-full bg-gray-800",children:(0,t.jsx)("div",{className:"h-1.5 rounded-full bg-cyan-400 transition-all",style:{width:`${n}%`}})})]},e.alias)})}):(0,t.jsxs)("div",{className:"space-y-1 sm:space-y-2",children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-10 gap-2 px-4 py-2 text-xs text-gray-600 uppercase",children:[(0,t.jsx)("div",{className:"col-span-1",children:"Status"}),(0,t.jsx)("div",{className:"col-span-2",children:"Alias"}),(0,t.jsx)("div",{className:"col-span-2",children:"Agent · Server"}),(0,t.jsx)("div",{className:"col-span-4",children:"Current Task"}),(0,t.jsx)("div",{className:"col-span-1",children:"Updated"})]}),eg.map(e=>{let a=e.online?e.status:"offline",n=m(e.alias);return(0,t.jsxs)("div",{role:"button",tabIndex:0,"data-node-card":!0,"data-node-alias":e.alias,onClick:()=>ee(e.alias),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),ee(e.alias))},className:`rounded-lg border border-[#26262b] bg-[#161618] px-3 py-2 sm:px-4 sm:py-3 transition-colors hover:border-cyan-500/40 cursor-pointer ${!e.online?"opacity-50":""}`,children:[(0,t.jsxs)("div",{className:"hidden sm:grid sm:grid-cols-10 gap-2 items-center",children:[(0,t.jsx)("div",{className:"col-span-1",children:(0,t.jsx)("span",{className:`text-xs px-2 py-0.5 rounded-md border ${P.SESSION_STATUS_CHIP_CLASS[a]||P.SESSION_STATUS_CHIP_CLASS.offline}`,children:a})}),(0,t.jsx)("div",{className:"col-span-2 min-w-0",children:(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsxs)("span",{className:"relative inline-flex shrink-0",children:[(0,t.jsx)(b.AliasAvatar,{alias:e.alias,size:20}),f(e.alias)>0&&(0,y.isMuted)(e.alias)&&(0,t.jsx)("span",{"aria-label":(0,C.t)("有未读(已静音)","Unread (muted)"),className:"absolute -top-1 -right-1 h-2 w-2 rounded-full bg-red-500/80"}),f(e.alias)>0&&!(0,y.isMuted)(e.alias)&&(0,t.jsx)("span",{"aria-label":(0,C.t)(`${f(e.alias)} 条未读`,`${f(e.alias)} unread`),className:"absolute -top-1.5 -right-2 min-w-[15px] h-[15px] px-1 rounded-full bg-red-500 text-white text-[9px] font-semibold leading-[15px] text-center",children:f(e.alias)>99?"99+":f(e.alias)})]}),n&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-2.5 w-2.5 rounded-full border border-[#161618] bg-red-500"})]}),(0,t.jsx)("span",{className:"truncate text-sm font-medium text-white",children:e.alias}),(0,t.jsx)(H,{alias:e.alias}),n&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-red-300",children:"New"})]})}),(0,t.jsx)("div",{className:"col-span-2 truncate text-xs text-gray-400",title:e.server||"",children:(0,t.jsxs)("span",{className:"truncate",children:[e.agent||"--",(0,t.jsx)("span",{className:"text-gray-700 mx-1.5",children:"·"}),W(e.server)]})}),(0,t.jsx)("div",{className:"col-span-4 truncate text-xs text-gray-500",title:e.task||"",children:e.task||"--"}),(0,t.jsxs)("div",{className:"col-span-1 flex items-center justify-between gap-2 text-xs text-gray-500",children:[(0,t.jsx)("span",{className:"truncate",children:(0,s.timeAgo)(e.last_seen_at||e.updated_at)}),(0,t.jsx)(p.NodeLifecycleMenu,{nodeId:x[e.alias]||e.node_id||e.alias,alias:e.alias,lifecycleState:c[e.alias],networkId:e.network_id||null,onCompleted:_,attrsSnapshot:u[e.alias]})]})]}),(0,t.jsxs)("div",{className:"sm:hidden space-y-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsxs)("div",{className:"relative shrink-0",children:[(0,t.jsx)(b.AliasAvatar,{alias:e.alias,size:28}),n&&(0,t.jsx)("span",{className:"absolute -right-1 -top-1 h-3 w-3 rounded-full border-2 border-[#161618] bg-red-500"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium text-white",children:e.alias}),n&&(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-red-500/15 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-red-300",children:"New"})]}),(0,t.jsxs)("div",{className:"truncate text-[10px] text-gray-500",children:[e.agent||"—"," · ",(0,s.timeAgo)(e.last_seen_at||e.updated_at)]})]}),(0,t.jsx)("span",{className:`shrink-0 text-xs px-2 py-0.5 rounded-md border ${P.SESSION_STATUS_CHIP_CLASS[a]||P.SESSION_STATUS_CHIP_CLASS.offline}`,children:a}),(0,t.jsx)(p.NodeLifecycleMenu,{nodeId:x[e.alias]||e.node_id||e.alias,alias:e.alias,lifecycleState:c[e.alias],networkId:e.network_id||null,onCompleted:_,attrsSnapshot:u[e.alias]})]}),e.task&&(0,t.jsx)("div",{className:"truncate text-xs text-gray-500",children:e.task})]})]},e.alias)})]})]}),J&&Z&&(0,t.jsx)(U,{alias:J,onClose:et}),ev&&(0,t.jsx)(U,{alias:J,variant:"page",onBack:et,onClose:et})]})},"decodeAliasSegment",0,O],35599)}]);
@@ -19,6 +19,10 @@ self.__MIDDLEWARE_MATCHERS = [
19
19
  "regexp": "^(?:\\/(_next\\/data\\/[^/]{1,}))?\\/nodes(\\.json)?[\\/#\\?]?$",
20
20
  "originalSource": "/nodes"
21
21
  },
22
+ {
23
+ "regexp": "^(?:\\/(_next\\/data\\/[^/]{1,}))?\\/nodes(?:\\/((?:[^\\/#\\?]+?)(?:\\/(?:[^\\/#\\?]+?))*))?(\\.json)?[\\/#\\?]?$",
24
+ "originalSource": "/nodes/:path*"
25
+ },
22
26
  {
23
27
  "regexp": "^(?:\\/(_next\\/data\\/[^/]{1,}))?\\/messages(\\.json)?[\\/#\\?]?$",
24
28
  "originalSource": "/messages"
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":287,"timestamp":6669345763536,"id":4,"parentId":1,"tags":{},"startTime":1785477318010,"traceId":"f56ea0b17b2d3077"},{"name":"load-custom-routes","duration":523,"timestamp":6669345763991,"id":5,"parentId":1,"tags":{},"startTime":1785477318010,"traceId":"f56ea0b17b2d3077"},{"name":"create-dist-dir","duration":803,"timestamp":6669345764563,"id":6,"parentId":1,"tags":{},"startTime":1785477318011,"traceId":"f56ea0b17b2d3077"},{"name":"clean","duration":49041,"timestamp":6669345766285,"id":7,"parentId":1,"tags":{},"startTime":1785477318013,"traceId":"f56ea0b17b2d3077"},{"name":"discover-routes","duration":15185,"timestamp":6669345905962,"id":8,"parentId":1,"tags":{},"startTime":1785477318152,"traceId":"f56ea0b17b2d3077"},{"name":"create-root-mapping","duration":179,"timestamp":6669345921237,"id":9,"parentId":1,"tags":{},"startTime":1785477318168,"traceId":"f56ea0b17b2d3077"},{"name":"generate-route-types","duration":41058,"timestamp":6669345924449,"id":10,"parentId":1,"tags":{},"startTime":1785477318171,"traceId":"f56ea0b17b2d3077"},{"name":"public-dir-conflict-check","duration":157,"timestamp":6669345965643,"id":11,"parentId":1,"tags":{},"startTime":1785477318212,"traceId":"f56ea0b17b2d3077"},{"name":"generate-routes-manifest","duration":7420,"timestamp":6669345965967,"id":12,"parentId":1,"tags":{},"startTime":1785477318212,"traceId":"f56ea0b17b2d3077"},{"name":"run-turbopack","duration":9874979,"timestamp":6669345980984,"id":14,"parentId":1,"tags":{},"startTime":1785477318227,"traceId":"f56ea0b17b2d3077"},{"name":"turbopack-build-events","duration":111,"timestamp":6669346304744,"id":15,"parentId":1,"tags":{},"startTime":1785477318551,"traceId":"f56ea0b17b2d3077"},{"name":"run-typescript","duration":14547771,"timestamp":6669355866126,"id":16,"parentId":1,"tags":{},"startTime":1785477328112,"traceId":"f56ea0b17b2d3077"},{"name":"generate-required-server-files","duration":2393,"timestamp":6669370414869,"id":18,"parentId":1,"tags":{},"startTime":1785477342661,"traceId":"f56ea0b17b2d3077"},{"name":"check-static-error-page","duration":24995,"timestamp":6669370646964,"id":20,"parentId":19,"tags":{},"startTime":1785477342893,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":504050,"timestamp":6669370675287,"id":78,"parentId":22,"tags":{},"startTime":1785477342922,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":529218,"timestamp":6669370650286,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1785477342897,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":678937,"timestamp":6669370676178,"id":83,"parentId":34,"tags":{},"startTime":1785477342922,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":696505,"timestamp":6669370658715,"id":34,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1785477342905,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":685224,"timestamp":6669370676515,"id":85,"parentId":36,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":702497,"timestamp":6669370659322,"id":36,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1785477342906,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":692043,"timestamp":6669370675442,"id":79,"parentId":29,"tags":{},"startTime":1785477342922,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":710006,"timestamp":6669370657626,"id":29,"parentId":19,"tags":{"page":"/api/anet/providers/probe-results"},"startTime":1785477342904,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":699561,"timestamp":6669370676672,"id":87,"parentId":40,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":716146,"timestamp":6669370660167,"id":40,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1785477342906,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":726042,"timestamp":6669370676327,"id":84,"parentId":35,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":745943,"timestamp":6669370658848,"id":35,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1785477342905,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":741770,"timestamp":6669370676591,"id":86,"parentId":37,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":758973,"timestamp":6669370659471,"id":37,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1785477342906,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":743801,"timestamp":6669370674827,"id":77,"parentId":21,"tags":{},"startTime":1785477342921,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":771592,"timestamp":6669370648648,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1785477342895,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":751144,"timestamp":6669370676820,"id":89,"parentId":42,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":767661,"timestamp":6669370660397,"id":42,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1785477342907,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":753072,"timestamp":6669370676702,"id":88,"parentId":41,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":769536,"timestamp":6669370660298,"id":41,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1785477342907,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":757190,"timestamp":6669370676887,"id":92,"parentId":46,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":773016,"timestamp":6669370661119,"id":46,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1785477342907,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":762240,"timestamp":6669370676920,"id":94,"parentId":48,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":777938,"timestamp":6669370661287,"id":48,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1785477342908,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":765291,"timestamp":6669370676856,"id":90,"parentId":43,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":781709,"timestamp":6669370660500,"id":43,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1785477342907,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":773795,"timestamp":6669370676932,"id":95,"parentId":50,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":789048,"timestamp":6669370661757,"id":50,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1785477342908,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":774015,"timestamp":6669370676962,"id":96,"parentId":52,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":788745,"timestamp":6669370662278,"id":52,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1785477342909,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":777825,"timestamp":6669370676905,"id":93,"parentId":47,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":793570,"timestamp":6669370661213,"id":47,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1785477342907,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":784913,"timestamp":6669370676977,"id":97,"parentId":53,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":799570,"timestamp":6669370662418,"id":53,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1785477342909,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":786103,"timestamp":6669370676986,"id":98,"parentId":54,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":800621,"timestamp":6669370662520,"id":54,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1785477342909,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":786300,"timestamp":6669370677016,"id":99,"parentId":55,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":800730,"timestamp":6669370662622,"id":55,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1785477342909,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":791962,"timestamp":6669370677031,"id":100,"parentId":56,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":806352,"timestamp":6669370662714,"id":56,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1785477342909,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":792248,"timestamp":6669370677044,"id":101,"parentId":57,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":806446,"timestamp":6669370662885,"id":57,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1785477342909,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":795991,"timestamp":6669370677053,"id":102,"parentId":58,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":810069,"timestamp":6669370663029,"id":58,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1785477342909,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":789751,"timestamp":6669370688775,"id":105,"parentId":24,"tags":{},"startTime":1785477342935,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":827648,"timestamp":6669370650930,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1785477342897,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":801706,"timestamp":6669370677078,"id":104,"parentId":63,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":812326,"timestamp":6669370666498,"id":63,"parentId":19,"tags":{"page":"/manifest.webmanifest"},"startTime":1785477342913,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":785473,"timestamp":6669370700593,"id":106,"parentId":25,"tags":{},"startTime":1785477342947,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":830034,"timestamp":6669370656096,"id":25,"parentId":19,"tags":{"page":"/api/anet/host-supervisors"},"startTime":1785477342902,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":809323,"timestamp":6669370677065,"id":103,"parentId":60,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":820910,"timestamp":6669370665529,"id":60,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1785477342912,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":778911,"timestamp":6669370707687,"id":107,"parentId":27,"tags":{},"startTime":1785477342954,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":829772,"timestamp":6669370656857,"id":27,"parentId":19,"tags":{"page":"/api/anet/node-create"},"startTime":1785477342903,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":773190,"timestamp":6669370719297,"id":108,"parentId":28,"tags":{},"startTime":1785477342966,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":835291,"timestamp":6669370657255,"id":28,"parentId":19,"tags":{"page":"/api/anet/node-lifecycle"},"startTime":1785477342904,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":731648,"timestamp":6669370761060,"id":110,"parentId":38,"tags":{},"startTime":1785477343007,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":833194,"timestamp":6669370659546,"id":38,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1785477342906,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":742756,"timestamp":6669370750148,"id":109,"parentId":26,"tags":{},"startTime":1785477342996,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":836434,"timestamp":6669370656500,"id":26,"parentId":19,"tags":{"page":"/api/anet/node-config"},"startTime":1785477342903,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":719752,"timestamp":6669370783918,"id":113,"parentId":44,"tags":{},"startTime":1785477343030,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":843154,"timestamp":6669370660591,"id":44,"parentId":19,"tags":{"page":"/api/hub/nodes/[ref]/attrs"},"startTime":1785477342907,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":733247,"timestamp":6669370770730,"id":111,"parentId":31,"tags":{},"startTime":1785477343017,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":846079,"timestamp":6669370657991,"id":31,"parentId":19,"tags":{"page":"/api/anet/providers"},"startTime":1785477342904,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":729318,"timestamp":6669370774919,"id":112,"parentId":39,"tags":{},"startTime":1785477343021,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":844550,"timestamp":6669370659746,"id":39,"parentId":19,"tags":{"page":"/api/hub/files/[fileId]"},"startTime":1785477342906,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":722175,"timestamp":6669370785071,"id":114,"parentId":51,"tags":{},"startTime":1785477343031,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":845386,"timestamp":6669370661905,"id":51,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1785477342908,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":701977,"timestamp":6669370809252,"id":116,"parentId":59,"tags":{},"startTime":1785477343056,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":846216,"timestamp":6669370665068,"id":59,"parentId":19,"tags":{"page":"/api/hub/upload"},"startTime":1785477342911,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":732064,"timestamp":6669370785686,"id":115,"parentId":49,"tags":{},"startTime":1785477343032,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":856470,"timestamp":6669370661345,"id":49,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1785477342908,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":850742,"timestamp":6669370675682,"id":81,"parentId":32,"tags":{},"startTime":1785477342922,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":868097,"timestamp":6669370658405,"id":32,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1785477342905,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":850245,"timestamp":6669370676872,"id":91,"parentId":45,"tags":{},"startTime":1785477342923,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":870126,"timestamp":6669370660980,"id":45,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1785477342907,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":677353,"timestamp":6669370872341,"id":121,"parentId":66,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":882196,"timestamp":6669370667576,"id":66,"parentId":19,"tags":{"page":"/nodes/[alias]"},"startTime":1785477342914,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":685893,"timestamp":6669370872350,"id":122,"parentId":67,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":890608,"timestamp":6669370667709,"id":67,"parentId":19,"tags":{"page":"/nodes"},"startTime":1785477342914,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":712870,"timestamp":6669370872361,"id":123,"parentId":69,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":916875,"timestamp":6669370668446,"id":69,"parentId":19,"tags":{"page":"/providers"},"startTime":1785477342915,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":713796,"timestamp":6669370872371,"id":124,"parentId":70,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":917539,"timestamp":6669370668693,"id":70,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1785477342915,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":720081,"timestamp":6669370872305,"id":118,"parentId":61,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":927286,"timestamp":6669370666025,"id":61,"parentId":19,"tags":{"page":"/login"},"startTime":1785477342912,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":721299,"timestamp":6669370872240,"id":117,"parentId":23,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"}]
2
- [{"name":"check-page","duration":943181,"timestamp":6669370650638,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1785477342897,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":729170,"timestamp":6669370872380,"id":125,"parentId":71,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":932655,"timestamp":6669370668958,"id":71,"parentId":19,"tags":{"page":"/servers"},"startTime":1785477342915,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":731222,"timestamp":6669370872397,"id":127,"parentId":74,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":933869,"timestamp":6669370669797,"id":74,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1785477342916,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":732125,"timestamp":6669370872389,"id":126,"parentId":72,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":935457,"timestamp":6669370669098,"id":72,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1785477342915,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":929704,"timestamp":6669370675980,"id":82,"parentId":33,"tags":{},"startTime":1785477342922,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":947146,"timestamp":6669370658585,"id":33,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1785477342905,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":734761,"timestamp":6669370872407,"id":128,"parentId":75,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":937215,"timestamp":6669370669989,"id":75,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1785477342916,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":735552,"timestamp":6669370872321,"id":119,"parentId":62,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":941636,"timestamp":6669370666278,"id":62,"parentId":19,"tags":{"page":"/logs"},"startTime":1785477342913,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":936556,"timestamp":6669370675558,"id":80,"parentId":30,"tags":{},"startTime":1785477342922,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":954351,"timestamp":6669370657812,"id":30,"parentId":19,"tags":{"page":"/api/anet/providers/probe"},"startTime":1785477342904,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":740756,"timestamp":6669370872416,"id":129,"parentId":76,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":943061,"timestamp":6669370670153,"id":76,"parentId":19,"tags":{"page":"/tasks"},"startTime":1785477342916,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":740888,"timestamp":6669370872426,"id":130,"parentId":64,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":946716,"timestamp":6669370666628,"id":64,"parentId":19,"tags":{"page":"/messages"},"startTime":1785477342913,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":742182,"timestamp":6669370872446,"id":132,"parentId":73,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":945255,"timestamp":6669370669410,"id":73,"parentId":19,"tags":{"page":"/settings"},"startTime":1785477342916,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":749145,"timestamp":6669370872331,"id":120,"parentId":65,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":954255,"timestamp":6669370667270,"id":65,"parentId":19,"tags":{"page":"/node"},"startTime":1785477342914,"traceId":"f56ea0b17b2d3077"},{"name":"is-page-static","duration":796748,"timestamp":6669370872435,"id":131,"parentId":68,"tags":{},"startTime":1785477343119,"traceId":"f56ea0b17b2d3077"},{"name":"check-page","duration":1001419,"timestamp":6669370667826,"id":68,"parentId":19,"tags":{"page":"/"},"startTime":1785477342914,"traceId":"f56ea0b17b2d3077"},{"name":"static-check","duration":1023480,"timestamp":6669370645805,"id":19,"parentId":1,"tags":{},"startTime":1785477342892,"traceId":"f56ea0b17b2d3077"},{"name":"write-routes-manifest","duration":1406,"timestamp":6669371675807,"id":134,"parentId":1,"tags":{},"startTime":1785477343922,"traceId":"f56ea0b17b2d3077"},{"name":"load-dotenv","duration":67,"timestamp":6669371690601,"id":137,"parentId":136,"tags":{},"startTime":1785477343937,"traceId":"f56ea0b17b2d3077"},{"name":"run-export-path-map","duration":948,"timestamp":6669371694164,"id":138,"parentId":136,"tags":{},"startTime":1785477343940,"traceId":"f56ea0b17b2d3077"},{"name":"next-export","duration":783909,"timestamp":6669371688619,"id":136,"parentId":1,"tags":{},"startTime":1785477343935,"traceId":"f56ea0b17b2d3077"},{"name":"move-exported-app-not-found-","duration":618,"timestamp":6669372476248,"id":139,"parentId":135,"tags":{},"startTime":1785477344723,"traceId":"f56ea0b17b2d3077"},{"name":"move-exported-app-global-error-","duration":425,"timestamp":6669372476994,"id":140,"parentId":135,"tags":{},"startTime":1785477344723,"traceId":"f56ea0b17b2d3077"},{"name":"static-generation","duration":798039,"timestamp":6669371681495,"id":135,"parentId":1,"tags":{},"startTime":1785477343928,"traceId":"f56ea0b17b2d3077"},{"name":"write-routes-manifest","duration":475,"timestamp":6669372479817,"id":141,"parentId":1,"tags":{},"startTime":1785477344726,"traceId":"f56ea0b17b2d3077"},{"name":"print-tree-view","duration":4358,"timestamp":6669372501661,"id":142,"parentId":1,"tags":{},"startTime":1785477344748,"traceId":"f56ea0b17b2d3077"},{"name":"write-route-bundle-stats","duration":17058,"timestamp":6669372506060,"id":143,"parentId":1,"tags":{},"startTime":1785477344752,"traceId":"f56ea0b17b2d3077"},{"name":"telemetry-flush","duration":16130,"timestamp":6669372523154,"id":144,"parentId":1,"tags":{},"startTime":1785477344769,"traceId":"f56ea0b17b2d3077"},{"name":"next-build","duration":26831040,"timestamp":6669345708291,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1785477317955,"traceId":"f56ea0b17b2d3077"}]
1
+ [{"name":"generate-buildid","duration":302,"timestamp":6673415614546,"id":4,"parentId":1,"tags":{},"startTime":1785481387861,"traceId":"5feabe64cf97a4d5"},{"name":"load-custom-routes","duration":519,"timestamp":6673415615021,"id":5,"parentId":1,"tags":{},"startTime":1785481387861,"traceId":"5feabe64cf97a4d5"},{"name":"create-dist-dir","duration":847,"timestamp":6673415615597,"id":6,"parentId":1,"tags":{},"startTime":1785481387862,"traceId":"5feabe64cf97a4d5"},{"name":"clean","duration":45060,"timestamp":6673415617284,"id":7,"parentId":1,"tags":{},"startTime":1785481387864,"traceId":"5feabe64cf97a4d5"},{"name":"discover-routes","duration":29292,"timestamp":6673415757757,"id":8,"parentId":1,"tags":{},"startTime":1785481388004,"traceId":"5feabe64cf97a4d5"},{"name":"create-root-mapping","duration":125,"timestamp":6673415787126,"id":9,"parentId":1,"tags":{},"startTime":1785481388033,"traceId":"5feabe64cf97a4d5"},{"name":"generate-route-types","duration":21676,"timestamp":6673415790221,"id":10,"parentId":1,"tags":{},"startTime":1785481388037,"traceId":"5feabe64cf97a4d5"},{"name":"public-dir-conflict-check","duration":115,"timestamp":6673415812048,"id":11,"parentId":1,"tags":{},"startTime":1785481388058,"traceId":"5feabe64cf97a4d5"},{"name":"generate-routes-manifest","duration":5607,"timestamp":6673415812300,"id":12,"parentId":1,"tags":{},"startTime":1785481388059,"traceId":"5feabe64cf97a4d5"},{"name":"run-turbopack","duration":10245225,"timestamp":6673415824516,"id":14,"parentId":1,"tags":{},"startTime":1785481388071,"traceId":"5feabe64cf97a4d5"},{"name":"turbopack-build-events","duration":133,"timestamp":6673416176536,"id":15,"parentId":1,"tags":{},"startTime":1785481388423,"traceId":"5feabe64cf97a4d5"},{"name":"run-typescript","duration":18314018,"timestamp":6673426082964,"id":16,"parentId":1,"tags":{},"startTime":1785481398329,"traceId":"5feabe64cf97a4d5"},{"name":"generate-required-server-files","duration":3299,"timestamp":6673444398497,"id":18,"parentId":1,"tags":{},"startTime":1785481416645,"traceId":"5feabe64cf97a4d5"},{"name":"check-static-error-page","duration":19586,"timestamp":6673444675535,"id":20,"parentId":19,"tags":{},"startTime":1785481416922,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":814586,"timestamp":6673444697025,"id":77,"parentId":21,"tags":{},"startTime":1785481416943,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":835193,"timestamp":6673444676735,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1785481416923,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":855349,"timestamp":6673444697641,"id":81,"parentId":32,"tags":{},"startTime":1785481416944,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":869171,"timestamp":6673444683932,"id":32,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1785481416930,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":860858,"timestamp":6673444697531,"id":80,"parentId":30,"tags":{},"startTime":1785481416944,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":876235,"timestamp":6673444682297,"id":30,"parentId":19,"tags":{"page":"/api/anet/providers/probe"},"startTime":1785481416929,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":860333,"timestamp":6673444698384,"id":85,"parentId":36,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":873931,"timestamp":6673444684816,"id":36,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1785481416931,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":880692,"timestamp":6673444697346,"id":78,"parentId":22,"tags":{},"startTime":1785481416944,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":900278,"timestamp":6673444677858,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1785481416924,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":880430,"timestamp":6673444698061,"id":83,"parentId":34,"tags":{},"startTime":1785481416944,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":894319,"timestamp":6673444684217,"id":34,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1785481416930,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":914819,"timestamp":6673444697455,"id":79,"parentId":29,"tags":{},"startTime":1785481416944,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":930267,"timestamp":6673444682109,"id":29,"parentId":19,"tags":{"page":"/api/anet/providers/probe-results"},"startTime":1785481416928,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":922123,"timestamp":6673444698193,"id":84,"parentId":35,"tags":{},"startTime":1785481416944,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":936101,"timestamp":6673444684313,"id":35,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1785481416931,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":922252,"timestamp":6673444698457,"id":86,"parentId":37,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":935709,"timestamp":6673444685044,"id":37,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1785481416931,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":922211,"timestamp":6673444698673,"id":90,"parentId":43,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":933427,"timestamp":6673444687484,"id":43,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1785481416934,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":935547,"timestamp":6673444698647,"id":89,"parentId":42,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":946851,"timestamp":6673444687426,"id":42,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1785481416934,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":943134,"timestamp":6673444698690,"id":91,"parentId":45,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":954037,"timestamp":6673444687860,"id":45,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1785481416934,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":953659,"timestamp":6673444698704,"id":92,"parentId":46,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":964422,"timestamp":6673444688022,"id":46,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1785481416934,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":954143,"timestamp":6673444698520,"id":87,"parentId":40,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":965455,"timestamp":6673444687243,"id":40,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1785481416934,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":964019,"timestamp":6673444698717,"id":93,"parentId":47,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":974692,"timestamp":6673444688116,"id":47,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1785481416934,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":966707,"timestamp":6673444698737,"id":95,"parentId":50,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":977061,"timestamp":6673444688457,"id":50,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1785481416935,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":967875,"timestamp":6673444698726,"id":94,"parentId":48,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":978443,"timestamp":6673444688209,"id":48,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1785481416934,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":970435,"timestamp":6673444698755,"id":97,"parentId":53,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":980274,"timestamp":6673444688977,"id":53,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1785481416935,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":981529,"timestamp":6673444698748,"id":96,"parentId":52,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":991520,"timestamp":6673444688848,"id":52,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1785481416935,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":983988,"timestamp":6673444698797,"id":101,"parentId":57,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":993543,"timestamp":6673444689303,"id":57,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1785481416936,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":988339,"timestamp":6673444698767,"id":98,"parentId":54,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":998070,"timestamp":6673444689094,"id":54,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1785481416935,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":988550,"timestamp":6673444698778,"id":99,"parentId":55,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":998210,"timestamp":6673444689167,"id":55,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1785481416935,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":990959,"timestamp":6673444700461,"id":103,"parentId":60,"tags":{},"startTime":1785481416947,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1001793,"timestamp":6673444689687,"id":60,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1785481416936,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":990025,"timestamp":6673444704788,"id":105,"parentId":24,"tags":{},"startTime":1785481416951,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1016532,"timestamp":6673444678328,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1785481416925,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":989841,"timestamp":6673444706087,"id":106,"parentId":25,"tags":{},"startTime":1785481416952,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1015643,"timestamp":6673444680331,"id":25,"parentId":19,"tags":{"page":"/api/anet/host-supervisors"},"startTime":1785481416927,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":999472,"timestamp":6673444700439,"id":102,"parentId":58,"tags":{},"startTime":1785481416947,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1010591,"timestamp":6673444689369,"id":58,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1785481416936,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1007510,"timestamp":6673444700476,"id":104,"parentId":63,"tags":{},"startTime":1785481416947,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1017820,"timestamp":6673444690416,"id":63,"parentId":19,"tags":{"page":"/manifest.webmanifest"},"startTime":1785481416937,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1003948,"timestamp":6673444708782,"id":107,"parentId":26,"tags":{},"startTime":1785481416955,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1032096,"timestamp":6673444680691,"id":26,"parentId":19,"tags":{"page":"/api/anet/node-config"},"startTime":1785481416927,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":994442,"timestamp":6673444718494,"id":109,"parentId":31,"tags":{},"startTime":1785481416965,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1030495,"timestamp":6673444682473,"id":31,"parentId":19,"tags":{"page":"/api/anet/providers"},"startTime":1785481416929,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":993363,"timestamp":6673444719769,"id":110,"parentId":38,"tags":{},"startTime":1785481416966,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1028002,"timestamp":6673444685160,"id":38,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1785481416931,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1001431,"timestamp":6673444725946,"id":111,"parentId":28,"tags":{},"startTime":1785481416972,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1045782,"timestamp":6673444681674,"id":28,"parentId":19,"tags":{"page":"/api/anet/node-lifecycle"},"startTime":1785481416928,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1016182,"timestamp":6673444711460,"id":108,"parentId":27,"tags":{},"startTime":1785481416958,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1046601,"timestamp":6673444681088,"id":27,"parentId":19,"tags":{"page":"/api/anet/node-create"},"startTime":1785481416927,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1001484,"timestamp":6673444732642,"id":113,"parentId":44,"tags":{},"startTime":1785481416979,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1046685,"timestamp":6673444687539,"id":44,"parentId":19,"tags":{"page":"/api/hub/nodes/[ref]/attrs"},"startTime":1785481416934,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1035631,"timestamp":6673444698789,"id":100,"parentId":56,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1045235,"timestamp":6673444689221,"id":56,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1785481416935,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":996778,"timestamp":6673444737808,"id":115,"parentId":51,"tags":{},"startTime":1785481416984,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1046041,"timestamp":6673444688587,"id":51,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1785481416935,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":996497,"timestamp":6673444739984,"id":116,"parentId":59,"tags":{},"startTime":1785481416986,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1047105,"timestamp":6673444689425,"id":59,"parentId":19,"tags":{"page":"/api/hub/upload"},"startTime":1785481416936,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1041669,"timestamp":6673444697901,"id":82,"parentId":33,"tags":{},"startTime":1785481416944,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1055512,"timestamp":6673444684111,"id":33,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1785481416930,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1013662,"timestamp":6673444730672,"id":112,"parentId":39,"tags":{},"startTime":1785481416977,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1059017,"timestamp":6673444685398,"id":39,"parentId":19,"tags":{"page":"/api/hub/files/[fileId]"},"startTime":1785481416932,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1011193,"timestamp":6673444733387,"id":114,"parentId":49,"tags":{},"startTime":1785481416980,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1056343,"timestamp":6673444688270,"id":49,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1785481416935,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":987196,"timestamp":6673444766620,"id":122,"parentId":67,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1061047,"timestamp":6673444692840,"id":67,"parentId":19,"tags":{"page":"/nodes"},"startTime":1785481416939,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1009416,"timestamp":6673444766633,"id":123,"parentId":69,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1082697,"timestamp":6673444693432,"id":69,"parentId":19,"tags":{"page":"/providers"},"startTime":1785481416940,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1021760,"timestamp":6673444766647,"id":124,"parentId":70,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1094813,"timestamp":6673444693670,"id":70,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1785481416940,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1034453,"timestamp":6673444766656,"id":125,"parentId":71,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1107276,"timestamp":6673444693911,"id":71,"parentId":19,"tags":{"page":"/servers"},"startTime":1785481416940,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1045033,"timestamp":6673444766560,"id":118,"parentId":61,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"}]
2
+ [{"name":"check-page","duration":1121862,"timestamp":6673444690071,"id":61,"parentId":19,"tags":{"page":"/login"},"startTime":1785481416936,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1045531,"timestamp":6673444766668,"id":126,"parentId":72,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1118165,"timestamp":6673444694078,"id":72,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1785481416940,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1060496,"timestamp":6673444766680,"id":127,"parentId":74,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1132475,"timestamp":6673444694772,"id":74,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1785481416941,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1071336,"timestamp":6673444766575,"id":119,"parentId":62,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1147748,"timestamp":6673444690244,"id":62,"parentId":19,"tags":{"page":"/logs"},"startTime":1785481416937,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1077413,"timestamp":6673444766701,"id":129,"parentId":76,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1149207,"timestamp":6673444694987,"id":76,"parentId":19,"tags":{"page":"/tasks"},"startTime":1785481416941,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1079004,"timestamp":6673444766507,"id":117,"parentId":23,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1167447,"timestamp":6673444678125,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1785481416924,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1083528,"timestamp":6673444766692,"id":128,"parentId":75,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1155377,"timestamp":6673444694906,"id":75,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1785481416941,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1085554,"timestamp":6673444766731,"id":131,"parentId":68,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1159417,"timestamp":6673444692928,"id":68,"parentId":19,"tags":{"page":"/"},"startTime":1785481416939,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1086334,"timestamp":6673444766718,"id":130,"parentId":64,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1162572,"timestamp":6673444690524,"id":64,"parentId":19,"tags":{"page":"/messages"},"startTime":1785481416937,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1077016,"timestamp":6673444776480,"id":132,"parentId":73,"tags":{},"startTime":1785481417023,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1159154,"timestamp":6673444694387,"id":73,"parentId":19,"tags":{"page":"/settings"},"startTime":1785481416941,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1194189,"timestamp":6673444698546,"id":88,"parentId":41,"tags":{},"startTime":1785481416945,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1205488,"timestamp":6673444687345,"id":41,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1785481416934,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1137218,"timestamp":6673444766588,"id":120,"parentId":65,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1212627,"timestamp":6673444691260,"id":65,"parentId":19,"tags":{"page":"/node"},"startTime":1785481416938,"traceId":"5feabe64cf97a4d5"},{"name":"is-page-static","duration":1164352,"timestamp":6673444766604,"id":121,"parentId":66,"tags":{},"startTime":1785481417013,"traceId":"5feabe64cf97a4d5"},{"name":"check-page","duration":1238375,"timestamp":6673444692671,"id":66,"parentId":19,"tags":{"page":"/nodes/[alias]"},"startTime":1785481416939,"traceId":"5feabe64cf97a4d5"},{"name":"static-check","duration":1256545,"timestamp":6673444674543,"id":19,"parentId":1,"tags":{},"startTime":1785481416921,"traceId":"5feabe64cf97a4d5"},{"name":"write-routes-manifest","duration":791,"timestamp":6673445942992,"id":134,"parentId":1,"tags":{},"startTime":1785481418189,"traceId":"5feabe64cf97a4d5"},{"name":"load-dotenv","duration":56,"timestamp":6673445956116,"id":137,"parentId":136,"tags":{},"startTime":1785481418202,"traceId":"5feabe64cf97a4d5"},{"name":"run-export-path-map","duration":1087,"timestamp":6673445961447,"id":138,"parentId":136,"tags":{},"startTime":1785481418208,"traceId":"5feabe64cf97a4d5"},{"name":"next-export","duration":1200491,"timestamp":6673445954788,"id":136,"parentId":1,"tags":{},"startTime":1785481418201,"traceId":"5feabe64cf97a4d5"},{"name":"move-exported-app-not-found-","duration":819,"timestamp":6673447161291,"id":139,"parentId":135,"tags":{},"startTime":1785481419408,"traceId":"5feabe64cf97a4d5"},{"name":"move-exported-app-global-error-","duration":861,"timestamp":6673447162248,"id":140,"parentId":135,"tags":{},"startTime":1785481419409,"traceId":"5feabe64cf97a4d5"},{"name":"static-generation","duration":1218609,"timestamp":6673445948161,"id":135,"parentId":1,"tags":{},"startTime":1785481418194,"traceId":"5feabe64cf97a4d5"},{"name":"write-routes-manifest","duration":562,"timestamp":6673447167131,"id":141,"parentId":1,"tags":{},"startTime":1785481419413,"traceId":"5feabe64cf97a4d5"},{"name":"print-tree-view","duration":6068,"timestamp":6673447202426,"id":142,"parentId":1,"tags":{},"startTime":1785481419449,"traceId":"5feabe64cf97a4d5"},{"name":"write-route-bundle-stats","duration":40247,"timestamp":6673447208546,"id":143,"parentId":1,"tags":{},"startTime":1785481419455,"traceId":"5feabe64cf97a4d5"},{"name":"telemetry-flush","duration":109,"timestamp":6673447248838,"id":144,"parentId":1,"tags":{},"startTime":1785481419495,"traceId":"5feabe64cf97a4d5"},{"name":"next-build","duration":31697189,"timestamp":6673415551788,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1785481387798,"traceId":"5feabe64cf97a4d5"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":9874979,"timestamp":6669345980984,"id":14,"parentId":1,"tags":{},"startTime":1785477318227,"traceId":"f56ea0b17b2d3077"},{"name":"turbopack-build-events","duration":111,"timestamp":6669346304744,"id":15,"parentId":1,"tags":{},"startTime":1785477318551,"traceId":"f56ea0b17b2d3077"},{"name":"run-typescript","duration":14547771,"timestamp":6669355866126,"id":16,"parentId":1,"tags":{},"startTime":1785477328112,"traceId":"f56ea0b17b2d3077"},{"name":"static-check","duration":1023480,"timestamp":6669370645805,"id":19,"parentId":1,"tags":{},"startTime":1785477342892,"traceId":"f56ea0b17b2d3077"},{"name":"static-generation","duration":798039,"timestamp":6669371681495,"id":135,"parentId":1,"tags":{},"startTime":1785477343928,"traceId":"f56ea0b17b2d3077"},{"name":"telemetry-flush","duration":16130,"timestamp":6669372523154,"id":144,"parentId":1,"tags":{},"startTime":1785477344769,"traceId":"f56ea0b17b2d3077"},{"name":"next-build","duration":26831040,"timestamp":6669345708291,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1785477317955,"traceId":"f56ea0b17b2d3077"}]
1
+ [{"name":"run-turbopack","duration":10245225,"timestamp":6673415824516,"id":14,"parentId":1,"tags":{},"startTime":1785481388071,"traceId":"5feabe64cf97a4d5"},{"name":"turbopack-build-events","duration":133,"timestamp":6673416176536,"id":15,"parentId":1,"tags":{},"startTime":1785481388423,"traceId":"5feabe64cf97a4d5"},{"name":"run-typescript","duration":18314018,"timestamp":6673426082964,"id":16,"parentId":1,"tags":{},"startTime":1785481398329,"traceId":"5feabe64cf97a4d5"},{"name":"static-check","duration":1256545,"timestamp":6673444674543,"id":19,"parentId":1,"tags":{},"startTime":1785481416921,"traceId":"5feabe64cf97a4d5"},{"name":"static-generation","duration":1218609,"timestamp":6673445948161,"id":135,"parentId":1,"tags":{},"startTime":1785481418194,"traceId":"5feabe64cf97a4d5"},{"name":"telemetry-flush","duration":109,"timestamp":6673447248838,"id":144,"parentId":1,"tags":{},"startTime":1785481419495,"traceId":"5feabe64cf97a4d5"},{"name":"next-build","duration":31697189,"timestamp":6673415551788,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1785481387798,"traceId":"5feabe64cf97a4d5"}]
package/CHANGELOG.md ADDED
@@ -0,0 +1,143 @@
1
+ # Changelog
2
+
3
+ All user-facing changes to `@sleep2agi/agent-network-dashboard`.
4
+
5
+ Format: chronological release notes; each entry lists what *changed for a user* between one release and the next, not per-commit history. Preview versions (`X.Y.Z-preview.N`) are dev-channel iterations and are collapsed under the stable release they feed into.
6
+
7
+ ---
8
+
9
+ ## 0.6.3 — 2026-07-31
10
+
11
+ **156 commits across 51 previews (0.6.3-preview.0 … 0.6.3-preview.52), plus 2 skipped preview minors (0.6.1, 0.6.2 — never had a stable release, all their preview.N was folded into 0.6.3).**
12
+
13
+ If you install from `latest` on npm, this is the first stable version after 0.6.0 (2026-06-04). Everything below arrived in that window.
14
+
15
+ ### Layout — dashboard is now a three-pane app
16
+
17
+ - **Persistent node list rail on `/nodes`** — the left column stays put as you switch between agents; no more full page redraw when you click a node.
18
+ - **Persistent chat pane** — the middle/right column keeps the conversation open across nav, `/nodes/[alias]` deep links you straight into that agent's chat.
19
+ - **Selected node = list + chat, the wide table yields** — when you pick an agent, the table view collapses to leave room for the conversation.
20
+ - **Third sidebar mode: 56px icon rail (Feishu-style)** — new default. Was previously "expanded" or "hidden"; the icon rail keeps navigation reachable without eating horizontal space. `Sidebar` remembers your last choice.
21
+ - **Per-column scrolling** — each of the three columns scrolls independently; no more the whole page moving when you scroll one list.
22
+ - **Layered background colors across the three columns** — SPEC §2 palette, easier to tell columns apart at a glance.
23
+ - **`/nodes` opens straight into a conversation** — the first available agent's chat is pre-selected, so a fresh visit is one click closer to sending a message.
24
+
25
+ ### Search — pinyin everywhere
26
+
27
+ - **Top-of-rail search on `/nodes`** — filter the node list as you type.
28
+ - **Pinyin match on Chinese names** — typing `zhangsan` finds `张三`; the same matcher powers `/nodes` search, `/messages` search, and chat `@` mentions (one shared implementation, so behavior is identical across surfaces).
29
+ - **`Cmd/Ctrl+F` inside an open chat** opens a search box that scrolls to the matching bubble.
30
+ - **Filter `/nodes` by team + tag** (AND semantics) with distinct empty states so "no matches" and "no data yet" look different.
31
+
32
+ ### Chat — the conversation surface is much closer to WeChat/Feishu
33
+
34
+ - **Right-click menu on a conversation** (pin, mute, mark read, quick actions).
35
+ - **Keyboard navigation** — up/down arrows walk the conversation list.
36
+ - **Settings drawer** reachable directly from the chat header.
37
+ - **Send feedback loop**: in-flight spinner while a message is going out, click-to-resend on failure (tap-to-resend on touch), red banner with human-readable failure reason.
38
+ - **Send failures translate hub status codes into human labels** — you see "对方节点离线,稍后重试" instead of `sse_delivery_failed`.
39
+ - **Live incoming messages while a chat panel is idle** — no need to refocus to receive.
40
+ - **WeChat-style time grouping** — separators between bubble clusters instead of a stamp under every bubble; one shared time formatter across chat + `/messages` dividers.
41
+ - **Chat images**: click to open lightbox, multi-image navigation (arrows), loading + error states.
42
+ - **Videos and images inline** — server-side attachments render in-place instead of showing as "file" links; layout picks inline vs attachment card by mime, never accidentally inlines something dangerous.
43
+ - **Attachment upload**: progress indicator (`上传图片 k/n…`), Bearer-safe download proxy, error copy no longer prefixed with `network error:`. Failed uploads can be retried and will re-upload the images (a resend-loss bug fixed).
44
+ - **Per-conversation drafts persist** — `[草稿]` marker on the conversation in the list; typing continues where you left off.
45
+ - **New-message pill** floats above the composer when messages arrive while you're scrolled up.
46
+ - **In-conversation search** (`Cmd/Ctrl+F`, see above) — scrolls the matching bubble into view.
47
+ - **Long messages collapse** into a "show more" preview so the pane doesn't get eaten by a wall of text.
48
+ - **`@` mentions**: pinyin typeahead + keyboard navigation to pick a target.
49
+ - **Copy button** on each message bubble.
50
+ - **Composer refocuses** when you return to the tab.
51
+
52
+ ### Conversation list (nudged toward WeChat semantics)
53
+
54
+ - **Pinned conversations** (`micro-⌘⇧P` or right-click) sort to the top and stay there.
55
+ - **Per-conversation mute** with a bell-slash indicator in the chat header + CommandCenter tab; muted conversations don't emit unread badges.
56
+ - **Unread count badges** on each conversation with a `(N)` mirror in the browser tab title.
57
+ - **Favicon red-dot** while unreads exist — visible even when the tab isn't focused.
58
+ - **Presence in chat header + CommandCenter tab dot** — see at a glance whether the agent you're talking to is online.
59
+ - **Opened-conversation sort by recency**, WeChat-style — the one you just messaged rises to the top; unopened order stays alphabetical.
60
+ - **Working-state demoted to a badge** in a "quiet grid" view (unchanged from busy view — this is the compact card mode).
61
+
62
+ ### `/tasks` and `/messages`
63
+
64
+ - **`/tasks` is now a two-column list + detail layout** (Feishu-style). Deep links preserve which task is open.
65
+ - **`/messages` visual alignment with the chat pane** — matches SPEC §2/§5/§6 so it feels like the same app, not a different tool.
66
+
67
+ ### Mobile
68
+
69
+ - **Two-level navigation for phone form** — list page ⇄ chat page, like Feishu's phone client. No more trying to fit three columns onto a 375px screen.
70
+ - **Chat manners**: Enter inserts newline on touch (not send — send is via the button), 44px minimum tap targets.
71
+
72
+ ### Node management
73
+
74
+ - **`/nodes` node-attrs editor** — set/edit `display_name`, `team`, `tags` on a node from a modal.
75
+ - **Symmetric pin-attachment display** — pinned attachment renders consistently across chat vs. detail views.
76
+ - **Node lifecycle UI**: stop / delete / restart from the node card, with optimistic-then-ack transitions and a toast when the ack lands.
77
+ - **Rename entry** with lifecycle capability gating (won't offer the option if the node isn't in a renamable state).
78
+ - **Node settings panel** with a `⋮` menu, model + flags wired to the real form, "apply" triggers the actual lifecycle path (not just a UI toggle).
79
+ - **Removed dead UI**: the old "重命名 / 停止 / 删除" tiles that never worked.
80
+
81
+ ### Model providers (RFC-028)
82
+
83
+ - **Providers CRUD in a dedicated left-nav entry** — create/edit/delete providers with the RFC-028 reachability matrix visible.
84
+ - **Preset catalog**: DeepSeek / MiniMax / GLM / Claude presets with key-only create (paste your key, the rest is filled).
85
+ - **Node-create wizard filters runtimes** by what the target host's daemon actually supports (`daemon.runtimes_supported`) — no more picking `codex-sdk` on a host that can't run it.
86
+ - **Wizard picks a sensible default model** so hitting Enter without picking one doesn't 400 at the hub.
87
+
88
+ ### Topology view
89
+
90
+ - **20px node illustrations** on the topology graph.
91
+ - **Hover-detail card** now un-gated; hover any node to see who/what it is.
92
+ - **Illustrated avatars on the graph** when a node's rendered diameter ≥ 48px (design-owned pool of 20 WebP images at 256px, stable hash assignment).
93
+
94
+ ### Custom avatars
95
+
96
+ - Design-owned illustration pool of 20 avatars; `_pool` manifest with stable hash-based assignment (same alias always gets the same face). Zero-friction handoff — the design team drops WebPs and the checker script verifies them.
97
+
98
+ ### Reliability & performance
99
+
100
+ - **Build-on-deploy guard**: the container refuses to serve a stale `.next` build; catches the load-timeout that "chunk 500s" symptom pointed at.
101
+ - **Chat history retry ladder + graceful degrade** on slow transport — the panel gives up cleanly instead of hanging a spinner forever.
102
+ - **Shared SSE channel** — one `EventSource` per URL app-wide (was one per component using it).
103
+ - **Content-visibility on the agent grid** — 192-card grid uses native lazy render.
104
+ - **Memoized AgentCard** — re-render storm on the grid dropped from ~1920 to ~28 per 30s (−98.5%).
105
+ - **Only the visible chat tab polls** — background tabs sit quiet (16 → 4 fetches/min at 4 tabs open).
106
+ - **60s presence hysteresis** — an agent doesn't flap between "online" and "offline" from one missed heartbeat.
107
+ - **P0 fix**: dashboard was dropping `network_id` on send paths — messages didn't reach the intended agent. Every send path now threads `network_id`.
108
+ - **P0 fix**: `/health` and `/api/*` proxies pass through `?network_id=` and `&skip_stats=1` where the hub requires them (previously stripped, made SSE proxy silently useless under utok_ auth).
109
+ - **P0 fix**: default theme back to `classic dark` after a preview that shipped Slack Light broke muscle memory. The Slack Light skin stays available in Settings.
110
+
111
+ ### Deprecated / removed
112
+
113
+ - **DispatchPanel** (183 LOC) — dead component removed as part of the #217 simplification sweep.
114
+ - **Old node-settings UI tiles** (see "Node management" above) that were never wired.
115
+
116
+ ---
117
+
118
+ ## 🔴 Upgrade notes (0.6.0 → 0.6.3)
119
+
120
+ **Session cookies are compatible.** The dashboard session cookie format (`v3:<token>`, where `<token>` starts with `atok_` / `utok_` / `ntok_`) is unchanged between 0.6.0 and 0.6.3 — the read logic on both versions is byte-identical when you diff them. **Users logged in on 0.6.0 stay logged in after upgrading.**
121
+
122
+ If, after upgrading, opening the dashboard behaves oddly (redirect loop, half-loaded pages, `/login` when you shouldn't be there):
123
+
124
+ > **Clear your dashboard cookies and log in again.** That is the only known recovery path, and it always works. No data loss — your account, network memberships, node history, and message history live server-side.
125
+
126
+ *Scope of this claim*: verified by static comparison of the two versions' auth code (byte-identical `v3:` prefix + `atok_/utok_/ntok_` shape checks + length gate) and by curl probes against 0.6.3 with several malformed cookie shapes — all landed at `/login` cleanly, no half-authenticated state observed. **Not verified with a live browser session** — multi-hop redirects, CSRF token refresh, and SSE reconnect carrying old cookies are outside what curl covers. Report anything that doesn't match the above and we'll dig in.
127
+
128
+ ### New runtime dependency
129
+
130
+ `pinyin-pro ^3.28.1` was added (powers the pinyin matcher used across search + `@` mentions). Adds roughly 316–564 KB to the shipped bundle (minified, before gzip); mostly affects first-page-load size, not subsequent navigation.
131
+
132
+ ### No breaking changes to configuration
133
+
134
+ - **No new required environment variables.**
135
+ - **No config-file schema changes.**
136
+ - **No database or cache migration** — the dashboard is stateless; state lives at the hub.
137
+ - **CLI entry point unchanged** (`agent-network-dashboard`, from `apps/desktop/electron/main.cjs`).
138
+
139
+ ---
140
+
141
+ ## 0.6.0 — 2026-06-04
142
+
143
+ Formal release after 27 rounds of the #217 simplification sweep. See git history for the full delta from 0.5.x.