@sleep2agi/agent-network-dashboard 0.4.6-preview.220 → 0.4.6-preview.221

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 (142) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +4 -4
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/prerender-manifest.json +3 -3
  6. package/.next/server/app/_global-error.html +1 -1
  7. package/.next/server/app/_global-error.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/.next/server/app/_not-found.html +1 -1
  14. package/.next/server/app/_not-found.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  20. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  21. package/.next/server/app/admin.html +1 -1
  22. package/.next/server/app/admin.rsc +1 -1
  23. package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
  24. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  25. package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
  27. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  28. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  29. package/.next/server/app/index.html +2 -2
  30. package/.next/server/app/index.rsc +2 -2
  31. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  32. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  33. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  34. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  35. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  36. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  37. package/.next/server/app/login.html +2 -2
  38. package/.next/server/app/login.rsc +2 -2
  39. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  40. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  41. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  43. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  44. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  45. package/.next/server/app/logs.html +1 -1
  46. package/.next/server/app/logs.rsc +1 -1
  47. package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
  48. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  49. package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
  50. package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  52. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  53. package/.next/server/app/messages.html +1 -1
  54. package/.next/server/app/messages.rsc +1 -1
  55. package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
  56. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  57. package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
  58. package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
  59. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  60. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  61. package/.next/server/app/node.html +1 -1
  62. package/.next/server/app/node.rsc +1 -1
  63. package/.next/server/app/node.segments/_full.segment.rsc +1 -1
  64. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  65. package/.next/server/app/node.segments/_index.segment.rsc +1 -1
  66. package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
  67. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  68. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  69. package/.next/server/app/nodes.html +1 -1
  70. package/.next/server/app/nodes.rsc +1 -1
  71. package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
  72. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  73. package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
  74. package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
  75. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
  76. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  77. package/.next/server/app/page_client-reference-manifest.js +1 -1
  78. package/.next/server/app/server-logs.html +1 -1
  79. package/.next/server/app/server-logs.rsc +1 -1
  80. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  85. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  86. package/.next/server/app/settings/networks.html +1 -1
  87. package/.next/server/app/settings/networks.rsc +1 -1
  88. package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
  89. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  90. package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
  91. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
  92. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  93. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  94. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  95. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  96. package/.next/server/app/settings/tokens.html +1 -1
  97. package/.next/server/app/settings/tokens.rsc +1 -1
  98. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
  99. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  100. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
  101. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
  102. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  103. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  104. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  105. package/.next/server/app/settings.html +2 -2
  106. package/.next/server/app/settings.rsc +2 -2
  107. package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  108. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  109. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  110. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  111. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  112. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  113. package/.next/server/app/tasks.html +1 -1
  114. package/.next/server/app/tasks.rsc +1 -1
  115. package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
  116. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  117. package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
  118. package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
  119. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  120. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  121. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +1 -1
  122. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  123. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  124. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  125. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  126. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  127. package/.next/server/middleware-build-manifest.js +3 -3
  128. package/.next/server/pages/404.html +1 -1
  129. package/.next/server/pages/500.html +1 -1
  130. package/.next/server/server-reference-manifest.js +1 -1
  131. package/.next/server/server-reference-manifest.json +1 -1
  132. package/.next/static/chunks/{0h5i3vkb6nloa.js → 0i_acp5c7_kc5.js} +1 -1
  133. package/.next/static/chunks/{16o3.7zw1l.-g.js → 0j537s3zamtja.js} +1 -1
  134. package/.next/static/chunks/{0da64ezyfmcem.js → 14_8w4~_61h5q.js} +1 -1
  135. package/.next/trace +2 -2
  136. package/.next/trace-build +1 -1
  137. package/app/components/TopoGraph.tsx +38 -6
  138. package/package.json +1 -1
  139. package/scripts/topo-pulse-dot-crossfade-test.mjs +122 -0
  140. /package/.next/static/{WwoMVd5LJf4yU99_Ggd23 → AuG2SpE5-8Rsg41_lUosC}/_buildManifest.js +0 -0
  141. /package/.next/static/{WwoMVd5LJf4yU99_Ggd23 → AuG2SpE5-8Rsg41_lUosC}/_clientMiddlewareManifest.js +0 -0
  142. /package/.next/static/{WwoMVd5LJf4yU99_Ggd23 → AuG2SpE5-8Rsg41_lUosC}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.6-preview.220"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59276,e=>{"use strict";var s=e.i(12629),a=e.i(11449);let t=async e=>{let s=await fetch(e);if(401===s.status)throw window.location.assign("/login"),Error("unauthorized");return s.json()},r={refreshInterval:5e3,dedupingInterval:3e3};function n(e,s){if(!s)return e;let a=e.includes("?")?"&":"?";return`${e}${a}network_id=${encodeURIComponent(s)}`}e.s(["useAnetConfig",0,function(){let{data:e}=(0,s.default)("/api/anet/config",t,{refreshInterval:3e4});return{config:e||null}},"useHealth",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/health",t,r);return{health:e||null,error:a}},"useLicense",0,function(){let{data:e,error:a}=(0,s.default)("/api/hub/license",t,{refreshInterval:6e4});return{license:e?.ok?e:null,error:a}},"useMessages",0,function(e=100){let{networkId:l}=(0,a.useNetworkId)(),{data:i,error:c,isLoading:d}=(0,s.default)(n(`/api/hub/messages?limit=${e}`,l),t,r);return{messages:i?.messages||[],error:c,isLoading:d}},"useSessions",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i,isLoading:c}=(0,s.default)(n("/api/hub/status",e),t,r);return{sessions:l?.sessions||[],hint:l?._hint,error:i,isLoading:c}},"useStats",0,function(){let{networkId:e}=(0,a.useNetworkId)(),{data:l,error:i}=(0,s.default)(n("/api/hub/stats",e),t,r);return{stats:l?.ok?l:null,error:i}},"useTasks",0,function(e){let{networkId:l}=(0,a.useNetworkId)(),i=new URLSearchParams({limit:"100",...e}).toString(),{data:c,error:d,isLoading:o}=(0,s.default)(n(`/api/hub/tasks?${i}`,l),t,r);return{tasks:c?.tasks||[],count:c?.count??0,source:c?.source,error:d,isLoading:o}}])},70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.6-preview.221"],70286)},65610,e=>{"use strict";var s=e.i(22381),a=e.i(23910),t=e.i(56839),r=e.i(59276),n=e.i(70286);e.s(["default",0,function(){let{config:e}=(0,r.useAnetConfig)(),{health:l}=(0,r.useHealth)(),{license:i}=(0,r.useLicense)(),[c,d]=(0,a.useState)(""),[o,x]=(0,a.useState)(""),[m,h]=(0,a.useState)(""),[g,u]=(0,a.useState)(""),[p,N]=(0,a.useState)(""),b="flex flex-col gap-1 sm:flex-row sm:items-start sm:justify-between",j="break-all sm:max-w-[320px] sm:text-right";return(0,s.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-white mb-3 lg:ml-0 ml-10",children:"Settings"}),(0,s.jsx)("nav",{className:"mb-8 flex flex-wrap gap-1 text-xs",children:[{href:"#connection",label:"Connection"},{href:"#account",label:"Account"},{href:"#resources",label:"Resources"}].map(e=>(0,s.jsx)("a",{href:e.href,className:"rounded-md px-2.5 py-1 text-gray-500 hover:text-cyan-300 hover:bg-cyan-500/10 transition-colors",children:e.label},e.href))}),(0,s.jsxs)("div",{className:"max-w-2xl space-y-10",children:[(0,s.jsxs)("div",{id:"connection",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Connection"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"CommHub Connection"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500 shrink-0",children:"Hub URL"}),(0,s.jsx)("span",{className:`text-cyan-300 ${j}`,children:e?.hub||"not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Config Source"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:e?.source==="file"?"Local file (~/.anet/config.json)":e?.source==="runtime-env"?"Vercel env vars":"Missing"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Auth Token"}),(0,s.jsx)("span",{className:`${e?.tokenConfigured?"text-green-400":"text-red-400"} ${j}`,children:e?.tokenConfigured?`Configured (${e.tokenPreview})`:"Not configured"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Server Auth"}),(0,s.jsx)("span",{className:`${l?.auth==="enabled"?"text-green-400":"text-yellow-400"} sm:text-right`,children:l?.auth||"--"})]}),e?.error&&(0,s.jsx)("div",{className:"border-t border-[#2a2a4a] pt-3 text-xs text-gray-600",children:e.error})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Server Info"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.version||"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Sessions"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sessions??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsxs)("span",{className:"text-gray-500",children:["SSE streams ",(0,s.jsx)("span",{className:"text-gray-600",children:"· server"})]}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.sse_connections??"--"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Uptime"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:l?.uptime?`${Math.floor(l.uptime/3600)}h ${Math.floor(l.uptime%3600/60)}m`:"--"})]})]})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Dashboard"}),(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Version"}),(0,s.jsx)("span",{className:`text-gray-300 font-mono ${j}`,title:"From package.json @sleep2agi/agent-network-dashboard",children:n.DASHBOARD_VERSION})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Data Layer"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"SWR (5s refresh, 3s dedup)"})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Pages"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:"Overview, Tasks, Nodes, Messages, Networks, Audit, Server Logs, Admin, Settings"})]})]})]})]}),(0,s.jsxs)("div",{id:"account",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Account"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsxs)("h2",{className:"text-sm font-semibold text-gray-300 mb-4 flex items-center gap-2",children:["License",i?.license&&(0,s.jsxs)("span",{className:`inline-flex items-center gap-1.5 text-[10px] font-medium px-2 py-0.5 rounded-full border ${"pro"===i.license.type?"text-green-300 bg-green-500/10 border-green-500/30":i.license.days_left<=7?"text-red-300 bg-red-500/10 border-red-500/30":"text-amber-300 bg-amber-500/10 border-amber-500/30"}`,children:[(0,s.jsx)("span",{"aria-hidden":!0,className:"w-1.5 h-1.5 rounded-full bg-current"}),i.license.type,i.license.days_left?` \xb7 ${i.license.days_left}d left`:""]})]}),i?.license?(0,s.jsxs)("div",{className:"space-y-3 text-sm",children:[i.license.days_left<=7&&(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-red-400 font-medium",children:"⚠ Expiring soon"}),(0,s.jsxs)("span",{className:"text-red-400",children:[i.license.days_left," days left"]})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Expires"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.license.expires_at})]}),i.limits&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Agents"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_agents})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Max Networks"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_networks})]}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)("span",{className:"text-gray-500",children:"Tasks/Day"}),(0,s.jsx)("span",{className:`text-gray-300 ${j}`,children:i.limits.max_tasks_day})]})]}),(0,s.jsxs)("div",{className:"pt-3 border-t border-[#2a2a4a]",children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("input",{type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"anet-XXXX-XXXX-XXXX-XXXX",className:"flex-1 bg-[#0a0a15] border border-[#2a2a4a] rounded px-3 py-2 text-xs text-white placeholder-gray-600 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!c.trim())return;let e=await fetch("/api/hub/license",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:c})}),s=await e.json();x(s.ok?`Activated: ${s.type}`:`Failed: ${s.error}`),s.ok&&d(""),setTimeout(()=>x(""),5e3)},className:"px-3 py-2 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded transition-colors",children:"Activate"})]}),o&&(0,s.jsx)("div",{className:`mt-2 text-xs ${o.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:o})]})]}):(0,s.jsx)("div",{className:"text-xs text-gray-600",children:"License info not available"})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Change Password"}),(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("input",{type:"password",value:m,onChange:e=>h(e.target.value),placeholder:"Current password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("input",{type:"password",value:g,onChange:e=>u(e.target.value),placeholder:"New password",className:"w-full bg-[#0a0a15] border border-[#2a2a4a] rounded-lg px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-cyan-500/50 focus:outline-none"}),(0,s.jsx)("button",{onClick:async()=>{if(!m||!g)return;let e=sessionStorage.getItem("anet_v3_auth");if(!e)return void N("Not logged in with V3 auth");let{token:s}=JSON.parse(e),a=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"change_password",token:s,current_password:m,new_password:g})}),t=await a.json();if(N(t.ok?"Password changed":`Failed: ${t.error}`),t.ok){if(t.token){let s=JSON.parse(e);sessionStorage.setItem("anet_v3_auth",JSON.stringify({...s,token:t.token}))}h(""),u("")}setTimeout(()=>N(""),5e3)},disabled:!m||!g,className:"px-4 py-2 bg-cyan-600 hover:bg-cyan-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-colors",children:"Change Password"})]}),p&&(0,s.jsx)("div",{className:`mt-2 text-xs ${p.startsWith("Failed")?"text-red-400":"text-green-400"}`,children:p})]}),(0,s.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-4",children:"Sign out"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mb-3",children:"Signing out clears your dashboard session cookie. You'll return to the login page."}),(0,s.jsx)("button",{onClick:async()=>{await fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login")},className:"px-4 py-2 bg-transparent hover:bg-[#1a1a2a] text-gray-300 text-sm rounded-lg border border-[#2a2a4a] hover:border-[#3a3a5a] transition-colors",children:"Sign out"})]})]}),(0,s.jsxs)("div",{id:"resources",className:"space-y-4 scroll-mt-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,s.jsx)("div",{className:"text-[11px] uppercase tracking-[0.14em] text-gray-400 font-semibold",children:"Resources"}),(0,s.jsx)("div",{className:"flex-1 h-px bg-[#2a2a4a]"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,s.jsxs)(t.default,{href:"/settings/tokens",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"API Tokens"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create and manage tokens for CLI access."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]}),(0,s.jsxs)(t.default,{href:"/settings/networks",className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5 hover:border-cyan-500/30 transition-colors",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Networks"}),(0,s.jsx)("p",{className:"text-xs text-gray-500 mt-2",children:"Create, manage, and delete agent networks."}),(0,s.jsx)("span",{className:"text-xs text-cyan-400 mt-3 inline-block",children:"Manage →"})]})]})]})]})]})}])}]);
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.6-preview.220"],70286)},48941,e=>{"use strict";var t=e.i(22381),r=e.i(23910),a=e.i(70286);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");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}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono 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.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-[#111128] border border-[#2a2a4a] 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-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},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-[#2a2a4a] bg-[#111128]/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-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 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-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 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 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:h||!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:[h&&(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:h?"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",a.DASHBOARD_VERSION]})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70286,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.6-preview.221"],70286)},48941,e=>{"use strict";var t=e.i(22381),r=e.i(23910),a=e.i(70286);e.s(["default",0,function(){let[e,s]=(0,r.useState)("login"),[n,o]=(0,r.useState)(""),[i,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[x,g]=(0,r.useState)(""),[h,m]=(0,r.useState)(!1),u=async t=>{t.preventDefault(),m(!0),g("");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}g(r.error||"Login failed")}catch{g("Connection failed")}m(!1)};return(0,t.jsxs)("main",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 font-mono 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.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-[#111128] border border-[#2a2a4a] 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-500 mt-1.5 leading-snug",children:"login"===e?(0,t.jsxs)(t.Fragment,{children:["Welcome back · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Tasks · Mesh · Messages"})]}):(0,t.jsxs)(t.Fragment,{children:["Create your account · ",(0,t.jsx)("span",{className:"text-gray-600",children:"Free preview · no credit card"})]})})]}),(0,t.jsx)("div",{className:"flex rounded-lg border border-[#2a2a4a] bg-[#111128] p-1 mb-4",children:["login","register"].map(r=>(0,t.jsx)("button",{type:"button",onClick:()=>{s(r),g("")},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-[#2a2a4a] bg-[#111128]/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-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 py-3 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-[#0a0a15] border border-[#2a2a4a] rounded-lg px-4 pr-11 py-3 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 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:h||!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:[h&&(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:h?"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",a.DASHBOARD_VERSION]})]})]})]})}])}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":409,"timestamp":79440925630,"id":4,"parentId":1,"tags":{},"startTime":1778887413172,"traceId":"86508167c0bc3395"},{"name":"load-custom-routes","duration":660,"timestamp":79440926260,"id":5,"parentId":1,"tags":{},"startTime":1778887413173,"traceId":"86508167c0bc3395"},{"name":"create-dist-dir","duration":761,"timestamp":79440926994,"id":6,"parentId":1,"tags":{},"startTime":1778887413173,"traceId":"86508167c0bc3395"},{"name":"clean","duration":734,"timestamp":79440928545,"id":7,"parentId":1,"tags":{},"startTime":1778887413175,"traceId":"86508167c0bc3395"},{"name":"discover-routes","duration":10194,"timestamp":79441023934,"id":8,"parentId":1,"tags":{},"startTime":1778887413270,"traceId":"86508167c0bc3395"},{"name":"create-root-mapping","duration":170,"timestamp":79441034209,"id":9,"parentId":1,"tags":{},"startTime":1778887413280,"traceId":"86508167c0bc3395"},{"name":"generate-route-types","duration":42612,"timestamp":79441037856,"id":10,"parentId":1,"tags":{},"startTime":1778887413284,"traceId":"86508167c0bc3395"},{"name":"public-dir-conflict-check","duration":107,"timestamp":79441080629,"id":11,"parentId":1,"tags":{},"startTime":1778887413327,"traceId":"86508167c0bc3395"},{"name":"generate-routes-manifest","duration":4468,"timestamp":79441080851,"id":12,"parentId":1,"tags":{},"startTime":1778887413327,"traceId":"86508167c0bc3395"},{"name":"run-turbopack","duration":6522697,"timestamp":79441091378,"id":14,"parentId":1,"tags":{},"startTime":1778887413338,"traceId":"86508167c0bc3395"},{"name":"turbopack-build-events","duration":76,"timestamp":79441410067,"id":15,"parentId":1,"tags":{},"startTime":1778887413656,"traceId":"86508167c0bc3395"},{"name":"run-typescript","duration":9562527,"timestamp":79447626642,"id":16,"parentId":1,"tags":{},"startTime":1778887419873,"traceId":"86508167c0bc3395"},{"name":"generate-required-server-files","duration":2989,"timestamp":79457190425,"id":18,"parentId":1,"tags":{},"startTime":1778887429437,"traceId":"86508167c0bc3395"},{"name":"check-static-error-page","duration":17142,"timestamp":79457379960,"id":20,"parentId":19,"tags":{},"startTime":1778887429626,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":527483,"timestamp":79457399430,"id":63,"parentId":22,"tags":{},"startTime":1778887429646,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":544165,"timestamp":79457382945,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778887429629,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":598205,"timestamp":79457400348,"id":66,"parentId":27,"tags":{},"startTime":1778887429647,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":612180,"timestamp":79457386469,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778887429633,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":605429,"timestamp":79457400992,"id":70,"parentId":32,"tags":{},"startTime":1778887429647,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":619431,"timestamp":79457387120,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778887429633,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":638229,"timestamp":79457400794,"id":69,"parentId":30,"tags":{},"startTime":1778887429647,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":652358,"timestamp":79457386764,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778887429633,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":652299,"timestamp":79457401085,"id":71,"parentId":33,"tags":{},"startTime":1778887429647,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":666227,"timestamp":79457387251,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778887429634,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":664452,"timestamp":79457401194,"id":73,"parentId":35,"tags":{},"startTime":1778887429647,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":678237,"timestamp":79457387489,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778887429634,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":664784,"timestamp":79457401160,"id":72,"parentId":34,"tags":{},"startTime":1778887429647,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":678617,"timestamp":79457387368,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778887429634,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":678502,"timestamp":79457401312,"id":74,"parentId":36,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":691908,"timestamp":79457387967,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778887429634,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":695933,"timestamp":79457401359,"id":76,"parentId":38,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":709059,"timestamp":79457388316,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778887429635,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":700801,"timestamp":79457401341,"id":75,"parentId":37,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":714026,"timestamp":79457388177,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778887429634,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":701012,"timestamp":79457401374,"id":77,"parentId":39,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":714009,"timestamp":79457388406,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778887429635,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":706127,"timestamp":79457401383,"id":78,"parentId":40,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":719063,"timestamp":79457388495,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778887429635,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":708166,"timestamp":79457401396,"id":79,"parentId":41,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":721033,"timestamp":79457388575,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778887429635,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":713500,"timestamp":79457401421,"id":81,"parentId":43,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":726208,"timestamp":79457388762,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778887429635,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":716252,"timestamp":79457401408,"id":80,"parentId":42,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":729028,"timestamp":79457388673,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778887429635,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":716540,"timestamp":79457401430,"id":82,"parentId":44,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":729193,"timestamp":79457388841,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778887429635,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":720540,"timestamp":79457399116,"id":62,"parentId":21,"tags":{},"startTime":1778887429645,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":738260,"timestamp":79457381453,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778887429628,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":720717,"timestamp":79457401456,"id":84,"parentId":46,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":733162,"timestamp":79457389052,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778887429635,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":724270,"timestamp":79457401443,"id":83,"parentId":45,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":736812,"timestamp":79457388940,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778887429635,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":732997,"timestamp":79457400100,"id":64,"parentId":25,"tags":{},"startTime":1778887429646,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":746874,"timestamp":79457386268,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778887429633,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":731865,"timestamp":79457401480,"id":86,"parentId":48,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":744100,"timestamp":79457389281,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778887429636,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":716652,"timestamp":79457422808,"id":88,"parentId":24,"tags":{},"startTime":1778887429669,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":755969,"timestamp":79457383532,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778887429630,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":697805,"timestamp":79457443434,"id":89,"parentId":31,"tags":{},"startTime":1778887429690,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":754411,"timestamp":79457386872,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778887429633,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":742906,"timestamp":79457400515,"id":67,"parentId":28,"tags":{},"startTime":1778887429647,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":756913,"timestamp":79457386551,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778887429633,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":742110,"timestamp":79457401495,"id":87,"parentId":49,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":754260,"timestamp":79457389377,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778887429636,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":756261,"timestamp":79457400668,"id":68,"parentId":29,"tags":{},"startTime":1778887429647,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":770364,"timestamp":79457386631,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778887429633,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":767037,"timestamp":79457463500,"id":93,"parentId":52,"tags":{},"startTime":1778887429710,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":840352,"timestamp":79457390262,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778887429637,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":780605,"timestamp":79457463261,"id":90,"parentId":23,"tags":{},"startTime":1778887429710,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":860666,"timestamp":79457383278,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778887429630,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":781276,"timestamp":79457463529,"id":95,"parentId":54,"tags":{},"startTime":1778887429710,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":854082,"timestamp":79457390776,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778887429637,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":847371,"timestamp":79457401466,"id":85,"parentId":47,"tags":{},"startTime":1778887429648,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":859702,"timestamp":79457389181,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778887429635,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":787637,"timestamp":79457463541,"id":96,"parentId":56,"tags":{},"startTime":1778887429710,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":859492,"timestamp":79457391725,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778887429638,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":788985,"timestamp":79457463553,"id":97,"parentId":57,"tags":{},"startTime":1778887429710,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":860623,"timestamp":79457391958,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778887429638,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":796509,"timestamp":79457463595,"id":100,"parentId":61,"tags":{},"startTime":1778887429710,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":863377,"timestamp":79457396793,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778887429643,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":799445,"timestamp":79457463517,"id":94,"parentId":53,"tags":{},"startTime":1778887429710,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":872498,"timestamp":79457390520,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778887429637,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":801955,"timestamp":79457463579,"id":99,"parentId":60,"tags":{},"startTime":1778887429710,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":868914,"timestamp":79457396674,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778887429643,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":803004,"timestamp":79457463564,"id":98,"parentId":59,"tags":{},"startTime":1778887429710,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":870095,"timestamp":79457396512,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778887429643,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":803379,"timestamp":79457463301,"id":91,"parentId":50,"tags":{},"startTime":1778887429710,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":876882,"timestamp":79457389818,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778887429636,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":765144,"timestamp":79457502200,"id":101,"parentId":58,"tags":{},"startTime":1778887429748,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":875183,"timestamp":79457392198,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778887429638,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":743143,"timestamp":79457526935,"id":102,"parentId":55,"tags":{},"startTime":1778887429773,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":879018,"timestamp":79457391094,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778887429637,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":810078,"timestamp":79457463313,"id":92,"parentId":51,"tags":{},"startTime":1778887429710,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":883355,"timestamp":79457390062,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778887429636,"traceId":"86508167c0bc3395"},{"name":"is-page-static","duration":875579,"timestamp":79457400261,"id":65,"parentId":26,"tags":{},"startTime":1778887429647,"traceId":"86508167c0bc3395"},{"name":"check-page","duration":889478,"timestamp":79457386392,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778887429633,"traceId":"86508167c0bc3395"},{"name":"static-check","duration":896724,"timestamp":79457379175,"id":19,"parentId":1,"tags":{},"startTime":1778887429625,"traceId":"86508167c0bc3395"},{"name":"write-routes-manifest","duration":581,"timestamp":79458288719,"id":104,"parentId":1,"tags":{},"startTime":1778887430535,"traceId":"86508167c0bc3395"},{"name":"load-dotenv","duration":63,"timestamp":79458303644,"id":107,"parentId":106,"tags":{},"startTime":1778887430550,"traceId":"86508167c0bc3395"},{"name":"run-export-path-map","duration":904,"timestamp":79458307070,"id":108,"parentId":106,"tags":{},"startTime":1778887430553,"traceId":"86508167c0bc3395"},{"name":"next-export","duration":709942,"timestamp":79458301745,"id":106,"parentId":1,"tags":{},"startTime":1778887430548,"traceId":"86508167c0bc3395"}]
2
- [{"name":"move-exported-app-not-found-","duration":2133,"timestamp":79459015965,"id":109,"parentId":105,"tags":{},"startTime":1778887431262,"traceId":"86508167c0bc3395"},{"name":"move-exported-app-global-error-","duration":538,"timestamp":79459018181,"id":110,"parentId":105,"tags":{},"startTime":1778887431264,"traceId":"86508167c0bc3395"},{"name":"static-generation","duration":725152,"timestamp":79458295300,"id":105,"parentId":1,"tags":{},"startTime":1778887430542,"traceId":"86508167c0bc3395"},{"name":"write-routes-manifest","duration":748,"timestamp":79459020603,"id":111,"parentId":1,"tags":{},"startTime":1778887431267,"traceId":"86508167c0bc3395"},{"name":"print-tree-view","duration":4524,"timestamp":79459038268,"id":112,"parentId":1,"tags":{},"startTime":1778887431285,"traceId":"86508167c0bc3395"},{"name":"write-route-bundle-stats","duration":13131,"timestamp":79459042827,"id":113,"parentId":1,"tags":{},"startTime":1778887431289,"traceId":"86508167c0bc3395"},{"name":"telemetry-flush","duration":28260,"timestamp":79459055989,"id":114,"parentId":1,"tags":{},"startTime":1778887431302,"traceId":"86508167c0bc3395"},{"name":"next-build","duration":18218023,"timestamp":79440866274,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778887413113,"traceId":"86508167c0bc3395"}]
1
+ [{"name":"generate-buildid","duration":382,"timestamp":79745446878,"id":4,"parentId":1,"tags":{},"startTime":1778887717693,"traceId":"abf763634f299850"},{"name":"load-custom-routes","duration":524,"timestamp":79745447420,"id":5,"parentId":1,"tags":{},"startTime":1778887717694,"traceId":"abf763634f299850"},{"name":"create-dist-dir","duration":634,"timestamp":79745447998,"id":6,"parentId":1,"tags":{},"startTime":1778887717694,"traceId":"abf763634f299850"},{"name":"clean","duration":442,"timestamp":79745449301,"id":7,"parentId":1,"tags":{},"startTime":1778887717696,"traceId":"abf763634f299850"},{"name":"discover-routes","duration":8761,"timestamp":79745540980,"id":8,"parentId":1,"tags":{},"startTime":1778887717787,"traceId":"abf763634f299850"},{"name":"create-root-mapping","duration":100,"timestamp":79745549797,"id":9,"parentId":1,"tags":{},"startTime":1778887717796,"traceId":"abf763634f299850"},{"name":"generate-route-types","duration":34871,"timestamp":79745552601,"id":10,"parentId":1,"tags":{},"startTime":1778887717799,"traceId":"abf763634f299850"},{"name":"public-dir-conflict-check","duration":105,"timestamp":79745587653,"id":11,"parentId":1,"tags":{},"startTime":1778887717834,"traceId":"abf763634f299850"},{"name":"generate-routes-manifest","duration":5390,"timestamp":79745587887,"id":12,"parentId":1,"tags":{},"startTime":1778887717834,"traceId":"abf763634f299850"},{"name":"run-turbopack","duration":6319017,"timestamp":79745599952,"id":14,"parentId":1,"tags":{},"startTime":1778887717846,"traceId":"abf763634f299850"},{"name":"turbopack-build-events","duration":103,"timestamp":79745900587,"id":15,"parentId":1,"tags":{},"startTime":1778887718147,"traceId":"abf763634f299850"},{"name":"run-typescript","duration":9662602,"timestamp":79751933330,"id":16,"parentId":1,"tags":{},"startTime":1778887724180,"traceId":"abf763634f299850"},{"name":"generate-required-server-files","duration":2948,"timestamp":79761597214,"id":18,"parentId":1,"tags":{},"startTime":1778887733843,"traceId":"abf763634f299850"},{"name":"check-static-error-page","duration":11252,"timestamp":79761782592,"id":20,"parentId":19,"tags":{},"startTime":1778887734029,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":567363,"timestamp":79761797806,"id":66,"parentId":27,"tags":{},"startTime":1778887734044,"traceId":"abf763634f299850"},{"name":"check-page","duration":577287,"timestamp":79761788031,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778887734034,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":575238,"timestamp":79761799633,"id":69,"parentId":30,"tags":{},"startTime":1778887734046,"traceId":"abf763634f299850"},{"name":"check-page","duration":586508,"timestamp":79761788445,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778887734035,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":584859,"timestamp":79761797703,"id":65,"parentId":26,"tags":{},"startTime":1778887734044,"traceId":"abf763634f299850"},{"name":"check-page","duration":594736,"timestamp":79761787893,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778887734034,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":589090,"timestamp":79761799897,"id":71,"parentId":33,"tags":{},"startTime":1778887734046,"traceId":"abf763634f299850"},{"name":"check-page","duration":600189,"timestamp":79761788899,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778887734035,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":616925,"timestamp":79761797457,"id":63,"parentId":22,"tags":{},"startTime":1778887734044,"traceId":"abf763634f299850"},{"name":"check-page","duration":628990,"timestamp":79761785486,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778887734032,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":615401,"timestamp":79761799248,"id":67,"parentId":28,"tags":{},"startTime":1778887734046,"traceId":"abf763634f299850"},{"name":"check-page","duration":626530,"timestamp":79761788154,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778887734034,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":625398,"timestamp":79761799831,"id":70,"parentId":32,"tags":{},"startTime":1778887734046,"traceId":"abf763634f299850"},{"name":"check-page","duration":636487,"timestamp":79761788805,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778887734035,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":632979,"timestamp":79761799982,"id":72,"parentId":34,"tags":{},"startTime":1778887734046,"traceId":"abf763634f299850"},{"name":"check-page","duration":644077,"timestamp":79761788975,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778887734035,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":640759,"timestamp":79761801457,"id":75,"parentId":37,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":652746,"timestamp":79761789537,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778887734036,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":645902,"timestamp":79761801510,"id":77,"parentId":39,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":657773,"timestamp":79761789694,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778887734036,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":653556,"timestamp":79761801523,"id":78,"parentId":40,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":665379,"timestamp":79761789758,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778887734036,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":655273,"timestamp":79761800182,"id":74,"parentId":36,"tags":{},"startTime":1778887734046,"traceId":"abf763634f299850"},{"name":"check-page","duration":666085,"timestamp":79761789418,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778887734036,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":654189,"timestamp":79761801492,"id":76,"parentId":38,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":666088,"timestamp":79761789630,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778887734036,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":655187,"timestamp":79761801545,"id":79,"parentId":41,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":666954,"timestamp":79761789815,"id":41,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778887734036,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":660146,"timestamp":79761801577,"id":81,"parentId":43,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":671816,"timestamp":79761789954,"id":43,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778887734036,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":660359,"timestamp":79761801589,"id":82,"parentId":44,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":671955,"timestamp":79761790028,"id":44,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778887734036,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":664785,"timestamp":79761801620,"id":84,"parentId":46,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":676280,"timestamp":79761790183,"id":46,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778887734036,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":665197,"timestamp":79761801604,"id":83,"parentId":45,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":676725,"timestamp":79761790123,"id":45,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778887734036,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":669412,"timestamp":79761801632,"id":85,"parentId":47,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":680817,"timestamp":79761790270,"id":47,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778887734037,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":671717,"timestamp":79761801649,"id":86,"parentId":48,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":683060,"timestamp":79761790345,"id":48,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778887734037,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":673530,"timestamp":79761801664,"id":87,"parentId":49,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":684829,"timestamp":79761790410,"id":49,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778887734037,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":673980,"timestamp":79761801562,"id":80,"parentId":42,"tags":{},"startTime":1778887734048,"traceId":"abf763634f299850"},{"name":"check-page","duration":685699,"timestamp":79761789890,"id":42,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778887734036,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":679808,"timestamp":79761799473,"id":68,"parentId":29,"tags":{},"startTime":1778887734046,"traceId":"abf763634f299850"},{"name":"check-page","duration":691060,"timestamp":79761788279,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778887734035,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":663274,"timestamp":79761816215,"id":89,"parentId":31,"tags":{},"startTime":1778887734062,"traceId":"abf763634f299850"},{"name":"check-page","duration":690947,"timestamp":79761788570,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778887734035,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":667920,"timestamp":79761815155,"id":88,"parentId":24,"tags":{},"startTime":1778887734061,"traceId":"abf763634f299850"},{"name":"check-page","duration":697234,"timestamp":79761785891,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778887734032,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":690935,"timestamp":79761797585,"id":64,"parentId":25,"tags":{},"startTime":1778887734044,"traceId":"abf763634f299850"},{"name":"check-page","duration":700847,"timestamp":79761787719,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778887734034,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":724699,"timestamp":79761818497,"id":93,"parentId":52,"tags":{},"startTime":1778887734065,"traceId":"abf763634f299850"},{"name":"check-page","duration":752252,"timestamp":79761791032,"id":52,"parentId":19,"tags":{"page":"/messages"},"startTime":1778887734037,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":731544,"timestamp":79761818452,"id":90,"parentId":23,"tags":{},"startTime":1778887734065,"traceId":"abf763634f299850"},{"name":"check-page","duration":764383,"timestamp":79761785711,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778887734032,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":732963,"timestamp":79761818514,"id":95,"parentId":54,"tags":{},"startTime":1778887734065,"traceId":"abf763634f299850"},{"name":"check-page","duration":760031,"timestamp":79761791493,"id":54,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778887734038,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":740633,"timestamp":79761818535,"id":97,"parentId":57,"tags":{},"startTime":1778887734065,"traceId":"abf763634f299850"},{"name":"check-page","duration":766570,"timestamp":79761792644,"id":57,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778887734039,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":742386,"timestamp":79761818522,"id":96,"parentId":56,"tags":{},"startTime":1778887734065,"traceId":"abf763634f299850"},{"name":"check-page","duration":768539,"timestamp":79761792412,"id":56,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778887734039,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":752111,"timestamp":79761818543,"id":98,"parentId":59,"tags":{},"startTime":1778887734065,"traceId":"abf763634f299850"},{"name":"check-page","duration":777442,"timestamp":79761793264,"id":59,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778887734040,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":754341,"timestamp":79761818477,"id":91,"parentId":50,"tags":{},"startTime":1778887734065,"traceId":"abf763634f299850"},{"name":"check-page","duration":782148,"timestamp":79761790740,"id":50,"parentId":19,"tags":{"page":"/login"},"startTime":1778887734037,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":759424,"timestamp":79761818566,"id":100,"parentId":61,"tags":{},"startTime":1778887734065,"traceId":"abf763634f299850"},{"name":"check-page","duration":784485,"timestamp":79761793572,"id":61,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778887734040,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":763501,"timestamp":79761818554,"id":99,"parentId":60,"tags":{},"startTime":1778887734065,"traceId":"abf763634f299850"},{"name":"check-page","duration":788690,"timestamp":79761793428,"id":60,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778887734040,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":761979,"timestamp":79761823717,"id":101,"parentId":58,"tags":{},"startTime":1778887734070,"traceId":"abf763634f299850"},{"name":"check-page","duration":792889,"timestamp":79761792848,"id":58,"parentId":19,"tags":{"page":"/settings"},"startTime":1778887734039,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":753283,"timestamp":79761832520,"id":102,"parentId":55,"tags":{},"startTime":1778887734079,"traceId":"abf763634f299850"},{"name":"check-page","duration":794019,"timestamp":79761791802,"id":55,"parentId":19,"tags":{"page":"/"},"startTime":1778887734038,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":800504,"timestamp":79761797139,"id":62,"parentId":21,"tags":{},"startTime":1778887734043,"traceId":"abf763634f299850"},{"name":"check-page","duration":813538,"timestamp":79761784155,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778887734030,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":781420,"timestamp":79761818488,"id":92,"parentId":51,"tags":{},"startTime":1778887734065,"traceId":"abf763634f299850"},{"name":"check-page","duration":809069,"timestamp":79761790872,"id":51,"parentId":19,"tags":{"page":"/logs"},"startTime":1778887734037,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":788686,"timestamp":79761818506,"id":94,"parentId":53,"tags":{},"startTime":1778887734065,"traceId":"abf763634f299850"},{"name":"check-page","duration":816007,"timestamp":79761791230,"id":53,"parentId":19,"tags":{"page":"/node"},"startTime":1778887734038,"traceId":"abf763634f299850"},{"name":"is-page-static","duration":818985,"timestamp":79761800051,"id":73,"parentId":35,"tags":{},"startTime":1778887734046,"traceId":"abf763634f299850"},{"name":"check-page","duration":829995,"timestamp":79761789087,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778887734035,"traceId":"abf763634f299850"},{"name":"static-check","duration":837626,"timestamp":79761781486,"id":19,"parentId":1,"tags":{},"startTime":1778887734028,"traceId":"abf763634f299850"},{"name":"write-routes-manifest","duration":439,"timestamp":79762626387,"id":104,"parentId":1,"tags":{},"startTime":1778887734873,"traceId":"abf763634f299850"},{"name":"load-dotenv","duration":61,"timestamp":79762641574,"id":107,"parentId":106,"tags":{},"startTime":1778887734888,"traceId":"abf763634f299850"},{"name":"run-export-path-map","duration":673,"timestamp":79762644504,"id":108,"parentId":106,"tags":{},"startTime":1778887734891,"traceId":"abf763634f299850"},{"name":"next-export","duration":659041,"timestamp":79762639844,"id":106,"parentId":1,"tags":{},"startTime":1778887734886,"traceId":"abf763634f299850"}]
2
+ [{"name":"move-exported-app-not-found-","duration":2451,"timestamp":79763304207,"id":109,"parentId":105,"tags":{},"startTime":1778887735550,"traceId":"abf763634f299850"},{"name":"move-exported-app-global-error-","duration":1209,"timestamp":79763306784,"id":110,"parentId":105,"tags":{},"startTime":1778887735553,"traceId":"abf763634f299850"},{"name":"static-generation","duration":679145,"timestamp":79762631349,"id":105,"parentId":1,"tags":{},"startTime":1778887734878,"traceId":"abf763634f299850"},{"name":"write-routes-manifest","duration":567,"timestamp":79763310709,"id":111,"parentId":1,"tags":{},"startTime":1778887735557,"traceId":"abf763634f299850"},{"name":"print-tree-view","duration":4512,"timestamp":79763337126,"id":112,"parentId":1,"tags":{},"startTime":1778887735583,"traceId":"abf763634f299850"},{"name":"write-route-bundle-stats","duration":14540,"timestamp":79763341677,"id":113,"parentId":1,"tags":{},"startTime":1778887735588,"traceId":"abf763634f299850"},{"name":"telemetry-flush","duration":57600,"timestamp":79763356256,"id":114,"parentId":1,"tags":{},"startTime":1778887735603,"traceId":"abf763634f299850"},{"name":"next-build","duration":18017598,"timestamp":79745396307,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778887717643,"traceId":"abf763634f299850"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":6522697,"timestamp":79441091378,"id":14,"parentId":1,"tags":{},"startTime":1778887413338,"traceId":"86508167c0bc3395"},{"name":"turbopack-build-events","duration":76,"timestamp":79441410067,"id":15,"parentId":1,"tags":{},"startTime":1778887413656,"traceId":"86508167c0bc3395"},{"name":"run-typescript","duration":9562527,"timestamp":79447626642,"id":16,"parentId":1,"tags":{},"startTime":1778887419873,"traceId":"86508167c0bc3395"},{"name":"static-check","duration":896724,"timestamp":79457379175,"id":19,"parentId":1,"tags":{},"startTime":1778887429625,"traceId":"86508167c0bc3395"},{"name":"static-generation","duration":725152,"timestamp":79458295300,"id":105,"parentId":1,"tags":{},"startTime":1778887430542,"traceId":"86508167c0bc3395"},{"name":"telemetry-flush","duration":28260,"timestamp":79459055989,"id":114,"parentId":1,"tags":{},"startTime":1778887431302,"traceId":"86508167c0bc3395"},{"name":"next-build","duration":18218023,"timestamp":79440866274,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778887413113,"traceId":"86508167c0bc3395"}]
1
+ [{"name":"run-turbopack","duration":6319017,"timestamp":79745599952,"id":14,"parentId":1,"tags":{},"startTime":1778887717846,"traceId":"abf763634f299850"},{"name":"turbopack-build-events","duration":103,"timestamp":79745900587,"id":15,"parentId":1,"tags":{},"startTime":1778887718147,"traceId":"abf763634f299850"},{"name":"run-typescript","duration":9662602,"timestamp":79751933330,"id":16,"parentId":1,"tags":{},"startTime":1778887724180,"traceId":"abf763634f299850"},{"name":"static-check","duration":837626,"timestamp":79761781486,"id":19,"parentId":1,"tags":{},"startTime":1778887734028,"traceId":"abf763634f299850"},{"name":"static-generation","duration":679145,"timestamp":79762631349,"id":105,"parentId":1,"tags":{},"startTime":1778887734878,"traceId":"abf763634f299850"},{"name":"telemetry-flush","duration":57600,"timestamp":79763356256,"id":114,"parentId":1,"tags":{},"startTime":1778887735603,"traceId":"abf763634f299850"},{"name":"next-build","duration":18017598,"timestamp":79745396307,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778887717643,"traceId":"abf763634f299850"}]
@@ -4301,7 +4301,7 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
4301
4301
  </g>
4302
4302
  );
4303
4303
  })()}
4304
- {session.status === 'working' && (() => {
4304
+ {(() => {
4305
4305
  // Round 24 / Loop: pulse rate ↔ traffic. The dot's dur
4306
4306
  // was a flat 1.1s — every working node looked equally
4307
4307
  // busy. Mapping it to sse:N lets the eye land on what's
@@ -4310,14 +4310,46 @@ export function TopoGraph({ sessions, sseSessions, renameSignal }: TopoGraphProp
4310
4310
  // typical 1-2-SSE Claude/Codex sessions stay in the
4311
4311
  // "active" tier and only multi-pane orchestrators pop
4312
4312
  // into the "busy" tier. Geometry unchanged (r=2.5).
4313
+ //
4314
+ // Round 214 / Loop: pulse dot always-mounts; visibility
4315
+ // crossfades via parent <g> opacity instead of React
4316
+ // conditional mount/unmount. Pre-R214 a node going
4317
+ // working ↔ idle snapped the pulse dot in/out in one
4318
+ // frame at the node's top. R214 extends the always-
4319
+ // mount-opacity-gate pattern (R181/R182/R183/R213 hub
4320
+ // family) down to per-node grain so the working-state
4321
+ // appearance/disappearance now eases over 300ms,
4322
+ // matching R167 ring fill / R211 text fill / R213 hub
4323
+ // crossfade — every status-flip beat across the
4324
+ // entire node ensemble runs on the same 300ms metre.
4325
+ //
4326
+ // SMIL <animate> on the inner <circle>'s opacity keeps
4327
+ // running regardless of parent visibility (SMIL is
4328
+ // unaffected by CSS opacity composition). When the
4329
+ // parent <g> opacity is 0, the inner pulse is
4330
+ // invisible; when it's 1 the pulse is fully visible.
4331
+ // Opacities compose multiplicatively, so no SMIL/CSS
4332
+ // fight — SMIL animates child opacity 1→0.25→1, CSS
4333
+ // crossfades parent opacity 1↔0 on status flip.
4313
4334
  const sse = sseCountFor ?? 0;
4314
4335
  const dur = sse >= 4 ? '0.7s' : sse >= 2 ? '0.9s' : '1.2s';
4336
+ const visible = session.status === 'working';
4315
4337
  return (
4316
- <circle cx={pos.x} cy={pos.y - (radius - 6)} r="2.5" fill={pal.flowParticle} data-pulse-dur={dur} opacity={reducedMotion ? 0.6 : undefined}>
4317
- {!reducedMotion && (
4318
- <animate attributeName="opacity" values="1;0.25;1" dur={dur} repeatCount="indefinite" />
4319
- )}
4320
- </circle>
4338
+ <g
4339
+ data-pulse-wrapper={session.alias}
4340
+ data-pulse-visible={visible ? 'true' : 'false'}
4341
+ style={{
4342
+ opacity: visible ? 1 : 0,
4343
+ transition: 'opacity 300ms ease-out',
4344
+ pointerEvents: 'none',
4345
+ }}
4346
+ >
4347
+ <circle cx={pos.x} cy={pos.y - (radius - 6)} r="2.5" fill={pal.flowParticle} data-pulse-dur={dur} opacity={reducedMotion ? 0.6 : undefined}>
4348
+ {!reducedMotion && (
4349
+ <animate attributeName="opacity" values="1;0.25;1" dur={dur} repeatCount="indefinite" />
4350
+ )}
4351
+ </circle>
4352
+ </g>
4321
4353
  );
4322
4354
  })()}
4323
4355
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.4.6-preview.220",
3
+ "version": "0.4.6-preview.221",
4
4
  "description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -0,0 +1,122 @@
1
+ /* Round 214 verification: working-status pulse dot always-mounts;
2
+ * visibility crossfades via parent <g> opacity instead of mount/
3
+ * unmount snap. Extends R181/R182/R183/R213 always-mount-opacity-
4
+ * gate idiom down to per-node grain.
5
+ *
6
+ * Test (cyber dark, 4 sessions in mixed status):
7
+ * 1. 4 [data-pulse-wrapper] elements present (one per node —
8
+ * always-mounted regardless of status).
9
+ * 2. Working sessions: data-pulse-visible='true', wrapper
10
+ * opacity = 1.
11
+ * 3. Non-working sessions: data-pulse-visible='false', wrapper
12
+ * opacity = 0.
13
+ * 4. Each wrapper has inline transition: 'opacity 300ms ease-out'.
14
+ * 5. Each wrapper contains the inner <circle> with the SMIL
15
+ * <animate> still present (working-rate pulse R24 preserved).
16
+ * 6. SMIL animate attributeName='opacity', values cycling 1→0.25.
17
+ *
18
+ * The key invariant — pulse dot wrapper is DOM-present for ALL
19
+ * sessions (working and non-working), with visibility purely a
20
+ * CSS opacity gate.
21
+ */
22
+ import { chromium } from 'playwright';
23
+ import { readFileSync } from 'node:fs';
24
+
25
+ const TOKEN = JSON.parse(readFileSync('/home/vansin/.anet/config.json', 'utf8')).token;
26
+ const browser = await chromium.launch({ headless: true });
27
+
28
+ const ctx = await browser.newContext({ viewport: { width: 1500, height: 1500 } });
29
+ await ctx.addCookies([{ name: 'anet_dashboard_session', value: `v3:${TOKEN}`, domain: '127.0.0.1', path: '/' }]);
30
+ await ctx.addInitScript(() => {
31
+ try { localStorage.setItem('anet-theme', 'cyber'); sessionStorage.setItem('anet_v3_auth', '1'); } catch {}
32
+ });
33
+
34
+ const fresh = new Date(Date.now() - 60 * 1000).toISOString();
35
+ await ctx.route('**/api/hub/status*', async (route) => {
36
+ const r = await route.fetch();
37
+ const b = await r.json();
38
+ const nid = (b.sessions || [])[0]?.network_id || 'default';
39
+ const mk = (alias, status) => ({
40
+ alias, status, model: 'claude-opus-4', runtime: 'claude-code-cli',
41
+ network_id: nid, project_dir: null,
42
+ created_at: fresh, updated_at: fresh, last_seen_at: fresh,
43
+ });
44
+ // 2 working + 1 idle + 1 offline — pulse dot only mounts visibly for
45
+ // working, but R214 keeps wrapper in DOM for all 4
46
+ await route.fulfill({ response: r, json: { ...b, sessions: [
47
+ mk('alpha', 'working'),
48
+ mk('beta', 'working'),
49
+ mk('gamma', 'idle'),
50
+ mk('delta', 'offline'),
51
+ ] } });
52
+ });
53
+ await ctx.route('**/api/hub/messages*', (r2) => r2.fulfill({ json: { messages: [] } }));
54
+ await ctx.route('**/api/hub/tasks*', (r2) => r2.fulfill({ json: { tasks: [] } }));
55
+
56
+ const page = await ctx.newPage();
57
+ await page.goto('http://127.0.0.1:3000/', { waitUntil: 'domcontentloaded' });
58
+ await page.waitForFunction(() => document.querySelectorAll('g[data-node]').length === 4, { timeout: 30000 });
59
+ await page.waitForSelector('[data-pulse-wrapper]', { timeout: 10000, state: 'attached' });
60
+ await page.waitForTimeout(300);
61
+
62
+ const probe = await page.evaluate(() => {
63
+ return [...document.querySelectorAll('[data-pulse-wrapper]')].map(el => {
64
+ const cs = getComputedStyle(el);
65
+ const inner = el.querySelector('circle');
66
+ const animate = inner?.querySelector('animate');
67
+ return {
68
+ alias: el.getAttribute('data-pulse-wrapper'),
69
+ visible: el.getAttribute('data-pulse-visible'),
70
+ opacity: parseFloat(cs.opacity),
71
+ transition: el.style.transition,
72
+ hasInner: !!inner,
73
+ animateAttr: animate?.getAttribute('attributeName'),
74
+ animateVals: animate?.getAttribute('values'),
75
+ };
76
+ });
77
+ });
78
+
79
+ await browser.close();
80
+
81
+ const alpha = probe.find(p => p.alias === 'alpha');
82
+ const beta = probe.find(p => p.alias === 'beta');
83
+ const gamma = probe.find(p => p.alias === 'gamma');
84
+ const delta = probe.find(p => p.alias === 'delta');
85
+
86
+ const near = (got, want, tol = 0.05) => Math.abs(got - want) < tol;
87
+
88
+ const results = {
89
+ // All 4 wrappers in DOM regardless of status
90
+ four_wrappers_in_dom: probe.length === 4,
91
+ alpha_in_dom: !!alpha,
92
+ beta_in_dom: !!beta,
93
+ gamma_in_dom: !!gamma,
94
+ delta_in_dom: !!delta,
95
+
96
+ // Working sessions: visible=true, opacity 1
97
+ alpha_visible: alpha?.visible === 'true',
98
+ alpha_opacity_1: near(alpha?.opacity ?? 0, 1),
99
+ beta_visible: beta?.visible === 'true',
100
+ beta_opacity_1: near(beta?.opacity ?? 0, 1),
101
+
102
+ // Non-working: visible=false, opacity 0
103
+ gamma_hidden: gamma?.visible === 'false',
104
+ gamma_opacity_0: near(gamma?.opacity ?? 1, 0),
105
+ delta_hidden: delta?.visible === 'false',
106
+ delta_opacity_0: near(delta?.opacity ?? 1, 0),
107
+
108
+ // Inline transition includes opacity 300ms
109
+ all_have_transition: probe.every(p => /opacity\s+(?:300ms|0\.3s)/.test(p.transition || '')),
110
+
111
+ // Inner <circle> + SMIL <animate> still present in working wrappers
112
+ // (R24 working-rate pulse preserved)
113
+ alpha_has_inner: alpha?.hasInner === true,
114
+ alpha_animate_opacity: alpha?.animateAttr === 'opacity',
115
+ alpha_animate_values: alpha?.animateVals === '1;0.25;1',
116
+ // Even hidden wrappers keep inner circle in DOM (always-mount)
117
+ gamma_has_inner: gamma?.hasInner === true,
118
+ };
119
+ const ok = Object.values(results).every(Boolean);
120
+ console.log(`${ok ? '✅' : '❌'} pulse-dot crossfade:`, JSON.stringify(results),
121
+ `\n probe:`, probe);
122
+ process.exit(ok ? 0 : 1);