@sleep2agi/agent-network-dashboard 0.4.5-preview.75 → 0.4.5-preview.76

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 (141) 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 +1 -1
  30. package/.next/server/app/index.rsc +1 -1
  31. package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  32. package/.next/server/app/index.segments/_full.segment.rsc +1 -1
  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/server-logs.html +1 -1
  78. package/.next/server/app/server-logs.rsc +1 -1
  79. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  80. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  85. package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
  86. package/.next/server/app/settings/networks.html +2 -2
  87. package/.next/server/app/settings/networks.rsc +2 -2
  88. package/.next/server/app/settings/networks.segments/_full.segment.rsc +2 -2
  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 +2 -2
  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/app_04n78pr._.js +1 -1
  122. package/.next/server/chunks/ssr/app_04n78pr._.js.map +1 -1
  123. package/.next/server/chunks/ssr/app_0aum_g5._.js +1 -1
  124. package/.next/server/chunks/ssr/app_0aum_g5._.js.map +1 -1
  125. package/.next/server/chunks/ssr/app_0esuljp._.js +1 -1
  126. package/.next/server/chunks/ssr/app_0esuljp._.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/{16sfns1kuyerz.js → 0caiuszqgr3jl.js} +1 -1
  133. package/.next/static/chunks/{0i2kq9ogpy1wv.js → 0eff0st83.4z8.js} +1 -1
  134. package/.next/static/chunks/{0vn.u7tcybvik.js → 0geyh7e8y2s5f.js} +1 -1
  135. package/.next/trace +2 -2
  136. package/.next/trace-build +1 -1
  137. package/app/settings/networks/page.tsx +3 -3
  138. package/package.json +1 -1
  139. /package/.next/static/{a_lL3890Ofcifu0FpV0zS → 5Agx_5ZXYit5_R6SThGqB}/_buildManifest.js +0 -0
  140. /package/.next/static/{a_lL3890Ofcifu0FpV0zS → 5Agx_5ZXYit5_R6SThGqB}/_clientMiddlewareManifest.js +0 -0
  141. /package/.next/static/{a_lL3890Ofcifu0FpV0zS → 5Agx_5ZXYit5_R6SThGqB}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"MI6ePxd5R9WaZJMUFrP5dyeSPV7mt5PhT0/6xY5Arqw=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"M1Qpv0ABMJix9vLHmH5RFJD2YzxrI+1dWmSubFz5VLM=\"\n}"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "node": {},
3
3
  "edge": {},
4
- "encryptionKey": "MI6ePxd5R9WaZJMUFrP5dyeSPV7mt5PhT0/6xY5Arqw="
4
+ "encryptionKey": "M1Qpv0ABMJix9vLHmH5RFJD2YzxrI+1dWmSubFz5VLM="
5
5
  }
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94867,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.5-preview.75"],94867)},89954,e=>{"use strict";var t=e.i(18050),r=e.i(71645),a=e.i(94867);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,94867,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.5-preview.76"],94867)},89954,e=>{"use strict";var t=e.i(18050),r=e.i(71645),a=e.i(94867);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 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65822,e=>{"use strict";var s=e.i(83599),a=e.i(58963);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}}])},94867,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.5-preview.75"],94867)},32545,e=>{"use strict";var s=e.i(18050),a=e.i(71645),t=e.i(22016),r=e.i(65822),n=e.i(94867);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,65822,e=>{"use strict";var s=e.i(83599),a=e.i(58963);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}}])},94867,e=>{"use strict";e.s(["DASHBOARD_VERSION",0,"0.4.5-preview.76"],94867)},32545,e=>{"use strict";var s=e.i(18050),a=e.i(71645),t=e.i(22016),r=e.i(65822),n=e.i(94867);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,18150,e=>{"use strict";e.s(["formatUptime",0,function(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60);return t>0?`${t}h ${r}m`:`${r}m`},"previewContent",0,function(e){return e&&e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\s+/g," ").trim()||"--"},"timeAgo",0,function(e){if(!e)return"--";let t=Math.floor((Date.now()-new Date(e.replace(" ","T")+"Z").getTime())/1e3);return t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:`${Math.floor(t/86400)}d ago`}])},69874,e=>{"use strict";var t=e.i(18050);let r=[180,200,220,270,300,330,30,90];e.s(["AliasAvatar",0,function({alias:e,size:s=28,className:a=""}){let n=function(e){let t=0;for(let r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)>>>0;let s=r[t%r.length];return{bg:`hsl(${s} 55% 22%)`,ring:`hsl(${s} 60% 45%)`,text:`hsl(${s} 80% 78%)`}}(e),i=Math.max(9,Math.round(.42*s));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${a}`,style:{width:s,height:s,fontSize:i,backgroundColor:n.bg,borderColor:n.ring,color:n.text},title:e,"aria-hidden":!0,children:e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"})}])},95356,e=>{"use strict";var t=e.i(18050),r=e.i(71645),s=e.i(22016);let a={nodes:{title:"No agents in this network",sub:"Agent sessions will appear here once they connect to the CommHub."},tasks:{title:"No tasks yet",sub:"Tasks will appear here when agents send them via CommHub."},messages:{title:"No messages",sub:"Messages between agents will appear here."},logs:{title:"No audit logs",sub:"Events will appear here when users register, login, or perform actions."},tokens:{title:"No API tokens",sub:"Create one to authenticate CLI tools and external integrations."},networks:{title:"No networks found",sub:"Create one or sign in with V3 auth to see your networks."},generic:{title:"Nothing here yet",sub:"Data will appear here once available."}};function n({variant:e,size:r}){let s={width:r,height:r},a={fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"};switch(e){case"nodes":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"32",cy:"14",r:"4"}),(0,t.jsx)("circle",{cx:"14",cy:"44",r:"4"}),(0,t.jsx)("circle",{cx:"50",cy:"44",r:"4"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"14",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"50",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"18",y1:"44",x2:"46",y2:"44",strokeDasharray:"3 3",opacity:"0.6"})]})});case"tasks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("rect",{x:"14",y:"14",width:"36",height:"6",rx:"1.5"}),(0,t.jsx)("rect",{x:"14",y:"26",width:"36",height:"6",rx:"1.5",opacity:"0.6"}),(0,t.jsx)("rect",{x:"14",y:"38",width:"36",height:"6",rx:"1.5",opacity:"0.35"})]})});case"messages":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("path",{d:"M14 18 h36 a3 3 0 0 1 3 3 v18 a3 3 0 0 1 -3 3 h-18 l-8 6 v-6 h-10 a3 3 0 0 1 -3 -3 v-18 a3 3 0 0 1 3 -3 z"}),(0,t.jsx)("line",{x1:"22",y1:"28",x2:"42",y2:"28",opacity:"0.5"}),(0,t.jsx)("line",{x1:"22",y1:"34",x2:"36",y2:"34",opacity:"0.5"})]})});case"logs":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("path",{d:"M18 12 h22 l8 8 v32 a2 2 0 0 1 -2 2 h-28 a2 2 0 0 1 -2 -2 v-38 a2 2 0 0 1 2 -2 z"}),(0,t.jsx)("path",{d:"M40 12 v8 h8",opacity:"0.6"}),(0,t.jsx)("line",{x1:"24",y1:"32",x2:"40",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"24",y1:"38",x2:"40",y2:"38",opacity:"0.4"}),(0,t.jsx)("line",{x1:"24",y1:"44",x2:"34",y2:"44",opacity:"0.25"})]})});case"tokens":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"22",cy:"32",r:"8"}),(0,t.jsx)("line",{x1:"30",y1:"32",x2:"54",y2:"32"}),(0,t.jsx)("line",{x1:"44",y1:"32",x2:"44",y2:"38"}),(0,t.jsx)("line",{x1:"50",y1:"32",x2:"50",y2:"40"})]})});case"networks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"18"}),(0,t.jsx)("ellipse",{cx:"32",cy:"32",rx:"18",ry:"9",opacity:"0.55"}),(0,t.jsx)("line",{x1:"14",y1:"32",x2:"50",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"32",y1:"14",x2:"32",y2:"50",opacity:"0.55"})]})});default:return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"14",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("circle",{cx:"32",cy:"32",r:"3"})]})})}}function i({variant:e="generic",title:r,sub:l,cta:o,compact:c=!1}){let x=a[e],d=r??x.title,h=l??x.sub;return(0,t.jsxs)("div",{className:`text-center ${c?"py-8":"py-16"} px-4`,role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)(n,{variant:e,size:c?40:56})}),(0,t.jsx)("h3",{className:`font-medium text-gray-300 ${c?"text-sm":"text-base"}`,children:d}),h&&(0,t.jsx)("p",{className:`text-gray-500 ${c?"text-xs mt-1.5":"text-sm mt-2"} max-w-md mx-auto leading-relaxed`,children:h}),o&&(0,t.jsx)("div",{className:"mt-4",children:o.href?(0,t.jsxs)(s.default,{href:o.href,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]}):(0,t.jsxs)("button",{onClick:o.onClick,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})}function l({cmd:e}){let[s,a]=(0,r.useState)(!1),n=async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!1),1800)}catch{}};return(0,t.jsxs)("div",{className:"anet-empty-cmd flex items-center gap-2 bg-[#0a0a15] border border-[#2a2a4a] rounded-lg pl-4 pr-1.5 py-1.5 text-xs sm:text-sm",children:[(0,t.jsx)("code",{className:"text-cyan-300 font-mono select-all",children:e}),(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":s?"Copied":"Copy command",className:"shrink-0 rounded-md px-2 py-1.5 text-[11px] text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] transition-colors",children:s?(0,t.jsxs)("span",{className:"flex items-center gap-1 text-green-400",children:[(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})}),"Copied"]}):(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),"Copy"]})})]})}e.s(["EmptyState",0,i,"NodesEmptyState",0,function({hint:e}){return e?.global_count?(0,t.jsx)(i,{variant:"nodes",title:"No agents in this network",sub:`Server has ${e.global_count} nodes globally, but none are registered to the current network. Switch network or contact admin.`}):(0,t.jsxs)("div",{className:"text-center py-16 px-4",role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)("svg",{viewBox:"0 0 64 64",width:56,height:56,children:(0,t.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",children:[(0,t.jsx)("rect",{x:"10",y:"20",width:"44",height:"28",rx:"2"}),(0,t.jsx)("rect",{x:"20",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"32",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"44",y:"32",width:"4",height:"8",opacity:"0.5"}),(0,t.jsx)("line",{x1:"10",y1:"26",x2:"54",y2:"26",opacity:"0.4"}),(0,t.jsx)("circle",{cx:"14",cy:"23",r:"0.8",fill:"currentColor"})]})})}),(0,t.jsx)("h3",{className:"font-medium text-gray-300 text-base",children:"Spin up your first agent"}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mt-2 max-w-md mx-auto leading-relaxed",children:"Run this in a fresh terminal to register an agent with this CommHub:"}),(0,t.jsx)("div",{className:"mt-4 inline-block",children:(0,t.jsx)(l,{cmd:"npx --yes @sleep2agi/agent-network init"})}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsxs)("a",{href:"https://anet.sh",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs font-medium text-gray-500 hover:text-cyan-300",children:["Full quickstart guide",(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})}])},18581,e=>{"use strict";var t=e.i(18050),r=e.i(71645),s=e.i(22016),a=e.i(18150),n=e.i(95356),i=e.i(69874),l=e.i(83599);let o=e=>fetch(e).then(e=>e.json());e.s(["default",0,function(){let{data:e,mutate:c}=(0,l.default)("/api/hub/networks",o,{refreshInterval:1e4}),x=e?.networks||[],d=!e,[h,m]=(0,r.useState)(""),[u,p]=(0,r.useState)(""),[g,y]=(0,r.useState)(""),[j,b]=(0,r.useState)(null),[v,w]=(0,r.useState)(null),[f,k]=(0,r.useState)({}),[N,C]=(0,r.useState)("member"),[_,S]=(0,r.useState)(""),$=()=>{try{let e=sessionStorage.getItem("anet_v3_auth");if(e)return JSON.parse(e).token}catch{}return""},T=async()=>{if(!h.trim())return;let e=$();if(!e)return void y("V3 auth required — sign in via Agent Network login");let t=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"create_network",token:e,name:h,description:u})}),r=await t.json();y(r.ok?`Created: ${r.network_id}`:`Failed: ${r.error}`),r.ok&&(m(""),p(""),c()),setTimeout(()=>y(""),5e3)},M=async e=>{let t=$();if(!t)return;let r=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete_network",token:t,network_id:e})}),s=await r.json();y(s.ok?"Deleted":`Failed: ${s.error}`),b(null),s.ok&&c(),setTimeout(()=>y(""),5e3)},A=async e=>{let t=$();if(!t)return;let r=await fetch(`/api/hub/auth?endpoint=/api/networks/${e}/members&token=${t}`),s=await r.json();k(t=>({...t,[e]:s.members||[]}))},B=async e=>{let t=$();if(!t)return;let r=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"invite_member",token:t,network_id:e,role:N})}),s=await r.json();s.ok&&s.invite_code?S(s.invite_code):y(`Invite failed: ${s.error}`)};return(0,t.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,t.jsx)(s.default,{href:"/settings",className:"text-gray-500 hover:text-gray-300 text-sm lg:ml-0 ml-10",children:"← Settings"}),(0,t.jsx)("h1",{className:"text-2xl font-bold text-white",children:"Networks"}),(0,t.jsx)("span",{className:"text-xs bg-blue-900/30 text-blue-400 px-2 py-0.5 rounded-full border border-blue-800/30",children:x.length})]}),(0,t.jsxs)("div",{className:"max-w-2xl space-y-6",children:[(0,t.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-3",children:"Create Network"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("input",{type:"text",value:h,onChange:e=>m(e.target.value),placeholder:"Network name",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,t.jsx)("input",{type:"text",value:u,onChange:e=>p(e.target.value),placeholder:"Description (optional)",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,t.jsx)("button",{onClick:T,disabled:!h.trim(),className:"px-4 py-2 bg-green-600 hover:bg-green-500 disabled:bg-gray-800 text-white text-sm rounded-lg transition-colors",children:"Create"})]}),g&&(0,t.jsx)("div",{className:`mt-2 text-xs ${g.startsWith("Failed")||g.startsWith("V3")||g.startsWith("Invite")?"text-red-400":"text-green-400"}`,children:g})]}),(0,t.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"My Networks"}),x.length>0&&(0,t.jsxs)("span",{className:"text-[10px] text-gray-600 uppercase tracking-wide",children:[x.length," total"]})]}),d?(0,t.jsx)("div",{className:"animate-pulse space-y-2",children:[1,2].map(e=>(0,t.jsx)("div",{className:"h-14 bg-gray-800/20 rounded"},e))}):0===x.length?(0,t.jsx)(n.EmptyState,{variant:"networks",compact:!0,sub:"Create your first network above, or sign in with V3 auth to see existing ones."}):(0,t.jsx)("div",{className:"space-y-3",children:x.map(e=>(0,t.jsxs)("div",{className:"bg-[#0a0a15] rounded-lg px-4 py-3 border border-[#1a1a2a]",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 min-w-0",children:[(0,t.jsx)(i.AliasAvatar,{alias:e.network_name,size:28}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-sm text-white font-medium truncate",children:e.network_name}),(0,t.jsxs)("div",{className:"text-[10px] text-gray-500 font-mono truncate",title:e.network_id,children:[e.network_id," · ",(0,a.timeAgo)(e.created_at)]}),e.description&&(0,t.jsx)("div",{className:"text-xs text-gray-400 mt-1",children:e.description})]})]}),(0,t.jsxs)("div",{className:"flex gap-2 shrink-0",children:[(0,t.jsx)("button",{onClick:()=>{v===e.network_id?w(null):(w(e.network_id),A(e.network_id))},className:"text-xs text-cyan-400 hover:text-cyan-300 px-2 py-1 rounded border border-cyan-800/30 hover:bg-cyan-500/10",children:v===e.network_id?"Hide":"Members"}),j===e.network_id?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>M(e.network_id),className:"text-xs text-red-400 px-2 py-1 rounded border border-red-800/30 bg-red-500/10",children:"Confirm"}),(0,t.jsx)("button",{onClick:()=>b(null),className:"text-xs text-gray-500",children:"Cancel"})]}):(0,t.jsx)("button",{onClick:()=>b(e.network_id),className:"text-xs text-red-400 hover:text-red-300 px-2 py-1 rounded border border-red-800/30 hover:bg-red-500/10",children:"Delete"})]})]}),v===e.network_id&&(0,t.jsxs)("div",{className:"mt-3 pt-3 border-t border-[#1a1a2a]",children:[(0,t.jsxs)("div",{className:"text-xs text-gray-500 mb-2",children:["Members (",(f[e.network_id]||[]).length,")"]}),0===(f[e.network_id]||[]).length?(0,t.jsx)("div",{className:"text-[10px] text-gray-600",children:"No members or V3 auth required"}):(f[e.network_id]||[]).map(e=>{let r=e.username||e.display_name||"?";return(0,t.jsxs)("div",{className:"flex items-center gap-2 justify-between text-xs py-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)(i.AliasAvatar,{alias:r,size:16}),(0,t.jsx)("span",{className:"text-gray-300 truncate",children:r})]}),(0,t.jsx)("span",{className:`px-1.5 py-0.5 rounded border text-[10px] shrink-0 ${"owner"===e.role?"text-yellow-300 border-yellow-500/20":"text-gray-400 border-gray-600/20"}`,children:e.role})]},e.user_id)}),(0,t.jsxs)("div",{className:"mt-3 pt-3 border-t border-[#1a1a2a]",children:[(0,t.jsx)("div",{className:"text-xs text-gray-500 mb-2",children:"Invite"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("select",{value:N,onChange:e=>C(e.target.value),className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white focus:outline-none",children:[(0,t.jsx)("option",{value:"member",children:"member"}),(0,t.jsx)("option",{value:"admin",children:"admin"}),(0,t.jsx)("option",{value:"viewer",children:"viewer"})]}),(0,t.jsx)("button",{onClick:()=>B(e.network_id),className:"px-2 py-1 bg-green-600 hover:bg-green-500 text-white text-xs rounded",children:"Generate Code"})]}),_&&(0,t.jsxs)("div",{className:"mt-2 bg-green-500/5 border border-green-500/20 rounded px-3 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,t.jsx)("div",{className:"text-[10px] text-green-400 uppercase tracking-wide",children:"Invite code"}),(0,t.jsx)("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(_).catch(()=>{})},className:"text-[10px] text-green-300 hover:text-green-200 px-1.5 py-0.5 rounded border border-green-500/20 hover:bg-green-500/10",children:"Copy"})]}),(0,t.jsx)("code",{className:"text-xs text-green-300 select-all break-all",children:_})]})]})]})]},e.network_id))})]})]})]})}])}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18150,e=>{"use strict";e.s(["formatUptime",0,function(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60);return t>0?`${t}h ${r}m`:`${r}m`},"previewContent",0,function(e){return e&&e.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`([^`]+)`/g,"$1").replace(/\s+/g," ").trim()||"--"},"timeAgo",0,function(e){if(!e)return"--";let t=Math.floor((Date.now()-new Date(e.replace(" ","T")+"Z").getTime())/1e3);return t<60?`${t}s ago`:t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:`${Math.floor(t/86400)}d ago`}])},69874,e=>{"use strict";var t=e.i(18050);let r=[180,200,220,270,300,330,30,90];e.s(["AliasAvatar",0,function({alias:e,size:s=28,className:a=""}){let n=function(e){let t=0;for(let r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)>>>0;let s=r[t%r.length];return{bg:`hsl(${s} 55% 22%)`,ring:`hsl(${s} 60% 45%)`,text:`hsl(${s} 80% 78%)`}}(e),i=Math.max(9,Math.round(.42*s));return(0,t.jsx)("span",{className:`anet-alias-avatar inline-flex items-center justify-center rounded-full border shrink-0 font-semibold ${a}`,style:{width:s,height:s,fontSize:i,backgroundColor:n.bg,borderColor:n.ring,color:n.text},title:e,"aria-hidden":!0,children:e?(e.trim().match(/[\p{L}\p{N}]/u)?.[0]||e.trim()[0]||"·").toUpperCase():"·"})}])},95356,e=>{"use strict";var t=e.i(18050),r=e.i(71645),s=e.i(22016);let a={nodes:{title:"No agents in this network",sub:"Agent sessions will appear here once they connect to the CommHub."},tasks:{title:"No tasks yet",sub:"Tasks will appear here when agents send them via CommHub."},messages:{title:"No messages",sub:"Messages between agents will appear here."},logs:{title:"No audit logs",sub:"Events will appear here when users register, login, or perform actions."},tokens:{title:"No API tokens",sub:"Create one to authenticate CLI tools and external integrations."},networks:{title:"No networks found",sub:"Create one or sign in with V3 auth to see your networks."},generic:{title:"Nothing here yet",sub:"Data will appear here once available."}};function n({variant:e,size:r}){let s={width:r,height:r},a={fill:"none",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"};switch(e){case"nodes":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"32",cy:"14",r:"4"}),(0,t.jsx)("circle",{cx:"14",cy:"44",r:"4"}),(0,t.jsx)("circle",{cx:"50",cy:"44",r:"4"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"14",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"32",y1:"18",x2:"50",y2:"40",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("line",{x1:"18",y1:"44",x2:"46",y2:"44",strokeDasharray:"3 3",opacity:"0.6"})]})});case"tasks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("rect",{x:"14",y:"14",width:"36",height:"6",rx:"1.5"}),(0,t.jsx)("rect",{x:"14",y:"26",width:"36",height:"6",rx:"1.5",opacity:"0.6"}),(0,t.jsx)("rect",{x:"14",y:"38",width:"36",height:"6",rx:"1.5",opacity:"0.35"})]})});case"messages":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("path",{d:"M14 18 h36 a3 3 0 0 1 3 3 v18 a3 3 0 0 1 -3 3 h-18 l-8 6 v-6 h-10 a3 3 0 0 1 -3 -3 v-18 a3 3 0 0 1 3 -3 z"}),(0,t.jsx)("line",{x1:"22",y1:"28",x2:"42",y2:"28",opacity:"0.5"}),(0,t.jsx)("line",{x1:"22",y1:"34",x2:"36",y2:"34",opacity:"0.5"})]})});case"logs":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("path",{d:"M18 12 h22 l8 8 v32 a2 2 0 0 1 -2 2 h-28 a2 2 0 0 1 -2 -2 v-38 a2 2 0 0 1 2 -2 z"}),(0,t.jsx)("path",{d:"M40 12 v8 h8",opacity:"0.6"}),(0,t.jsx)("line",{x1:"24",y1:"32",x2:"40",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"24",y1:"38",x2:"40",y2:"38",opacity:"0.4"}),(0,t.jsx)("line",{x1:"24",y1:"44",x2:"34",y2:"44",opacity:"0.25"})]})});case"tokens":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"22",cy:"32",r:"8"}),(0,t.jsx)("line",{x1:"30",y1:"32",x2:"54",y2:"32"}),(0,t.jsx)("line",{x1:"44",y1:"32",x2:"44",y2:"38"}),(0,t.jsx)("line",{x1:"50",y1:"32",x2:"50",y2:"40"})]})});case"networks":return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"18"}),(0,t.jsx)("ellipse",{cx:"32",cy:"32",rx:"18",ry:"9",opacity:"0.55"}),(0,t.jsx)("line",{x1:"14",y1:"32",x2:"50",y2:"32",opacity:"0.55"}),(0,t.jsx)("line",{x1:"32",y1:"14",x2:"32",y2:"50",opacity:"0.55"})]})});default:return(0,t.jsx)("svg",{viewBox:"0 0 64 64",...s,children:(0,t.jsxs)("g",{...a,children:[(0,t.jsx)("circle",{cx:"32",cy:"32",r:"14",strokeDasharray:"3 3",opacity:"0.6"}),(0,t.jsx)("circle",{cx:"32",cy:"32",r:"3"})]})})}}function i({variant:e="generic",title:r,sub:l,cta:o,compact:c=!1}){let x=a[e],d=r??x.title,h=l??x.sub;return(0,t.jsxs)("div",{className:`text-center ${c?"py-8":"py-16"} px-4`,role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)(n,{variant:e,size:c?40:56})}),(0,t.jsx)("h3",{className:`font-medium text-gray-300 ${c?"text-sm":"text-base"}`,children:d}),h&&(0,t.jsx)("p",{className:`text-gray-500 ${c?"text-xs mt-1.5":"text-sm mt-2"} max-w-md mx-auto leading-relaxed`,children:h}),o&&(0,t.jsx)("div",{className:"mt-4",children:o.href?(0,t.jsxs)(s.default,{href:o.href,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]}):(0,t.jsxs)("button",{onClick:o.onClick,className:"inline-flex items-center gap-1.5 text-sm font-medium text-cyan-400 hover:text-cyan-300",children:[o.label,(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})}function l({cmd:e}){let[s,a]=(0,r.useState)(!1),n=async()=>{try{await navigator.clipboard.writeText(e),a(!0),setTimeout(()=>a(!1),1800)}catch{}};return(0,t.jsxs)("div",{className:"anet-empty-cmd flex items-center gap-2 bg-[#0a0a15] border border-[#2a2a4a] rounded-lg pl-4 pr-1.5 py-1.5 text-xs sm:text-sm",children:[(0,t.jsx)("code",{className:"text-cyan-300 font-mono select-all",children:e}),(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":s?"Copied":"Copy command",className:"shrink-0 rounded-md px-2 py-1.5 text-[11px] text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] transition-colors",children:s?(0,t.jsxs)("span",{className:"flex items-center gap-1 text-green-400",children:[(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M20 6 9 17l-5-5"})}),"Copied"]}):(0,t.jsxs)("span",{className:"flex items-center gap-1",children:[(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),(0,t.jsx)("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),"Copy"]})})]})}e.s(["EmptyState",0,i,"NodesEmptyState",0,function({hint:e}){return e?.global_count?(0,t.jsx)(i,{variant:"nodes",title:"No agents in this network",sub:`Server has ${e.global_count} nodes globally, but none are registered to the current network. Switch network or contact admin.`}):(0,t.jsxs)("div",{className:"text-center py-16 px-4",role:"status",children:[(0,t.jsx)("div",{className:"anet-empty-glyph inline-flex items-center justify-center mb-4 text-gray-500","aria-hidden":!0,children:(0,t.jsx)("svg",{viewBox:"0 0 64 64",width:56,height:56,children:(0,t.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",children:[(0,t.jsx)("rect",{x:"10",y:"20",width:"44",height:"28",rx:"2"}),(0,t.jsx)("rect",{x:"20",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"32",y:"32",width:"6",height:"8",opacity:"0.5"}),(0,t.jsx)("rect",{x:"44",y:"32",width:"4",height:"8",opacity:"0.5"}),(0,t.jsx)("line",{x1:"10",y1:"26",x2:"54",y2:"26",opacity:"0.4"}),(0,t.jsx)("circle",{cx:"14",cy:"23",r:"0.8",fill:"currentColor"})]})})}),(0,t.jsx)("h3",{className:"font-medium text-gray-300 text-base",children:"Spin up your first agent"}),(0,t.jsx)("p",{className:"text-gray-500 text-sm mt-2 max-w-md mx-auto leading-relaxed",children:"Run this in a fresh terminal to register an agent with this CommHub:"}),(0,t.jsx)("div",{className:"mt-4 inline-block",children:(0,t.jsx)(l,{cmd:"npx --yes @sleep2agi/agent-network init"})}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsxs)("a",{href:"https://anet.sh",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs font-medium text-gray-500 hover:text-cyan-300",children:["Full quickstart guide",(0,t.jsx)("span",{"aria-hidden":!0,children:"→"})]})})]})}])},18581,e=>{"use strict";var t=e.i(18050),r=e.i(71645),s=e.i(22016),a=e.i(18150),n=e.i(95356),i=e.i(69874),l=e.i(83599);let o=e=>fetch(e).then(e=>e.json());e.s(["default",0,function(){let{data:e,mutate:c}=(0,l.default)("/api/hub/networks",o,{refreshInterval:1e4}),x=e?.networks||[],d=!e,[h,m]=(0,r.useState)(""),[u,p]=(0,r.useState)(""),[g,y]=(0,r.useState)(""),[j,b]=(0,r.useState)(null),[v,w]=(0,r.useState)(null),[f,k]=(0,r.useState)({}),[N,C]=(0,r.useState)("member"),[_,S]=(0,r.useState)(""),$=()=>{try{let e=sessionStorage.getItem("anet_v3_auth");if(e)return JSON.parse(e).token}catch{}return""},T=async()=>{if(!h.trim())return;let e=$();if(!e)return void y("V3 auth required — sign in via Agent Network login");let t=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"create_network",token:e,name:h,description:u})}),r=await t.json();y(r.ok?`Created: ${r.network_id}`:`Failed: ${r.error}`),r.ok&&(m(""),p(""),c()),setTimeout(()=>y(""),5e3)},M=async e=>{let t=$();if(!t)return;let r=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"delete_network",token:t,network_id:e})}),s=await r.json();y(s.ok?"Deleted":`Failed: ${s.error}`),b(null),s.ok&&c(),setTimeout(()=>y(""),5e3)},A=async e=>{let t=$();if(!t)return;let r=await fetch(`/api/hub/auth?endpoint=/api/networks/${e}/members&token=${t}`),s=await r.json();k(t=>({...t,[e]:s.members||[]}))},B=async e=>{let t=$();if(!t)return;let r=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"invite_member",token:t,network_id:e,role:N})}),s=await r.json();s.ok&&s.invite_code?S(s.invite_code):y(`Invite failed: ${s.error}`)};return(0,t.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,t.jsx)(s.default,{href:"/settings",className:"text-gray-500 hover:text-gray-300 text-sm lg:ml-0 ml-10",children:"← Settings"}),(0,t.jsx)("h1",{className:"text-2xl font-bold text-white",children:"Networks"})]}),(0,t.jsxs)("div",{className:"max-w-2xl space-y-6",children:[(0,t.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-gray-300 mb-3",children:"Create Network"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("input",{type:"text",value:h,onChange:e=>m(e.target.value),placeholder:"Network name",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,t.jsx)("input",{type:"text",value:u,onChange:e=>p(e.target.value),placeholder:"Description (optional)",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,t.jsx)("button",{onClick:T,disabled:!h.trim(),className:"px-4 py-2 bg-green-600 hover:bg-green-500 disabled:bg-gray-800 text-white text-sm rounded-lg transition-colors",children:"Create"})]}),g&&(0,t.jsx)("div",{className:`mt-2 text-xs ${g.startsWith("Failed")||g.startsWith("V3")||g.startsWith("Invite")?"text-red-400":"text-green-400"}`,children:g})]}),(0,t.jsxs)("section",{className:"bg-[#111128] border border-[#2a2a4a] rounded-xl p-5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"My Networks"}),x.length>0&&(0,t.jsxs)("span",{className:"text-[10px] text-gray-600 uppercase tracking-wide",children:[x.length," total"]})]}),d?(0,t.jsx)("div",{className:"animate-pulse space-y-2",children:[1,2].map(e=>(0,t.jsx)("div",{className:"h-14 bg-gray-800/20 rounded"},e))}):0===x.length?(0,t.jsx)(n.EmptyState,{variant:"networks",compact:!0,sub:"Create your first network above, or sign in with V3 auth to see existing ones."}):(0,t.jsx)("div",{className:"space-y-3",children:x.map(e=>(0,t.jsxs)("div",{className:"bg-[#0a0a15] rounded-lg px-4 py-3 border border-[#1a1a2a]",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3 min-w-0",children:[(0,t.jsx)(i.AliasAvatar,{alias:e.network_name,size:28}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-sm text-white font-medium truncate",children:e.network_name}),(0,t.jsxs)("div",{className:"text-[10px] text-gray-500 font-mono truncate",title:e.network_id,children:[e.network_id," · ",(0,a.timeAgo)(e.created_at)]}),e.description&&(0,t.jsx)("div",{className:"text-xs text-gray-400 mt-1",children:e.description})]})]}),(0,t.jsxs)("div",{className:"flex gap-2 shrink-0",children:[(0,t.jsx)("button",{onClick:()=>{v===e.network_id?w(null):(w(e.network_id),A(e.network_id))},className:"text-xs text-cyan-400 hover:text-cyan-300 px-2 py-1 rounded border border-cyan-800/30 hover:bg-cyan-500/10",children:v===e.network_id?"Hide":"Members"}),j===e.network_id?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>M(e.network_id),className:"text-xs text-red-400 px-2 py-1 rounded border border-red-800/30 bg-red-500/10",children:"Confirm"}),(0,t.jsx)("button",{onClick:()=>b(null),className:"text-xs text-gray-500",children:"Cancel"})]}):(0,t.jsx)("button",{onClick:()=>b(e.network_id),className:"text-xs text-red-400 hover:text-red-300 px-2 py-1 rounded border border-red-800/30 hover:bg-red-500/10",children:"Delete"})]})]}),v===e.network_id&&(0,t.jsxs)("div",{className:"mt-3 pt-3 border-t border-[#1a1a2a]",children:[(0,t.jsxs)("div",{className:"text-xs text-gray-500 mb-2",children:["Members (",(f[e.network_id]||[]).length,")"]}),0===(f[e.network_id]||[]).length?(0,t.jsx)("div",{className:"text-[10px] text-gray-600",children:"No members or V3 auth required"}):(f[e.network_id]||[]).map(e=>{let r=e.username||e.display_name||"?";return(0,t.jsxs)("div",{className:"flex items-center gap-2 justify-between text-xs py-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,t.jsx)(i.AliasAvatar,{alias:r,size:16}),(0,t.jsx)("span",{className:"text-gray-300 truncate",children:r})]}),(0,t.jsx)("span",{className:`px-1.5 py-0.5 rounded border text-[10px] shrink-0 ${"owner"===e.role?"text-yellow-300 border-yellow-500/20":"text-gray-400 border-gray-600/20"}`,children:e.role})]},e.user_id)}),(0,t.jsxs)("div",{className:"mt-3 pt-3 border-t border-[#1a1a2a]",children:[(0,t.jsx)("div",{className:"text-xs text-gray-500 mb-2",children:"Invite"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("select",{value:N,onChange:e=>C(e.target.value),className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white focus:outline-none",children:[(0,t.jsx)("option",{value:"member",children:"member"}),(0,t.jsx)("option",{value:"admin",children:"admin"}),(0,t.jsx)("option",{value:"viewer",children:"viewer"})]}),(0,t.jsx)("button",{onClick:()=>B(e.network_id),className:"px-2 py-1 bg-green-600 hover:bg-green-500 text-white text-xs rounded",children:"Generate Code"})]}),_&&(0,t.jsxs)("div",{className:"mt-2 bg-green-500/5 border border-green-500/20 rounded px-3 py-2",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,t.jsx)("div",{className:"text-[10px] text-green-400 uppercase tracking-wide",children:"Invite code"}),(0,t.jsx)("button",{type:"button",onClick:()=>{navigator.clipboard?.writeText(_).catch(()=>{})},className:"text-[10px] text-green-300 hover:text-green-200 px-1.5 py-0.5 rounded border border-green-500/20 hover:bg-green-500/10",children:"Copy"})]}),(0,t.jsx)("code",{className:"text-xs text-green-300 select-all break-all",children:_})]})]})]})]},e.network_id))})]})]})]})}])}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":406,"timestamp":227700349831,"id":4,"parentId":1,"tags":{},"startTime":1778599186175,"traceId":"513eec41b5151432"},{"name":"load-custom-routes","duration":529,"timestamp":227700350415,"id":5,"parentId":1,"tags":{},"startTime":1778599186175,"traceId":"513eec41b5151432"},{"name":"create-dist-dir","duration":468,"timestamp":227700350987,"id":6,"parentId":1,"tags":{},"startTime":1778599186176,"traceId":"513eec41b5151432"},{"name":"clean","duration":592,"timestamp":227700352327,"id":7,"parentId":1,"tags":{},"startTime":1778599186177,"traceId":"513eec41b5151432"},{"name":"discover-routes","duration":12044,"timestamp":227700449076,"id":8,"parentId":1,"tags":{},"startTime":1778599186274,"traceId":"513eec41b5151432"},{"name":"create-root-mapping","duration":150,"timestamp":227700461197,"id":9,"parentId":1,"tags":{},"startTime":1778599186286,"traceId":"513eec41b5151432"},{"name":"generate-route-types","duration":35579,"timestamp":227700463894,"id":10,"parentId":1,"tags":{},"startTime":1778599186289,"traceId":"513eec41b5151432"},{"name":"public-dir-conflict-check","duration":120,"timestamp":227700499683,"id":11,"parentId":1,"tags":{},"startTime":1778599186324,"traceId":"513eec41b5151432"},{"name":"generate-routes-manifest","duration":4814,"timestamp":227700499945,"id":12,"parentId":1,"tags":{},"startTime":1778599186325,"traceId":"513eec41b5151432"},{"name":"run-turbopack","duration":9414581,"timestamp":227700512079,"id":14,"parentId":1,"tags":{},"startTime":1778599186337,"traceId":"513eec41b5151432"},{"name":"turbopack-build-events","duration":87,"timestamp":227700838064,"id":15,"parentId":1,"tags":{},"startTime":1778599186663,"traceId":"513eec41b5151432"},{"name":"run-typescript","duration":8863211,"timestamp":227709934130,"id":16,"parentId":1,"tags":{},"startTime":1778599195759,"traceId":"513eec41b5151432"},{"name":"generate-required-server-files","duration":2197,"timestamp":227718798259,"id":18,"parentId":1,"tags":{},"startTime":1778599204623,"traceId":"513eec41b5151432"},{"name":"check-static-error-page","duration":15365,"timestamp":227718868931,"id":20,"parentId":19,"tags":{},"startTime":1778599204694,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":323367,"timestamp":227718887526,"id":62,"parentId":22,"tags":{},"startTime":1778599204712,"traceId":"513eec41b5151432"},{"name":"check-page","duration":339279,"timestamp":227718871795,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778599204696,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":412275,"timestamp":227718887210,"id":61,"parentId":21,"tags":{},"startTime":1778599204712,"traceId":"513eec41b5151432"},{"name":"check-page","duration":429571,"timestamp":227718869985,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778599204695,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":436206,"timestamp":227718887763,"id":64,"parentId":26,"tags":{},"startTime":1778599204712,"traceId":"513eec41b5151432"},{"name":"check-page","duration":448544,"timestamp":227718876854,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778599204702,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":440656,"timestamp":227718887843,"id":66,"parentId":28,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":451455,"timestamp":227718877097,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778599204702,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":444364,"timestamp":227718887884,"id":67,"parentId":29,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":455093,"timestamp":227718877211,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778599204702,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":447666,"timestamp":227718887918,"id":68,"parentId":30,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":458202,"timestamp":227718877433,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778599204702,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":455136,"timestamp":227718887952,"id":69,"parentId":32,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":465394,"timestamp":227718877768,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778599204702,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":456261,"timestamp":227718888126,"id":70,"parentId":33,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":466567,"timestamp":227718877873,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778599204703,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":462648,"timestamp":227718888185,"id":71,"parentId":34,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":472938,"timestamp":227718877955,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778599204703,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":466825,"timestamp":227718888206,"id":72,"parentId":35,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":477039,"timestamp":227718878051,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778599204703,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":469080,"timestamp":227718887613,"id":63,"parentId":25,"tags":{},"startTime":1778599204712,"traceId":"513eec41b5151432"},{"name":"check-page","duration":480108,"timestamp":227718876643,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778599204701,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":477313,"timestamp":227718888266,"id":73,"parentId":36,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":487259,"timestamp":227718878386,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778599204703,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":479393,"timestamp":227718888284,"id":74,"parentId":37,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":489249,"timestamp":227718878526,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778599204703,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":482239,"timestamp":227718888297,"id":75,"parentId":38,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":491957,"timestamp":227718878631,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778599204703,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":485980,"timestamp":227718888312,"id":77,"parentId":40,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":495568,"timestamp":227718878784,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778599204703,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":488811,"timestamp":227718887804,"id":65,"parentId":27,"tags":{},"startTime":1778599204712,"traceId":"513eec41b5151432"},{"name":"check-page","duration":499679,"timestamp":227718876978,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778599204702,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":491539,"timestamp":227718888323,"id":78,"parentId":41,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":501056,"timestamp":227718878861,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778599204704,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":493576,"timestamp":227718888337,"id":80,"parentId":43,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":502890,"timestamp":227718879061,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778599204704,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":499290,"timestamp":227718888345,"id":81,"parentId":44,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":508544,"timestamp":227718879142,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778599204704,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":502615,"timestamp":227718888306,"id":76,"parentId":39,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":512261,"timestamp":227718878712,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778599204703,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":503296,"timestamp":227718888350,"id":82,"parentId":45,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":512467,"timestamp":227718879227,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778599204704,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":504235,"timestamp":227718888331,"id":79,"parentId":42,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":513657,"timestamp":227718878954,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778599204704,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":506584,"timestamp":227718888367,"id":84,"parentId":47,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":515589,"timestamp":227718879399,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778599204704,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":507719,"timestamp":227718888373,"id":85,"parentId":48,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":516672,"timestamp":227718879467,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778599204704,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":508566,"timestamp":227718890491,"id":86,"parentId":24,"tags":{},"startTime":1778599204715,"traceId":"513eec41b5151432"},{"name":"check-page","duration":526816,"timestamp":227718872281,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778599204697,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":508784,"timestamp":227718891247,"id":87,"parentId":31,"tags":{},"startTime":1778599204716,"traceId":"513eec41b5151432"},{"name":"check-page","duration":522519,"timestamp":227718877546,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778599204702,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":511848,"timestamp":227718888359,"id":83,"parentId":46,"tags":{},"startTime":1778599204713,"traceId":"513eec41b5151432"},{"name":"check-page","duration":520901,"timestamp":227718879324,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778599204704,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":506908,"timestamp":227718903225,"id":89,"parentId":49,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":530415,"timestamp":227718879790,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778599204704,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":509271,"timestamp":227718903242,"id":91,"parentId":51,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":532462,"timestamp":227718880098,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778599204705,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":515636,"timestamp":227718903252,"id":92,"parentId":52,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":538640,"timestamp":227718880299,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778599204705,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":521590,"timestamp":227718903257,"id":93,"parentId":53,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":544414,"timestamp":227718880482,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778599204705,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":527456,"timestamp":227718903265,"id":94,"parentId":55,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":549556,"timestamp":227718881221,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778599204706,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":533122,"timestamp":227718903273,"id":95,"parentId":56,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":553244,"timestamp":227718883226,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778599204708,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":538439,"timestamp":227718903278,"id":96,"parentId":58,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":557981,"timestamp":227718883790,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778599204708,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":538660,"timestamp":227718903233,"id":90,"parentId":50,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":561976,"timestamp":227718879941,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778599204705,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":544602,"timestamp":227718903295,"id":98,"parentId":60,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":563903,"timestamp":227718884058,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778599204709,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":544998,"timestamp":227718903186,"id":88,"parentId":23,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":576165,"timestamp":227718872055,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778599204697,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":549214,"timestamp":227718903286,"id":97,"parentId":59,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":568638,"timestamp":227718883920,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778599204709,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":549322,"timestamp":227718903304,"id":99,"parentId":54,"tags":{},"startTime":1778599204728,"traceId":"513eec41b5151432"},{"name":"check-page","duration":571919,"timestamp":227718880723,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778599204705,"traceId":"513eec41b5151432"},{"name":"is-page-static","duration":548901,"timestamp":227718906826,"id":100,"parentId":57,"tags":{},"startTime":1778599204732,"traceId":"513eec41b5151432"},{"name":"check-page","duration":572348,"timestamp":227718883429,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778599204708,"traceId":"513eec41b5151432"},{"name":"static-check","duration":587719,"timestamp":227718868100,"id":19,"parentId":1,"tags":{},"startTime":1778599204693,"traceId":"513eec41b5151432"},{"name":"write-routes-manifest","duration":644,"timestamp":227719466057,"id":102,"parentId":1,"tags":{},"startTime":1778599205291,"traceId":"513eec41b5151432"},{"name":"load-dotenv","duration":44,"timestamp":227719482371,"id":105,"parentId":104,"tags":{},"startTime":1778599205307,"traceId":"513eec41b5151432"},{"name":"run-export-path-map","duration":785,"timestamp":227719486339,"id":106,"parentId":104,"tags":{},"startTime":1778599205311,"traceId":"513eec41b5151432"},{"name":"next-export","duration":600198,"timestamp":227719481112,"id":104,"parentId":1,"tags":{},"startTime":1778599205306,"traceId":"513eec41b5151432"},{"name":"move-exported-app-not-found-","duration":645,"timestamp":227720084718,"id":107,"parentId":103,"tags":{},"startTime":1778599205909,"traceId":"513eec41b5151432"},{"name":"move-exported-app-global-error-","duration":517,"timestamp":227720085481,"id":108,"parentId":103,"tags":{},"startTime":1778599205910,"traceId":"513eec41b5151432"}]
2
- [{"name":"static-generation","duration":618422,"timestamp":227719472298,"id":103,"parentId":1,"tags":{},"startTime":1778599205297,"traceId":"513eec41b5151432"},{"name":"write-routes-manifest","duration":500,"timestamp":227720090936,"id":109,"parentId":1,"tags":{},"startTime":1778599205916,"traceId":"513eec41b5151432"},{"name":"print-tree-view","duration":4064,"timestamp":227720098574,"id":110,"parentId":1,"tags":{},"startTime":1778599205923,"traceId":"513eec41b5151432"},{"name":"write-route-bundle-stats","duration":14857,"timestamp":227720102679,"id":111,"parentId":1,"tags":{},"startTime":1778599205927,"traceId":"513eec41b5151432"},{"name":"telemetry-flush","duration":38333,"timestamp":227720117580,"id":112,"parentId":1,"tags":{},"startTime":1778599205942,"traceId":"513eec41b5151432"},{"name":"next-build","duration":19870604,"timestamp":227700285345,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778599186110,"traceId":"513eec41b5151432"}]
1
+ [{"name":"generate-buildid","duration":297,"timestamp":228194681153,"id":4,"parentId":1,"tags":{},"startTime":1778599680506,"traceId":"217cd2f1cc71efd8"},{"name":"load-custom-routes","duration":486,"timestamp":228194681612,"id":5,"parentId":1,"tags":{},"startTime":1778599680506,"traceId":"217cd2f1cc71efd8"},{"name":"create-dist-dir","duration":636,"timestamp":228194682140,"id":6,"parentId":1,"tags":{},"startTime":1778599680507,"traceId":"217cd2f1cc71efd8"},{"name":"clean","duration":509,"timestamp":228194683449,"id":7,"parentId":1,"tags":{},"startTime":1778599680508,"traceId":"217cd2f1cc71efd8"},{"name":"discover-routes","duration":8901,"timestamp":228194770491,"id":8,"parentId":1,"tags":{},"startTime":1778599680595,"traceId":"217cd2f1cc71efd8"},{"name":"create-root-mapping","duration":130,"timestamp":228194779462,"id":9,"parentId":1,"tags":{},"startTime":1778599680604,"traceId":"217cd2f1cc71efd8"},{"name":"generate-route-types","duration":31452,"timestamp":228194781814,"id":10,"parentId":1,"tags":{},"startTime":1778599680607,"traceId":"217cd2f1cc71efd8"},{"name":"public-dir-conflict-check","duration":124,"timestamp":228194813443,"id":11,"parentId":1,"tags":{},"startTime":1778599680638,"traceId":"217cd2f1cc71efd8"},{"name":"generate-routes-manifest","duration":4174,"timestamp":228194813719,"id":12,"parentId":1,"tags":{},"startTime":1778599680638,"traceId":"217cd2f1cc71efd8"},{"name":"run-turbopack","duration":8202924,"timestamp":228194823534,"id":14,"parentId":1,"tags":{},"startTime":1778599680648,"traceId":"217cd2f1cc71efd8"},{"name":"turbopack-build-events","duration":79,"timestamp":228195126369,"id":15,"parentId":1,"tags":{},"startTime":1778599680951,"traceId":"217cd2f1cc71efd8"},{"name":"run-typescript","duration":7980638,"timestamp":228203041218,"id":16,"parentId":1,"tags":{},"startTime":1778599688866,"traceId":"217cd2f1cc71efd8"},{"name":"generate-required-server-files","duration":2854,"timestamp":228211022803,"id":18,"parentId":1,"tags":{},"startTime":1778599696847,"traceId":"217cd2f1cc71efd8"},{"name":"check-static-error-page","duration":30097,"timestamp":228211101028,"id":20,"parentId":19,"tags":{},"startTime":1778599696926,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":342116,"timestamp":228211134379,"id":62,"parentId":22,"tags":{},"startTime":1778599696959,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":372855,"timestamp":228211103777,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778599696928,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":416484,"timestamp":228211134465,"id":63,"parentId":25,"tags":{},"startTime":1778599696959,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":441970,"timestamp":228211109074,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778599696934,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":424202,"timestamp":228211134721,"id":65,"parentId":27,"tags":{},"startTime":1778599696959,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":448157,"timestamp":228211110832,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778599696936,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":426847,"timestamp":228211134021,"id":61,"parentId":21,"tags":{},"startTime":1778599696959,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":458718,"timestamp":228211102200,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778599696927,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":430532,"timestamp":228211134758,"id":66,"parentId":28,"tags":{},"startTime":1778599696959,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":453886,"timestamp":228211111464,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778599696936,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":437819,"timestamp":228211134848,"id":68,"parentId":30,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":460470,"timestamp":228211112256,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778599696937,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":438199,"timestamp":228211134667,"id":64,"parentId":26,"tags":{},"startTime":1778599696959,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":462349,"timestamp":228211110551,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778599696935,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":457063,"timestamp":228211135344,"id":70,"parentId":33,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":478535,"timestamp":228211113938,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778599696939,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":464683,"timestamp":228211134895,"id":69,"parentId":32,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":486669,"timestamp":228211112982,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778599696938,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":464336,"timestamp":228211135452,"id":71,"parentId":34,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":485639,"timestamp":228211114169,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778599696939,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":470821,"timestamp":228211135483,"id":72,"parentId":35,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":492072,"timestamp":228211114287,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778599696939,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":475484,"timestamp":228211135636,"id":74,"parentId":37,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":496390,"timestamp":228211114793,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778599696939,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":477662,"timestamp":228211135651,"id":75,"parentId":38,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":498473,"timestamp":228211114889,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778599696940,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":479182,"timestamp":228211135602,"id":73,"parentId":36,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":500157,"timestamp":228211114668,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778599696939,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":481239,"timestamp":228211135660,"id":76,"parentId":39,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":501676,"timestamp":228211115262,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778599696940,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":483264,"timestamp":228211135669,"id":77,"parentId":40,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":503519,"timestamp":228211115457,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778599696940,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":485855,"timestamp":228211134799,"id":67,"parentId":29,"tags":{},"startTime":1778599696959,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":508953,"timestamp":228211111752,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778599696936,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":485123,"timestamp":228211135679,"id":78,"parentId":41,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":505171,"timestamp":228211115651,"id":41,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778599696940,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":486244,"timestamp":228211135691,"id":79,"parentId":42,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":506140,"timestamp":228211115828,"id":42,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778599696941,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":488225,"timestamp":228211135709,"id":81,"parentId":44,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":507733,"timestamp":228211116231,"id":44,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778599696941,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":488716,"timestamp":228211135700,"id":80,"parentId":43,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":508422,"timestamp":228211116019,"id":43,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778599696941,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":489706,"timestamp":228211135718,"id":82,"parentId":45,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":509017,"timestamp":228211116433,"id":45,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778599696941,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":492159,"timestamp":228211135737,"id":84,"parentId":47,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":511096,"timestamp":228211116836,"id":47,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778599696942,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":492317,"timestamp":228211135727,"id":83,"parentId":46,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":511415,"timestamp":228211116650,"id":46,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778599696941,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":494220,"timestamp":228211135746,"id":85,"parentId":48,"tags":{},"startTime":1778599696960,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":512992,"timestamp":228211117035,"id":48,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778599696942,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":491788,"timestamp":228211139659,"id":87,"parentId":31,"tags":{},"startTime":1778599696964,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":518938,"timestamp":228211112545,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778599696937,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":494228,"timestamp":228211138399,"id":86,"parentId":24,"tags":{},"startTime":1778599696963,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":528294,"timestamp":228211104362,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778599696929,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":478382,"timestamp":228211161196,"id":90,"parentId":50,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":521824,"timestamp":228211117801,"id":50,"parentId":19,"tags":{"page":"/logs"},"startTime":1778599696942,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":484126,"timestamp":228211161202,"id":91,"parentId":51,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":529170,"timestamp":228211118071,"id":51,"parentId":19,"tags":{"page":"/messages"},"startTime":1778599696943,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":489627,"timestamp":228211161211,"id":92,"parentId":52,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":532478,"timestamp":228211118406,"id":52,"parentId":19,"tags":{"page":"/node"},"startTime":1778599696943,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":495240,"timestamp":228211161220,"id":93,"parentId":53,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":537766,"timestamp":228211118742,"id":53,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778599696943,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":500965,"timestamp":228211161225,"id":94,"parentId":55,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":542404,"timestamp":228211119830,"id":55,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778599696945,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":508076,"timestamp":228211161238,"id":95,"parentId":56,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":547216,"timestamp":228211122172,"id":56,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778599696947,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":513637,"timestamp":228211161247,"id":96,"parentId":58,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":547608,"timestamp":228211127327,"id":58,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778599696952,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":519674,"timestamp":228211161130,"id":88,"parentId":23,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":576762,"timestamp":228211104095,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778599696929,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":526871,"timestamp":228211161252,"id":97,"parentId":59,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":558030,"timestamp":228211130163,"id":59,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778599696955,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":527167,"timestamp":228211161183,"id":89,"parentId":49,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":570865,"timestamp":228211117507,"id":49,"parentId":19,"tags":{"page":"/login"},"startTime":1778599696942,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":530988,"timestamp":228211161264,"id":98,"parentId":60,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":561756,"timestamp":228211130544,"id":60,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778599696955,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":533614,"timestamp":228211161277,"id":99,"parentId":54,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":575812,"timestamp":228211119125,"id":54,"parentId":19,"tags":{"page":"/"},"startTime":1778599696944,"traceId":"217cd2f1cc71efd8"},{"name":"is-page-static","duration":535085,"timestamp":228211161283,"id":100,"parentId":57,"tags":{},"startTime":1778599696986,"traceId":"217cd2f1cc71efd8"},{"name":"check-page","duration":569653,"timestamp":228211126759,"id":57,"parentId":19,"tags":{"page":"/settings"},"startTime":1778599696951,"traceId":"217cd2f1cc71efd8"},{"name":"static-check","duration":596342,"timestamp":228211100104,"id":19,"parentId":1,"tags":{},"startTime":1778599696925,"traceId":"217cd2f1cc71efd8"},{"name":"write-routes-manifest","duration":524,"timestamp":228211702694,"id":102,"parentId":1,"tags":{},"startTime":1778599697527,"traceId":"217cd2f1cc71efd8"},{"name":"load-dotenv","duration":74,"timestamp":228211715949,"id":105,"parentId":104,"tags":{},"startTime":1778599697541,"traceId":"217cd2f1cc71efd8"},{"name":"run-export-path-map","duration":641,"timestamp":228211719147,"id":106,"parentId":104,"tags":{},"startTime":1778599697544,"traceId":"217cd2f1cc71efd8"},{"name":"next-export","duration":539063,"timestamp":228211714309,"id":104,"parentId":1,"tags":{},"startTime":1778599697539,"traceId":"217cd2f1cc71efd8"},{"name":"move-exported-app-not-found-","duration":708,"timestamp":228212257344,"id":107,"parentId":103,"tags":{},"startTime":1778599698082,"traceId":"217cd2f1cc71efd8"},{"name":"move-exported-app-global-error-","duration":483,"timestamp":228212258172,"id":108,"parentId":103,"tags":{},"startTime":1778599698083,"traceId":"217cd2f1cc71efd8"}]
2
+ [{"name":"static-generation","duration":555480,"timestamp":228211708832,"id":103,"parentId":1,"tags":{},"startTime":1778599697534,"traceId":"217cd2f1cc71efd8"},{"name":"write-routes-manifest","duration":578,"timestamp":228212264532,"id":109,"parentId":1,"tags":{},"startTime":1778599698089,"traceId":"217cd2f1cc71efd8"},{"name":"print-tree-view","duration":3775,"timestamp":228212285940,"id":110,"parentId":1,"tags":{},"startTime":1778599698111,"traceId":"217cd2f1cc71efd8"},{"name":"write-route-bundle-stats","duration":11537,"timestamp":228212289752,"id":111,"parentId":1,"tags":{},"startTime":1778599698114,"traceId":"217cd2f1cc71efd8"},{"name":"telemetry-flush","duration":19949,"timestamp":228212301327,"id":112,"parentId":1,"tags":{},"startTime":1778599698126,"traceId":"217cd2f1cc71efd8"},{"name":"next-build","duration":17687136,"timestamp":228194634183,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778599680459,"traceId":"217cd2f1cc71efd8"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":9414581,"timestamp":227700512079,"id":14,"parentId":1,"tags":{},"startTime":1778599186337,"traceId":"513eec41b5151432"},{"name":"turbopack-build-events","duration":87,"timestamp":227700838064,"id":15,"parentId":1,"tags":{},"startTime":1778599186663,"traceId":"513eec41b5151432"},{"name":"run-typescript","duration":8863211,"timestamp":227709934130,"id":16,"parentId":1,"tags":{},"startTime":1778599195759,"traceId":"513eec41b5151432"},{"name":"static-check","duration":587719,"timestamp":227718868100,"id":19,"parentId":1,"tags":{},"startTime":1778599204693,"traceId":"513eec41b5151432"},{"name":"static-generation","duration":618422,"timestamp":227719472298,"id":103,"parentId":1,"tags":{},"startTime":1778599205297,"traceId":"513eec41b5151432"},{"name":"telemetry-flush","duration":38333,"timestamp":227720117580,"id":112,"parentId":1,"tags":{},"startTime":1778599205942,"traceId":"513eec41b5151432"},{"name":"next-build","duration":19870604,"timestamp":227700285345,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778599186110,"traceId":"513eec41b5151432"}]
1
+ [{"name":"run-turbopack","duration":8202924,"timestamp":228194823534,"id":14,"parentId":1,"tags":{},"startTime":1778599680648,"traceId":"217cd2f1cc71efd8"},{"name":"turbopack-build-events","duration":79,"timestamp":228195126369,"id":15,"parentId":1,"tags":{},"startTime":1778599680951,"traceId":"217cd2f1cc71efd8"},{"name":"run-typescript","duration":7980638,"timestamp":228203041218,"id":16,"parentId":1,"tags":{},"startTime":1778599688866,"traceId":"217cd2f1cc71efd8"},{"name":"static-check","duration":596342,"timestamp":228211100104,"id":19,"parentId":1,"tags":{},"startTime":1778599696925,"traceId":"217cd2f1cc71efd8"},{"name":"static-generation","duration":555480,"timestamp":228211708832,"id":103,"parentId":1,"tags":{},"startTime":1778599697534,"traceId":"217cd2f1cc71efd8"},{"name":"telemetry-flush","duration":19949,"timestamp":228212301327,"id":112,"parentId":1,"tags":{},"startTime":1778599698126,"traceId":"217cd2f1cc71efd8"},{"name":"next-build","duration":17687136,"timestamp":228194634183,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778599680459,"traceId":"217cd2f1cc71efd8"}]
@@ -100,9 +100,9 @@ export default function NetworksPage() {
100
100
  <div className="flex items-center gap-4 mb-6">
101
101
  <Link href="/settings" className="text-gray-500 hover:text-gray-300 text-sm lg:ml-0 ml-10">&larr; Settings</Link>
102
102
  <h1 className="text-2xl font-bold text-white">Networks</h1>
103
- <span className="text-xs bg-blue-900/30 text-blue-400 px-2 py-0.5 rounded-full border border-blue-800/30">
104
- {networks.length}
105
- </span>
103
+ {/* Round 93: dropped {networks.length} header chip — the
104
+ My Networks panel below already carries `<N> total` in its
105
+ own subhead. Matches r86/r87 pattern. */}
106
106
  </div>
107
107
 
108
108
  <div className="max-w-2xl space-y-6">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/agent-network-dashboard",
3
- "version": "0.4.5-preview.75",
3
+ "version": "0.4.5-preview.76",
4
4
  "description": "Agent Network Dashboard — Web UI for managing AI Agent networks",
5
5
  "scripts": {
6
6
  "dev": "next dev",