@castlekit/castle 0.4.1 → 0.4.3
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.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_global-error.html +2 -2
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/chat.html +1 -1
- package/.next/standalone/.next/server/app/chat.rsc +1 -1
- package/.next/standalone/.next/server/app/chat.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/chat.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/chat.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/chat.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/chat.segments/chat/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/chat.segments/chat.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings.html +1 -1
- package/.next/standalone/.next/server/app/settings.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/settings.segments/settings.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/ui-kit.html +1 -1
- package/.next/standalone/.next/server/app/ui-kit.rsc +1 -1
- package/.next/standalone/.next/server/app/ui-kit.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/ui-kit.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/ui-kit.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/ui-kit.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/ui-kit.segments/ui-kit/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/ui-kit.segments/ui-kit.segment.rsc +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__2824c41d._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__361bce14._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_7a67de23._.js +1 -1
- package/.next/standalone/.next/server/middleware-manifest.json +5 -5
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +2 -2
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/{static/chunks/2b48886a383c2e37.js → standalone/.next/static/chunks/8c691cfaccdbb9ee.js} +1 -1
- package/.next/standalone/CHANGELOG.md +26 -0
- package/.next/standalone/bin/castle.js +2 -2
- package/.next/standalone/install.ps1 +16 -16
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/src/app/api/openclaw/agents/[id]/avatar/route.ts +51 -91
- package/.next/standalone/src/app/api/openclaw/agents/route.ts +12 -0
- package/.next/standalone/src/app/page.tsx +3 -3
- package/.next/standalone/src/cli/onboarding.ts +90 -87
- package/.next/{standalone/.next/static/chunks/2b48886a383c2e37.js → static/chunks/8c691cfaccdbb9ee.js} +1 -1
- package/bin/castle.js +2 -2
- package/install.ps1 +16 -16
- package/package.json +1 -1
- package/src/app/api/openclaw/agents/[id]/avatar/route.ts +51 -91
- package/src/app/api/openclaw/agents/route.ts +12 -0
- package/src/app/page.tsx +3 -3
- package/src/cli/onboarding.ts +90 -87
- /package/.next/standalone/.next/static/{IDGX3MGCjqUE6NQVlug5A → PzpTWZTNAsAIh96H48auo}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{IDGX3MGCjqUE6NQVlug5A → PzpTWZTNAsAIh96H48auo}/_clientMiddlewareManifest.json +0 -0
- /package/.next/standalone/.next/static/{IDGX3MGCjqUE6NQVlug5A → PzpTWZTNAsAIh96H48auo}/_ssgManifest.js +0 -0
- /package/.next/static/{IDGX3MGCjqUE6NQVlug5A → PzpTWZTNAsAIh96H48auo}/_buildManifest.js +0 -0
- /package/.next/static/{IDGX3MGCjqUE6NQVlug5A → PzpTWZTNAsAIh96H48auo}/_clientMiddlewareManifest.json +0 -0
- /package/.next/static/{IDGX3MGCjqUE6NQVlug5A → PzpTWZTNAsAIh96H48auo}/_ssgManifest.js +0 -0
|
@@ -14,7 +14,7 @@ e:I[97367,["/_next/static/chunks/868f09ea8b0a7649.js"],"ViewportBoundary"]
|
|
|
14
14
|
:HL["/_next/static/chunks/3c2b51fd3ab2ac34.css","style"]
|
|
15
15
|
:HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
16
16
|
:HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
17
|
-
0:{"P":null,"b":"
|
|
17
|
+
0:{"P":null,"b":"PzpTWZTNAsAIh96H48auo","c":["","ui-kit"],"q":"","i":false,"f":[[["",{"children":["ui-kit",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3c2b51fd3ab2ac34.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/d11263c7e8894d27.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/5a1105a61e9390f8.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-background text-foreground","children":["$","$L2",null,{"attribute":"class","defaultTheme":"dark","enableSystem":false,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/3fef23e63934711e.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/bffbc071b1075ac3.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$Lf"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$c",null,{"name":"Next.Metadata","children":"$L11"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$12",[]],"S":true}
|
|
18
18
|
9:{}
|
|
19
19
|
a:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
20
20
|
f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -14,7 +14,7 @@ e:I[97367,["/_next/static/chunks/868f09ea8b0a7649.js"],"ViewportBoundary"]
|
|
|
14
14
|
:HL["/_next/static/chunks/3c2b51fd3ab2ac34.css","style"]
|
|
15
15
|
:HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
16
16
|
:HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
17
|
-
0:{"P":null,"b":"
|
|
17
|
+
0:{"P":null,"b":"PzpTWZTNAsAIh96H48auo","c":["","ui-kit"],"q":"","i":false,"f":[[["",{"children":["ui-kit",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3c2b51fd3ab2ac34.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/d11263c7e8894d27.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/5a1105a61e9390f8.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-background text-foreground","children":["$","$L2",null,{"attribute":"class","defaultTheme":"dark","enableSystem":false,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","$L7",null,{"Component":"$8","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@9","$@a"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/3fef23e63934711e.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/bffbc071b1075ac3.js","async":true,"nonce":"$undefined"}]],["$","$Lb",null,{"children":["$","$c",null,{"name":"Next.MetadataOutlet","children":"$@d"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Le",null,{"children":"$Lf"}],["$","div",null,{"hidden":true,"children":["$","$L10",null,{"children":["$","$c",null,{"name":"Next.Metadata","children":"$L11"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$12",[]],"S":true}
|
|
18
18
|
9:{}
|
|
19
19
|
a:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
20
20
|
f:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
3:I[97367,["/_next/static/chunks/868f09ea8b0a7649.js"],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
5
|
5:I[27201,["/_next/static/chunks/868f09ea8b0a7649.js"],"IconMark"]
|
|
6
|
-
0:{"buildId":"
|
|
6
|
+
0:{"buildId":"PzpTWZTNAsAIh96H48auo","rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Castle"}],["$","meta","1",{"name":"description","content":"The multi-agent workspace"}],["$","link","2",{"rel":"icon","href":"/icon.png?icon.4cc5e0bd.png","sizes":"1000x1000","type":"image/png"}],["$","$L5","3",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
5:I[39756,["/_next/static/chunks/868f09ea8b0a7649.js"],"default"]
|
|
6
6
|
6:I[37457,["/_next/static/chunks/868f09ea8b0a7649.js"],"default"]
|
|
7
7
|
:HL["/_next/static/chunks/3c2b51fd3ab2ac34.css","style"]
|
|
8
|
-
0:{"buildId":"
|
|
8
|
+
0:{"buildId":"PzpTWZTNAsAIh96H48auo","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/3c2b51fd3ab2ac34.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/d11263c7e8894d27.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/5a1105a61e9390f8.js","async":true}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-background text-foreground","children":["$","$L2",null,{"attribute":"class","defaultTheme":"dark","enableSystem":false,"disableTransitionOnChange":true,"children":["$","$L3",null,{"children":["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","template":["$","$L6",null,{}],"notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]]}]}]}]}]}]}]]}],"loading":null,"isPartial":false}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
:HL["/_next/static/chunks/3c2b51fd3ab2ac34.css","style"]
|
|
2
2
|
:HL["/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
3
3
|
:HL["/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
4
|
-
0:{"buildId":"
|
|
4
|
+
0:{"buildId":"PzpTWZTNAsAIh96H48auo","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"ui-kit","paramType":null,"paramKey":"ui-kit","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
3:I[77982,["/_next/static/chunks/d11263c7e8894d27.js","/_next/static/chunks/5a1105a61e9390f8.js","/_next/static/chunks/3fef23e63934711e.js","/_next/static/chunks/bffbc071b1075ac3.js"],"default"]
|
|
4
4
|
6:I[97367,["/_next/static/chunks/868f09ea8b0a7649.js"],"OutletBoundary"]
|
|
5
5
|
7:"$Sreact.suspense"
|
|
6
|
-
0:{"buildId":"
|
|
6
|
+
0:{"buildId":"PzpTWZTNAsAIh96H48auo","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/3fef23e63934711e.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/bffbc071b1075ac3.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"loading":null,"isPartial":false}
|
|
7
7
|
4:{}
|
|
8
8
|
5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
|
|
9
9
|
8:null
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[39756,["/_next/static/chunks/868f09ea8b0a7649.js"],"default"]
|
|
3
3
|
3:I[37457,["/_next/static/chunks/868f09ea8b0a7649.js"],"default"]
|
|
4
|
-
0:{"buildId":"
|
|
4
|
+
0:{"buildId":"PzpTWZTNAsAIh96H48auo","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"loading":null,"isPartial":false}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},33405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},68412,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),i=e.i(74677),o=e.i(69741),l=e.i(16795),d=e.i(87718),u=e.i(95169),p=e.i(47587),c=e.i(66012),h=e.i(70101),x=e.i(74838),
|
|
1
|
+
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},33405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},68412,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),i=e.i(74677),o=e.i(69741),l=e.i(16795),d=e.i(87718),u=e.i(95169),p=e.i(47587),c=e.i(66012),h=e.i(70101),x=e.i(74838),f=e.i(10372),g=e.i(93695);e.i(52474);var v=e.i(220),R=e.i(89171),m=e.i(14747),w=e.i(46786),E=e.i(74605);let y=(0,m.join)((0,w.homedir)(),".castle","avatars"),A=[/\/api\/v\d+\/avatars\/([a-f0-9]+)/i,/\/avatars\/([a-f0-9]+)/i];async function C(){let e=(0,E.ensureGateway)();if(!e.isConnected)return R.NextResponse.json({error:"Gateway not connected",state:e.state,agents:[]},{status:503});try{let t=Date.now(),[r,a]=await Promise.all([e.request("agents.list",{}),e.request("config.get",{}).catch(e=>(console.warn("[Agents API] config.get failed (non-fatal):",e.message),null))]),n=new Map;if(a?.parsed?.agents?.list)for(let e of a.parsed.agents.list)e.workspace&&n.set(e.id,e.workspace);let s=(r?.agents||[]).map(t=>{let r=t.identity?.name||t.name||t.id,a=t.identity?.avatarUrl||t.identity?.avatar||null,s=t.identity?.emoji||null,i=t.identity?.theme||null,o=n.get(t.id),l=function(e,t,r,a){if(!e)return null;if(e.startsWith("data:"))return e;if(e.startsWith("http://")||e.startsWith("https://")){for(let t of A){let r=e.match(t);if(r)return a.setAvatarUrl(r[1],e),`/api/avatars/${r[1]}`}let r=`agent-${t}`;return a.setAvatarUrl(r,e),`/api/avatars/${r}`}if(r&&!e.startsWith("/")){let n=`agent-${t}`;return a.setAvatarUrl(n,`workspace://${r}/${e}`),`/api/avatars/${n}`}if(e.startsWith("/")||e.startsWith("~")){let r=(0,m.resolve)(e.replace(/^~/,(0,w.homedir)()));if(r.startsWith(y+"/")||r===y)return`/api/avatars/${t}`}return null}(a,t.id,o,e);return{id:t.id,name:r,description:i,avatar:l,emoji:s}});return console.log(`[Agents API] GET list OK — ${s.length} agents (${Date.now()-t}ms)`),R.NextResponse.json({agents:s,defaultId:r?.defaultId})}catch(e){return console.error("[Agents API] GET list FAILED:",e instanceof Error?e.message:"Unknown error"),R.NextResponse.json({error:e instanceof Error?e.message:"Failed to list agents",agents:[]},{status:500})}}e.s(["GET",()=>C,"dynamic",0,"force-dynamic"],5941);var b=e.i(5941);let P=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/openclaw/agents/route",pathname:"/api/openclaw/agents",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/openclaw/agents/route.ts",nextConfigOutput:"standalone",userland:b}),{workAsyncStorage:T,workUnitAsyncStorage:N,serverHooks:k}=P;function q(){return(0,a.patchFetch)({workAsyncStorage:T,workUnitAsyncStorage:N})}async function j(e,t,a){P.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let R="/api/openclaw/agents/route";R=R.replace(/\/index$/,"")||"/";let m=await P.prepare(e,t,{srcPage:R,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:y,parsedUrl:A,isDraftMode:C,prerenderManifest:b,routerServerContext:T,isOnDemandRevalidate:N,revalidateOnlyGenerated:k,resolvedPathname:q,clientReferenceManifest:j,serverActionsManifest:O}=m,_=(0,o.normalizeAppPath)(R),I=!!(b.dynamicRoutes[_]||b.routes[q]),U=async()=>((null==T?void 0:T.render404)?await T.render404(e,t,A,!1):t.end("This page could not be found"),null);if(I&&!C){let e=!!b.routes[q],t=b.dynamicRoutes[_];if(t&&!1===t.fallback&&!e){if(y.experimental.adapterPath)return await U();throw new g.NoFallbackError}}let S=null;!I||P.isDev||C||(S="/index"===(S=q)?"/":S);let $=!0===P.isDev||!I,H=I&&!$;O&&j&&(0,i.setManifestsSingleton)({page:R,clientReferenceManifest:j,serverActionsManifest:O});let D=e.method||"GET",M=(0,s.getTracer)(),F=M.getActiveScopeSpan(),K={params:E,prerenderManifest:b,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:$,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:y.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>P.onRequestError(e,t,a,n,T)},sharedContext:{buildId:w}},W=new l.NodeNextRequest(e),G=new l.NodeNextResponse(t),L=d.NextRequestAdapter.fromNodeNextRequest(W,(0,d.signalFromNodeResponse)(t));try{let i=async e=>P.handle(L,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=M.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${D} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${D} ${R}`)}),o=!!(0,n.getRequestMeta)(e,"minimalMode"),l=async n=>{var s,l;let d=async({previousCacheEntry:r})=>{try{if(!o&&N&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=K.renderOpts.fetchMetrics;let l=K.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let d=K.renderOpts.collectedTags;if(!I)return await (0,c.sendResponse)(W,G,s,K.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);d&&(t[f.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=f.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,a=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=f.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:v.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await P.onRequestError(e,t,{routerKind:"App Router",routePath:R,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:N})},!1,T),t}},u=await P.handleResponse({req:e,nextConfig:y,cacheKey:S,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:b,isRoutePPREnabled:!1,isOnDemandRevalidate:N,revalidateOnlyGenerated:k,responseGenerator:d,waitUntil:a.waitUntil,isMinimalMode:o});if(!I)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==v.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",N?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let g=(0,h.fromNodeOutgoingHttpHeaders)(u.value.headers);return o&&I||g.delete(f.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||g.get("Cache-Control")||g.set("Cache-Control",(0,x.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(W,G,new Response(u.value.body,{headers:g,status:u.value.status||200})),null};F?await l(F):await M.withPropagatedContext(e.headers,()=>M.trace(u.BaseServerSpan.handleRequest,{spanName:`${D} ${R}`,kind:s.SpanKind.SERVER,attributes:{"http.method":D,"http.target":e.url}},l))}catch(t){if(t instanceof g.NoFallbackError||await P.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:H,isOnDemandRevalidate:N})},!1,T),I)throw t;return await (0,c.sendResponse)(W,G,new Response(null,{status:500})),null}}e.s(["handler",()=>j,"patchFetch",()=>q,"routeModule",()=>P,"serverHooks",()=>k,"workAsyncStorage",()=>T,"workUnitAsyncStorage",()=>N],68412)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__2824c41d._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},32611,e=>{"use strict";var t=e.i(89171);let r=new Map,a=null;function n(e,s,o=6e4){!a&&"object"==typeof(a=setInterval(()=>{let e=Date.now();for(let[t,a]of r.entries())a.timestamps=a.timestamps.filter(t=>e-t<6e4),0===a.timestamps.length&&r.delete(t)},3e5))&&"unref"in a&&a.unref();let i=Date.now(),l=r.get(e);return(l||(l={timestamps:[]},r.set(e,l)),l.timestamps=l.timestamps.filter(e=>i-e<o),l.timestamps.length>=s)?t.NextResponse.json({error:"Too many requests — please slow down"},{status:429}):(l.timestamps.push(i),null)}function s(e,t){let r=e.headers.get("x-forwarded-for")?.split(",")[0].trim()||e.headers.get("x-real-ip")||"local";return`${r}:${t}`}function o(e){let r=e.headers.get("origin"),a=e.headers.get("referer"),n=e.headers.get("host")||"localhost:3333",s=new Set([`http://${n}`,`https://${n}`,"http://localhost:3333","http://127.0.0.1:3333","http://[::1]:3333"]);if(r)return s.has(r)?null:t.NextResponse.json({error:"Forbidden — cross-origin request rejected"},{status:403});if(a){try{let e=new URL(a).origin;if(s.has(e))return null}catch{}return t.NextResponse.json({error:"Forbidden — cross-origin request rejected"},{status:403})}return null}function i(e){return e.replace(/rew_[a-f0-9]+/gi,"rew_***").replace(/-----BEGIN [A-Z ]+-----[\s\S]*?-----END [A-Z ]+-----/g,"[REDACTED KEY]").replace(/\b[a-f0-9]{32,}\b/gi,e=>e.slice(0,8)+"***")}e.s(["checkCsrf",()=>o,"checkRateLimit",()=>n,"rateLimitKey",()=>s,"sanitizeForApi",()=>i])},33405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},6971,(e,t,r)=>{t.exports=e.x("sharp-20c6a5da84e2135f",()=>require("sharp-20c6a5da84e2135f"))},86543,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),o=e.i(74677),i=e.i(69741),l=e.i(16795),u=e.i(87718),p=e.i(95169),d=e.i(47587),c=e.i(66012),f=e.i(70101),h=e.i(74838),g=e.i(10372),x=e.i(93695);e.i(52474);var m=e.i(220),w=e.i(89171),v=e.i(22734),R=e.i(14747),y=e.i(46786),E=e.i(60497),j=e.i(6971),N=e.i(74605),C=e.i(32611);let A=new Set(["image/png","image/jpeg","image/webp","image/gif"]);async function b(e){let t=(0,j.default)(e).resize(256,256,{fit:"cover",position:"centre"}),r=await t.png({quality:80,compressionLevel:9}).toBuffer();return r.length<=102400?{data:r,ext:".png"}:(r=await t.webp({quality:80}).toBuffer()).length<=102400?{data:r,ext:".webp"}:(r=await t.jpeg({quality:70}).toBuffer()).length<=102400?{data:r,ext:".jpg"}:{data:r=await t.jpeg({quality:40}).toBuffer(),ext:".jpg"}}async function k(e,{params:t}){let r,a,n=(0,C.checkCsrf)(e);if(n)return n;let{id:s}=await t,o=s.replace(/[^a-zA-Z0-9._-]/g,"");if(!o)return w.NextResponse.json({error:"Invalid agent ID"},{status:400});let i=(await e.formData()).get("avatar");if(!i)return w.NextResponse.json({error:"No file provided"},{status:400});if(!A.has(i.type))return w.NextResponse.json({error:"Unsupported format. Use PNG, JPEG, WebP, or GIF."},{status:400});if(i.size>5242880)return w.NextResponse.json({error:"File too large (max 5MB)"},{status:400});try{let e=Buffer.from(await i.arrayBuffer());r=await b(e)}catch(e){return w.NextResponse.json({error:`Failed to process image: ${e instanceof Error?e.message:"unknown"}`},{status:400})}let l=function(){for(let e of[(0,R.join)((0,y.homedir)(),".openclaw","openclaw.json"),(0,R.join)((0,y.homedir)(),".openclaw","openclaw.json5")])if((0,v.existsSync)(e))return e;return null}();if(!l)return w.NextResponse.json({error:"OpenClaw config file not found"},{status:500});try{a=E.default.parse((0,v.readFileSync)(l,"utf-8"))}catch(e){return w.NextResponse.json({error:`Failed to read config: ${e instanceof Error?e.message:"unknown"}`},{status:500})}let u=(a.agents?.list||[]).find(e=>e.id===o);if(!u)return w.NextResponse.json({error:"Agent not found"},{status:404});if(!u.workspace)return w.NextResponse.json({error:"Agent has no workspace configured"},{status:400});let p=u.workspace.startsWith("~")?(0,R.join)((0,y.homedir)(),u.workspace.slice(1)):u.workspace,d=(0,R.join)(p,"avatars"),c=`avatar${r.ext}`,f=(0,R.join)(d,c);try{(0,v.mkdirSync)(d,{recursive:!0,mode:493}),(0,v.writeFileSync)(f,r.data)}catch(e){return w.NextResponse.json({error:`Failed to save avatar: ${e instanceof Error?e.message:"unknown"}`},{status:500})}try{u.identity=u.identity||{},u.identity.avatar=`avatars/${c}`,(0,v.writeFileSync)(l,E.default.stringify(a,null,2),"utf-8")}catch(e){return w.NextResponse.json({error:`Failed to update config: ${e instanceof Error?e.message:"unknown"}`},{status:500})}await new Promise(e=>setTimeout(e,500));try{let e=(0,N.ensureGateway)();e.isConnected&&e.emit("agentAvatarUpdated",{agentId:o})}catch{}return w.NextResponse.json({success:!0,avatar:`avatars/${c}`,size:r.data.length,message:"Avatar updated"})}e.s(["POST",()=>k,"dynamic",0,"force-dynamic"],17396);var q=e.i(17396);let P=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/openclaw/agents/[id]/avatar/route",pathname:"/api/openclaw/agents/[id]/avatar",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/openclaw/agents/[id]/avatar/route.ts",nextConfigOutput:"standalone",userland:q}),{workAsyncStorage:S,workUnitAsyncStorage:T,serverHooks:_}=P;function O(){return(0,a.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:T})}async function I(e,t,a){P.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let w="/api/openclaw/agents/[id]/avatar/route";w=w.replace(/\/index$/,"")||"/";let v=await P.prepare(e,t,{srcPage:w,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:E,parsedUrl:j,isDraftMode:N,prerenderManifest:C,routerServerContext:A,isOnDemandRevalidate:b,revalidateOnlyGenerated:k,resolvedPathname:q,clientReferenceManifest:S,serverActionsManifest:T}=v,_=(0,i.normalizeAppPath)(w),O=!!(C.dynamicRoutes[_]||C.routes[q]),I=async()=>((null==A?void 0:A.render404)?await A.render404(e,t,j,!1):t.end("This page could not be found"),null);if(O&&!N){let e=!!C.routes[q],t=C.dynamicRoutes[_];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await I();throw new x.NoFallbackError}}let D=null;!O||P.isDev||N||(D="/index"===(D=q)?"/":D);let F=!0===P.isDev||!O,U=O&&!F;T&&S&&(0,o.setManifestsSingleton)({page:w,clientReferenceManifest:S,serverActionsManifest:T});let $=e.method||"GET",H=(0,s.getTracer)(),M=H.getActiveScopeSpan(),B={params:y,prerenderManifest:C,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:F,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>P.onRequestError(e,t,a,n,A)},sharedContext:{buildId:R}},K=new l.NodeNextRequest(e),L=new l.NodeNextResponse(t),G=u.NextRequestAdapter.fromNodeNextRequest(K,(0,u.signalFromNodeResponse)(t));try{let o=async e=>P.handle(G,B).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=H.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==p.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${$} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${$} ${w}`)}),i=!!(0,n.getRequestMeta)(e,"minimalMode"),l=async n=>{var s,l;let u=async({previousCacheEntry:r})=>{try{if(!i&&b&&k&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await o(n);e.fetchMetrics=B.renderOpts.fetchMetrics;let l=B.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let u=B.renderOpts.collectedTags;if(!O)return await (0,c.sendResponse)(K,L,s,B.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(s.headers);u&&(t[g.NEXT_CACHE_TAGS_HEADER]=u),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,a=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:B.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await P.onRequestError(e,t,{routerKind:"App Router",routePath:w,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:b})},!1,A),t}},p=await P.handleResponse({req:e,nextConfig:E,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:b,revalidateOnlyGenerated:k,responseGenerator:u,waitUntil:a.waitUntil,isMinimalMode:i});if(!O)return null;if((null==p||null==(s=p.value)?void 0:s.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==p||null==(l=p.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});i||t.setHeader("x-nextjs-cache",b?"REVALIDATED":p.isMiss?"MISS":p.isStale?"STALE":"HIT"),N&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let x=(0,f.fromNodeOutgoingHttpHeaders)(p.value.headers);return i&&O||x.delete(g.NEXT_CACHE_TAGS_HEADER),!p.cacheControl||t.getHeader("Cache-Control")||x.get("Cache-Control")||x.set("Cache-Control",(0,h.getCacheControlHeader)(p.cacheControl)),await (0,c.sendResponse)(K,L,new Response(p.value.body,{headers:x,status:p.value.status||200})),null};M?await l(M):await H.withPropagatedContext(e.headers,()=>H.trace(p.BaseServerSpan.handleRequest,{spanName:`${$} ${w}`,kind:s.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},l))}catch(t){if(t instanceof x.NoFallbackError||await P.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,d.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:b})},!1,A),O)throw t;return await (0,c.sendResponse)(K,L,new Response(null,{status:500})),null}}e.s(["handler",()=>I,"patchFetch",()=>O,"routeModule",()=>P,"serverHooks",()=>_,"workAsyncStorage",()=>S,"workUnitAsyncStorage",()=>T],86543)}];
|
|
1
|
+
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},14747,(e,t,r)=>{t.exports=e.x("path",()=>require("path"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},22734,(e,t,r)=>{t.exports=e.x("fs",()=>require("fs"))},32611,e=>{"use strict";var t=e.i(89171);let r=new Map,a=null;function n(e,s,i=6e4){!a&&"object"==typeof(a=setInterval(()=>{let e=Date.now();for(let[t,a]of r.entries())a.timestamps=a.timestamps.filter(t=>e-t<6e4),0===a.timestamps.length&&r.delete(t)},3e5))&&"unref"in a&&a.unref();let o=Date.now(),l=r.get(e);return(l||(l={timestamps:[]},r.set(e,l)),l.timestamps=l.timestamps.filter(e=>o-e<i),l.timestamps.length>=s)?t.NextResponse.json({error:"Too many requests — please slow down"},{status:429}):(l.timestamps.push(o),null)}function s(e,t){let r=e.headers.get("x-forwarded-for")?.split(",")[0].trim()||e.headers.get("x-real-ip")||"local";return`${r}:${t}`}function i(e){let r=e.headers.get("origin"),a=e.headers.get("referer"),n=e.headers.get("host")||"localhost:3333",s=new Set([`http://${n}`,`https://${n}`,"http://localhost:3333","http://127.0.0.1:3333","http://[::1]:3333"]);if(r)return s.has(r)?null:t.NextResponse.json({error:"Forbidden — cross-origin request rejected"},{status:403});if(a){try{let e=new URL(a).origin;if(s.has(e))return null}catch{}return t.NextResponse.json({error:"Forbidden — cross-origin request rejected"},{status:403})}return null}function o(e){return e.replace(/rew_[a-f0-9]+/gi,"rew_***").replace(/-----BEGIN [A-Z ]+-----[\s\S]*?-----END [A-Z ]+-----/g,"[REDACTED KEY]").replace(/\b[a-f0-9]{32,}\b/gi,e=>e.slice(0,8)+"***")}e.s(["checkCsrf",()=>i,"checkRateLimit",()=>n,"rateLimitKey",()=>s,"sanitizeForApi",()=>o])},33405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},6971,(e,t,r)=>{t.exports=e.x("sharp-20c6a5da84e2135f",()=>require("sharp-20c6a5da84e2135f"))},86543,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),s=e.i(61916),i=e.i(74677),o=e.i(69741),l=e.i(16795),d=e.i(87718),u=e.i(95169),p=e.i(47587),c=e.i(66012),f=e.i(70101),h=e.i(74838),g=e.i(10372),x=e.i(93695);e.i(52474);var m=e.i(220),v=e.i(89171),w=e.i(22734),R=e.i(14747),y=e.i(46786),E=e.i(6971),A=e.i(74605),C=e.i(32611);let j=new Set(["image/png","image/jpeg","image/webp","image/gif"]);async function N(e){let t=(0,E.default)(e).resize(256,256,{fit:"cover",position:"centre"}),r=await t.png({quality:80,compressionLevel:9}).toBuffer();return r.length<=102400?{data:r,ext:".png"}:(r=await t.webp({quality:80}).toBuffer()).length<=102400?{data:r,ext:".webp"}:(r=await t.jpeg({quality:70}).toBuffer()).length<=102400?{data:r,ext:".jpg"}:{data:r=await t.jpeg({quality:40}).toBuffer(),ext:".jpg"}}async function b(e,{params:t}){let r,a=(0,C.checkCsrf)(e);if(a)return a;let{id:n}=await t,s=n.replace(/[^a-zA-Z0-9._-]/g,"");if(!s)return v.NextResponse.json({error:"Invalid agent ID"},{status:400});let i=(await e.formData()).get("avatar");if(!i)return v.NextResponse.json({error:"No file provided"},{status:400});if(!j.has(i.type))return v.NextResponse.json({error:"Unsupported format. Use PNG, JPEG, WebP, or GIF."},{status:400});if(i.size>5242880)return v.NextResponse.json({error:"File too large (max 5MB)"},{status:400});try{let e=Buffer.from(await i.arrayBuffer());r=await N(e)}catch(e){return v.NextResponse.json({error:`Failed to process image: ${e instanceof Error?e.message:"unknown"}`},{status:400})}let o=(0,R.join)((0,y.homedir)(),".castle","avatars"),l=`${s}${r.ext}`,d=(0,R.join)(o,l);try{(0,w.mkdirSync)(o,{recursive:!0,mode:493}),(0,w.writeFileSync)(d,r.data)}catch(e){return v.NextResponse.json({error:`Failed to save avatar: ${e instanceof Error?e.message:"unknown"}`},{status:500})}let u=(0,A.ensureGateway)();if(!u.isConnected)return v.NextResponse.json({success:!0,avatar:d,size:r.data.length,message:"Avatar saved locally. Gateway not connected — config will update when it reconnects.",configUpdated:!1});try{await u.request("config.patch",{agents:{list:[{id:s,identity:{avatar:d}}]}}),console.log(`[Avatar API] Config patched for agent ${s}`)}catch(e){return console.error(`[Avatar API] config.patch failed for agent ${s}:`,e instanceof Error?e.message:"unknown"),v.NextResponse.json({success:!0,avatar:d,size:r.data.length,message:"Avatar saved but config update failed. Try restarting the Gateway.",configUpdated:!1})}try{u.emit("agentAvatarUpdated",{agentId:s})}catch{}return v.NextResponse.json({success:!0,avatar:d,size:r.data.length,message:"Avatar updated",configUpdated:!0})}e.s(["POST",()=>b,"dynamic",0,"force-dynamic"],17396);var q=e.i(17396);let P=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/openclaw/agents/[id]/avatar/route",pathname:"/api/openclaw/agents/[id]/avatar",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/openclaw/agents/[id]/avatar/route.ts",nextConfigOutput:"standalone",userland:q}),{workAsyncStorage:k,workUnitAsyncStorage:T,serverHooks:S}=P;function _(){return(0,a.patchFetch)({workAsyncStorage:k,workUnitAsyncStorage:T})}async function I(e,t,a){P.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/openclaw/agents/[id]/avatar/route";v=v.replace(/\/index$/,"")||"/";let w=await P.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:E,parsedUrl:A,isDraftMode:C,prerenderManifest:j,routerServerContext:N,isOnDemandRevalidate:b,revalidateOnlyGenerated:q,resolvedPathname:k,clientReferenceManifest:T,serverActionsManifest:S}=w,_=(0,o.normalizeAppPath)(v),I=!!(j.dynamicRoutes[_]||j.routes[k]),U=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,A,!1):t.end("This page could not be found"),null);if(I&&!C){let e=!!j.routes[k],t=j.dynamicRoutes[_];if(t&&!1===t.fallback&&!e){if(E.experimental.adapterPath)return await U();throw new x.NoFallbackError}}let O=null;!I||P.isDev||C||(O="/index"===(O=k)?"/":O);let D=!0===P.isDev||!I,$=I&&!D;S&&T&&(0,i.setManifestsSingleton)({page:v,clientReferenceManifest:T,serverActionsManifest:S});let H=e.method||"GET",F=(0,s.getTracer)(),M=F.getActiveScopeSpan(),B={params:y,prerenderManifest:j,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:D,incrementalCache:(0,n.getRequestMeta)(e,"incrementalCache"),cacheLifeProfiles:E.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>P.onRequestError(e,t,a,n,N)},sharedContext:{buildId:R}},G=new l.NodeNextRequest(e),K=new l.NodeNextResponse(t),L=d.NextRequestAdapter.fromNodeNextRequest(G,(0,d.signalFromNodeResponse)(t));try{let i=async e=>P.handle(L,B).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${H} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t)}else e.updateName(`${H} ${v}`)}),o=!!(0,n.getRequestMeta)(e,"minimalMode"),l=async n=>{var s,l;let d=async({previousCacheEntry:r})=>{try{if(!o&&b&&q&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(n);e.fetchMetrics=B.renderOpts.fetchMetrics;let l=B.renderOpts.pendingWaitUntil;l&&a.waitUntil&&(a.waitUntil(l),l=void 0);let d=B.renderOpts.collectedTags;if(!I)return await (0,c.sendResponse)(G,K,s,B.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(s.headers);d&&(t[g.NEXT_CACHE_TAGS_HEADER]=d),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==B.renderOpts.collectedRevalidate&&!(B.renderOpts.collectedRevalidate>=g.INFINITE_CACHE)&&B.renderOpts.collectedRevalidate,a=void 0===B.renderOpts.collectedExpire||B.renderOpts.collectedExpire>=g.INFINITE_CACHE?void 0:B.renderOpts.collectedExpire;return{value:{kind:m.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await P.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:b})},!1,N),t}},u=await P.handleResponse({req:e,nextConfig:E,cacheKey:O,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:j,isRoutePPREnabled:!1,isOnDemandRevalidate:b,revalidateOnlyGenerated:q,responseGenerator:d,waitUntil:a.waitUntil,isMinimalMode:o});if(!I)return null;if((null==u||null==(s=u.value)?void 0:s.kind)!==m.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==u||null==(l=u.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});o||t.setHeader("x-nextjs-cache",b?"REVALIDATED":u.isMiss?"MISS":u.isStale?"STALE":"HIT"),C&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let x=(0,f.fromNodeOutgoingHttpHeaders)(u.value.headers);return o&&I||x.delete(g.NEXT_CACHE_TAGS_HEADER),!u.cacheControl||t.getHeader("Cache-Control")||x.get("Cache-Control")||x.set("Cache-Control",(0,h.getCacheControlHeader)(u.cacheControl)),await (0,c.sendResponse)(G,K,new Response(u.value.body,{headers:x,status:u.value.status||200})),null};M?await l(M):await F.withPropagatedContext(e.headers,()=>F.trace(u.BaseServerSpan.handleRequest,{spanName:`${H} ${v}`,kind:s.SpanKind.SERVER,attributes:{"http.method":H,"http.target":e.url}},l))}catch(t){if(t instanceof x.NoFallbackError||await P.onRequestError(e,t,{routerKind:"App Router",routePath:_,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:b})},!1,N),I)throw t;return await (0,c.sendResponse)(G,K,new Response(null,{status:500})),null}}e.s(["handler",()=>I,"patchFetch",()=>_,"routeModule",()=>P,"serverHooks",()=>S,"workAsyncStorage",()=>k,"workUnitAsyncStorage",()=>T],86543)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=%5Broot-of-the-server%5D__361bce14._.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module.exports=[37582,a=>{"use strict";var b=a.i(87924),c=a.i(68114);function d({title:a,subtitle:d,className:e}){return(0,b.jsxs)("div",{className:(0,c.cn)("space-y-2",e),children:[(0,b.jsx)("h1",{className:"text-2xl font-semibold text-foreground",children:a}),d?(0,b.jsx)("p",{className:"text-sm text-foreground-secondary",children:d}):null]})}a.s(["PageHeader",()=>d])},91119,86304,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(68114);let e=(0,c.forwardRef)(({className:a,variant:c="default",...e},f)=>(0,b.jsx)("div",{className:(0,d.cn)("rounded-[var(--radius-md)] bg-surface p-6",{"":"default"===c,"border border-border":"bordered"===c,"shadow-lg shadow-black/5 dark:shadow-black/20":"elevated"===c},a),ref:f,...e}));e.displayName="Card";let f=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("div",{className:(0,d.cn)("flex flex-col space-y-1.5 pb-4",a),ref:e,...c}));f.displayName="CardHeader";let g=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("h3",{className:(0,d.cn)("text-lg font-semibold leading-none tracking-tight text-foreground",a),ref:e,...c}));g.displayName="CardTitle";let h=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("p",{className:(0,d.cn)("text-sm text-foreground-secondary",a),ref:e,...c}));h.displayName="CardDescription";let i=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("div",{className:(0,d.cn)("",a),ref:e,...c}));i.displayName="CardContent";let j=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("div",{className:(0,d.cn)("flex items-center pt-4",a),ref:e,...c}));function k({className:a,variant:c="default",size:e="md",...f}){return(0,b.jsx)("span",{className:(0,d.cn)("inline-flex items-center font-medium rounded-[var(--radius-full)] transition-colors",{"bg-surface text-foreground-secondary":"default"===c,"bg-success/10 text-success":"success"===c,"bg-warning/10 text-warning":"warning"===c,"bg-error/10 text-error":"error"===c,"bg-info/10 text-info":"info"===c,"bg-transparent text-foreground-secondary border border-border":"outline"===c},{"px-2 py-0.5 text-xs":"sm"===e,"px-2.5 py-0.5 text-sm":"md"===e},a),...f})}j.displayName="CardFooter",a.s(["Card",()=>e,"CardContent",()=>i,"CardDescription",()=>h,"CardFooter",()=>j,"CardHeader",()=>f,"CardTitle",()=>g],91119),a.s(["Badge",()=>k],86304)},9269,65556,a=>{"use strict";var b=a.i(72131),c=a.i(72596);let d=null,e=0,f=-1,g=Date.now(),h=new Map,i=new Set;function j(a,b){return h.has(a)||h.set(a,new Set),h.get(a).add(b),1==++e&&(d||(console.log("[SSE Client] Opening connection (subscribers:",e+")"),d=new EventSource("/api/openclaw/events"),g=Date.now(),d.onopen=()=>{console.log("[SSE Client] Connected")},d.onmessage=a=>{try{let b=JSON.parse(a.data);!function(a){if(g=Date.now(),"number"==typeof a.seq){if(a.seq<=f)return console.debug("[SSE Client] Dropped duplicate event seq:",a.seq,"event:",a.event);f=a.seq}let b=a.event;for(let[c,d]of h)if("*"===c||(c.endsWith(".*")?b.startsWith(c.slice(0,-1)):b===c))for(let b of d)try{b(a)}catch(a){console.error("[SSE] Handler error:",a)}}(b)}catch(b){console.warn("[SSE Client] Failed to parse event:",b.message,"data:",a.data?.slice(0,100))}},d.onerror=a=>{for(let a of(console.warn("[SSE Client] Connection error (readyState:",d?.readyState+")"),i))try{a()}catch{}})),()=>{let c=h.get(a);c&&(c.delete(b),0===c.size&&h.delete(a)),--e<=0&&(e=0,d&&(console.log("[SSE Client] Closing connection"),d.close(),d=null),f=-1)}}function k(a){return i.add(a),()=>{i.delete(a)}}function l(){return g}a.s(["getLastEventTimestamp",()=>l,"onError",()=>k,"subscribe",()=>j],65556);let m=async a=>{let b=await fetch(a,{method:"POST"});return b.ok||console.warn(`[useOpenClaw] Status fetch returned ${b.status}`),b.json()},n=async a=>{let b=await fetch(a);return b.ok?(await b.json()).agents||[]:(console.warn(`[useOpenClaw] Agents fetch failed: ${b.status}`),[])};function o(){let{data:a,error:d,isLoading:e,mutate:f}=(0,c.default)("/api/openclaw/ping",m,{refreshInterval:6e4,revalidateOnFocus:!0,dedupingInterval:1e4,errorRetryCount:2}),g=a?.ok??!1,{data:h,isLoading:i,mutate:l}=(0,c.default)(g?"/api/openclaw/agents":null,n,{refreshInterval:3e5,revalidateOnFocus:!1,dedupingInterval:3e4}),o=(0,b.useCallback)(async()=>{await f(),g&&await l()},[f,l,g]),p=(0,b.useCallback)(()=>l(),[l]);return(0,b.useEffect)(()=>{let a=a=>{l()},b=j("castle.state",a=>{let b=a.payload;f(a=>({ok:b.isConnected,configured:a?.configured??!0,state:b.state,server:b.server}),{revalidate:!1}),b.isConnected&&l()}),c=j("agent.*",a),d=j("agentAvatarUpdated",a),e=k(()=>{console.warn("[useOpenClaw] SSE error — marking as disconnected"),f(a=>a?{...a,ok:!1,state:"disconnected"}:a,{revalidate:!1})});return()=>{b(),c(),d(),e()}},[f,l]),{status:a,isLoading:e,isError:!!d,isConnected:g,isConfigured:a?.configured??!1,latency:a?.latency_ms,serverVersion:a?.server?.version,agents:h??[],agentsLoading:i,refresh:o,refreshAgents:p}}a.s(["useOpenClaw",()=>o],9269)},92e3,a=>{"use strict";let b=(0,a.i(70106).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);a.s(["AlertCircle",()=>b],92e3)},82434,a=>{"use strict";let b=(0,a.i(70106).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);a.s(["Bot",()=>b],82434)},33591,a=>{"use strict";let b=(0,a.i(70106).default)("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);a.s(["WifiOff",()=>b],33591)},69520,a=>{"use strict";let b=(0,a.i(70106).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);a.s(["RefreshCw",()=>b],69520)},96221,a=>{"use strict";let b=(0,a.i(70106).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],96221)},45222,a=>{"use strict";let b=(0,a.i(70106).default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);a.s(["MessageCircle",()=>b],45222)},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},46842,a=>{"use strict";let b=(0,a.i(70106).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);a.s(["User",()=>b],46842)},85259,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(35112),e=a.i(68114);function f({children:a,content:f,side:g="right",className:h,delay:i=0}){let[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(!1),n=(0,c.useRef)(null),[o,p]=(0,c.useState)({x:0,y:0}),[q,r]=(0,c.useState)(!1),s=(0,c.useRef)(null),t=(0,c.useRef)(null);(0,c.useEffect)(()=>(m(!0),()=>{n.current&&clearTimeout(n.current)}),[]);let u=(0,c.useCallback)(()=>{if(s.current&&t.current){let a=s.current.getBoundingClientRect(),b=t.current.getBoundingClientRect(),c=0,d=0;switch(g){case"top":c=a.left+a.width/2-b.width/2,d=a.top-b.height-10;break;case"bottom":c=a.left+a.width/2-b.width/2,d=a.bottom+10;break;case"left":c=a.left-b.width-10,d=a.top+a.height/2-b.height/2;break;default:c=a.right+10,d=a.top+a.height/2-b.height/2}p({x:c,y:d}),r(!0)}},[g]);return(0,c.useLayoutEffect)(()=>{if(!j)return void r(!1);u();let a=()=>u();return window.addEventListener("resize",a),window.addEventListener("scroll",a,!0),()=>{window.removeEventListener("resize",a),window.removeEventListener("scroll",a,!0)}},[j,u]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{ref:s,onMouseEnter:()=>{i>0?n.current=setTimeout(()=>k(!0),i):k(!0)},onMouseLeave:()=>{n.current&&(clearTimeout(n.current),n.current=null),k(!1)},className:h,children:a}),j&&l?(0,d.createPortal)((0,b.jsx)("div",{ref:t,className:"fixed z-[9999] pointer-events-none",style:{left:o.x,top:o.y,visibility:q?"visible":"hidden"},children:(0,b.jsx)("div",{className:(0,e.cn)("transition-all duration-150 ease-out",q?"opacity-100 scale-100":"opacity-0 scale-95","right"===g&&(q?"translate-x-0":"-translate-x-2"),"left"===g&&(q?"translate-x-0":"translate-x-2"),"top"===g&&(q?"translate-y-0":"translate-y-2"),"bottom"===g&&(q?"translate-y-0":"-translate-y-2")),children:(0,b.jsxs)("div",{className:"relative bg-[#1a1a1a] text-white text-sm font-medium px-3 py-1.5 rounded-[4px] whitespace-nowrap shadow-xl shadow-black/25",children:[f,"right"===g&&(0,b.jsx)("div",{className:"absolute -left-[7px] top-1/2 -translate-y-1/2",children:(0,b.jsx)("div",{className:"w-0 h-0 border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-r-[8px] border-r-[#1a1a1a]"})}),"left"===g&&(0,b.jsx)("div",{className:"absolute -right-[7px] top-1/2 -translate-y-1/2",children:(0,b.jsx)("div",{className:"w-0 h-0 border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-l-[8px] border-l-[#1a1a1a]"})}),"top"===g&&(0,b.jsx)("div",{className:"absolute -bottom-[7px] left-1/2 -translate-x-1/2",children:(0,b.jsx)("div",{className:"w-0 h-0 border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-t-[8px] border-t-[#1a1a1a]"})}),"bottom"===g&&(0,b.jsx)("div",{className:"absolute -top-[7px] left-1/2 -translate-x-1/2",children:(0,b.jsx)("div",{className:"w-0 h-0 border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-b-[8px] border-b-[#1a1a1a]"})})]})})}),document.body):null]})}a.s(["Tooltip",()=>f])},32138,a=>{"use strict";var b=a.i(72596);let c=a=>fetch(a).then(a=>a.json());function d(){let{data:a,mutate:d,isLoading:e}=(0,b.default)("/api/settings",c,{revalidateOnFocus:!0,dedupingInterval:5e3}),f=a?.displayName||"";return{displayName:f,avatarUrl:a?.avatarPath?`/api/settings/avatar?v=${encodeURIComponent(a.avatarPath)}`:null,tooltips:a?.tooltips!=="false",isLoading:e,refresh:()=>d()}}a.s(["useUserSettings",()=>d])},72233,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(68114);let e=(0,c.forwardRef)(({className:a,size:c="md",status:e,statusPulse:f,children:g,...h},i)=>(0,b.jsxs)("div",{className:"relative inline-block shrink-0",children:[(0,b.jsx)("div",{className:(0,d.cn)("relative flex shrink-0 overflow-hidden rounded-[4px] bg-surface border border-border",{"h-9 w-9":"sm"===c,"h-10 w-10":"md"===c,"h-12 w-12":"lg"===c},a),ref:i,...h,children:g}),e&&(0,b.jsx)("span",{className:(0,d.cn)("absolute block rounded-full ring-2 ring-background",{"h-2.5 w-2.5 -bottom-0.5 -right-0.5":"sm"===c,"h-3 w-3 -bottom-0.5 -right-0.5":"md"===c,"h-3.5 w-3.5 -bottom-0.5 -right-0.5":"lg"===c},{"bg-success":"online"===e,"bg-foreground-muted":"offline"===e,"bg-error":"busy"===e,"bg-warning":"away"===e},f&&"animate-pulse")})]}));e.displayName="Avatar";let f=(0,c.forwardRef)(({className:a,alt:c,...e},f)=>(0,b.jsx)("img",{className:(0,d.cn)("aspect-square h-full w-full object-cover",a),alt:c,ref:f,...e}));f.displayName="AvatarImage";let g=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("span",{className:(0,d.cn)("flex h-full w-full items-center justify-center bg-surface text-foreground-secondary font-medium text-sm",a),ref:e,...c}));g.displayName="AvatarFallback",a.s(["Avatar",()=>e,"AvatarFallback",()=>g,"AvatarImage",()=>f])},91693,30617,65341,70880,21161,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(13902),e=a.i(70106);let f=(0,e.default)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);a.s(["LayoutDashboard",()=>f],30617);var g=a.i(45222),h=a.i(46842);let i=(0,e.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);a.s(["Sun",()=>i],65341);let j=(0,e.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);a.s(["Moon",()=>j],70880);let k=(0,e.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Settings",()=>k],21161);var l=a.i(68114);function m({className:a}){return(0,b.jsx)("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",className:(0,l.cn)("fill-current",a),children:(0,b.jsxs)("g",{children:[(0,b.jsx)("path",{d:"m124.809 408.11h262.382v103.89h-262.382z"}),(0,b.jsx)("path",{d:"m273.162 123.55h134.646l-34.459-44.772 33.515-46.459h-133.702v-32.319h-29.985v196.446h29.985z"}),(0,b.jsx)("path",{d:"m347.45 281.985h-50.335v-56.54h-79.107v56.54h-53.643v-56.54h-91.962v111.141c0 23.448 19.075 42.523 42.523 42.523h282.147c23.448 0 42.524-19.075 42.524-42.523v-111.14h-92.147z"})]})})}var n=a.i(85259),o=a.i(50944),p=a.i(32138),q=a.i(35240),r=a.i(72233);let s=[{id:"dashboard",label:"Dashboard",icon:f,href:"/"},{id:"chat",label:"Chat",icon:g.MessageCircle,href:"/chat"}];function t({activeItem:a="dashboard",onNavigate:c,className:d,variant:e="solid"}){let f=(0,o.usePathname)(),g=(0,o.useRouter)(),h=!c,{tooltips:i}=(0,p.useUserSettings)(),j=f&&"/"!==f&&f.startsWith("/chat")?"chat":"dashboard",k=h?j:a;return(0,b.jsxs)("aside",{className:(0,l.cn)("fixed top-[20px] left-[24px] bottom-[20px] flex flex-col z-40 rounded-[var(--radius-md)] w-14","glass"===e?"glass":"bg-surface border border-border",d),children:[(0,b.jsx)("div",{className:"flex items-center justify-center pt-5 pb-[60px]",children:(0,b.jsx)("button",{type:"button","aria-label":"Go to Dashboard",onClick:()=>h?g.push("/"):c?.("dashboard"),className:"flex items-center justify-center transition-opacity hover:opacity-85 cursor-pointer",children:(0,b.jsx)(m,{className:"h-[36px] w-[36px] min-h-[36px] min-w-[36px] shrink-0 text-[var(--logo-color)] -mt-[3px]"})})}),(0,b.jsx)("nav",{className:"flex-1 space-y-1 px-2",children:s.map(a=>{let d=k===a.id,e=(0,b.jsx)("button",{onClick:()=>h?g.push(a.href):c?.(a.id),className:(0,l.cn)("flex items-center justify-center w-full rounded-[4px] p-2.5 cursor-pointer",d?"bg-accent/10 text-accent":"text-foreground-secondary hover:text-foreground hover:bg-surface-hover"),children:(0,b.jsx)(a.icon,{className:"h-5 w-5 shrink-0"})});return i?(0,b.jsx)(n.Tooltip,{content:a.label,side:"right",children:e},a.id):(0,b.jsx)("div",{children:e},a.id)})}),(0,b.jsx)(u,{})]})}function u(){let[a,e]=(0,c.useState)(!1),{theme:f,setTheme:g}=(0,d.useTheme)(),[l,m]=(0,c.useState)(!1),n=(0,o.useRouter)(),{avatarUrl:s,isLoading:t}=(0,p.useUserSettings)(),{getStatus:u}=(0,q.useAgentStatus)(),v=u(q.USER_STATUS_ID),w=(0,c.useRef)(null);(0,c.useEffect)(()=>{m(!0)},[]),(0,c.useEffect)(()=>{function a(a){w.current&&!w.current.contains(a.target)&&e(!1)}return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]);let x="dark"===f;return(0,b.jsxs)("div",{ref:w,className:"relative flex justify-center pb-[8px]",children:[(0,b.jsx)("button",{onClick:()=>e(!a),className:"group flex items-center justify-center rounded-[4px] cursor-pointer transition-opacity",children:(0,b.jsx)(r.Avatar,{size:"sm",status:"active"===v?"online":"offline",children:t?(0,b.jsx)(r.AvatarFallback,{className:"skeleton"}):s?(0,b.jsx)(r.AvatarImage,{src:s,alt:"You",className:"grayscale group-hover:grayscale-0 transition-all duration-200"}):(0,b.jsx)(r.AvatarFallback,{className:"text-foreground-secondary",children:(0,b.jsx)(h.User,{className:"h-5 w-5"})})})}),a&&(0,b.jsxs)("div",{className:"absolute left-[calc(100%+8px)] bottom-0 w-48 rounded-[var(--radius-md)] bg-surface border border-border shadow-xl py-1 z-50",children:[(0,b.jsxs)("button",{onClick:()=>{e(!1),n.push("/settings")},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-foreground-secondary hover:text-foreground hover:bg-surface-hover cursor-pointer",children:[(0,b.jsx)(k,{className:"h-4 w-4"}),"Settings"]}),l&&(0,b.jsxs)("button",{onClick:()=>{g(x?"light":"dark"),e(!1)},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-foreground-secondary hover:text-foreground hover:bg-surface-hover cursor-pointer",children:[x?(0,b.jsx)(i,{className:"h-4 w-4"}):(0,b.jsx)(j,{className:"h-4 w-4"}),x?"Light mode":"Dark mode"]})]})]})}a.s(["Sidebar",()=>t],91693)},13513,a=>{"use strict";let b=(0,a.i(70106).default)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);a.s(["Camera",()=>b],13513)},40777,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(82434),e=a.i(70106);let f=(0,e.default)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);var g=a.i(33591);let h=(0,e.default)("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);var i=a.i(69520),j=a.i(96221),k=a.i(92e3),l=a.i(13513),m=a.i(91693),n=a.i(37582),o=a.i(91119),p=a.i(86304),q=a.i(72233),r=a.i(68114),s=a.i(9269),t=a.i(35240),u=a.i(59807);function v({agent:a,isPrimary:d,isConnected:e,onAvatarUpdated:f}){let g=(0,c.useRef)(null),[i,k]=(0,c.useState)(!1),{getStatus:m}=(0,t.useAgentStatus)(),n=m(a.id),s=(0,c.useCallback)(()=>{e&&g.current?.click()},[e]),u=(0,c.useCallback)(async b=>{let c=b.target.files?.[0];if(c){if(b.target.value="",c.size>5242880)return void alert("Image too large (max 5MB)");k(!0);try{let b=new FormData;b.append("avatar",c);let d=await fetch(`/api/openclaw/agents/${a.id}/avatar`,{method:"POST",body:b}),e=await d.json();if(!d.ok)return void alert(e.error||"Failed to update avatar");f()}catch{alert("Failed to upload avatar")}finally{k(!1)}}},[a.id,f]);return(0,b.jsx)(o.Card,{variant:"bordered",className:(0,r.cn)("py-4 pl-5 pr-4 transition-colors min-h-[80px] flex items-center",e?"hover:border-border-hover":"opacity-60"),children:(0,b.jsxs)("div",{className:"flex items-center justify-between flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsxs)("button",{type:"button",onClick:s,disabled:!e||i,className:"relative group rounded-[4px] focus:outline-none focus-visible:ring-2 focus-visible:ring-accent leading-[0]",title:e?"Click to change avatar":void 0,children:[(0,b.jsx)(q.Avatar,{size:"md",status:function(a,b){if(!b)return"offline";switch(a){case"thinking":return"away";case"active":return"online";default:return"offline"}}(n,e),statusPulse:"thinking"===n,children:a.avatar?(0,b.jsx)(q.AvatarImage,{src:a.avatar,alt:a.name,className:(0,r.cn)(!e&&"grayscale")}):(0,b.jsx)(q.AvatarFallback,{children:a.emoji||a.name.slice(0,2).toUpperCase()})}),e&&!i&&(0,b.jsx)("div",{className:"absolute inset-0 rounded-[4px] bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:(0,b.jsx)(l.Camera,{className:"h-4 w-4 text-white"})}),i&&(0,b.jsx)("div",{className:"absolute inset-0 rounded-[4px] bg-black/50 flex items-center justify-center",children:(0,b.jsx)(j.Loader2,{className:"h-4 w-4 text-white animate-spin"})})]}),(0,b.jsx)("input",{ref:g,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif",className:"hidden",onChange:u}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("p",{className:"text-sm font-medium text-foreground",children:a.name}),d&&(0,b.jsxs)("span",{className:"flex items-center gap-1 text-xs text-accent",children:[(0,b.jsx)(h,{className:"h-3 w-3"}),"Primary"]})]}),(0,b.jsx)("p",{className:"text-xs text-foreground-muted",children:e?a.description||"OpenClaw Agent":"Unreachable"})]})]}),(0,b.jsx)(p.Badge,{variant:function(a,b){if(!b)return"outline";switch(a){case"thinking":return"warning";case"active":return"success";default:return"outline"}}(n,e),size:"sm",children:function(a,b){if(!b)return"Offline";switch(a){case"thinking":return"Thinking";case"active":return"Active";default:return"Idle"}}(n,e)})]})})}function w({isConnected:a,isLoading:c,isConfigured:d,serverVersion:e,latency:h,error:k,onRefresh:l}){return(0,b.jsx)(o.Card,{variant:"bordered",className:"mb-8",children:(0,b.jsxs)(o.CardContent,{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[c?(0,b.jsx)(j.Loader2,{className:"h-5 w-5 text-foreground-muted animate-spin"}):a?(0,b.jsx)(f,{className:"h-5 w-5 text-success"}):(0,b.jsx)(g.WifiOff,{className:"h-5 w-5 text-error"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-sm font-medium text-foreground",children:"OpenClaw Gateway"}),(0,b.jsx)("p",{className:"text-xs text-foreground-muted",children:(()=>{if(c)return"Connecting to Gateway...";if(!d)return"Run 'castle setup' to configure";if(a){let a=["Connected"];return e&&(a[0]=`Connected to OpenClaw ${e}`),h&&a.push(`${h}ms`),a.join(" · ")}return k||"Not connected"})()})]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("button",{onClick:l,className:"p-1.5 rounded-md text-foreground-muted hover:text-foreground hover:bg-surface-hover transition-colors",title:"Refresh connection",children:(0,b.jsx)(i.RefreshCw,{className:"h-4 w-4"})}),c?(0,b.jsx)(p.Badge,{variant:"outline",children:"Connecting..."}):(0,b.jsx)(p.Badge,{variant:a?"success":"error",children:a?"Connected":"Disconnected"})]})]})})}function x(){return(0,b.jsx)("div",{className:"grid gap-3",children:[1,2,3].map(a=>(0,b.jsx)(o.Card,{variant:"bordered",className:"p-4 min-h-[80px] flex items-center",children:(0,b.jsxs)("div",{className:"flex items-center justify-between flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"skeleton h-10 w-10 rounded-full"}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)("div",{className:"skeleton h-4 w-24 rounded"}),(0,b.jsx)("div",{className:"skeleton h-3 w-32 rounded"})]})]}),(0,b.jsx)("div",{className:"skeleton h-5 w-14 rounded-full"})]})},a))})}function y({isConfigured:a}){return(0,b.jsx)(o.Card,{variant:"bordered",className:"p-8",children:(0,b.jsx)("div",{className:"flex flex-col items-center text-center gap-3",children:a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.AlertCircle,{className:"h-8 w-8 text-foreground-muted"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-sm font-medium text-foreground",children:"No agents discovered"}),(0,b.jsx)("p",{className:"text-xs text-foreground-muted mt-1",children:"Make sure OpenClaw Gateway is running and agents are configured."})]})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.Bot,{className:"h-8 w-8 text-foreground-muted"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Welcome to Castle"}),(0,b.jsxs)("p",{className:"text-xs text-foreground-muted mt-1",children:["Run ",(0,b.jsx)("code",{className:"px-1 py-0.5 bg-surface-hover rounded text-xs",children:"castle setup"})," to connect to your OpenClaw Gateway."]})]})]})})})}function z(){let{status:a,isLoading:c,isConnected:e,isConfigured:f,latency:g,serverVersion:h,agents:i,agentsLoading:j,refresh:k}=(0,s.useOpenClaw)();return(0,b.jsxs)("div",{className:"min-h-screen bg-background",children:[(0,b.jsx)(m.Sidebar,{variant:"solid"}),(0,b.jsxs)("main",{className:"min-h-screen ml-[80px]",children:[(0,b.jsxs)("div",{className:"px-8 py-5 flex items-center justify-between gap-4 border-b border-border",children:[(0,b.jsx)(n.PageHeader,{title:"Castle",subtitle:"The multi-agent workspace"}),(0,b.jsx)(u.SearchTrigger,{})]}),(0,b.jsxs)("div",{className:"p-8 max-w-4xl",children:[(0,b.jsx)(w,{isConnected:e,isLoading:c,isConfigured:f,serverVersion:h,latency:g,error:a?.error,onRefresh:k}),(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("h2",{className:"text-lg font-semibold text-foreground flex items-center gap-2",children:[(0,b.jsx)(d.Bot,{className:"h-5 w-5 text-foreground-secondary"}),"Agents"]}),!c&&i.length>0&&(0,b.jsxs)("span",{className:"text-sm text-foreground-muted",children:[i.length," agent",1!==i.length?"s":""," discovered"]})]}),j||c&&0===i.length?(0,b.jsx)(x,{}):i.length>0?(0,b.jsx)("div",{className:"grid gap-3",children:i.map((a,c)=>(0,b.jsx)(v,{agent:a,isPrimary:0===c,isConnected:e,onAvatarUpdated:k},a.id))}):(0,b.jsx)(y,{isConfigured:f})]})]})]})]})}a.s(["default",()=>z],40777)}];
|
|
1
|
+
module.exports=[37582,a=>{"use strict";var b=a.i(87924),c=a.i(68114);function d({title:a,subtitle:d,className:e}){return(0,b.jsxs)("div",{className:(0,c.cn)("space-y-2",e),children:[(0,b.jsx)("h1",{className:"text-2xl font-semibold text-foreground",children:a}),d?(0,b.jsx)("p",{className:"text-sm text-foreground-secondary",children:d}):null]})}a.s(["PageHeader",()=>d])},91119,86304,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(68114);let e=(0,c.forwardRef)(({className:a,variant:c="default",...e},f)=>(0,b.jsx)("div",{className:(0,d.cn)("rounded-[var(--radius-md)] bg-surface p-6",{"":"default"===c,"border border-border":"bordered"===c,"shadow-lg shadow-black/5 dark:shadow-black/20":"elevated"===c},a),ref:f,...e}));e.displayName="Card";let f=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("div",{className:(0,d.cn)("flex flex-col space-y-1.5 pb-4",a),ref:e,...c}));f.displayName="CardHeader";let g=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("h3",{className:(0,d.cn)("text-lg font-semibold leading-none tracking-tight text-foreground",a),ref:e,...c}));g.displayName="CardTitle";let h=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("p",{className:(0,d.cn)("text-sm text-foreground-secondary",a),ref:e,...c}));h.displayName="CardDescription";let i=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("div",{className:(0,d.cn)("",a),ref:e,...c}));i.displayName="CardContent";let j=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("div",{className:(0,d.cn)("flex items-center pt-4",a),ref:e,...c}));function k({className:a,variant:c="default",size:e="md",...f}){return(0,b.jsx)("span",{className:(0,d.cn)("inline-flex items-center font-medium rounded-[var(--radius-full)] transition-colors",{"bg-surface text-foreground-secondary":"default"===c,"bg-success/10 text-success":"success"===c,"bg-warning/10 text-warning":"warning"===c,"bg-error/10 text-error":"error"===c,"bg-info/10 text-info":"info"===c,"bg-transparent text-foreground-secondary border border-border":"outline"===c},{"px-2 py-0.5 text-xs":"sm"===e,"px-2.5 py-0.5 text-sm":"md"===e},a),...f})}j.displayName="CardFooter",a.s(["Card",()=>e,"CardContent",()=>i,"CardDescription",()=>h,"CardFooter",()=>j,"CardHeader",()=>f,"CardTitle",()=>g],91119),a.s(["Badge",()=>k],86304)},9269,65556,a=>{"use strict";var b=a.i(72131),c=a.i(72596);let d=null,e=0,f=-1,g=Date.now(),h=new Map,i=new Set;function j(a,b){return h.has(a)||h.set(a,new Set),h.get(a).add(b),1==++e&&(d||(console.log("[SSE Client] Opening connection (subscribers:",e+")"),d=new EventSource("/api/openclaw/events"),g=Date.now(),d.onopen=()=>{console.log("[SSE Client] Connected")},d.onmessage=a=>{try{let b=JSON.parse(a.data);!function(a){if(g=Date.now(),"number"==typeof a.seq){if(a.seq<=f)return console.debug("[SSE Client] Dropped duplicate event seq:",a.seq,"event:",a.event);f=a.seq}let b=a.event;for(let[c,d]of h)if("*"===c||(c.endsWith(".*")?b.startsWith(c.slice(0,-1)):b===c))for(let b of d)try{b(a)}catch(a){console.error("[SSE] Handler error:",a)}}(b)}catch(b){console.warn("[SSE Client] Failed to parse event:",b.message,"data:",a.data?.slice(0,100))}},d.onerror=a=>{for(let a of(console.warn("[SSE Client] Connection error (readyState:",d?.readyState+")"),i))try{a()}catch{}})),()=>{let c=h.get(a);c&&(c.delete(b),0===c.size&&h.delete(a)),--e<=0&&(e=0,d&&(console.log("[SSE Client] Closing connection"),d.close(),d=null),f=-1)}}function k(a){return i.add(a),()=>{i.delete(a)}}function l(){return g}a.s(["getLastEventTimestamp",()=>l,"onError",()=>k,"subscribe",()=>j],65556);let m=async a=>{let b=await fetch(a,{method:"POST"});return b.ok||console.warn(`[useOpenClaw] Status fetch returned ${b.status}`),b.json()},n=async a=>{let b=await fetch(a);return b.ok?(await b.json()).agents||[]:(console.warn(`[useOpenClaw] Agents fetch failed: ${b.status}`),[])};function o(){let{data:a,error:d,isLoading:e,mutate:f}=(0,c.default)("/api/openclaw/ping",m,{refreshInterval:6e4,revalidateOnFocus:!0,dedupingInterval:1e4,errorRetryCount:2}),g=a?.ok??!1,{data:h,isLoading:i,mutate:l}=(0,c.default)(g?"/api/openclaw/agents":null,n,{refreshInterval:3e5,revalidateOnFocus:!1,dedupingInterval:3e4}),o=(0,b.useCallback)(async()=>{await f(),g&&await l()},[f,l,g]),p=(0,b.useCallback)(()=>l(),[l]);return(0,b.useEffect)(()=>{let a=a=>{l()},b=j("castle.state",a=>{let b=a.payload;f(a=>({ok:b.isConnected,configured:a?.configured??!0,state:b.state,server:b.server}),{revalidate:!1}),b.isConnected&&l()}),c=j("agent.*",a),d=j("agentAvatarUpdated",a),e=k(()=>{console.warn("[useOpenClaw] SSE error — marking as disconnected"),f(a=>a?{...a,ok:!1,state:"disconnected"}:a,{revalidate:!1})});return()=>{b(),c(),d(),e()}},[f,l]),{status:a,isLoading:e,isError:!!d,isConnected:g,isConfigured:a?.configured??!1,latency:a?.latency_ms,serverVersion:a?.server?.version,agents:h??[],agentsLoading:i,refresh:o,refreshAgents:p}}a.s(["useOpenClaw",()=>o],9269)},92e3,a=>{"use strict";let b=(0,a.i(70106).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);a.s(["AlertCircle",()=>b],92e3)},82434,a=>{"use strict";let b=(0,a.i(70106).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);a.s(["Bot",()=>b],82434)},33591,a=>{"use strict";let b=(0,a.i(70106).default)("wifi-off",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);a.s(["WifiOff",()=>b],33591)},69520,a=>{"use strict";let b=(0,a.i(70106).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);a.s(["RefreshCw",()=>b],69520)},96221,a=>{"use strict";let b=(0,a.i(70106).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",()=>b],96221)},45222,a=>{"use strict";let b=(0,a.i(70106).default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);a.s(["MessageCircle",()=>b],45222)},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},46842,a=>{"use strict";let b=(0,a.i(70106).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);a.s(["User",()=>b],46842)},85259,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(35112),e=a.i(68114);function f({children:a,content:f,side:g="right",className:h,delay:i=0}){let[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(!1),n=(0,c.useRef)(null),[o,p]=(0,c.useState)({x:0,y:0}),[q,r]=(0,c.useState)(!1),s=(0,c.useRef)(null),t=(0,c.useRef)(null);(0,c.useEffect)(()=>(m(!0),()=>{n.current&&clearTimeout(n.current)}),[]);let u=(0,c.useCallback)(()=>{if(s.current&&t.current){let a=s.current.getBoundingClientRect(),b=t.current.getBoundingClientRect(),c=0,d=0;switch(g){case"top":c=a.left+a.width/2-b.width/2,d=a.top-b.height-10;break;case"bottom":c=a.left+a.width/2-b.width/2,d=a.bottom+10;break;case"left":c=a.left-b.width-10,d=a.top+a.height/2-b.height/2;break;default:c=a.right+10,d=a.top+a.height/2-b.height/2}p({x:c,y:d}),r(!0)}},[g]);return(0,c.useLayoutEffect)(()=>{if(!j)return void r(!1);u();let a=()=>u();return window.addEventListener("resize",a),window.addEventListener("scroll",a,!0),()=>{window.removeEventListener("resize",a),window.removeEventListener("scroll",a,!0)}},[j,u]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{ref:s,onMouseEnter:()=>{i>0?n.current=setTimeout(()=>k(!0),i):k(!0)},onMouseLeave:()=>{n.current&&(clearTimeout(n.current),n.current=null),k(!1)},className:h,children:a}),j&&l?(0,d.createPortal)((0,b.jsx)("div",{ref:t,className:"fixed z-[9999] pointer-events-none",style:{left:o.x,top:o.y,visibility:q?"visible":"hidden"},children:(0,b.jsx)("div",{className:(0,e.cn)("transition-all duration-150 ease-out",q?"opacity-100 scale-100":"opacity-0 scale-95","right"===g&&(q?"translate-x-0":"-translate-x-2"),"left"===g&&(q?"translate-x-0":"translate-x-2"),"top"===g&&(q?"translate-y-0":"translate-y-2"),"bottom"===g&&(q?"translate-y-0":"-translate-y-2")),children:(0,b.jsxs)("div",{className:"relative bg-[#1a1a1a] text-white text-sm font-medium px-3 py-1.5 rounded-[4px] whitespace-nowrap shadow-xl shadow-black/25",children:[f,"right"===g&&(0,b.jsx)("div",{className:"absolute -left-[7px] top-1/2 -translate-y-1/2",children:(0,b.jsx)("div",{className:"w-0 h-0 border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-r-[8px] border-r-[#1a1a1a]"})}),"left"===g&&(0,b.jsx)("div",{className:"absolute -right-[7px] top-1/2 -translate-y-1/2",children:(0,b.jsx)("div",{className:"w-0 h-0 border-t-[8px] border-t-transparent border-b-[8px] border-b-transparent border-l-[8px] border-l-[#1a1a1a]"})}),"top"===g&&(0,b.jsx)("div",{className:"absolute -bottom-[7px] left-1/2 -translate-x-1/2",children:(0,b.jsx)("div",{className:"w-0 h-0 border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-t-[8px] border-t-[#1a1a1a]"})}),"bottom"===g&&(0,b.jsx)("div",{className:"absolute -top-[7px] left-1/2 -translate-x-1/2",children:(0,b.jsx)("div",{className:"w-0 h-0 border-l-[8px] border-l-transparent border-r-[8px] border-r-transparent border-b-[8px] border-b-[#1a1a1a]"})})]})})}),document.body):null]})}a.s(["Tooltip",()=>f])},32138,a=>{"use strict";var b=a.i(72596);let c=a=>fetch(a).then(a=>a.json());function d(){let{data:a,mutate:d,isLoading:e}=(0,b.default)("/api/settings",c,{revalidateOnFocus:!0,dedupingInterval:5e3}),f=a?.displayName||"";return{displayName:f,avatarUrl:a?.avatarPath?`/api/settings/avatar?v=${encodeURIComponent(a.avatarPath)}`:null,tooltips:a?.tooltips!=="false",isLoading:e,refresh:()=>d()}}a.s(["useUserSettings",()=>d])},72233,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(68114);let e=(0,c.forwardRef)(({className:a,size:c="md",status:e,statusPulse:f,children:g,...h},i)=>(0,b.jsxs)("div",{className:"relative inline-block shrink-0",children:[(0,b.jsx)("div",{className:(0,d.cn)("relative flex shrink-0 overflow-hidden rounded-[4px] bg-surface border border-border",{"h-9 w-9":"sm"===c,"h-10 w-10":"md"===c,"h-12 w-12":"lg"===c},a),ref:i,...h,children:g}),e&&(0,b.jsx)("span",{className:(0,d.cn)("absolute block rounded-full ring-2 ring-background",{"h-2.5 w-2.5 -bottom-0.5 -right-0.5":"sm"===c,"h-3 w-3 -bottom-0.5 -right-0.5":"md"===c,"h-3.5 w-3.5 -bottom-0.5 -right-0.5":"lg"===c},{"bg-success":"online"===e,"bg-foreground-muted":"offline"===e,"bg-error":"busy"===e,"bg-warning":"away"===e},f&&"animate-pulse")})]}));e.displayName="Avatar";let f=(0,c.forwardRef)(({className:a,alt:c,...e},f)=>(0,b.jsx)("img",{className:(0,d.cn)("aspect-square h-full w-full object-cover",a),alt:c,ref:f,...e}));f.displayName="AvatarImage";let g=(0,c.forwardRef)(({className:a,...c},e)=>(0,b.jsx)("span",{className:(0,d.cn)("flex h-full w-full items-center justify-center bg-surface text-foreground-secondary font-medium text-sm",a),ref:e,...c}));g.displayName="AvatarFallback",a.s(["Avatar",()=>e,"AvatarFallback",()=>g,"AvatarImage",()=>f])},91693,30617,65341,70880,21161,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(13902),e=a.i(70106);let f=(0,e.default)("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);a.s(["LayoutDashboard",()=>f],30617);var g=a.i(45222),h=a.i(46842);let i=(0,e.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);a.s(["Sun",()=>i],65341);let j=(0,e.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);a.s(["Moon",()=>j],70880);let k=(0,e.default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);a.s(["Settings",()=>k],21161);var l=a.i(68114);function m({className:a}){return(0,b.jsx)("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",className:(0,l.cn)("fill-current",a),children:(0,b.jsxs)("g",{children:[(0,b.jsx)("path",{d:"m124.809 408.11h262.382v103.89h-262.382z"}),(0,b.jsx)("path",{d:"m273.162 123.55h134.646l-34.459-44.772 33.515-46.459h-133.702v-32.319h-29.985v196.446h29.985z"}),(0,b.jsx)("path",{d:"m347.45 281.985h-50.335v-56.54h-79.107v56.54h-53.643v-56.54h-91.962v111.141c0 23.448 19.075 42.523 42.523 42.523h282.147c23.448 0 42.524-19.075 42.524-42.523v-111.14h-92.147z"})]})})}var n=a.i(85259),o=a.i(50944),p=a.i(32138),q=a.i(35240),r=a.i(72233);let s=[{id:"dashboard",label:"Dashboard",icon:f,href:"/"},{id:"chat",label:"Chat",icon:g.MessageCircle,href:"/chat"}];function t({activeItem:a="dashboard",onNavigate:c,className:d,variant:e="solid"}){let f=(0,o.usePathname)(),g=(0,o.useRouter)(),h=!c,{tooltips:i}=(0,p.useUserSettings)(),j=f&&"/"!==f&&f.startsWith("/chat")?"chat":"dashboard",k=h?j:a;return(0,b.jsxs)("aside",{className:(0,l.cn)("fixed top-[20px] left-[24px] bottom-[20px] flex flex-col z-40 rounded-[var(--radius-md)] w-14","glass"===e?"glass":"bg-surface border border-border",d),children:[(0,b.jsx)("div",{className:"flex items-center justify-center pt-5 pb-[60px]",children:(0,b.jsx)("button",{type:"button","aria-label":"Go to Dashboard",onClick:()=>h?g.push("/"):c?.("dashboard"),className:"flex items-center justify-center transition-opacity hover:opacity-85 cursor-pointer",children:(0,b.jsx)(m,{className:"h-[36px] w-[36px] min-h-[36px] min-w-[36px] shrink-0 text-[var(--logo-color)] -mt-[3px]"})})}),(0,b.jsx)("nav",{className:"flex-1 space-y-1 px-2",children:s.map(a=>{let d=k===a.id,e=(0,b.jsx)("button",{onClick:()=>h?g.push(a.href):c?.(a.id),className:(0,l.cn)("flex items-center justify-center w-full rounded-[4px] p-2.5 cursor-pointer",d?"bg-accent/10 text-accent":"text-foreground-secondary hover:text-foreground hover:bg-surface-hover"),children:(0,b.jsx)(a.icon,{className:"h-5 w-5 shrink-0"})});return i?(0,b.jsx)(n.Tooltip,{content:a.label,side:"right",children:e},a.id):(0,b.jsx)("div",{children:e},a.id)})}),(0,b.jsx)(u,{})]})}function u(){let[a,e]=(0,c.useState)(!1),{theme:f,setTheme:g}=(0,d.useTheme)(),[l,m]=(0,c.useState)(!1),n=(0,o.useRouter)(),{avatarUrl:s,isLoading:t}=(0,p.useUserSettings)(),{getStatus:u}=(0,q.useAgentStatus)(),v=u(q.USER_STATUS_ID),w=(0,c.useRef)(null);(0,c.useEffect)(()=>{m(!0)},[]),(0,c.useEffect)(()=>{function a(a){w.current&&!w.current.contains(a.target)&&e(!1)}return document.addEventListener("mousedown",a),()=>document.removeEventListener("mousedown",a)},[]);let x="dark"===f;return(0,b.jsxs)("div",{ref:w,className:"relative flex justify-center pb-[8px]",children:[(0,b.jsx)("button",{onClick:()=>e(!a),className:"group flex items-center justify-center rounded-[4px] cursor-pointer transition-opacity",children:(0,b.jsx)(r.Avatar,{size:"sm",status:"active"===v?"online":"offline",children:t?(0,b.jsx)(r.AvatarFallback,{className:"skeleton"}):s?(0,b.jsx)(r.AvatarImage,{src:s,alt:"You",className:"grayscale group-hover:grayscale-0 transition-all duration-200"}):(0,b.jsx)(r.AvatarFallback,{className:"text-foreground-secondary",children:(0,b.jsx)(h.User,{className:"h-5 w-5"})})})}),a&&(0,b.jsxs)("div",{className:"absolute left-[calc(100%+8px)] bottom-0 w-48 rounded-[var(--radius-md)] bg-surface border border-border shadow-xl py-1 z-50",children:[(0,b.jsxs)("button",{onClick:()=>{e(!1),n.push("/settings")},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-foreground-secondary hover:text-foreground hover:bg-surface-hover cursor-pointer",children:[(0,b.jsx)(k,{className:"h-4 w-4"}),"Settings"]}),l&&(0,b.jsxs)("button",{onClick:()=>{g(x?"light":"dark"),e(!1)},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-foreground-secondary hover:text-foreground hover:bg-surface-hover cursor-pointer",children:[x?(0,b.jsx)(i,{className:"h-4 w-4"}):(0,b.jsx)(j,{className:"h-4 w-4"}),x?"Light mode":"Dark mode"]})]})]})}a.s(["Sidebar",()=>t],91693)},13513,a=>{"use strict";let b=(0,a.i(70106).default)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);a.s(["Camera",()=>b],13513)},40777,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(82434),e=a.i(70106);let f=(0,e.default)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);var g=a.i(33591);let h=(0,e.default)("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);var i=a.i(69520),j=a.i(96221),k=a.i(92e3),l=a.i(13513),m=a.i(91693),n=a.i(37582),o=a.i(91119),p=a.i(86304),q=a.i(72233),r=a.i(68114),s=a.i(9269),t=a.i(35240),u=a.i(59807);function v({agent:a,isPrimary:d,isConnected:e,onAvatarUpdated:f}){let g=(0,c.useRef)(null),[i,k]=(0,c.useState)(!1),{getStatus:m}=(0,t.useAgentStatus)(),n=m(a.id),s=(0,c.useCallback)(()=>{e&&g.current?.click()},[e]),u=(0,c.useCallback)(async b=>{let c=b.target.files?.[0];if(c){if(b.target.value="",c.size>5242880)return void alert("Image too large (max 5MB)");k(!0);try{let b=new FormData;b.append("avatar",c);let d=await fetch(`/api/openclaw/agents/${a.id}/avatar`,{method:"POST",body:b}),e=await d.json();if(!d.ok)return void alert(e.error||"Failed to update avatar");f()}catch{alert("Failed to upload avatar")}finally{k(!1)}}},[a.id,f]);return(0,b.jsx)(o.Card,{variant:"bordered",className:(0,r.cn)("py-4 pl-5 pr-4 transition-colors min-h-[80px] flex items-center",e?"hover:border-border-hover":"opacity-60"),children:(0,b.jsxs)("div",{className:"flex items-center justify-between flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsxs)("button",{type:"button",onClick:s,disabled:!e||i,className:"relative group rounded-[4px] focus:outline-none focus-visible:ring-2 focus-visible:ring-accent leading-[0]",title:e?"Click to change avatar":void 0,children:[(0,b.jsx)(q.Avatar,{size:"md",status:function(a,b){if(!b)return"offline";switch(a){case"thinking":return"away";case"active":return"online";default:return"offline"}}(n,e),statusPulse:"thinking"===n,children:a.avatar?(0,b.jsx)(q.AvatarImage,{src:a.avatar,alt:a.name,className:(0,r.cn)(!e&&"grayscale")}):(0,b.jsx)(q.AvatarFallback,{children:a.emoji||a.name.slice(0,2).toUpperCase()})}),e&&!i&&(0,b.jsx)("div",{className:"absolute inset-0 rounded-[4px] bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:(0,b.jsx)(l.Camera,{className:"h-4 w-4 text-white"})}),i&&(0,b.jsx)("div",{className:"absolute inset-0 rounded-[4px] bg-black/50 flex items-center justify-center",children:(0,b.jsx)(j.Loader2,{className:"h-4 w-4 text-white animate-spin"})})]}),(0,b.jsx)("input",{ref:g,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif",className:"hidden",onChange:u}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("p",{className:"text-sm font-medium text-foreground",children:a.name}),d&&(0,b.jsxs)("span",{className:"flex items-center gap-1 text-xs text-accent",children:[(0,b.jsx)(h,{className:"h-3 w-3"}),"Primary"]})]}),(0,b.jsx)("p",{className:"text-xs text-foreground-muted",children:e?a.description||"OpenClaw Agent":"Unreachable"})]})]}),(0,b.jsx)(p.Badge,{variant:function(a,b){if(!b)return"outline";switch(a){case"thinking":return"warning";case"active":return"success";default:return"outline"}}(n,e),size:"sm",children:function(a,b){if(!b)return"Offline";switch(a){case"thinking":return"Thinking";case"active":return"Active";default:return"Idle"}}(n,e)})]})})}function w({isConnected:a,isLoading:c,isConfigured:d,serverVersion:e,latency:h,error:k,onRefresh:l}){return(0,b.jsx)(o.Card,{variant:"bordered",className:"mb-8",children:(0,b.jsxs)(o.CardContent,{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[c?(0,b.jsx)(j.Loader2,{className:"h-5 w-5 text-foreground-muted animate-spin"}):a?(0,b.jsx)(f,{className:"h-5 w-5 text-success"}):(0,b.jsx)(g.WifiOff,{className:"h-5 w-5 text-error"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-sm font-medium text-foreground",children:"OpenClaw Gateway"}),(0,b.jsx)("p",{className:"text-xs text-foreground-muted",children:(()=>{if(c)return"Connecting to Gateway...";if(!d)return"OpenClaw not installed — visit openclaw.ai";if(a){let a=["Connected"];return e&&(a[0]=`Connected to OpenClaw ${e}`),h&&a.push(`${h}ms`),a.join(" · ")}return k||"Not connected"})()})]})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("button",{onClick:l,className:"p-1.5 rounded-md text-foreground-muted hover:text-foreground hover:bg-surface-hover transition-colors",title:"Refresh connection",children:(0,b.jsx)(i.RefreshCw,{className:"h-4 w-4"})}),c?(0,b.jsx)(p.Badge,{variant:"outline",children:"Connecting..."}):(0,b.jsx)(p.Badge,{variant:a?"success":d?"error":"outline",children:a?"Connected":d?"Disconnected":"Not Installed"})]})]})})}function x(){return(0,b.jsx)("div",{className:"grid gap-3",children:[1,2,3].map(a=>(0,b.jsx)(o.Card,{variant:"bordered",className:"p-4 min-h-[80px] flex items-center",children:(0,b.jsxs)("div",{className:"flex items-center justify-between flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"skeleton h-10 w-10 rounded-full"}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)("div",{className:"skeleton h-4 w-24 rounded"}),(0,b.jsx)("div",{className:"skeleton h-3 w-32 rounded"})]})]}),(0,b.jsx)("div",{className:"skeleton h-5 w-14 rounded-full"})]})},a))})}function y({isConfigured:a}){return(0,b.jsx)(o.Card,{variant:"bordered",className:"p-8",children:(0,b.jsx)("div",{className:"flex flex-col items-center text-center gap-3",children:a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.AlertCircle,{className:"h-8 w-8 text-foreground-muted"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-sm font-medium text-foreground",children:"No agents discovered"}),(0,b.jsx)("p",{className:"text-xs text-foreground-muted mt-1",children:"Make sure OpenClaw Gateway is running and agents are configured."})]})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(d.Bot,{className:"h-8 w-8 text-foreground-muted"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Welcome to Castle"}),(0,b.jsxs)("p",{className:"text-xs text-foreground-muted mt-1",children:["Run ",(0,b.jsx)("code",{className:"px-1 py-0.5 bg-surface-hover rounded text-xs",children:"castle setup"})," to connect to your OpenClaw Gateway."]})]})]})})})}function z(){let{status:a,isLoading:c,isConnected:e,isConfigured:f,latency:g,serverVersion:h,agents:i,agentsLoading:j,refresh:k}=(0,s.useOpenClaw)();return(0,b.jsxs)("div",{className:"min-h-screen bg-background",children:[(0,b.jsx)(m.Sidebar,{variant:"solid"}),(0,b.jsxs)("main",{className:"min-h-screen ml-[80px]",children:[(0,b.jsxs)("div",{className:"px-8 py-5 flex items-center justify-between gap-4 border-b border-border",children:[(0,b.jsx)(n.PageHeader,{title:"Castle",subtitle:"The multi-agent workspace"}),(0,b.jsx)(u.SearchTrigger,{})]}),(0,b.jsxs)("div",{className:"p-8 max-w-4xl",children:[(0,b.jsx)(w,{isConnected:e,isLoading:c,isConfigured:f,serverVersion:h,latency:g,error:a?.error,onRefresh:k}),(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("h2",{className:"text-lg font-semibold text-foreground flex items-center gap-2",children:[(0,b.jsx)(d.Bot,{className:"h-5 w-5 text-foreground-secondary"}),"Agents"]}),!c&&i.length>0&&(0,b.jsxs)("span",{className:"text-sm text-foreground-muted",children:[i.length," agent",1!==i.length?"s":""," discovered"]})]}),j||c&&0===i.length?(0,b.jsx)(x,{}):i.length>0?(0,b.jsx)("div",{className:"grid gap-3",children:i.map((a,c)=>(0,b.jsx)(v,{agent:a,isPrimary:0===c,isConnected:e,onAvatarUpdated:k},a.id))}):(0,b.jsx)(y,{isConfigured:f})]})]})]})]})}a.s(["default",()=>z],40777)}];
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=_7a67de23._.js.map
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"wasm": [],
|
|
19
19
|
"assets": [],
|
|
20
20
|
"env": {
|
|
21
|
-
"__NEXT_BUILD_ID": "
|
|
22
|
-
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "
|
|
23
|
-
"__NEXT_PREVIEW_MODE_ID": "
|
|
24
|
-
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "
|
|
25
|
-
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "
|
|
21
|
+
"__NEXT_BUILD_ID": "PzpTWZTNAsAIh96H48auo",
|
|
22
|
+
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "kJKhkhEWLV7x/cJ1ImDKMsghMdJgBAoULluzeP5bcZI=",
|
|
23
|
+
"__NEXT_PREVIEW_MODE_ID": "fbc8356dd252d8670039189e68d55160",
|
|
24
|
+
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "ec7b764002a04bbf7b69e22530c43b8378f5345f8fca003c7907557ee32b0c17",
|
|
25
|
+
"__NEXT_PREVIEW_MODE_SIGNING_KEY": "ff5fc09d9057e7814104d373209d23b521c043484a05ab0d5b28ee5a7064ee6b"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><!--IDGX3MGCjqUE6NQVlug5A--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3c2b51fd3ab2ac34.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/97d384ea34b6283a.js"/><script src="/_next/static/chunks/76c064224d953678.js" async=""></script><script src="/_next/static/chunks/f1f489dad7e35d90.js" async=""></script><script src="/_next/static/chunks/7de9141b1af425c3.js" async=""></script><script src="/_next/static/chunks/turbopack-1da073e19f58dee0.js" async=""></script><script src="/_next/static/chunks/d11263c7e8894d27.js" async=""></script><script src="/_next/static/chunks/5a1105a61e9390f8.js" async=""></script><script src="/_next/static/chunks/868f09ea8b0a7649.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Castle</title><meta name="description" content="The multi-agent workspace"/><link rel="icon" href="/icon.png?icon.4cc5e0bd.png" sizes="1000x1000" type="image/png"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-background text-foreground"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","dark",null,["light","dark"],null,false,true)</script><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><button class="fixed top-[28px] right-[28px] z-40 flex items-center gap-3 pl-3 pr-2.5 h-[38px] w-[320px] rounded-[var(--radius-sm)] bg-surface border border-border hover:border-border-hover text-foreground-secondary hover:text-foreground transition-colors cursor-pointer shadow-sm"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-search h-4 w-4 shrink-0" aria-hidden="true"><path d="m21 21-4.34-4.34"></path><circle cx="11" cy="11" r="8"></circle></svg><span class="text-sm text-foreground-secondary/50 flex-1 text-left">Search Castle...</span><kbd class="flex items-center justify-center h-[22px] px-1.5 gap-1 rounded-[4px] bg-surface-hover border border-border font-medium text-foreground-secondary"><span class="text-[15px]">⌘</span><span class="text-[11px]">K</span></kbd></button><script src="/_next/static/chunks/97d384ea34b6283a.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[63178,[\"/_next/static/chunks/d11263c7e8894d27.js\",\"/_next/static/chunks/5a1105a61e9390f8.js\"],\"ThemeProvider\"]\n3:I[49410,[\"/_next/static/chunks/d11263c7e8894d27.js\",\"/_next/static/chunks/5a1105a61e9390f8.js\"],\"PresenceProvider\"]\n4:I[40871,[\"/_next/static/chunks/d11263c7e8894d27.js\",\"/_next/static/chunks/5a1105a61e9390f8.js\"],\"SearchProvider\"]\n5:I[39756,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n6:I[37457,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n7:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"ViewportBoundary\"]\nc:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"MetadataBoundary\"]\ne:I[68027,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n:HL[\"/_next/static/chunks/3c2b51fd3ab2ac34.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"IDGX3MGCjqUE6NQVlug5A\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3c2b51fd3ab2ac34.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/d11263c7e8894d27.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/5a1105a61e9390f8.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-background text-foreground\",\"children\":[\"$\",\"$L2\",null,{\"attribute\":\"class\",\"defaultTheme\":\"dark\",\"enableSystem\":false,\"disableTransitionOnChange\":true,\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$La\",null,{\"children\":\"$Lb\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Ld\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$e\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"f:I[27201,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"IconMark\"]\n9:null\nd:[[\"$\",\"title\",\"0\",{\"children\":\"Castle\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"The multi-agent workspace\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.png?icon.4cc5e0bd.png\",\"sizes\":\"1000x1000\",\"type\":\"image/png\"}],[\"$\",\"$Lf\",\"3\",{}]]\n"])</script></body></html>
|
|
1
|
+
<!DOCTYPE html><!--PzpTWZTNAsAIh96H48auo--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/3c2b51fd3ab2ac34.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/97d384ea34b6283a.js"/><script src="/_next/static/chunks/76c064224d953678.js" async=""></script><script src="/_next/static/chunks/f1f489dad7e35d90.js" async=""></script><script src="/_next/static/chunks/7de9141b1af425c3.js" async=""></script><script src="/_next/static/chunks/turbopack-1da073e19f58dee0.js" async=""></script><script src="/_next/static/chunks/d11263c7e8894d27.js" async=""></script><script src="/_next/static/chunks/5a1105a61e9390f8.js" async=""></script><script src="/_next/static/chunks/868f09ea8b0a7649.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Castle</title><meta name="description" content="The multi-agent workspace"/><link rel="icon" href="/icon.png?icon.4cc5e0bd.png" sizes="1000x1000" type="image/png"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-background text-foreground"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","dark",null,["light","dark"],null,false,true)</script><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><button class="fixed top-[28px] right-[28px] z-40 flex items-center gap-3 pl-3 pr-2.5 h-[38px] w-[320px] rounded-[var(--radius-sm)] bg-surface border border-border hover:border-border-hover text-foreground-secondary hover:text-foreground transition-colors cursor-pointer shadow-sm"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-search h-4 w-4 shrink-0" aria-hidden="true"><path d="m21 21-4.34-4.34"></path><circle cx="11" cy="11" r="8"></circle></svg><span class="text-sm text-foreground-secondary/50 flex-1 text-left">Search Castle...</span><kbd class="flex items-center justify-center h-[22px] px-1.5 gap-1 rounded-[4px] bg-surface-hover border border-border font-medium text-foreground-secondary"><span class="text-[15px]">⌘</span><span class="text-[11px]">K</span></kbd></button><script src="/_next/static/chunks/97d384ea34b6283a.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[63178,[\"/_next/static/chunks/d11263c7e8894d27.js\",\"/_next/static/chunks/5a1105a61e9390f8.js\"],\"ThemeProvider\"]\n3:I[49410,[\"/_next/static/chunks/d11263c7e8894d27.js\",\"/_next/static/chunks/5a1105a61e9390f8.js\"],\"PresenceProvider\"]\n4:I[40871,[\"/_next/static/chunks/d11263c7e8894d27.js\",\"/_next/static/chunks/5a1105a61e9390f8.js\"],\"SearchProvider\"]\n5:I[39756,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n6:I[37457,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n7:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"ViewportBoundary\"]\nc:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"MetadataBoundary\"]\ne:I[68027,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n:HL[\"/_next/static/chunks/3c2b51fd3ab2ac34.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"PzpTWZTNAsAIh96H48auo\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/3c2b51fd3ab2ac34.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/d11263c7e8894d27.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/5a1105a61e9390f8.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-background text-foreground\",\"children\":[\"$\",\"$L2\",null,{\"attribute\":\"class\",\"defaultTheme\":\"dark\",\"enableSystem\":false,\"disableTransitionOnChange\":true,\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$La\",null,{\"children\":\"$Lb\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Ld\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$e\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"f:I[27201,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"IconMark\"]\n9:null\nd:[[\"$\",\"title\",\"0\",{\"children\":\"Castle\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"The multi-agent workspace\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.png?icon.4cc5e0bd.png\",\"sizes\":\"1000x1000\",\"type\":\"image/png\"}],[\"$\",\"$Lf\",\"3\",{}]]\n"])</script></body></html>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
<!DOCTYPE html><!--
|
|
2
|
-
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/97d384ea34b6283a.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"ViewportBoundary\"]\n9:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"MetadataBoundary\"]\nb:I[68027,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"
|
|
1
|
+
<!DOCTYPE html><!--PzpTWZTNAsAIh96H48auo--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/97d384ea34b6283a.js"/><script src="/_next/static/chunks/76c064224d953678.js" async=""></script><script src="/_next/static/chunks/f1f489dad7e35d90.js" async=""></script><script src="/_next/static/chunks/7de9141b1af425c3.js" async=""></script><script src="/_next/static/chunks/turbopack-1da073e19f58dee0.js" async=""></script><script src="/_next/static/chunks/868f09ea8b0a7649.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
|
|
2
|
+
@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/97d384ea34b6283a.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"ViewportBoundary\"]\n9:I[97367,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"MetadataBoundary\"]\nb:I[68027,[\"/_next/static/chunks/868f09ea8b0a7649.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"PzpTWZTNAsAIh96H48auo\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/868f09ea8b0a7649.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"kJKhkhEWLV7x/cJ1ImDKMsghMdJgBAoULluzeP5bcZI=\"\n}"
|