agentroam 0.2.0-preview.2 → 0.2.0-preview.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/README.md +12 -11
- package/dist/args.js +24 -8
- package/dist/args.test.js +25 -1
- package/dist/cli.js +112 -52
- package/dist/cloudflared/bundled-asset.js +37 -0
- package/dist/cloudflared/bundled-asset.test.js +50 -0
- package/dist/cloudflared/installer.js +83 -40
- package/dist/cloudflared/installer.test.js +63 -4
- package/dist/cloudflared/manifest.js +3 -5
- package/dist/tunnel/child-process.js +23 -0
- package/dist/tunnel/cloudflare-provider.js +52 -8
- package/dist/tunnel/custom-command-provider.js +54 -4
- package/dist/tunnel/pinggy-provider.js +84 -0
- package/dist/tunnel/pinggy-provider.test.js +40 -0
- package/dist/tunnel/public-readiness.js +58 -0
- package/dist/tunnel/public-readiness.test.js +24 -0
- package/dist/tunnel/relay-orchestrator.js +43 -0
- package/dist/tunnel/relay-orchestrator.test.js +72 -0
- package/package.json +4 -1
- package/runtime/.next/BUILD_ID +1 -1
- package/runtime/.next/app-build-manifest.json +4 -4
- package/runtime/.next/app-path-routes-manifest.json +1 -1
- package/runtime/.next/build-manifest.json +5 -5
- package/runtime/.next/prerender-manifest.json +1 -1
- package/runtime/.next/react-loadable-manifest.json +2 -2
- package/runtime/.next/server/app/_not-found.html +1 -1
- package/runtime/.next/server/app/_not-found.rsc +1 -1
- package/runtime/.next/server/app/web/page_client-reference-manifest.js +1 -1
- package/runtime/.next/server/app/web.html +1 -1
- package/runtime/.next/server/app/web.rsc +2 -2
- package/runtime/.next/server/app-paths-manifest.json +11 -11
- package/runtime/.next/server/middleware-build-manifest.js +1 -1
- package/runtime/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/runtime/.next/server/pages/404.html +1 -1
- package/runtime/.next/server/pages/500.html +1 -1
- package/runtime/.next/server/server-reference-manifest.json +1 -1
- package/runtime/.next/static/chunks/982.bf2e6e7fe55cd5ca.js +1 -0
- package/runtime/.next/static/chunks/app/web/{page-800bcc7d84eb45e4.js → page-0ee508ac538f72d3.js} +1 -1
- package/runtime/.next/static/chunks/{webpack-e56f3a1950168597.js → webpack-d91bc49de770fd58.js} +1 -1
- package/runtime/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
- package/runtime/.next/static/chunks/804.0e20fa702013ffef.js +0 -1
- /package/runtime/.next/static/{47UkTmBGxP5qz2mnMbNEp → OszWLAB2kMAnNfSwJzpyw}/_buildManifest.js +0 -0
- /package/runtime/.next/static/{47UkTmBGxP5qz2mnMbNEp → OszWLAB2kMAnNfSwJzpyw}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><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/webpack-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><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/webpack-d91bc49de770fd58.js"/><script src="/_next/static/chunks/3cc391f0-17a90b8b534c353f.js" async=""></script><script src="/_next/static/chunks/183-9c8ca0c781655214.js" async=""></script><script src="/_next/static/chunks/main-app-07d67f2d4e96ecb8.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>AgentRoam</title><meta name="description" content="General-purpose AI agent API server"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><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><script src="/_next/static/chunks/webpack-d91bc49de770fd58.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[7709,[],\"\"]\n3:I[1338,[],\"\"]\n4:I[1573,[],\"\"]\na:I[6554,[],\"\"]\n5:{\"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\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L1\",null,{\"buildId\":\"OszWLAB2kMAnNfSwJzpyw\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"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.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$5\",\"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\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"AgentRoam\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"General-purpose AI agent API server\"}]]\n2:null\n"])</script></body></html>
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
5:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"}
|
|
5
5
|
6:{"display":"inline-block"}
|
|
6
6
|
7:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0}
|
|
7
|
-
0:["
|
|
7
|
+
0:["OszWLAB2kMAnNfSwJzpyw",[[["",{"children":["/_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["/_not-found",{"children":["__PAGE__",{},[["$L1",[["$","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."}]}]]}]}]],null],null],null]},[null,["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children","/_not-found","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[null,["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$4","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":"$5","children":"404"}],["$","div",null,{"style":"$6","children":["$","h2",null,{"style":"$7","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[]}]}]}]],null],null],["$L8",["$","meta",null,{"name":"robots","content":"noindex"}]]]]]
|
|
8
8
|
8:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"AgentRoam"}],["$","meta","3",{"name":"description","content":"General-purpose AI agent API server"}]]
|
|
9
9
|
1:null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/web/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"1338":{"*":{"id":"8718","name":"*","chunks":[],"async":false}},"1573":{"*":{"id":"8781","name":"*","chunks":[],"async":false}},"5153":{"*":{"id":"5730","name":"*","chunks":[],"async":false}},"5613":{"*":{"id":"8949","name":"*","chunks":[],"async":false}},"6554":{"*":{"id":"6569","name":"*","chunks":[],"async":false}},"7709":{"*":{"id":"1782","name":"*","chunks":[],"async":false}},"9011":{"*":{"id":"7415","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/app-router.js":{"id":7709,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/app-router.js":{"id":7709,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/client-page.js":{"id":5613,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/client-page.js":{"id":5613,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/error-boundary.js":{"id":6554,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":6554,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/layout-router.js":{"id":1338,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/layout-router.js":{"id":1338,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/not-found-boundary.js":{"id":9011,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":9011,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/render-from-template-context.js":{"id":1573,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":1573,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/packages/server/app/web/page.tsx":{"id":5153,"name":"*","chunks":["541","static/chunks/app/web/page-
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/web/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"1338":{"*":{"id":"8718","name":"*","chunks":[],"async":false}},"1573":{"*":{"id":"8781","name":"*","chunks":[],"async":false}},"5153":{"*":{"id":"5730","name":"*","chunks":[],"async":false}},"5613":{"*":{"id":"8949","name":"*","chunks":[],"async":false}},"6554":{"*":{"id":"6569","name":"*","chunks":[],"async":false}},"7709":{"*":{"id":"1782","name":"*","chunks":[],"async":false}},"9011":{"*":{"id":"7415","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/app-router.js":{"id":7709,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/app-router.js":{"id":7709,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/client-page.js":{"id":5613,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/client-page.js":{"id":5613,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/error-boundary.js":{"id":6554,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":6554,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/layout-router.js":{"id":1338,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/layout-router.js":{"id":1338,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/not-found-boundary.js":{"id":9011,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":9011,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/client/components/render-from-template-context.js":{"id":1573,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/node_modules/.bun/next@14.2.35+6dbf9a050bc9aadb/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":1573,"name":"*","chunks":[],"async":false},"/Users/caoqu/team-agent/customer-agent/packages/server/app/web/page.tsx":{"id":5153,"name":"*","chunks":["541","static/chunks/app/web/page-0ee508ac538f72d3.js"],"async":false}},"entryCSSFiles":{"/Users/caoqu/team-agent/customer-agent/packages/server/":[],"/Users/caoqu/team-agent/customer-agent/packages/server/app/layout":[],"/Users/caoqu/team-agent/customer-agent/packages/server/app/web/page":[]}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><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/webpack-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><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/webpack-d91bc49de770fd58.js"/><script src="/_next/static/chunks/3cc391f0-17a90b8b534c353f.js" async=""></script><script src="/_next/static/chunks/183-9c8ca0c781655214.js" async=""></script><script src="/_next/static/chunks/main-app-07d67f2d4e96ecb8.js" async=""></script><script src="/_next/static/chunks/app/web/page-0ee508ac538f72d3.js" async=""></script><title>AgentRoam</title><meta name="description" content="General-purpose AI agent API server"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><main style="min-height:100dvh;display:grid;place-items:center;padding:20px;box-sizing:border-box;background:#0b0b10;color:#e8e8ee;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif"><div style="width:min(380px,100%);padding:24px;border:1px solid #292c36;border-radius:12px;background:#14161d;box-sizing:border-box;box-shadow:0 18px 50px rgba(0,0,0,.35)">正在加载…</div></main><script src="/_next/static/chunks/webpack-d91bc49de770fd58.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[7709,[],\"\"]\n3:I[5613,[],\"ClientPageRoot\"]\n4:I[5153,[\"541\",\"static/chunks/app/web/page-0ee508ac538f72d3.js\"],\"default\",1]\n5:I[1338,[],\"\"]\n6:I[1573,[],\"\"]\n8:I[6554,[],\"\"]\n9:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L1\",null,{\"buildId\":\"OszWLAB2kMAnNfSwJzpyw\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"web\"],\"initialTree\":[\"\",{\"children\":[\"web\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"web\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[\"$\",\"$L3\",null,{\"props\":{\"params\":{},\"searchParams\":{}},\"Component\":\"$4\"}],null],null],null]},[null,[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"web\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L6\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L5\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"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.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[null,\"$L7\"],\"globalErrorComponent\":\"$8\",\"missingSlots\":\"$W9\"}]\n"])</script><script>self.__next_f.push([1,"7:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"AgentRoam\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"General-purpose AI agent API server\"}]]\n2:null\n"])</script></body></html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
2:I[5613,[],"ClientPageRoot"]
|
|
2
|
-
3:I[5153,["541","static/chunks/app/web/page-
|
|
2
|
+
3:I[5153,["541","static/chunks/app/web/page-0ee508ac538f72d3.js"],"default",1]
|
|
3
3
|
4:I[1338,[],""]
|
|
4
4
|
5:I[1573,[],""]
|
|
5
|
-
0:["
|
|
5
|
+
0:["OszWLAB2kMAnNfSwJzpyw",[[["",{"children":["web",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",{"children":["web",{"children":["__PAGE__",{},[["$L1",["$","$L2",null,{"props":{"params":{},"searchParams":{}},"Component":"$3"}],null],null],null]},[null,["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children","web","children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined"}]],null]},[[null,["$","html",null,{"lang":"en","children":["$","body",null,{"children":["$","$L4",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",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."}]}]]}]}]],"notFoundStyles":[]}]}]}]],null],null],["$L6",null]]]]
|
|
6
6
|
6:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"AgentRoam"}],["$","meta","3",{"name":"description","content":"General-purpose AI agent API server"}]]
|
|
7
7
|
1:null
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
"/_not-found/page": "app/_not-found/page.js",
|
|
3
3
|
"/api/agent/abort/route": "app/api/agent/abort/route.js",
|
|
4
4
|
"/api/agent/answer/route": "app/api/agent/answer/route.js",
|
|
5
|
-
"/api/agent/run/route": "app/api/agent/run/route.js",
|
|
6
5
|
"/api/agent/stream/route": "app/api/agent/stream/route.js",
|
|
7
|
-
"/api/
|
|
6
|
+
"/api/agent/run/route": "app/api/agent/run/route.js",
|
|
8
7
|
"/api/mcp/connect/route": "app/api/mcp/connect/route.js",
|
|
9
8
|
"/api/mcp/disconnect/route": "app/api/mcp/disconnect/route.js",
|
|
10
9
|
"/api/mcp/servers/route": "app/api/mcp/servers/route.js",
|
|
11
10
|
"/api/memory/[key]/route": "app/api/memory/[key]/route.js",
|
|
12
11
|
"/api/memory/route": "app/api/memory/route.js",
|
|
13
12
|
"/api/plugins/load/route": "app/api/plugins/load/route.js",
|
|
14
|
-
"/api/
|
|
13
|
+
"/api/auth/verify/route": "app/api/auth/verify/route.js",
|
|
14
|
+
"/api/tools/route": "app/api/tools/route.js",
|
|
15
15
|
"/api/sessions/[id]/route": "app/api/sessions/[id]/route.js",
|
|
16
16
|
"/api/sessions/route": "app/api/sessions/route.js",
|
|
17
|
-
"/api/
|
|
18
|
-
"/api/tools/route": "app/api/tools/route.js",
|
|
19
|
-
"/api/web-auth/login/route": "app/api/web-auth/login/route.js",
|
|
20
|
-
"/api/web-auth/logout/route": "app/api/web-auth/logout/route.js",
|
|
21
|
-
"/api/web-auth/revoke-all/route": "app/api/web-auth/revoke-all/route.js",
|
|
17
|
+
"/api/remote-tools/register/route": "app/api/remote-tools/register/route.js",
|
|
22
18
|
"/api/web-auth/setup/route": "app/api/web-auth/setup/route.js",
|
|
23
|
-
"/api/web-auth/status/route": "app/api/web-auth/status/route.js",
|
|
24
19
|
"/api/web-console/bootstrap/route": "app/api/web-console/bootstrap/route.js",
|
|
25
20
|
"/api/web-console/device-state/route": "app/api/web-console/device-state/route.js",
|
|
26
|
-
"/api/web-
|
|
21
|
+
"/api/web-auth/logout/route": "app/api/web-auth/logout/route.js",
|
|
22
|
+
"/api/web-auth/login/route": "app/api/web-auth/login/route.js",
|
|
23
|
+
"/api/web-console/preferences/route": "app/api/web-console/preferences/route.js",
|
|
27
24
|
"/web/page": "app/web/page.js",
|
|
28
|
-
"/api/web-
|
|
25
|
+
"/api/web-auth/status/route": "app/api/web-auth/status/route.js",
|
|
26
|
+
"/api/web-auth/revoke-all/route": "app/api/web-auth/revoke-all/route.js",
|
|
27
|
+
"/api/web-console/history/route": "app/api/web-console/history/route.js",
|
|
28
|
+
"/api/skills/route": "app/api/skills/route.js"
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:["static/chunks/webpack-
|
|
1
|
+
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:["static/chunks/webpack-d91bc49de770fd58.js","static/chunks/3cc391f0-17a90b8b534c353f.js","static/chunks/183-9c8ca0c781655214.js","static/chunks/main-app-07d67f2d4e96ecb8.js"],pages:{"/_app":["static/chunks/webpack-d91bc49de770fd58.js","static/chunks/framework-7bac12ed8564755e.js","static/chunks/main-a7dd8c98b48af038.js","static/chunks/pages/_app-389e6eb8abb0af2d.js"],"/_error":["static/chunks/webpack-d91bc49de770fd58.js","static/chunks/framework-7bac12ed8564755e.js","static/chunks/main-a7dd8c98b48af038.js","static/chunks/pages/_error-7cee5565b5ef9bcb.js"]},ampFirstPages:[]},self.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__REACT_LOADABLE_MANIFEST='{"app/web/page.tsx -> ./FilePreview":{"id":1945,"files":["static/chunks/945.029658916456ec41.js"]},"app/web/page.tsx -> ./FileTree":{"id":9691,"files":["static/chunks/691.a8277997da6aec2e.js"]},"app/web/page.tsx -> ./TerminalPane":{"id":
|
|
1
|
+
self.__REACT_LOADABLE_MANIFEST='{"app/web/page.tsx -> ./FilePreview":{"id":1945,"files":["static/chunks/945.029658916456ec41.js"]},"app/web/page.tsx -> ./FileTree":{"id":9691,"files":["static/chunks/691.a8277997da6aec2e.js"]},"app/web/page.tsx -> ./TerminalPane":{"id":3366,"files":["static/css/ac3c182a4b5bc5f1.css","static/chunks/f3dd23f1.b423f4328b6ce988.js","static/chunks/982.bf2e6e7fe55cd5ca.js"]}}';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><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/webpack-
|
|
1
|
+
<!DOCTYPE html><html lang="en"><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/webpack-d91bc49de770fd58.js"/><script src="/_next/static/chunks/3cc391f0-17a90b8b534c353f.js" async=""></script><script src="/_next/static/chunks/183-9c8ca0c781655214.js" async=""></script><script src="/_next/static/chunks/main-app-07d67f2d4e96ecb8.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>AgentRoam</title><meta name="description" content="General-purpose AI agent API server"/><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><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><script src="/_next/static/chunks/webpack-d91bc49de770fd58.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[7709,[],\"\"]\n3:I[1338,[],\"\"]\n4:I[1573,[],\"\"]\na:I[6554,[],\"\"]\n5:{\"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\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[\"$\",\"$L1\",null,{\"buildId\":\"OszWLAB2kMAnNfSwJzpyw\",\"assetPrefix\":\"\",\"urlParts\":[\"\",\"_not-found\"],\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"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.\"}]}]]}]}]],null],null],null]},[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\"}]],null]},[[null,[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$5\",\"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\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[]}]}]}]],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"AgentRoam\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"General-purpose AI agent API server\"}]]\n2:null\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-d91bc49de770fd58.js" defer=""></script><script src="/_next/static/chunks/framework-7bac12ed8564755e.js" defer=""></script><script src="/_next/static/chunks/main-a7dd8c98b48af038.js" defer=""></script><script src="/_next/static/chunks/pages/_app-389e6eb8abb0af2d.js" defer=""></script><script src="/_next/static/chunks/pages/_error-7cee5565b5ef9bcb.js" defer=""></script><script src="/_next/static/OszWLAB2kMAnNfSwJzpyw/_buildManifest.js" defer=""></script><script src="/_next/static/OszWLAB2kMAnNfSwJzpyw/_ssgManifest.js" defer=""></script></head><body><div id="__next"><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)}@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></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"OszWLAB2kMAnNfSwJzpyw","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"node":{},"edge":{},"encryptionKey":"
|
|
1
|
+
{"node":{},"edge":{},"encryptionKey":"9niMPVSb25tCXwa94oqwyLU5EfETxT6DGZdgh85C0cY="}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[982],{6584:function(e,t,r){"use strict";var n,l;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(l=r.g.process)?void 0:l.env)?r.g.process:r(3307)},3307:function(e){!function(){var t={229:function(e){var t,r,n,l=e.exports={};function i(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function u(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c=[],a=!1,s=-1;function d(){a&&n&&(a=!1,n.length?c=n.concat(c):s=-1,c.length&&f())}function f(){if(!a){var e=u(d);a=!0;for(var t=c.length;t;){for(n=c,c=[];++s<t;)n&&n[s].run();s=-1,t=c.length}n=null,a=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}l.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||a||u(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=v,l.addListener=v,l.once=v,l.off=v,l.removeListener=v,l.removeAllListeners=v,l.emit=v,l.prependListener=v,l.prependOnceListener=v,l.listeners=function(e){return[]},l.binding=function(e){throw Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(e){throw Error("process.chdir is not supported")},l.umask=function(){return 0}}},r={};function n(e){var l=r[e];if(void 0!==l)return l.exports;var i=r[e]={exports:{}},o=!0;try{t[e](i,i.exports,n),o=!1}finally{o&&delete r[e]}return i.exports}n.ab="//";var l=n(229);e.exports=l}()},3366:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return d}});var n=r(1996),l=r(6121),i=r(8918),o=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(0===e.css.cell.width||0===e.css.cell.height)return;let t=0===this._terminal.options.scrollback?0:this._terminal.options.overviewRuler?.width||14,r=window.getComputedStyle(this._terminal.element.parentElement),n=parseInt(r.getPropertyValue("height")),l=Math.max(0,parseInt(r.getPropertyValue("width"))),i=window.getComputedStyle(this._terminal.element),o={top:parseInt(i.getPropertyValue("padding-top")),bottom:parseInt(i.getPropertyValue("padding-bottom")),right:parseInt(i.getPropertyValue("padding-right")),left:parseInt(i.getPropertyValue("padding-left"))},u=o.top+o.bottom;return{cols:Math.max(2,Math.floor((l-(o.right+o.left)-t)/e.css.cell.width)),rows:Math.max(1,Math.floor((n-u)/e.css.cell.height))}}};r(8810);let u=new Set(["\x1b[A","\x1b[B","\x1b[5~","\x1b[6~"]),c={minWidth:34,height:30,borderRadius:7,fontSize:11.5,padding:"0 7px",touchAction:"none",userSelect:"none",flexShrink:0},a=["ctrl","esc","tab","up","down","left","right","pgup","pgdown","end","enter","pipe","tilde","dash","slash","ctrlc","ctrld","ctrll","hide"],s={ctrl:"Ctrl",esc:"Esc",tab:"Tab",up:"↑",down:"↓",left:"←",right:"→",pgup:"Pg↑",pgdown:"Pg↓",end:"End",enter:"↵",pipe:"|",tilde:"~",dash:"-",slash:"/",ctrlc:"^C",ctrld:"^D",ctrll:"^L",hide:"隐藏"};function d(e){let{terminalId:t,title:r,visible:d,state:f,rpc:p,onEvent:v,onTerminalData:m,sendTerminalInput:h,keyOrder:y,keybarHidden:b,onKeyOrderChange:g,onKeybarHiddenChange:w,onCwdChange:x,initialScrollLine:k,onScrollLineChange:E,onRegisterFill:T,terminalTheme:L}=e,M=(0,l.useRef)(null),C=(0,l.useRef)(null),R=(0,l.useRef)(null),[S,Y]=(0,l.useState)(!1),[D,P]=(0,l.useState)(null),[I,A]=(0,l.useState)(!1),_=(0,l.useRef)(!1),[X,z]=(0,l.useState)(!1),B=(0,l.useRef)(t),H=(0,l.useRef)(null),W=(0,l.useRef)(null),j=(0,l.useRef)(()=>{}),O=(0,l.useRef)(null),q=(0,l.useRef)(!0),N=(0,l.useRef)(0),U=(0,l.useRef)(null),V=(0,l.useRef)(null),K=(0,l.useRef)(!1),F=(0,l.useRef)(null),Z=(0,l.useRef)(0),G=(0,l.useRef)(!1),J=(0,l.useRef)(!1),[Q,$]=(0,l.useState)(null),ee=(0,l.useCallback)(e=>{null!=H.current&&h(H.current,e)||p("term:input",{id:B.current,data:e}).catch(()=>{})},[p,h]);(0,l.useRef)(ee).current=ee;let et=(0,l.useRef)(()=>{}),er=(0,l.useRef)(L);er.current=L;let en={...c,border:"1px solid ".concat(L.keybar.keyBorder),background:L.keybar.keyBg,color:L.keybar.keyText},el=(0,l.useRef)(T);el.current=T;let ei=(0,l.useCallback)(e=>{(async()=>{var t,r;q.current=!0,null===(t=C.current)||void 0===t||t.scrollToBottom();try{await p("term:focus",{id:B.current}),A(!1)}catch(e){if((null==e?void 0:e.code)==="EWRITELOCK"){A(!0);return}}null===(r=C.current)||void 0===r||r.focus(),ee("\x15"),window.setTimeout(()=>{let t=C.current;t&&("function"==typeof t.paste?t.paste(e):ee(e))},20)})()},[p,ee]);et.current=ei;let eo=(0,l.useCallback)(()=>{let e=C.current;e&&E&&E(q.current?e.buffer.active.baseY:e.buffer.active.viewportY)},[E]),eu=(0,l.useRef)(eo);eu.current=eo;let ec=(0,l.useRef)(e=>{let t=C.current;t&&"alternate"!==t.buffer.active.type&&0!==e&&(q.current=!1,t.scrollLines(e),N.current=t.buffer.active.viewportY,q.current=t.buffer.active.viewportY>=t.buffer.active.baseY,eu.current())}),ea=(0,l.useRef)(e=>{let t=C.current;t&&"alternate"!==t.buffer.active.type&&0!==e&&(e<0&&(q.current=!1),t.scrollPages(e),N.current=t.buffer.active.viewportY,q.current=t.buffer.active.viewportY>=t.buffer.active.baseY,eu.current())}),es=(0,l.useCallback)(()=>{let e=C.current;if(e&&null!=k){if(k>=e.buffer.active.baseY){q.current=!0,e.scrollToBottom();return}q.current=!1,N.current=k,e.scrollToLine(k)}},[k]);(0,l.useEffect)(()=>{var e;let t;let r=new i.o({fontFamily:'"SF Mono", Menlo, Consolas, monospace',fontSize:window.innerWidth<=768?11:12,lineHeight:1.12,letterSpacing:0,cursorBlink:!0,allowProposedApi:!0,scrollback:5e3,scrollOnUserInput:!1,smoothScrollDuration:0,scrollSensitivity:1,theme:er.current.xterm}),n=new o;r.loadAddon(n),r.open(M.current),C.current=r,R.current=n;try{n.fit()}catch(e){}let l=r.parser.registerOscHandler(7,e=>{try{let t=e.startsWith("file://")?e:"file://".concat(e),r=new URL(t);if("file:"!==r.protocol)return!1;let n=decodeURIComponent(r.pathname);return/^\/[A-Za-z]:\//.test(n)&&(n=n.slice(1)),(n.startsWith("/")||/^[A-Za-z]:\//.test(n))&&(null==x||x(n),p("term:set-cwd",{id:B.current,cwd:n}).catch(()=>{})),!0}catch(e){return!1}});j.current=e=>{r.write(e,()=>{var e;if("alternate"===r.buffer.active.type)return;let t=null===(e=M.current)||void 0===e?void 0:e.querySelector(".xterm");(null==t?void 0:t.style.transform)&&(t.style.transform="",t.style.willChange=""),q.current?r.scrollToBottom():r.scrollToLine(Math.min(N.current,r.buffer.active.baseY))})},r.onData(e=>{var t;if(f.connected&&(t=e,!(J.current&&u.has(t)))){if(q.current=!0,"alternate"!==r.buffer.active.type&&r.scrollToBottom(),eo(),_.current&&1===e.length){let t=e.toLowerCase().charCodeAt(0);t>=97&&t<=122?e=String.fromCharCode(t-96):" "===e?e="\0":"["===e?e="\x1b":"\\"===e?e="\x1c":"]"===e&&(e="\x1d"),ed()}ee(e)}}),r.onResize(e=>{let{cols:r,rows:n}=e;clearTimeout(t),t=setTimeout(()=>{p("term:resize",{id:B.current,cols:r,rows:n}).catch(()=>{})},120)});let c=r.onScroll(e=>{let t=e>=r.buffer.active.baseY;q.current=t,t||(N.current=e),eu.current()});r.attachCustomKeyEventHandler(e=>{if("alternate"===r.buffer.active.type||"keydown"!==e.type)return!0;let t=r.buffer.active.viewportY>=r.buffer.active.baseY;return"ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"PageUp"!==e.key&&"PageDown"!==e.key||!!t&&!J.current||("ArrowUp"===e.key?(ec.current(-1),e.preventDefault(),!1):"ArrowDown"===e.key?(ec.current(1),e.preventDefault(),!1):"PageUp"===e.key?(ea.current(-1),e.preventDefault(),!1):"PageDown"!==e.key||(ea.current(1),e.preventDefault(),!1))}),r.attachCustomWheelEventHandler(e=>{var t,n;if("alternate"===r.buffer.active.type||!e.deltaY)return!0;let l=Math.max(8,(null!==(n=null===(t=M.current)||void 0===t?void 0:t.clientHeight)&&void 0!==n?n:14*r.rows)/Math.max(r.rows,1)),i=Math.trunc(e.deltaY/l)||(e.deltaY>0?1:-1);return ec.current(i),!1});let a=null,s=0,d=0,v=0,m=0,h=!1,y="pending",b=0,g=null!==(e=r.element)&&void 0!==e?e:M.current,w=e=>{if("touch"===e.pointerType&&e.isPrimary){a=e.pointerId,s=e.clientX,d=e.clientY,v=e.clientY,m=0,y="pending",h=!0,J.current=!0,"alternate"!==r.buffer.active.type&&(q.current=!1);try{null==g||g.setPointerCapture(e.pointerId)}catch(e){}}},k=e=>{var t;if(!h||e.pointerId!==a)return;let n=e.clientX-s,l=e.clientY-d;if("pending"===y&&Math.max(Math.abs(n),Math.abs(l))>8&&(y=Math.abs(n)>1.2*Math.abs(l)?"horizontal":"vertical"),"vertical"!==y)return;let i=v-e.clientY;if(v=e.clientY,m+=i,"alternate"===r.buffer.active.type){let t=null==g?void 0:g.getBoundingClientRect(),n=t?Math.max(1,Math.min(r.cols,Math.floor((e.clientX-t.left)/Math.max(t.width,1)*r.cols)+1)):1,l=t?Math.max(1,Math.min(r.rows,Math.floor((e.clientY-t.top)/Math.max(t.height,1)*r.rows)+1)):1;if("none"!==r.modes.mouseTrackingMode){let e=Math.trunc(m/18),t=performance.now();if(0!==e&&t-b>=32){let r=Math.sign(e)*Math.min(2,Math.abs(e));m-=18*r,b=t,ee("\x1b[<".concat(e<0?64:65,";").concat(n,";").concat(l,"M").repeat(Math.abs(r)))}}else{let e=Math.trunc(m/64),t=performance.now();if(0!==e&&t-b>=80){let r=Math.sign(e);m-=64*r,b=t,ee(r<0?"\x1b[5~":"\x1b[6~")}}e.preventDefault(),G.current=!0;return}let o=Math.max(8,(null!==(t=null==g?void 0:g.clientHeight)&&void 0!==t?t:14*r.rows)/Math.max(r.rows,1)|0),u=Math.trunc(m/o);0!==u&&(m-=u*o,ec.current(u),e.preventDefault(),G.current=!0)},E=e=>{if(e.pointerId===a){try{null==g||g.releasePointerCapture(e.pointerId)}catch(e){}Math.abs(m)>8&&window.setTimeout(()=>{G.current=!1},400),h=!1,a=null,y="pending",window.setTimeout(()=>{J.current=!1},450)}};return null==g||g.addEventListener("pointerdown",w,{capture:!0}),null==g||g.addEventListener("pointermove",k,{capture:!0,passive:!1}),null==g||g.addEventListener("pointerup",E,{capture:!0}),null==g||g.addEventListener("pointercancel",E,{capture:!0}),()=>{var e;clearTimeout(t),c.dispose(),r.attachCustomKeyEventHandler(()=>!0),r.attachCustomWheelEventHandler(()=>!0),null==g||g.removeEventListener("pointerdown",w,{capture:!0}),null==g||g.removeEventListener("pointermove",k,{capture:!0}),null==g||g.removeEventListener("pointerup",E,{capture:!0}),null==g||g.removeEventListener("pointercancel",E,{capture:!0}),l.dispose(),null===(e=W.current)||void 0===e||e.call(W),null==x||x(null),r.dispose(),C.current=null}},[]),(0,l.useEffect)(()=>{let e=C.current;e&&(e.options.theme=L.xterm,e.refresh(0,e.rows-1))},[L]);let ed=()=>{_.current=!1,z(!1)},ef=(0,l.useCallback)(()=>{var e;let t=R.current,r=C.current;if(!t||!r||!(null===(e=M.current)||void 0===e?void 0:e.isConnected))return!1;try{let e=t.proposeDimensions();if(!e||e.cols===r.cols&&e.rows===r.rows)return!1;return t.fit(),!0}catch(e){return!1}},[]),ep=(0,l.useCallback)(e=>{var t,r;let n=null!==(t=null==e?void 0:e.restoreScroll)&&void 0!==t&&t,l=null!==(r=null==e?void 0:e.forceLive)&&void 0!==r&&r;ef();let i=C.current;if(!i)return;let o="alternate"===i.buffer.active.type;n&&null!=k&&!o?es():!o&&(l||q.current)&&(l&&(q.current=!0),i.scrollToBottom()),i.focus(),eo(),p("term:focus",{id:B.current}).then(()=>A(!1)).catch(e=>{(null==e?void 0:e.code)==="EWRITELOCK"&&A(!0)})},[es,ef,k,eo,p]);(0,l.useEffect)(()=>{var e,n,l,i,o,u;if(!f.connected){O.current=null,H.current=null,null===(l=W.current)||void 0===l||l.call(W),W.current=null,Y(!1),P(null),Z.current=0;return}let c=!1;return P(null),ef(),requestAnimationFrame(ef),(null!==(u=O.current)&&void 0!==u?u:O.current=p("term:start",{id:t,title:r,cols:null!==(i=null===(e=C.current)||void 0===e?void 0:e.cols)&&void 0!==i?i:80,rows:null!==(o=null===(n=C.current)||void 0===n?void 0:n.rows)&&void 0!==o?o:24})).then(e=>{var t,r;c||(B.current=e.sessionId,H.current=e.channelId,null===(t=W.current)||void 0===t||t.call(W),W.current=m(e.channelId,e=>j.current(e)),Y(!0),null==x||x(null!==(r=e.cwd)&&void 0!==r?r:null),window.setTimeout(()=>ef(),80),window.setTimeout(()=>{let e=C.current;e&&p("term:resize",{id:B.current,cols:e.cols,rows:e.rows}).catch(()=>{})},400))}).catch(e=>{O.current=null,c||P((null==e?void 0:e.message)||"终端启动失败")}),()=>{c=!0}},[f.connected,t,r,m]),(0,l.useEffect)(()=>{if(!T)return;let e=el.current;if(e)return e(e=>et.current(e))},[t]),(0,l.useEffect)(()=>{if(!d||!S)return;Z.current+=1;let e=Z.current>1,t=window.setTimeout(()=>{var t;let r=(null===(t=C.current)||void 0===t?void 0:t.buffer.active.type)==="alternate";ep({restoreScroll:e,forceLive:!e&&!r})},350);return()=>window.clearTimeout(t)},[d,S,ep]),(0,l.useEffect)(()=>v("term:cwd",e=>{e.id===B.current&&e.cwd&&(null==x||x(e.cwd))}),[v]),(0,l.useEffect)(()=>{var e;let t=window.visualViewport,r=null,n=()=>{var e;let t=C.current,r=M.current,n=null==r?void 0:r.querySelector(".xterm"),l=null==r?void 0:r.querySelector(".xterm-screen");if(!t||!r||!n)return!1;if("alternate"!==t.buffer.active.type)return n.style.transform&&(n.style.transform=""),!1;let i=Math.max(0,(null!==(e=null==l?void 0:l.getBoundingClientRect().height)&&void 0!==e?e:r.clientHeight)-r.clientHeight);return n.style.transform=i>0?"translate3d(0,-".concat(Math.round(i),"px,0)"):"",n.style.willChange=i>0?"transform":"",!0},l=()=>{r=null,requestAnimationFrame(()=>{if(n()||!ef())return;let e=C.current;e&&"alternate"!==e.buffer.active.type&&(q.current?e.buffer.active.viewportY<e.buffer.active.baseY&&e.scrollToBottom():e.buffer.active.viewportY!==N.current&&e.scrollToLine(Math.min(N.current,e.buffer.active.baseY)))})},i=()=>{var e,i;let o=null!==(e=null==t?void 0:t.height)&&void 0!==e?e:window.innerHeight,u=null!==(i=null==t?void 0:t.offsetTop)&&void 0!==i?i:0;document.documentElement.style.setProperty("--vv-height","".concat(Math.round(o),"px")),document.documentElement.style.setProperty("--vv-top","".concat(Math.round(u),"px")),requestAnimationFrame(n),r&&clearTimeout(r),r=setTimeout(l,180)};i(),null==t||t.addEventListener("resize",i),null==t||t.addEventListener("scroll",i),window.addEventListener("orientationchange",i),window.addEventListener("resize",i);let o=new ResizeObserver(i);return(null===(e=M.current)||void 0===e?void 0:e.parentElement)&&o.observe(M.current.parentElement),()=>{null==t||t.removeEventListener("resize",i),null==t||t.removeEventListener("scroll",i),window.removeEventListener("orientationchange",i),window.removeEventListener("resize",i),r&&clearTimeout(r),o.disconnect(),document.documentElement.style.removeProperty("--vv-height"),document.documentElement.style.removeProperty("--vv-top")}},[ef]),(0,l.useEffect)(()=>{let e=M.current;if(!e)return;e.style.display="flex",e.style.flexDirection="column",e.style.minHeight="0",e.style.overflow="hidden";let t=e.querySelector(".xterm");null==t||t.style.setProperty("flex","1"),null==t||t.style.setProperty("height","100%");let r=e.querySelector(".xterm-scrollable-element, .xterm-viewport");null==r||r.style.setProperty("touch-action","pan-y"),null==r||r.style.setProperty("-webkit-overflow-scrolling","touch")},[S]),(0,l.useEffect)(()=>{let e=U.current;if(!e||b)return;let t=0,r=!1,n=null,l=null,i=e=>e instanceof Element?e.closest("button[data-key]"):null,o=e=>{if("touch"!==e.pointerType||!e.isPrimary)return;let l=i(e.target);if(l){e.preventDefault();try{l.setPointerCapture(e.pointerId)}catch(e){}let t=l.dataset.key;F.current={key:t,dragged:!1};let r={key:t,timer:null,active:!1,startX:e.clientX,startY:e.clientY,lastX:e.clientX,scrolling:!1};r.timer=setTimeout(()=>{var e,n;r.scrolling||(r.active=!0,F.current&&(F.current.dragged=!0),$(t),null===(e=(n=navigator).vibrate)||void 0===e||e.call(n,20))},280),V.current=r;return}n=e.pointerId,t=e.clientX,r=!0},u=l=>{var i;let o=V.current;if(o){if(!o.active){let e=l.clientX-o.startX,t=l.clientY-o.startY;if(!o.scrolling&&Math.abs(e)>10&&Math.abs(e)>1.2*Math.abs(t))o.timer&&clearTimeout(o.timer),o.timer=null,o.scrolling=!0,F.current&&(F.current.dragged=!0);else if(!o.scrolling)return}if(o.scrolling){l.preventDefault();let t=o.lastX-l.clientX;o.lastX=l.clientX,e.scrollLeft+=t;return}l.preventDefault();let t=Array.from(e.querySelectorAll("button[data-key]")).find(e=>{let t=e.getBoundingClientRect();return l.clientX>=t.left&&l.clientX<=t.right}),r=null==t?void 0:t.dataset.key;if(!r||r===o.key)return;let n=[...em],i=n.indexOf(o.key),u=n.indexOf(r);if(i<0||u<0)return;n.splice(i,1),n.splice(u,0,o.key),g(n);return}if(!r||l.pointerId!==n||(null===(i=V.current)||void 0===i?void 0:i.active))return;let u=t-l.clientX;t=l.clientX,Math.abs(u)>1&&(e.scrollLeft+=u,l.preventDefault())},c=e=>{let t=V.current;if("touch"===e.pointerType&&t){t.timer&&clearTimeout(t.timer),(t.active||t.scrolling)&&(K.current=!0,setTimeout(()=>{K.current=!1},0)),V.current=null,F.current=null,$(null);return}e.pointerId===n&&(r=!1,n=null)},a=e=>{"touch"===e.pointerType&&eb(),r=!1,n=null},s=e=>{let t=i(e.target),r=null==t?void 0:t.dataset.key;r&&!K.current&&(e.preventDefault(),ev(()=>eh(r)))},d=e=>{let t=l;if(l=null,!t)return;let r=performance.now()-t.startedAt;t.moved||r>=280||(e.preventDefault(),K.current=!0,ev(()=>eh(t.key)),setTimeout(()=>{K.current=!1},0))},f=e=>{let t=i(e.target),r=e.touches[0];t&&r&&(l={key:t.dataset.key,startedAt:performance.now(),x:r.clientX,y:r.clientY,moved:!1})},p=e=>{let t=e.touches[0];l&&t&&(Math.abs(t.clientX-l.x)>8||Math.abs(t.clientY-l.y)>8)&&(l.moved=!0)};return e.addEventListener("pointerdown",o,{passive:!1}),e.addEventListener("pointermove",u,{passive:!1}),e.addEventListener("pointerup",c,{passive:!0}),e.addEventListener("pointercancel",a,{passive:!0}),e.addEventListener("click",s),e.addEventListener("touchstart",f,{passive:!0}),e.addEventListener("touchmove",p,{passive:!0}),e.addEventListener("touchend",d,{passive:!1}),()=>{e.removeEventListener("pointerdown",o),e.removeEventListener("pointermove",u),e.removeEventListener("pointerup",c),e.removeEventListener("pointercancel",a),e.removeEventListener("click",s),e.removeEventListener("touchstart",f),e.removeEventListener("touchmove",p),e.removeEventListener("touchend",d)}},[b,y.join("|")]);let ev=e=>{e()},em=[...y.filter(e=>a.includes(e)),...a.filter(e=>!y.includes(e))],eh=e=>{let t={esc:"\x1b",tab:" ",enter:"\r",pipe:"|",tilde:"~",dash:"-",slash:"/",ctrlc:"\x03",ctrld:"\x04",ctrll:"\f"},r=C.current,n=e=>(null==r?void 0:r.modes.applicationCursorKeysMode)?"\x1bO".concat(e):"\x1b[".concat(e);if("up"===e){if(!r)return;"alternate"===r.buffer.active.type?ee(n("A")):ec.current(-1);return}if("down"===e){if(!r)return;"alternate"===r.buffer.active.type?ee(n("B")):ec.current(1);return}if("right"===e){r&&ee(n("C"));return}if("left"===e){r&&ee(n("D"));return}if(t[e])return ee(t[e]);if("ctrl"===e){_.current=!_.current,z(_.current);return}if("hide"===e){w(!0);return}r&&("pgup"===e&&("alternate"===r.buffer.active.type?ee("\x1b[5~"):ea.current(-1)),"pgdown"===e&&("alternate"===r.buffer.active.type?ee("\x1b[6~"):ea.current(1)),"end"===e&&(q.current=!0,r.scrollToBottom(),eo()))},ey=e=>{let t=V.current;t&&(t.timer&&clearTimeout(t.timer),K.current=!0,"touch"!==e.pointerType||t.active||t.scrolling||ev(()=>eh(t.key)),setTimeout(()=>{K.current=!1},0),V.current=null,F.current=null,$(null))},eb=()=>{let e=V.current;(null==e?void 0:e.timer)&&clearTimeout(e.timer),V.current=null,$(null)},eg=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{var t;await p(e?"term:request-write":"term:focus",{id:B.current,force:e}),A(!1),null===(t=C.current)||void 0===t||t.focus()}catch(e){(null==e?void 0:e.code)==="EWRITELOCK"&&A(!0)}};return(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%",minHeight:0,position:"relative"},children:[(0,n.jsx)("div",{ref:M,className:"terminal-screen",onClick:()=>{var e;null===(e=C.current)||void 0===e||e.focus(),!G.current&&q.current&&ep({forceLive:!0}),eg(!1)},style:{flex:1,minHeight:90,padding:"3px 5px 3px 9px",background:L.termHostBg,touchAction:"none",overflow:"hidden"}}),D&&d&&(0,n.jsxs)("div",{role:"alert",style:{position:"absolute",inset:"42% auto auto 50%",transform:"translate(-50%,-50%)",zIndex:47,maxWidth:"min(420px,calc(100% - 32px))",padding:"10px 12px",border:"1px solid ".concat(L.keybar.keyBorder),borderRadius:7,background:"rgba(24,24,29,.96)",color:L.xterm.foreground,fontSize:12,lineHeight:1.5,textAlign:"center"},children:["终端启动失败:",D]}),I&&d&&(0,n.jsxs)("div",{style:{position:"absolute",top:10,right:10,zIndex:48,display:"flex",alignItems:"center",gap:7,padding:"7px 9px",border:"1px solid #6b5634",borderRadius:8,background:"rgba(39,32,22,.95)",color:"#d9b56c",fontSize:11},children:["其他设备正在输入 ",(0,n.jsx)("button",{style:{border:0,borderRadius:5,padding:"4px 7px",background:"#e0af68",color:"#17120a",fontSize:10},onClick:()=>eg(!0),children:"接管输入"})]}),b?(0,n.jsx)("div",{className:"keybar",style:{display:"flex",justifyContent:"center",padding:"5px 7px calc(env(safe-area-inset-bottom) + 5px)",borderTop:"1px solid ".concat(L.keybar.border),background:L.keybar.bg,flexShrink:0},children:(0,n.jsx)("button",{className:"keybar-restore",style:{...en,minWidth:80},onPointerDown:e=>e.preventDefault(),onClick:()=>w(!1),children:"⌨ 显示快捷键"})}):(0,n.jsx)("div",{ref:U,className:"keybar keybar-scroll",style:{background:L.keybar.bg,display:"flex",gap:5,overflowX:"auto",padding:"5px calc(env(safe-area-inset-right) + 7px) calc(env(safe-area-inset-bottom) + 5px)",borderTop:"1px solid ".concat(L.keybar.border),flexShrink:0,WebkitOverflowScrolling:"touch",scrollbarWidth:"none",touchAction:"pan-x"},children:em.map(e=>(0,n.jsx)("button",{"data-key":e,"data-dragging":Q===e?"1":void 0,tabIndex:-1,style:{...en,minWidth:"enter"===e?44:en.minWidth,background:Q===e?L.keybar.drag:"ctrl"===e&&X?L.keybar.accent:en.background,color:Q===e||"ctrl"===e&&X?L.keybar.accentText:en.color,cursor:Q===e?"grabbing":"grab",transform:Q===e?"scale(1.08)":"none",transition:"transform .12s, background .12s"},onPointerUpCapture:ey,onPointerCancel:eb,onContextMenu:e=>e.preventDefault(),onMouseDown:e=>e.preventDefault(),children:s[e]},e))})]})}},8810:function(){}}]);
|