@vantaloom/runtime-linux-x64 0.12.42 → 0.12.43

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/VERSION CHANGED
@@ -1 +1 @@
1
- 3691e711
1
+ b7faa460
Binary file
package/bin/vantaloom-api CHANGED
Binary file
Binary file
package/bin/vantaloomctl CHANGED
Binary file
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vantaloom/cli",
3
- "version": "0.12.42",
3
+ "version": "0.12.43",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Vantaloom local runtime manager.",
package/manifest.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "Vantaloom Local Runtime",
3
- "version": "3691e711",
3
+ "version": "b7faa460",
4
4
  "platform": "linux-x64",
5
- "updatedAt": "2026-06-18T03:49:40.644Z",
5
+ "updatedAt": "2026-06-18T04:22:07.897Z",
6
6
  "components": [
7
7
  "api",
8
8
  "agent",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vantaloom/runtime-linux-x64",
3
- "version": "0.12.42",
3
+ "version": "0.12.43",
4
4
  "private": false,
5
5
  "description": "Vantaloom local runtime for linux-x64.",
6
6
  "type": "module",
package/web/404.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><!--z104tXi8Tgpi7daWlsIpu--><html lang="zh-CN" class="font-sans antialiased" data-vtl-theme="default" data-vtl-density="default" data-vtl-motion="default"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/04d8db8bf4869e80.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/ccc016f22e340d7a.js"/><script src="/_next/static/chunks/465977caba526416.js" async=""></script><script src="/_next/static/chunks/757e2e1b77b5bacc.js" async=""></script><script src="/_next/static/chunks/turbopack-74ec218a8e8a6a34.js" async=""></script><script src="/_next/static/chunks/10ce0b22985f1a35.js" async=""></script><script src="/_next/static/chunks/c75862ae59265943.js" async=""></script><script src="/_next/static/chunks/7dfeab42587bcc0e.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Vantaloom</title><meta name="description" content="Vantaloom local agent operations console."/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><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","system",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;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/ccc016f22e340d7a.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[22332,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ThemeProvider\"]\n3:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"FrontendErrorBoundary\"]\n4:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"GlobalErrorHandlers\"]\n5:I[64990,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"TourProvider\"]\n6:I[45121,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n7:I[60512,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n8:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nb:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ViewportBoundary\"]\nd:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"MetadataBoundary\"]\nf:I[50025,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n:HL[\"/_next/static/chunks/04d8db8bf4869e80.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"z104tXi8Tgpi7daWlsIpu\",\"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/04d8db8bf4869e80.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/10ce0b22985f1a35.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/c75862ae59265943.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/7dfeab42587bcc0e.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"suppressHydrationWarning\":true,\"className\":\"font-sans antialiased\",\"data-vtl-theme\":\"default\",\"data-vtl-density\":\"default\",\"data-vtl-motion\":\"default\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{}],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",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,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",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:1: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:1: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:1: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:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Le\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"a:null\ne:[[\"$\",\"title\",\"0\",{\"children\":\"Vantaloom\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Vantaloom local agent operations console.\"}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--5t3oOwp8449lfX7vX7O58--><html lang="zh-CN" class="font-sans antialiased" data-vtl-theme="default" data-vtl-density="default" data-vtl-motion="default"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/04d8db8bf4869e80.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/ccc016f22e340d7a.js"/><script src="/_next/static/chunks/465977caba526416.js" async=""></script><script src="/_next/static/chunks/757e2e1b77b5bacc.js" async=""></script><script src="/_next/static/chunks/turbopack-74ec218a8e8a6a34.js" async=""></script><script src="/_next/static/chunks/10ce0b22985f1a35.js" async=""></script><script src="/_next/static/chunks/c75862ae59265943.js" async=""></script><script src="/_next/static/chunks/7dfeab42587bcc0e.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Vantaloom</title><meta name="description" content="Vantaloom local agent operations console."/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><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","system",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;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/ccc016f22e340d7a.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[22332,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ThemeProvider\"]\n3:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"FrontendErrorBoundary\"]\n4:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"GlobalErrorHandlers\"]\n5:I[64990,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"TourProvider\"]\n6:I[45121,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n7:I[60512,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n8:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nb:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ViewportBoundary\"]\nd:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"MetadataBoundary\"]\nf:I[50025,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n:HL[\"/_next/static/chunks/04d8db8bf4869e80.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"5t3oOwp8449lfX7vX7O58\",\"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/04d8db8bf4869e80.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/10ce0b22985f1a35.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/c75862ae59265943.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/7dfeab42587bcc0e.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"suppressHydrationWarning\":true,\"className\":\"font-sans antialiased\",\"data-vtl-theme\":\"default\",\"data-vtl-density\":\"default\",\"data-vtl-motion\":\"default\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{}],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",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,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",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:1: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:1: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:1: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:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Le\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"a:null\ne:[[\"$\",\"title\",\"0\",{\"children\":\"Vantaloom\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Vantaloom local agent operations console.\"}]]\n"])</script></body></html>
@@ -1,9 +1,9 @@
1
1
  1:"$Sreact.fragment"
2
2
  2:I[66863,["/_next/static/chunks/7dfeab42587bcc0e.js"],"ClientPageRoot"]
3
- 3:I[66204,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/17e0384154325960.js","/_next/static/chunks/c990601c49cb69a5.js","/_next/static/chunks/71eec620f5343c0c.js","/_next/static/chunks/742d3900ca49db0a.js"],"default"]
3
+ 3:I[66204,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/17e0384154325960.js","/_next/static/chunks/c990601c49cb69a5.js","/_next/static/chunks/dc65a95f066997e0.js","/_next/static/chunks/742d3900ca49db0a.js"],"default"]
4
4
  6:I[35417,["/_next/static/chunks/7dfeab42587bcc0e.js"],"OutletBoundary"]
5
5
  7:"$Sreact.suspense"
6
- 0:{"buildId":"z104tXi8Tgpi7daWlsIpu","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/17e0384154325960.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/c990601c49cb69a5.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/71eec620f5343c0c.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/742d3900ca49db0a.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"loading":null,"isPartial":false}
6
+ 0:{"buildId":"5t3oOwp8449lfX7vX7O58","rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/17e0384154325960.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/c990601c49cb69a5.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/dc65a95f066997e0.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/742d3900ca49db0a.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
@@ -6,14 +6,14 @@
6
6
  6:I[45121,["/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
7
7
  7:I[60512,["/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
8
8
  8:I[66863,["/_next/static/chunks/7dfeab42587bcc0e.js"],"ClientPageRoot"]
9
- 9:I[66204,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/17e0384154325960.js","/_next/static/chunks/c990601c49cb69a5.js","/_next/static/chunks/71eec620f5343c0c.js","/_next/static/chunks/742d3900ca49db0a.js"],"default"]
9
+ 9:I[66204,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/17e0384154325960.js","/_next/static/chunks/c990601c49cb69a5.js","/_next/static/chunks/dc65a95f066997e0.js","/_next/static/chunks/742d3900ca49db0a.js"],"default"]
10
10
  c:I[35417,["/_next/static/chunks/7dfeab42587bcc0e.js"],"OutletBoundary"]
11
11
  d:"$Sreact.suspense"
12
12
  f:I[35417,["/_next/static/chunks/7dfeab42587bcc0e.js"],"ViewportBoundary"]
13
13
  11:I[35417,["/_next/static/chunks/7dfeab42587bcc0e.js"],"MetadataBoundary"]
14
14
  13:I[50025,["/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
15
15
  :HL["/_next/static/chunks/04d8db8bf4869e80.css","style"]
16
- 0:{"P":null,"b":"z104tXi8Tgpi7daWlsIpu","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04d8db8bf4869e80.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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":[["$","$L8",null,{"Component":"$9","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@a","$@b"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/17e0384154325960.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c990601c49cb69a5.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/71eec620f5343c0c.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/742d3900ca49db0a.js","async":true,"nonce":"$undefined"}]],["$","$Lc",null,{"children":["$","$d",null,{"name":"Next.MetadataOutlet","children":"$@e"}]}]]}],{},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","div",null,{"hidden":true,"children":["$","$L11",null,{"children":["$","$d",null,{"name":"Next.Metadata","children":"$L12"}]}]}],null]}],false]],"m":"$undefined","G":["$13",[]],"S":true}
16
+ 0:{"P":null,"b":"5t3oOwp8449lfX7vX7O58","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04d8db8bf4869e80.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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":[["$","$L8",null,{"Component":"$9","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@a","$@b"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/17e0384154325960.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c990601c49cb69a5.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/dc65a95f066997e0.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/742d3900ca49db0a.js","async":true,"nonce":"$undefined"}]],["$","$Lc",null,{"children":["$","$d",null,{"name":"Next.MetadataOutlet","children":"$@e"}]}]]}],{},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","div",null,{"hidden":true,"children":["$","$L11",null,{"children":["$","$d",null,{"name":"Next.Metadata","children":"$L12"}]}]}],null]}],false]],"m":"$undefined","G":["$13",[]],"S":true}
17
17
  a:{}
18
18
  b:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
19
19
  10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
@@ -2,4 +2,4 @@
2
2
  2:I[35417,["/_next/static/chunks/7dfeab42587bcc0e.js"],"ViewportBoundary"]
3
3
  3:I[35417,["/_next/static/chunks/7dfeab42587bcc0e.js"],"MetadataBoundary"]
4
4
  4:"$Sreact.suspense"
5
- 0:{"buildId":"z104tXi8Tgpi7daWlsIpu","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":"Vantaloom"}],["$","meta","1",{"name":"description","content":"Vantaloom local agent operations console."}]]}]}]}],null]}],"loading":null,"isPartial":false}
5
+ 0:{"buildId":"5t3oOwp8449lfX7vX7O58","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":"Vantaloom"}],["$","meta","1",{"name":"description","content":"Vantaloom local agent operations console."}]]}]}]}],null]}],"loading":null,"isPartial":false}
@@ -6,4 +6,4 @@
6
6
  6:I[45121,["/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
7
7
  7:I[60512,["/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
8
8
  :HL["/_next/static/chunks/04d8db8bf4869e80.css","style"]
9
- 0:{"buildId":"z104tXi8Tgpi7daWlsIpu","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04d8db8bf4869e80.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","template":["$","$L7",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}
9
+ 0:{"buildId":"5t3oOwp8449lfX7vX7O58","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04d8db8bf4869e80.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","template":["$","$L7",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,2 +1,2 @@
1
1
  :HL["/_next/static/chunks/04d8db8bf4869e80.css","style"]
2
- 0:{"buildId":"z104tXi8Tgpi7daWlsIpu","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
2
+ 0:{"buildId":"5t3oOwp8449lfX7vX7O58","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
@@ -19,7 +19,7 @@ ${n.map(([e,n])=>{let r=n.theme?.[t]??n.color;return r?` --color-${e}: ${r};`:n
19
19
  }
20
20
  `).join("\n")}}):null}function Hc({active:e,payload:t,className:n,indicator:r="dot",hideLabel:a=!1,hideIndicator:i=!1,label:o,labelFormatter:l,labelClassName:s,formatter:c,color:d,nameKey:u,labelKey:f}){let{config:m}=function(){let e=ew.useContext(Ho);if(!e)throw Error("useChart must be used within a <ChartContainer />");return e}(),h=ew.useMemo(()=>{if(a||!t?.length)return null;let[e]=t,n=`${f??e?.dataKey??e?.name??"value"}`,r=Hd(m,e,n),i=f||"string"!=typeof o?r?.label:m[o]?.label??o;return l?(0,eb.jsx)("div",{className:(0,ez.cn)("font-medium",s),children:l(i,t)}):i?(0,eb.jsx)("div",{className:(0,ez.cn)("font-medium",s),children:i}):null},[o,l,t,a,s,m,f]);if(!e||!t?.length)return null;let p=1===t.length&&"dot"!==r;return(0,eb.jsxs)("div",{className:(0,ez.cn)("vtl-surface-popover grid min-w-32 items-start gap-1.5 rounded-[var(--surface-popover-radius)] border px-2.5 py-1.5 text-xs",n),children:[p?null:h,(0,eb.jsx)("div",{className:"grid gap-1.5",children:t.filter(e=>"none"!==e.type).map((e,t)=>{let n=`${u??e.name??e.dataKey??"value"}`,a=Hd(m,e,n),o=d??e.payload?.fill??e.color;return(0,eb.jsx)("div",{className:(0,ez.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:size-2.5 [&>svg]:text-muted-foreground","dot"===r&&"items-center"),children:c&&e?.value!==void 0&&e.name?c(e.value,e.name,e,t,e.payload):(0,eb.jsxs)(eb.Fragment,{children:[a?.icon?(0,eb.jsx)(a.icon,{}):!i&&(0,eb.jsx)("div",{className:(0,ez.cn)("shrink-0 rounded-[2px]","dot"===r&&"size-2.5","line"===r&&"w-1","dashed"===r&&"w-0 border-[1.5px] border-dashed bg-transparent",p&&"dashed"===r&&"my-0.5"),style:{backgroundColor:"dashed"===r?"transparent":o,borderColor:o}}),(0,eb.jsxs)("div",{className:(0,ez.cn)("flex flex-1 justify-between leading-none",p?"items-end":"items-center"),children:[(0,eb.jsxs)("div",{className:"grid gap-1.5",children:[p?h:null,(0,eb.jsx)("span",{className:"text-muted-foreground",children:a?.label??e.name})]}),null!=e.value&&(0,eb.jsx)("span",{className:"font-mono font-medium text-foreground tabular-nums",children:"number"==typeof e.value?e.value.toLocaleString():String(e.value)})]})]})},t)})})]})}function Hd(e,t,n){if("object"!=typeof t||null===t)return;let r="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0,a=n;return n in t&&"string"==typeof t[n]?a=t[n]:r&&n in r&&"string"==typeof r[n]&&(a=r[n]),a in e?e[a]:e[n]}let Hu={placeholder:"Ask the agent to inspect, change, or explain this workspace...",mode:"Mode",model:"Model",attach:"Attach context",removeChip:"Remove context",removeAttachment:"Remove attachment",queuedMessage:"Queued message",guideQueuedMessage:"Guide",removeQueuedMessage:"Remove queued message",moreQueuedMessageActions:"More queued message actions",contextUsage:"Context usage",contextUsed:"used",contextTokenSummary:"used {used} / {total}",toolCalls:"Tool calls",userMessages:"User messages",otherContext:"Other context",compressContext:"Compress context",compressPrecise:"Precise",compressExtreme:"Extreme",send:"Run",stop:"Stop"},Hf=[{id:"agent",label:"Agent",description:"Use tools and make changes.",icon:(0,eb.jsx)(wk,{className:"fill-current"})},{id:"planner",label:"Planner",description:"Plan before changing files.",icon:(0,eb.jsx)(kV,{})},{id:"reviewer",label:"Reviewer",description:"Inspect risks and regressions.",icon:(0,eb.jsx)(uH,{})}],Hm=[{id:"acceptEdits",label:"Accept edits",description:"Auto-approve edits, ask for risky commands.",icon:(0,eb.jsx)(h6,{})},{id:"ask",label:"Ask permissions",description:"Ask before any tool action.",icon:(0,eb.jsx)(kB,{})},{id:"auto",label:"Auto mode",description:"Auto-approve all except dangerous.",icon:(0,eb.jsx)(u2,{})}],Hh=[{id:"gpt-5.5",label:"GPT-5.5",description:"Highest quality coding agent."},{id:"gpt-5.4",label:"GPT-5.4",description:"Balanced everyday work."},{id:"gpt-5.4-mini",label:"GPT-5.4 Mini",description:"Fast lightweight passes."}];function Hp(e){if(e)return"string"==typeof e.label||"number"==typeof e.label?String(e.label):e.id}function Hg({value:e,defaultValue:t,onValueChange:n,modes:r=Hf,modeId:a,defaultModeId:i,onModeChange:o,permissionModes:l=Hm,permissionModeId:s,defaultPermissionModeId:c,onPermissionModeChange:d,models:u=Hh,hideComposerOptions:f=!1,hidePermissionMode:m=!1,modelId:h,defaultModelId:p,onModelChange:g,effortOptions:x,selectedEffort:v,onEffortChange:b,queuedMessages:y,defaultQueuedMessages:w=[],onQueuedMessagesChange:j,onQueueMessage:k,onRemoveQueuedMessage:N,queueOnTab:S=!0,renderQueuedMessageActions:C,contextUsage:M,chips:E=[],attachments:I=[],onAttachmentsChange:P,onCardDrop:O,actions:z,footer:A,running:T=!1,disabled:R=!1,submitOnEnter:D=!0,promptHistory:_,minRows:L=2,maxRows:$=7,onSubmit:F,onStop:B,onAttach:V,onNudge:H,labels:U,className:q,textareaClassName:W,toolbarClassName:K}){let G,X,Y={...Hu,...U},Z=ew.useRef(null),J=ew.useId(),Q=ew.useRef(0),[ee,et]=function({value:e,defaultValue:t="",onChange:n}){let[r,a]=ew.useState(t);return[e??r,ew.useCallback(t=>{void 0===e&&a(t),n?.(t)},[n,e])]}({value:e,defaultValue:t,onChange:n}),en=_??[],[er,ea]=ew.useState(null),ei=ew.useRef(""),eo=ew.useRef(!1);ew.useEffect(()=>{ea(null),eo.current=!1},[_]);let el=ew.useCallback(e=>{eo.current=!0,et(e);let t=Z.current;t&&requestAnimationFrame(()=>{let e=t.value.length;t.setSelectionRange(e,e)})},[et]),[es,ec]=ew.useState(w),[ed,eu]=ew.useState(i??r[0]?.id),[ef,em]=ew.useState(c??l[0]?.id),[eh,ep]=ew.useState(p??u[0]?.id),eg=a??ed,ex=s??ef,ev=h??eh,ey=r.find(e=>e.id===eg)??r[0],ej=l.find(e=>e.id===ex)??l[0],ek=u.find(e=>e.id===ev)??u[0],eN=y??es,eS=(ee.trim().length>0||I.length>0)&&!R;function eC(){eS&&(F?.({value:ee,modeId:ey?.id,modelId:ek?.id,attachments:I.length>0?I:void 0}),ea(null),eo.current=!1,ei.current="",et(""),I.length>0&&P?.([]))}async function eM(e){if(0===e.length||!P)return;let t=[];for(let n of e){let e=`att-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`;if(n.type.startsWith("image/")){let r=await function(e){return new Promise(t=>{let n=new FileReader;n.onload=()=>t("string"==typeof n.result?n.result:""),n.onerror=()=>t(""),n.readAsDataURL(e)})}(n);if(!r)continue;t.push({id:e,kind:"image",name:n.name||"image.png",mimeType:n.type||"image/png",dataUrl:r,size:n.size})}else{let r=await function(e){return new Promise(t=>{let n=new FileReader;n.onload=()=>t("string"==typeof n.result?n.result:""),n.onerror=()=>t(""),n.readAsText(e)})}(n),a=(n.name.split(".").pop()??"").toLowerCase();t.push({id:e,kind:"file",name:n.name||"file.txt",mimeType:n.type||"text/plain",text:r,ext:a,size:n.size})}}t.length>0&&P([...I,...t])}function eE(e){void 0===y&&ec(e),j?.(e)}function eI(){let e=ee.trim();if(!e||R)return!1;Q.current+=1;let t={id:`${J}-queued-${Q.current}`,content:e},n=[...eN,t];return eE(n),k?.(t,n),et(""),!0}return ew.useLayoutEffect(()=>{let e=Z.current;if(!e)return;e.style.height="0px";let t=Number.parseFloat(getComputedStyle(e).lineHeight),n=Number.isFinite(t)?t*$:160;e.style.height=`${Math.min(e.scrollHeight,n)}px`,e.style.overflowY=e.scrollHeight>n?"auto":"hidden"},[$,ee]),(0,eb.jsxs)("div",{"data-slot":"agent-input-composer","data-running":T,className:(0,ez.cn)("relative grid w-full",q),children:[eN.length>0&&(0,eb.jsx)(Hb,{messages:eN,labels:Y,renderActions:C,onRemove:function(e){let t=eN.find(t=>t.id===e);if(!t)return;let n=eN.filter(t=>t.id!==e);eE(n),N?.(e,t,n)},onNudge:H,running:T}),(0,eb.jsxs)("div",{"data-slot":"agent-input-composer-surface",className:(0,ez.cn)("vtl-agent-input-composer-surface relative grid w-full gap-2 rounded-lg border border-border p-2 shadow-sm transition-colors"),onDragOver:O?e=>{e.dataTransfer.types.length>0&&(e.preventDefault(),e.dataTransfer.dropEffect="copy")}:void 0,onDrop:O?e=>{let t=O(e);t&&P&&(e.preventDefault(),P([...I,t]))}:void 0,children:[E.length>0&&(0,eb.jsx)("div",{"data-slot":"agent-input-composer-context",className:"flex min-w-0 flex-wrap items-center gap-1.5",children:E.map(e=>(0,eb.jsx)(Hw,{chip:e,removeLabel:Y.removeChip},e.id))}),I.length>0&&(0,eb.jsx)("div",{"data-slot":"agent-input-composer-attachments",className:"flex min-w-0 flex-wrap items-center gap-2",children:I.map(e=>(0,eb.jsx)(Hy,{attachment:e,removeLabel:Y.removeAttachment,onRemove:()=>P?.(I.filter(t=>t.id!==e.id))},e.id))}),(0,eb.jsx)("textarea",{ref:Z,value:ee,disabled:R,rows:L,placeholder:Y.placeholder,"data-slot":"agent-input-composer-textarea",className:(0,ez.cn)("min-h-10 w-full resize-none border-0 bg-transparent px-0.5 py-0 text-sm leading-5 text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-60","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden",W),onChange:e=>{var t;return t=e.currentTarget.value,void(!eo.current&&null!==er&&ea(null),eo.current=!1,et(t))},onPaste:function(e){let t=Array.from(e.clipboardData?.files??[]);0!==t.length&&P&&(e.preventDefault(),eM(t))},onKeyDown:e=>{en.length>0&&e.shiftKey&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&("ArrowUp"===e.key||"ArrowDown"===e.key)&&!e.nativeEvent.isComposing&&function(e){if(0===en.length)return!1;if("older"===e){if(null===er){ei.current=ee;let e=en.length-1;return ea(e),el(en[e]??""),!0}if(er<=0)return!0;let e=er-1;return ea(e),el(en[e]??""),!0}if(null===er)return!1;let t=er+1;return t>=en.length?(ea(null),eo.current=!1,el(ei.current),eo.current=!1):(ea(t),el(en[t]??"")),!0}("ArrowUp"===e.key?"older":"newer")?e.preventDefault():S&&"Tab"===e.key&&!e.shiftKey&&!e.nativeEvent.isComposing&&eI()?e.preventDefault():!D||"Enter"!==e.key||e.shiftKey||e.nativeEvent.isComposing||(e.preventDefault(),T?eI():eC())}}),(0,eb.jsxs)("div",{"data-slot":"agent-input-composer-toolbar",className:(0,ez.cn)("grid grid-cols-[minmax(0,1fr)_auto] items-end gap-2",K),children:[(0,eb.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-1.5",children:[!f&&(0,eb.jsxs)(eb.Fragment,{children:[!m&&(0,eb.jsx)(Hj,{label:"Permissions",options:l,value:ej?.id,trigger:(0,eb.jsxs)(eb.Fragment,{children:[(0,eb.jsx)("span",{className:"grid size-3.5 place-items-center text-muted-foreground [&_svg]:size-3",children:ej?.icon??(0,eb.jsx)(kB,{})}),(0,eb.jsx)("span",{className:"hidden truncate md:inline",children:Hp(ej)}),(0,eb.jsx)(pt,{className:"size-3 text-muted-foreground"})]}),triggerClassName:"rounded-md bg-transparent px-1.5 text-muted-foreground hover:bg-muted/60 hover:text-foreground aria-expanded:bg-muted/70",onSelect:function(e){e.disabled||(void 0===s&&em(e.id),d?.(e.id,e))}}),(0,eb.jsx)(Hj,{label:Y.model,options:u,value:ek?.id,trigger:(0,eb.jsxs)(eb.Fragment,{children:[(0,eb.jsx)("span",{className:"grid size-3.5 place-items-center text-muted-foreground [&_svg]:size-3 md:hidden",children:(0,eb.jsx)(kV,{})}),(0,eb.jsx)("span",{className:"hidden truncate md:inline",children:Hp(ek)}),(0,eb.jsx)(pt,{className:"size-3 text-muted-foreground"})]}),triggerClassName:"rounded-md bg-transparent px-1.5 text-muted-foreground hover:bg-muted/60 hover:text-foreground aria-expanded:bg-muted/70",onSelect:function(e){e.disabled||(void 0===h&&ep(e.id),g?.(e.id,e))},effortOptions:x,selectedEffort:v,onEffortSelect:function(e){e.disabled||b?.(e.id,e)}})]}),V&&(0,eb.jsx)(eO.Button,{type:"button",variant:"ghost",size:"icon-xs",className:"text-muted-foreground","aria-label":Y.attach,title:Y.attach,onClick:V,disabled:R,children:(0,eb.jsx)(kF,{})}),z]}),(0,eb.jsxs)("div",{className:"flex items-center gap-1",children:[M&&(0,eb.jsx)(Hv,{usage:M,labels:Y}),(G=ee.trim().length>0,X=T&&!G,(0,eb.jsx)(eO.Button,{type:"button",size:"icon-xs",variant:X?"outline":"default","aria-label":X?Y.stop:Y.send,title:X?Y.stop:Y.send,disabled:!T&&!eS,className:"rounded-full",onClick:X?B:T?()=>eI():eC,children:X?(0,eb.jsx)(kH,{className:"size-3 fill-current"}):(0,eb.jsx)(k_,{className:"size-3.5"})}))]})]}),A&&(0,eb.jsx)("div",{"data-slot":"agent-input-composer-footer",className:"flex min-w-0 items-center gap-2 text-xs text-muted-foreground",children:A})]})]})}function Hx(e){let t=Number.isFinite(e)?Math.max(0,e):0;return t>=1e6?`${(t/1e6).toFixed(t>=1e7?0:1)}m`:t>=1e3?`${Math.round(t/1e3)}k`:t.toLocaleString()}function Hv({usage:e,labels:t}){let[n,r]=ew.useState(!1),a=Math.max(0,e.used),i=Math.max(0,e.total),o=i>0?Math.min(100,Math.round(a/i*100)):0,l=Math.max(0,e.toolCalls),s=Math.max(0,e.userMessages),c=Math.max(0,e.other??Math.max(0,a-l-s)),d=[{name:"toolCalls",value:l,fill:"var(--color-toolCalls)"},{name:"userMessages",value:s,fill:"var(--color-userMessages)"},{name:"other",value:c,fill:"var(--color-other)"},{name:"unused",value:Math.max(0,i-a),fill:"var(--muted)"}].filter(e=>e.value>0),u=t.contextTokenSummary.replace("{used}",Hx(a)).replace("{total}",Hx(i)),f={toolCalls:{label:t.toolCalls,color:"var(--chart-1)"},userMessages:{label:t.userMessages,color:"var(--chart-3)"},other:{label:t.otherContext,color:"var(--chart-5)"}};return(0,eb.jsxs)(bC,{children:[(0,eb.jsx)(bP,{asChild:!0,children:(0,eb.jsx)(eO.Button,{type:"button",variant:"ghost",size:"icon-xs",className:"text-muted-foreground","aria-label":`${t.contextUsage}: ${o}% ${t.contextUsed}`,title:`${t.contextUsage}: ${o}% ${t.contextUsed}`,children:(0,eb.jsx)("span",{"aria-hidden":"true",className:"grid size-4 place-items-center rounded-full",style:{background:`conic-gradient(var(--foreground) ${3.6*o}deg, var(--border) 0deg)`},children:(0,eb.jsx)("span",{className:"size-3 rounded-full bg-background dark:bg-popover"})})})}),(0,eb.jsxs)(bH,{side:"top",align:"center",sideOffset:8,className:"w-44 gap-2 p-3",children:[(0,eb.jsxs)("div",{className:"grid gap-0.5 text-center",children:[(0,eb.jsx)("div",{className:"text-sm font-medium text-muted-foreground",children:e.label??t.contextUsage}),(0,eb.jsxs)("div",{className:"text-sm text-muted-foreground",children:[o,"% ",t.contextUsed]}),(0,eb.jsx)("div",{className:"text-sm font-medium",children:u})]}),(0,eb.jsx)("div",{className:"grid justify-center",children:e.onExpand?(0,eb.jsx)("button",{type:"button",onClick:e.onExpand,className:"rounded-full outline-none ring-offset-background transition hover:opacity-80 focus-visible:ring-2 focus-visible:ring-ring",title:"展开上下文明细","aria-label":"展开上下文明细",children:(0,eb.jsx)(Hl,{config:f,className:"h-20 w-20",initialDimension:{width:80,height:80},onMouseMove:()=>r(!0),onMouseLeave:()=>r(!1),children:(0,eb.jsxs)(Vm,{children:[(0,eb.jsx)(VZ,{active:n,content:(0,eb.jsx)(Hc,{hideLabel:!0})}),(0,eb.jsx)($z,{data:d.length>0?d:[{name:"other",value:1,fill:"var(--muted)"}],dataKey:"value",nameKey:"name",innerRadius:25,outerRadius:35,isAnimationActive:!1,strokeWidth:0})]})})}):(0,eb.jsx)(Hl,{config:f,className:"h-20 w-20",initialDimension:{width:80,height:80},onMouseMove:()=>r(!0),onMouseLeave:()=>r(!1),children:(0,eb.jsxs)(Vm,{children:[(0,eb.jsx)(VZ,{active:n,content:(0,eb.jsx)(Hc,{hideLabel:!0})}),(0,eb.jsx)($z,{data:d.length>0?d:[{name:"other",value:1,fill:"var(--muted)"}],dataKey:"value",nameKey:"name",innerRadius:25,outerRadius:35,isAnimationActive:!1,strokeWidth:0})]})})}),e.onExpand?(0,eb.jsx)(eO.Button,{type:"button",variant:"outline",size:"sm",className:"w-full text-xs",onClick:e.onExpand,children:"展开详情"}):null,e.onCompressPrecise||e.onCompressExtreme?(0,eb.jsxs)("div",{className:"flex w-full overflow-hidden rounded-md border",children:[(0,eb.jsx)(eO.Button,{type:"button",variant:"ghost",size:"sm",className:"flex-1 rounded-none border-r text-xs font-medium",onClick:e.onCompressPrecise,disabled:e.compressing||!e.onCompressPrecise,children:e.compressing?"…":t.compressPrecise??"精确"}),(0,eb.jsx)(eO.Button,{type:"button",variant:"ghost",size:"sm",className:"flex-1 rounded-none text-xs font-medium",onClick:e.onCompressExtreme,disabled:e.compressing||!e.onCompressExtreme,children:e.compressing?"…":t.compressExtreme??"极致"})]}):(0,eb.jsx)(eO.Button,{type:"button",variant:"outline",size:"sm",className:"w-full",onClick:e.onCompress,disabled:!e.onCompress,children:t.compressContext})]})]})}function Hb({messages:e,labels:t,renderActions:n,onRemove:r,onNudge:a,running:i}){return(0,eb.jsx)("div",{"data-slot":"agent-input-composer-queue",className:"vtl-agent-input-composer-queue z-10 mx-5 mb-[-1px] grid gap-1.5 rounded-t-lg rounded-b-none border border-border p-1.5 shadow-xs",children:e.map((e,o)=>(0,eb.jsxs)("div",{"data-slot":"agent-input-composer-queue-item",className:(0,ez.cn)("group/queue flex min-h-8 min-w-0 items-center gap-2 rounded-md px-2 text-sm transition-colors",e.disabled?"text-muted-foreground opacity-60":"text-foreground hover:bg-muted/60"),children:[(0,eb.jsx)("span",{className:"grid size-4 shrink-0 place-items-center text-muted-foreground [&_svg]:size-3.5",children:e.icon??(0,eb.jsx)(kL,{})}),(0,eb.jsx)("span",{className:"min-w-0 flex-1 truncate",title:String(e.content),children:e.content}),e.meta&&(0,eb.jsx)("span",{className:"shrink-0 text-xs text-muted-foreground",children:e.meta}),(0,eb.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 opacity-70 transition-opacity group-hover/queue:opacity-100",children:[n?.(e),i&&a&&(0,eb.jsxs)(eO.Button,{type:"button",variant:"ghost",size:"xs",className:"h-6 gap-1 px-1.5 text-muted-foreground","aria-label":`${t.guideQueuedMessage} ${o+1}`,onClick:()=>a(e.id),children:[(0,eb.jsx)(kL,{className:"size-3.5"}),t.guideQueuedMessage]}),(0,eb.jsx)(eO.Button,{type:"button",variant:"ghost",size:"icon-xs",className:"size-6 text-muted-foreground","aria-label":`${t.removeQueuedMessage} ${o+1}`,onClick:()=>r(e.id),children:(0,eb.jsx)(yn,{})}),(0,eb.jsx)(eO.Button,{type:"button",variant:"ghost",size:"icon-xs",className:"size-6 text-muted-foreground","aria-label":`${t.moreQueuedMessageActions} ${o+1}`,children:(0,eb.jsx)(lG,{})})]})]},e.id))})}function Hy({attachment:e,removeLabel:t,onRemove:n}){return"card"===e.kind?(0,eb.jsxs)("div",{"data-slot":"agent-input-attachment","data-attachment-kind":"card",className:"group/att relative flex h-10 min-w-0 max-w-56 shrink-0 items-center gap-2 overflow-hidden rounded-md border border-border bg-muted/40 pl-2 pr-6",title:e.name,children:[(0,eb.jsx)(k$,{className:"size-4 shrink-0 text-muted-foreground"}),(0,eb.jsxs)("span",{className:"flex min-w-0 flex-col leading-tight",children:[(0,eb.jsx)("span",{className:"truncate text-xs font-medium text-foreground",children:e.name}),(0,eb.jsx)("span",{className:"truncate text-[10px] text-muted-foreground",children:"卡片"})]}),(0,eb.jsx)("button",{type:"button","aria-label":t,title:t,onClick:n,className:"absolute right-0.5 top-0.5 grid size-4 place-items-center rounded-full bg-background/85 text-muted-foreground opacity-0 shadow-sm transition-opacity hover:text-foreground focus-visible:opacity-100 group-hover/att:opacity-100",children:(0,eb.jsx)(fV.XIcon,{className:"size-3"})})]}):(0,eb.jsxs)("div",{"data-slot":"agent-input-attachment",className:"group/att relative size-14 shrink-0 overflow-hidden rounded-md border border-border bg-muted/40",title:e.name,children:["image"===e.kind&&e.dataUrl?(0,eb.jsx)("img",{src:e.dataUrl,alt:e.name,className:"size-full object-cover"}):(0,eb.jsxs)("div",{className:"flex size-full flex-col items-center justify-center gap-1 px-1 text-center",children:[(0,eb.jsx)(uX,{className:"size-4 text-muted-foreground"}),(0,eb.jsx)("span",{className:"w-full truncate text-[10px] font-semibold uppercase text-muted-foreground",children:e.ext?`.${e.ext}`:"TXT"})]}),(0,eb.jsx)("button",{type:"button","aria-label":t,title:t,onClick:n,className:"absolute right-0.5 top-0.5 grid size-4 place-items-center rounded-full bg-background/85 text-muted-foreground opacity-0 shadow-sm transition-opacity hover:text-foreground focus-visible:opacity-100 group-hover/att:opacity-100",children:(0,eb.jsx)(fV.XIcon,{className:"size-3"})})]})}function Hw({chip:e,removeLabel:t}){return(0,eb.jsxs)(Vp,{variant:"secondary","data-tone":e.tone,className:(0,ez.cn)("h-6 max-w-full gap-1 rounded-md border border-border bg-muted/70 px-1.5 text-muted-foreground","success"===e.tone&&"border-primary/25 bg-primary/10 text-foreground","warning"===e.tone&&"border-destructive/25 bg-destructive/10 text-foreground"),children:[e.icon&&(0,eb.jsx)("span",{className:"grid size-3.5 shrink-0 place-items-center [&_svg]:size-3",children:e.icon}),(0,eb.jsx)("span",{className:"truncate",children:e.label}),e.onRemove&&(0,eb.jsx)("button",{type:"button",className:"-mr-0.5 grid size-4 shrink-0 place-items-center rounded-sm text-muted-foreground transition-colors hover:bg-background hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:outline-none","aria-label":`${t} ${e.id}`,onClick:()=>e.onRemove?.(e.id),children:(0,eb.jsx)(fV.XIcon,{className:"size-3"})})]})}function Hj({label:e,options:t,value:n,trigger:r,triggerClassName:a,onSelect:i,effortOptions:o,selectedEffort:l,onEffortSelect:s}){let c=o?.find(e=>e.id===(l??""))??o?.[0];return(0,eb.jsxs)(wA,{children:[(0,eb.jsx)(wR,{asChild:!0,children:(0,eb.jsx)(eO.Button,{type:"button",variant:"ghost",size:"xs",className:(0,ez.cn)("h-6 max-w-40 gap-1 rounded-md px-1.5 text-xs font-medium",a),children:r})}),(0,eb.jsxs)(wG,{align:"start","aria-label":"string"==typeof e?e:void 0,className:"min-w-40 p-1",children:[t.map(e=>(0,eb.jsxs)(wX,{disabled:e.disabled,className:"h-8 gap-2 px-2 text-sm",onSelect:()=>i(e),children:[(0,eb.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),e.disabled?(0,eb.jsx)("span",{className:"ml-auto shrink-0 rounded bg-muted px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground",children:"不可用"}):(0,eb.jsx)(h6,{className:(0,ez.cn)("ml-auto size-4 text-foreground",n===e.id?"opacity-100":"opacity-0")})]},e.id)),o&&o.length>0&&s&&(0,eb.jsxs)(wK,{children:[(0,eb.jsxs)(w0,{className:"h-8 gap-2 px-2 text-sm",children:[(0,eb.jsx)("span",{className:"min-w-0 flex-1 truncate",children:"思考强度"}),(0,eb.jsx)("span",{className:"ml-auto truncate text-xs text-muted-foreground",children:Hp(c)})]}),(0,eb.jsx)(w1,{className:"min-w-32 p-1",children:o.map(e=>(0,eb.jsxs)(wX,{disabled:e.disabled,className:"h-8 gap-2 px-2 text-sm",onSelect:()=>s(e),children:[(0,eb.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label}),(0,eb.jsx)(h6,{className:(0,ez.cn)("ml-auto size-4 text-foreground",(l??"")===e.id?"opacity-100":"opacity-0")})]},e.id))})]})]})]})}function Hk(e,t,n,r){return[{id:`${t}-task-${e}`,kind:"user",title:n},...r.map(n=>({...n,id:`${t}-${n.id}-${e}`}))]}function HN(e){return[{id:`read-materials-${e}`,kind:"read",actionLabel:"读取",title:"AgentWorkspace.tsx, styles.css, i18n.json",files:[{id:`workspace-${e}`,name:"AgentWorkspace.tsx",lines:"1-480"},{id:`styles-${e}`,name:"styles.css",lines:"265-820"},{id:`i18n-${e}`,name:"i18n.json",lines:"245-292"}]},{id:`search-actions-${e}`,kind:"search",actionLabel:"搜索",title:"workspace creation, sidebar tree, streaming output",files:[{id:`workspace-search-${e}`,name:"AgentWorkspace.tsx",lines:"64-190"},{id:`style-search-a-${e}`,name:"styles.css",lines:"540-670"},{id:`style-search-b-${e}`,name:"styles.css",lines:"705-790"}]},{id:`subagents-${e}`,kind:"subagent",actionLabel:"召唤",title:"子代理",subagents:[{id:`reader-${e}`,title:"阅读子代理",activity:"阅读 package.json",toolActivities:["读取 package.json","检查 workspace 脚本","整理依赖信息"],status:"阅读 package.json",detail:"package.json 已读取,正在整理脚本与依赖信息。",isRunning:!0,events:Hk(e,"reader","阅读 package.json",[{id:"read-package",kind:"read",actionLabel:"读取",title:"package.json",files:[{id:"package-json",name:"package.json",lines:"1-96"}]},{id:"reader-note",kind:"done",title:"已读取 package.json。\n\n- 已记录 workspace 脚本\n- 已检查 UI 与 app 包依赖\n- 下一步等待主代理合并上下文"}])},{id:`searcher-${e}`,title:"搜索子代理",activity:"搜索 AgentWorkspace.tsx",toolActivities:["搜索 AgentWorkspace.tsx","筛选面板布局","定位事件流接入"],status:"搜索 AgentWorkspace.tsx",detail:"AgentWorkspace.tsx 命中 3 处候选区域,正在筛选可复用结构。",isRunning:!0,events:Hk(e,"searcher","搜索 AgentWorkspace.tsx",[{id:"search-workspace",kind:"search",actionLabel:"搜索",title:"AgentWorkspace.tsx",files:[{id:"agent-workspace-a",name:"AgentWorkspace.tsx",lines:"64-190"},{id:"agent-workspace-b",name:"AgentWorkspace.tsx",lines:"320-418"}]},{id:"searcher-note",kind:"done",title:"已定位 AgentWorkspace.tsx 的面板布局与事件流接入位置。"}])},{id:`verifier-${e}`,title:"验证子代理",activity:"验证工作流状态",toolActivities:["验证对话流","验证右侧面板","检查子代理切换"],status:"验证工作流状态",detail:"工作流状态正在校验,等待主代理提交最终结果。",isRunning:!0,events:Hk(e,"verifier","验证工作流状态",[{id:"verify-flow",kind:"verify",actionLabel:"验证",title:"对话流、右侧面板、子代理切换"},{id:"verifier-note",kind:"done",title:"验证队列已建立,等待主代理继续写入真实结果。"}])}]},{id:`think-structure-${e}`,kind:"thought",actionLabel:"思考",title:"8s",status:"done"},{id:`plan-${e}`,kind:"done",title:"**收到新的编织请求。**\n\n我会先保留当前工作台样式,只用占位文本演示真实任务流:读取、搜索、思考、编辑和验证都会按顺序进入同一条文字流。\n\n- 左侧织布机由真实创建动作产生\n- 编织物初始保持为空\n- 文件读取项仍然可以展开\n- 点击文件名会继续打开右侧标签页"},{id:`edit-workspace-${e}`,kind:"change",actionLabel:"编辑",title:"AgentWorkspace.tsx",additions:44,deletions:16},{id:`edit-style-${e}`,kind:"change",actionLabel:"编辑",title:"styles.css",additions:36,deletions:12},{id:`verify-flow-${e}`,kind:"verify",actionLabel:"验证",title:"empty sidebar, new loom creation, placeholder workflow"},{id:`done-${e}`,kind:"done",title:"演示工作流已完成。\n\n这只是前端占位演示,后续可以直接把事件流替换成真实 agent runtime。"}]}let HS=[{id:"user-1",kind:"user",title:"345"},...HN("1"),{id:"user-2",kind:"user",title:"234"}],HC=(0,ek.default)("compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),HM=(0,ek.default)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]),HE=(0,ek.default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),HI=(0,ek.default)("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),HP=(0,ek.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"}]]),HO=(0,l0.cva)("vtl-dot-matrix-loader",{variants:{size:{xs:"[--vtl-dot-size:3px] [--vtl-dot-gap:3px]",sm:"[--vtl-dot-size:3.5px] [--vtl-dot-gap:3.5px]",default:"[--vtl-dot-size:4px] [--vtl-dot-gap:4px]",lg:"[--vtl-dot-size:5px] [--vtl-dot-gap:5px]",xl:"[--vtl-dot-size:6px] [--vtl-dot-gap:6px]"},tone:{default:"text-current",muted:"text-muted-foreground",primary:"text-primary",inverse:"text-primary-foreground",destructive:"text-destructive"},variant:{pulse:"vtl-dot-matrix-loader-pulse",wave:"vtl-dot-matrix-loader-wave",orbit:"vtl-dot-matrix-loader-orbit",binary:"vtl-dot-matrix-loader-binary"}},defaultVariants:{size:"default",tone:"default",variant:"pulse"}}),Hz={pulse:[0,90,180,270,360,450,540,630,720],wave:[0,80,160,80,160,240,160,240,320],orbit:[0,130,260,910,1040,390,780,650,520],binary:[0,210,420,630,140,350,560,70,280]};function HA({className:e,size:t,tone:n,variant:r,animated:a=!0,speed:i=1,style:o,"aria-label":l="Loading",...s}){let c=Math.round(1120/(Number.isFinite(i)&&i>0?i:1)),d=Hz[r??"pulse"];return(0,eb.jsx)("span",{role:"status","aria-label":l,"data-animated":a?"true":"false",className:(0,ez.cn)(HO({size:t,tone:n,variant:r}),e),style:{"--vtl-dot-duration":`${c}ms`,...o},...s,children:Array.from({length:9},(e,t)=>(0,eb.jsx)("span",{"aria-hidden":"true",className:"vtl-dot-matrix-loader-dot",style:{"--vtl-dot-delay":`${d[t]}ms`}},t))})}let HT=(0,l0.cva)("animate-spin",{variants:{size:{xs:"size-3",sm:"size-3.5",default:"size-4",lg:"size-5",xl:"size-6"},variant:{default:"text-current",muted:"text-muted-foreground",primary:"text-primary"}},defaultVariants:{size:"default",variant:"default"}});function HR({className:e,size:t,variant:n,...r}){return(0,eb.jsx)(eM,{role:"status","aria-label":"Loading",className:(0,ez.cn)(HT({size:t,variant:n}),e),...r})}function HD({className:e,...t}){return(0,eb.jsx)("div",{"data-slot":"agent-message-actions",className:(0,ez.cn)("flex items-center gap-1.5 text-muted-foreground",e),...t})}function H_({className:e,...t}){return(0,eb.jsx)(eO.Button,{size:"icon-xs",variant:"ghost",className:e,...t})}let HL={thinking:"pulse",working:"wave",executing:"orbit",retrying:"binary"};function H$({mode:e,label:t,activity:n,retryAttempt:r,retryMax:a,errorDetail:i,className:o}){let l="retry"===e,s=l?`正在进行重试...(${r??1}/${a??1})`:t??"工作中",c=l?HL.retrying:HL[n??"working"],[d,u]=ew.useState(!1),f=ew.useRef(void 0);ew.useEffect(()=>()=>{void 0!==f.current&&window.clearTimeout(f.current)},[]);let m=ew.useCallback(()=>{let e=(i??"").trim();e&&("u">typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(e):new Promise((t,n)=>{try{let n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.opacity="0",document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy"),document.body.removeChild(n),t()}catch(e){n(e)}})).then(()=>{u(!0),void 0!==f.current&&window.clearTimeout(f.current),f.current=window.setTimeout(()=>u(!1),1800)}).catch(()=>{})},[i]),h=l&&!!(i??"").trim();return(0,eb.jsxs)("div",{"data-slot":"conversation-status-tail","aria-live":"polite",className:(0,ez.cn)("flex items-center gap-2 text-sm leading-6",l?"text-destructive":"text-muted-foreground",o),children:[(0,eb.jsx)(HA,{variant:c,tone:l?"destructive":"muted",style:{"--vtl-dot-size":"0.2em","--vtl-dot-gap":"0.2em"},"aria-label":s}),(0,eb.jsx)("span",{children:s}),h?(0,eb.jsxs)("button",{type:"button",onClick:m,title:"复制完整报错信息",className:"cursor-pointer rounded text-destructive/80 underline decoration-dotted underline-offset-2 transition-colors hover:text-destructive",children:["(",d?"已复制":"点击复制报错信息",")"]}):null]})}function HF(e){return e.replace(/\x1b\][^\x07\x1b]*(?:\x07|\x1b\\)?|\x1b\[[?!>]?[\d;]*[a-zA-Z~]|\x9b[?!>]?[\d;]*[a-zA-Z~]|\x1b[()#][A-Z0-9]|\x1b[A-Z=><78]|\r/gi,"").replace(/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f\x80-\x9f]/g,"")}let HB=[".png",".jpg",".jpeg",".gif",".webp",".svg",".bmp"];function HV(e){let t=(e.split(/[?#]/,1)[0]??e).replace(/[\\/]+$/,"").split(/[\\/]/),n=t[t.length-1];return n&&n.trim()?n.trim():e}function HH({src:e,alt:t}){return(0,eb.jsx)("img",{src:e,alt:t,loading:"lazy",className:"vtl-agent-deliverable-image"})}function HU({label:e,target:t,context:n}){let r=n?.classify?.(t)??"url",a=e.trim()||HV(t);return(0,eb.jsxs)("button",{type:"button",className:"vtl-agent-deliverable-chip",title:t,onClick:()=>n?.onOpen?.({target:t,kind:r,label:a}),children:[(0,eb.jsx)(uX,{className:"vtl-agent-deliverable-chip-icon"}),(0,eb.jsx)("span",{className:"vtl-agent-deliverable-chip-label",children:a}),(0,eb.jsx)("span",{className:"vtl-agent-deliverable-chip-open",children:"打开"})]})}function Hq(e,t,n,r,a){if(!t)return;let i=n+t.length;if(r<=n)return void e.push((0,eb.jsx)("span",{className:"vtl-agent-stream-fade-text",children:t},`${a}-fade-${n}`));if(r>=i)return void e.push(t);let o=r-n;e.push(t.slice(0,o)),e.push((0,eb.jsx)("span",{className:"vtl-agent-stream-fade-text",children:t.slice(o)},`${a}-fade-${n}`))}function HW(e,t){let n="!"===e[t]&&"["===e[t+1],r=t+(n?2:1),a=e.indexOf("]",r);if(-1===a||"("!==e[a+1])return null;let i=e.indexOf(")",a+2);if(-1===i)return null;let o=e.slice(r,a),l=e.slice(a+2,i).trim();return l?{isImage:n,label:o,target:l,end:i+1}:null}function HK(e,t=1/0,n){let r=[],a=0;for(;a<e.length;){if("!"===e[a]&&"["===e[a+1]){let t=HW(e,a);if(t){let e=n?.resolveImageSrc?.(t.target)??t.target;r.push((0,eb.jsx)(HH,{src:e,alt:t.label},`img-${a}`)),a=t.end;continue}}if("["===e[a]){let t=HW(e,a);if(t){if(function(e){let t=(e.split(/[?#]/,1)[0]??e).toLowerCase();return!!t.startsWith("data:image/")||HB.some(e=>t.endsWith(e))}(t.target)){let e=n?.resolveImageSrc?.(t.target)??t.target;r.push((0,eb.jsx)(HH,{src:e,alt:t.label||HV(t.target)},`img-${a}`))}else n?r.push((0,eb.jsx)(HU,{label:t.label,target:t.target,context:n},`chip-${a}`)):r.push((0,eb.jsx)("a",{href:t.target,target:"_blank",rel:"noreferrer noopener",children:t.label||t.target},`link-${a}`));a=t.end;continue}}if(e.startsWith("**",a)){let i=e.indexOf("**",a+2),o=-1===i?e.slice(a+2):e.slice(a+2,i);o.length>0&&r.push((0,eb.jsx)("strong",{children:HK(o,t-a-2,n)},`strong-${a}`)),a=-1===i?e.length:i+2;continue}if("`"===e[a]){let i=e.indexOf("`",a+1),o=-1===i?e.slice(a+1):e.slice(a+1,i);o.length>0&&r.push((0,eb.jsx)("code",{children:HK(o,t-a-1,n)},`code-${a}`)),a=-1===i?e.length:i+1;continue}let i=[e.indexOf("**",a),e.indexOf("`",a),e.indexOf("[",a),e.indexOf("![",a)].filter(e=>e>=0).sort((e,t)=>e-t)[0]??e.length;if(i===a){Hq(r,e[a]??"",a,t,`ch-${a}`),a+=1;continue}Hq(r,e.slice(a,i),a,t,`text-${a}`),a=i}return r}function HG(e){return/^\s*[-*]\s+/.test(e)}function HX(e){return/^#{1,6}\s+/.test(e.trim())}function HY(e){return/^\s*([-*_])(?:\s*\1){2,}\s*$/.test(e)}function HZ(e){return e.includes("|")&&e.trim().split("|").length>=3}function HJ(e){return/^\s*\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)+\|?\s*$/.test(e)}function HQ(e){return e.trim().replace(/^\|/,"").replace(/\|$/,"").split("|").map(e=>e.trim())}let H0=new Map;function H1({content:e,isStreaming:t=!1,deliverable:n}){let r=function(e){let t=H0.get(e);if(t)return H0.delete(e),H0.set(e,t),t;let n=function(e){let t=e.replace(/\r\n/g,"\n").split("\n"),n=[],r=0;for(let e of t)n.push(r),r+=e.length+1;let a=[],i=0;for(;i<t.length;){let e=t[i]??"",r=e.trim(),o=n[i]??0;if(!r){i+=1;continue}if(r.startsWith("```")){let e=[];for(i+=1;i<t.length&&!(t[i]??"").trim().startsWith("```");)e.push(t[i]??""),i+=1;i<t.length&&(i+=1),a.push({kind:"code",text:e.join("\n"),start:o});continue}if(HY(e)){a.push({kind:"hr",start:o}),i+=1;continue}if(HX(e)){let e=/^(#{1,6})\s+(.+)$/.exec(r),t=e?.[1]??"##";a.push({kind:"heading",depth:t.length,text:e?.[2]??r,start:o}),i+=1;continue}if(HZ(e)&&i+1<t.length&&HJ(t[i+1]??"")){let n=HQ(e),r=[];for(i+=2;i<t.length&&HZ(t[i]??"");)r.push(HQ(t[i]??"")),i+=1;a.push({kind:"table",headers:n,rows:r,start:o});continue}if(HG(e)){let e=[];for(;i<t.length&&HG(t[i]??"");)e.push({text:(t[i]??"").replace(/^\s*[-*]\s+/,""),start:n[i]??0}),i+=1;a.push({kind:"list",items:e,start:o});continue}let l=[];for(;i<t.length;){let e=t[i]??"",n=t[i+1]??"";if(!e.trim()||e.trim().startsWith("```")||HY(e)||HX(e)||HG(e)||HZ(e)&&HJ(n))break;l.push(e),i+=1}a.push({kind:"paragraph",lines:l,start:o})}return a}(e);if(H0.set(e,n),H0.size>512){let e=H0.keys().next().value;void 0!==e&&H0.delete(e)}return n}(e),a=t?Math.max(0,e.length-14):1/0;return(0,eb.jsx)("div",{className:"vtl-agent-markdown",children:r.map((e,t)=>{let r=a-e.start;return"code"===e.kind?(0,eb.jsx)("pre",{children:e.text},`block-${t}`):"hr"===e.kind?(0,eb.jsx)("hr",{},`block-${t}`):"heading"===e.kind?e.depth<=2?(0,eb.jsx)("h3",{children:HK(e.text,r,n)},`block-${t}`):(0,eb.jsx)("h4",{children:HK(e.text,r,n)},`block-${t}`):"list"===e.kind?(0,eb.jsx)("ul",{children:e.items.map((e,t)=>(0,eb.jsx)("li",{children:HK(e.text,a-e.start,n)},`${e.text}-${t}`))},`block-${t}`):"table"===e.kind?(0,eb.jsx)("div",{className:"vtl-agent-markdown-table",children:(0,eb.jsxs)("table",{children:[(0,eb.jsx)("thead",{children:(0,eb.jsx)("tr",{children:e.headers.map((e,t)=>(0,eb.jsx)("th",{children:HK(e,r,n)},`${e}-${t}`))})}),(0,eb.jsx)("tbody",{children:e.rows.map((t,a)=>(0,eb.jsx)("tr",{children:e.headers.map((e,i)=>(0,eb.jsx)("td",{children:HK(t[i]??"",r,n)},`cell-${a}-${i}`))},`row-${a}`))})]})},`block-${t}`):(0,eb.jsx)("p",{children:HK(e.lines.map(e=>e.trim()).join(" "),r,n)},`block-${t}`)})})}function H2(e){return("assistant"===e.kind||"done"===e.kind)&&"模型没有返回内容。"===e.title.trim()&&!e.detail?.trim()}function H5(e){return("error"!==e.kind||"retried"!==e.status)&&!H2(e)}let H4=new Set(["thought","read","search","tool","plan","plan-task","plan-compact","browser","skill","memory","agent","kanban"]);function H3(e,t){let n=e.translation?.[t];return n&&n.trim()?n:"title"===t?e.title:e.detail}function H6(e){let t=e.translation;return!!(t?.title&&t.title.trim()||t?.detail&&t.detail.trim())}let H8=ew.forwardRef(function({events:e,labels:t,contextEdit:n,running:r=!1,bottomInset:a=16,className:i,contentClassName:o,hasEarlier:l,loadingEarlier:s,onLoadEarlier:c,onOpenFile:d,deliverable:u,onOpenSubagent:f,onOpenPlan:m,onOpenSpec:h,onOpenTasks:p,onRecallUserMessage:g,onBranchAssistantMessage:x,onRetry:v,onApprovalDecision:b,onFetchExplanation:y,onContinue:w,onActiveEventChange:j,onAtBottomChange:k},N){let S=ew.useRef(null),C=ew.useRef(!0),M=ew.useRef(!0),E=ew.useRef(k);E.current=k;let[I,P]=ew.useState(0),[O,z]=ew.useState(0),[A,T]=ew.useState({}),R=ew.useMemo(()=>e.filter(H5),[e]),D=ew.useMemo(()=>r?function(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(!n||H2(n))continue;if("error"===n.kind&&"retried"===n.status)return{mode:"retry",retryAttempt:n.retryAttempt??1,retryMax:n.retryMax??1,errorDetail:(n.detail??n.title??"").trim()};if("user"===n.kind)break;let r=function(e){switch(e.kind){case"thought":return"thinking";case"tool":case"read":case"search":case"verify":case"change":case"browser":case"subagent":case"toolgroup":case"plan":case"plan-task":case"skill":case"memory":case"agent":case"kanban":return"executing";default:return"working"}}(n);return{mode:"working",label:function(e,t){switch(e?.kind){case"change":return"编辑文件中";case"subagent":return"分发子代理中";case"browser":return"操作浏览器中"}switch(t){case"thinking":return"思考中";case"executing":return"执行中";default:return"工作中"}}(n,r),activity:r}}return{mode:"working",label:"工作中",activity:"working"}}(e):null,[r,e]),_=ew.useMemo(()=>{let e,t=new Set;for(let n of R)"user"===n.kind?(e&&t.add(e),e=void 0):"assistant"!==n.kind&&"done"!==n.kind||H2(n)||(e=n.id);return!r&&e&&t.add(e),t},[R,r]),L=ew.useMemo(()=>(function(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(!H4.has(r.kind)){t.push(r),n++;continue}let a=n,i=[];for(;a<e.length&&H4.has(e[a].kind);)i.push(e[a]),a++;a<e.length&&i.length>=2?t.push(function(e){let t=0,n=0,r=0,a=0,i=0;for(let o of e)"thought"===o.kind?a+=1:"read"===o.kind?t+=o.files?.length??1:"search"===o.kind?n+=1:"plan"===o.kind||"plan-task"===o.kind||"plan-compact"===o.kind?i+=1:r+=1;let o=[];a>0&&o.push(`思考 ${a} 次`),t>0&&o.push(`阅读 ${t} 个文件`),n>0&&o.push(`搜索 ${n} 次`),r>0&&o.push(`执行 ${r} 条命令`),i>0&&o.push(`更新计划 ${i} 次`);let l=o.length>0?`已${o.join(",")}`:`已完成 ${e.length} 步操作`;return{id:`toolgroup-${e[0].id}`,kind:"toolgroup",title:l,groupedEvents:e}}(i)):t.push(...i),n=a}return t})(R),[R]);ew.useLayoutEffect(()=>{let e=S.current;if(!e)return;function t(){z(e.clientHeight)}t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]);let $=ew.useMemo(()=>L.reduce((e,t,n)=>{var r;let a=A[UR(t,n)]??("toolgroup"===(r=t).kind?30:"user"===r.kind?72:"assistant"===r.kind||"done"===r.kind?Math.max(42,Math.min(260,28+22*Math.ceil((r.title.length+(r.detail?.length??0))/68))):"read"===r.kind||"search"===r.kind||"tool"===r.kind?r.files?.length?28+26*Math.min(r.files.length,5):26:"subagent"===r.kind?r.subagents?.length?6+24*Math.min(r.subagents.length,6):42:"change"===r.kind?Math.max(42,Math.min(180,10+(r.files?.length??1)*43)):"approval"===r.kind?"pending"===r.status?140:72:"limit"===r.kind?80:"error"===r.kind?88:"plan-question"===r.kind||"plan-approval"===r.kind?r.detail?60:30:"plan"===r.kind||"plan-task"===r.kind||"plan-compact"===r.kind||"plan-answer"===r.kind||"plan-decision"===r.kind?28:r.detail?54:26);return e.rows.push({event:t,index:n,offset:e.totalHeight,height:a,autoOpen:("read"===t.kind||"tool"===t.kind)&&!!t.isStreaming||"read"===t.kind&&!L.slice(n+1).some(e=>"read"!==e.kind),showActions:_.has(t.id)}),e.totalHeight+=a,e},{rows:[],totalHeight:0}),[A,L,_]),F=$.rows.filter(e=>e.offset+e.height>=I-360&&e.offset<=I+Math.max(O,520)+360),B=40*!!D,V=$.totalHeight+Math.max(0,a)+B,H=ew.useRef($.rows);H.current=$.rows,ew.useImperativeHandle(N,()=>({scrollToEvent:e=>{let t=S.current;if(!t)return!1;let n=H.current.find(t=>t.event.id===e);if(!n)return!1;C.current=!1;let r=Math.max(0,n.offset-12);return t.scrollTop=r,P(r),!0},scrollToBottom:()=>{let e=S.current;e&&(C.current=!0,e.scrollTop=e.scrollHeight,P(e.scrollTop),!0!==M.current&&(M.current=!0,E.current?.(!0)))}}),[]);let U=ew.useRef(void 0),q=ew.useCallback(()=>{let e;if(!j)return;let t=S.current;if(!t)return;let n=t.scrollTop+24;for(let t of H.current)if(t.offset<=n)e=t.event.id;else break;!e&&H.current.length>0&&(e=H.current[0].event.id),e!==U.current&&(U.current=e,j(e))},[j]),W=ew.useCallback(()=>{let e=S.current;if(!e)return;let t=e.scrollHeight-e.clientHeight,n=t-e.scrollTop,r=t<=1||n<96;r!==M.current&&(M.current=r,k?.(r))},[k]),K=ew.useRef(void 0),G=ew.useRef(0);ew.useLayoutEffect(()=>{let e=S.current,t=L[0]?.id,n=K.current,r=G.current;if(e&&void 0!==n&&t!==n&&L.some(e=>e.id===n)){let t=$.totalHeight-r;if(t>0){let n=e.scrollTop+t;e.scrollTop=n,P(n)}}K.current=t,G.current=$.totalHeight},[L,$.totalHeight]),ew.useLayoutEffect(()=>{let e=S.current;if(!e||!R.length||!C.current){q(),W();return}e.scrollTop=e.scrollHeight,P(e.scrollTop),q(),W()},[a,R.length,V,O,D,q,W]);let X=ew.useCallback((e,t)=>{T(n=>1>Math.abs((n[e]??0)-t)?n:{...n,[e]:t})},[]),Y=!!n?.mode,Z=ew.useRef(null),[J,Q]=ew.useState(!1),ee=ew.useRef(n?.onRangeSelect);ee.current=n?.onRangeSelect;let et=ew.useCallback((e,t)=>{let n=document.elementFromPoint(e,t),r=n?.closest("[data-index]");return r?.dataset.index??null},[]),en=ew.useCallback(e=>{if(!Y||0!==e.button)return;let t=et(e.clientX,e.clientY);t&&(Z.current=t,Q(!0))},[Y,et]),er=ew.useCallback(e=>{let t=Z.current;if(!t)return;let n=et(e.clientX,e.clientY);n&&n!==t&&ee.current?.(t,n)},[et]),ea=ew.useCallback(()=>{Z.current=null,Q(!1)},[]);return(0,eb.jsxs)("div",{ref:S,"data-slot":"agent-conversation-flow",className:(0,ez.cn)("min-h-0 flex-1 overflow-auto px-4 pt-4 opacity-100 transition-opacity duration-180 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden select-text [-webkit-touch-callout:default] [-webkit-user-select:text]",J&&"select-none [-webkit-user-select:none]",i),onScroll:function(){let e=S.current;e&&(C.current=e.scrollHeight-e.scrollTop-e.clientHeight<96,P(e.scrollTop),q(),W())},onPointerDown:Y?en:void 0,onPointerMove:J?er:void 0,onPointerUp:J?ea:void 0,onPointerLeave:J?ea:void 0,children:[l?(0,eb.jsx)("div",{className:"mx-auto mb-2 flex w-full max-w-[48rem] justify-center",children:(0,eb.jsx)("button",{type:"button",disabled:s,onClick:()=>c?.(),className:"rounded-full border border-border bg-popover px-3 py-1 text-xs text-muted-foreground shadow-sm transition-colors hover:bg-muted disabled:cursor-default disabled:opacity-60",children:s?"加载中…":"↑ 加载更早的消息"})}):null,(0,eb.jsxs)("div",{className:(0,ez.cn)("relative mx-auto min-h-full w-full max-w-[48rem]",o),style:{height:V},children:[F.map(e=>(0,eb.jsx)(H7,{event:e.event,rowKey:UR(e.event,e.index),offset:e.offset,autoOpen:e.autoOpen,showActions:e.showActions,labels:t,contextEdit:n,deliverable:u,onMeasure:X,onOpenFile:d,onOpenSubagent:f,onOpenPlan:m,onOpenSpec:h,onOpenTasks:p,onRecallUserMessage:g,onBranchAssistantMessage:x,onRetry:v,onApprovalDecision:b,onFetchExplanation:y,onContinue:w},UR(e.event,e.index))),D?(0,eb.jsx)("div",{className:"absolute inset-x-0 px-1 pt-1",style:{top:$.totalHeight},children:(0,eb.jsx)(H$,{mode:D.mode,label:"working"===D.mode?D.label:void 0,activity:"working"===D.mode?D.activity:void 0,retryAttempt:"retry"===D.mode?D.retryAttempt:void 0,retryMax:"retry"===D.mode?D.retryMax:void 0,errorDetail:"retry"===D.mode?D.errorDetail:void 0})}):null]})]})}),H7=ew.memo(function({event:e,rowKey:t,offset:n,autoOpen:r,showActions:a,labels:i,contextEdit:o,deliverable:l,onMeasure:s,onOpenFile:c,onOpenSubagent:d,onOpenPlan:u,onOpenSpec:f,onOpenTasks:m,onRecallUserMessage:h,onBranchAssistantMessage:p,onRetry:g,onApprovalDecision:x,onFetchExplanation:v,onContinue:b}){let y=ew.useRef(null);ew.useLayoutEffect(()=>{let e=y.current;if(!e)return;function n(){s(t,Math.ceil(e.getBoundingClientRect().height))}n();let r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[e.id,s,t]);let w=(0,eb.jsx)(Ur,{event:e,autoOpen:r,showActions:a,labels:i,contextEdit:o,deliverable:l,onOpenFile:c,onOpenSubagent:d,onOpenPlan:u,onOpenSpec:f,onOpenTasks:m,onRecallUserMessage:h,onBranchAssistantMessage:p,onRetry:g,onContinue:b,onApprovalDecision:x,onFetchExplanation:v});return(0,eb.jsx)("div",{ref:y,"data-index":e.id,className:"absolute inset-x-0 top-0",style:{transform:`translateY(${n}px)`},children:o&&"user"!==e.kind?(0,eb.jsx)(H9,{event:e,contextEdit:o,children:w}):w})});function H9({event:e,contextEdit:t,children:n}){let r=t.selectedIds.has(e.id),a=H6(e),i=(0,eb.jsxs)("div",{className:(0,ez.cn)("relative rounded-md transition-colors",t.mode&&"cursor-pointer pl-7",r&&"bg-accent ring-1 ring-primary/40"),"data-selected":r?"true":void 0,onClick:t.mode?function(n){!t.mode||n.target.closest("a,button,input,textarea,select,[role=button],[contenteditable=true]")||t.onToggleSelect(e.id)}:void 0,children:[t.mode?(0,eb.jsx)("span",{className:"absolute top-2 left-1 z-10",children:(0,eb.jsx)(vM,{checked:r,onCheckedChange:()=>t.onToggleSelect(e.id),"aria-label":"选择此条",onClick:e=>e.stopPropagation()})}):null,n]});return(0,eb.jsxs)(wh,{children:[(0,eb.jsx)(wg,{asChild:!0,children:i}),(0,eb.jsxs)(wN,{children:[t.mode?(0,eb.jsxs)(eb.Fragment,{children:[(0,eb.jsx)(wS,{onSelect:()=>t.onExitMode(),children:"退出编辑模式"}),(0,eb.jsx)(wS,{variant:"destructive",onSelect:()=>t.onDeleteOne(e.id),children:"删除此条"})]}):(0,eb.jsx)(wS,{onSelect:()=>t.onEnterMode(),children:"进入上下文编辑模式"}),(0,eb.jsx)(wC,{}),a?(0,eb.jsx)(wS,{onSelect:()=>t.onRestore(e.id),children:"还原原文"}):(0,eb.jsx)(wS,{onSelect:()=>t.onTranslate(e.id),children:"翻译为中文"})]})]})}function Ue({attachment:e}){return"card"===e.kind?(0,eb.jsxs)("div",{className:"flex h-10 min-w-0 max-w-56 shrink-0 items-center gap-2 overflow-hidden rounded-md border border-border bg-muted/40 px-2",title:e.name,children:[(0,eb.jsx)(k$,{className:"size-4 shrink-0 text-muted-foreground"}),(0,eb.jsxs)("span",{className:"flex min-w-0 flex-col leading-tight",children:[(0,eb.jsx)("span",{className:"truncate text-xs font-medium text-foreground",children:e.name}),(0,eb.jsx)("span",{className:"truncate text-[10px] text-muted-foreground",children:e.cardKind?`卡片 \xb7 ${e.cardKind}`:"卡片"})]})]}):(0,eb.jsx)("div",{className:"size-14 shrink-0 overflow-hidden rounded-md border border-border bg-muted/40",title:e.name,children:"image"===e.kind&&e.url?(0,eb.jsx)("img",{src:e.url,alt:e.name,className:"size-full object-cover"}):(0,eb.jsxs)("div",{className:"flex size-full flex-col items-center justify-center gap-1 px-1 text-center",children:[(0,eb.jsx)(uX,{className:"size-4 text-muted-foreground"}),(0,eb.jsx)("span",{className:"w-full truncate text-[10px] font-semibold uppercase text-muted-foreground",children:e.ext?`.${e.ext}`:"FILE"})]})})}function Ut({event:e,labels:t,onRecallUserMessage:n}){let[r,a]=ew.useState(!1),[i,o]=ew.useState(!1),l=!e.forkInherited&&!!n;async function s(){try{await navigator.clipboard.writeText(e.title??""),o(!0),window.setTimeout(()=>o(!1),1500)}catch{}}return(0,eb.jsxs)("article",{className:"vtl-agent-event-row group","data-kind":e.kind,children:[e.title?(0,eb.jsx)("div",{className:"vtl-agent-user-message-wrap",children:(0,eb.jsx)("div",{className:"vtl-agent-user-message",children:e.title})}):null,e.attachments&&e.attachments.length>0?(0,eb.jsx)("div",{className:"mt-1.5 flex flex-wrap justify-end gap-2",children:e.attachments.map((e,t)=>(0,eb.jsx)(Ue,{attachment:e},t))}):null,(0,eb.jsx)(HD,{className:(0,ez.cn)("absolute top-1/2 right-2 -translate-y-1/2 transition-opacity","opacity-0 focus-within:opacity-100 group-hover:opacity-100 max-md:opacity-100",r&&"opacity-100"),children:(0,eb.jsxs)(wA,{open:r,onOpenChange:a,children:[(0,eb.jsx)(wR,{asChild:!0,children:(0,eb.jsx)(H_,{type:"button","aria-label":t?.more??"更多操作",title:t?.more??"更多操作",children:(0,eb.jsx)(lG,{})})}),(0,eb.jsxs)(wG,{align:"end",sideOffset:6,className:"min-w-44",children:[l?(0,eb.jsxs)(wX,{onSelect:()=>n?.(e),children:[(0,eb.jsx)(HI,{}),(0,eb.jsx)("span",{className:"flex-1",children:t?.recall??"回退对话到此处"})]}):null,(0,eb.jsxs)(wX,{onSelect:e=>{e.preventDefault(),s()},children:[(0,eb.jsx)(lV,{}),(0,eb.jsx)("span",{className:"flex-1",children:i?"已复制":t?.copy??"复制提示词"})]})]})]})})]})}function Un({event:e,labels:t,showActions:n,deliverable:r,contextEdit:a,onBranchAssistantMessage:i}){let[o,l]=ew.useState(!1),s=e.detail?`${e.title}
21
21
 
22
- ${e.detail}`:e.title,c=H3(e,"detail"),d=H3(e,"title")??"",u=c?`${d}${d?"\n\n":""}${c}`:d;async function f(){try{await navigator.clipboard.writeText(s??""),l(!0),window.setTimeout(()=>l(!1),1500)}catch{}}return a?.editingId===e.id&&a?(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:(0,eb.jsx)(w2,{autoFocus:!0,value:a.editDraft??"",onChange:e=>a.onEditDraftChange(e.currentTarget.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key?(e.preventDefault(),a.onSaveEdit()):"Escape"===e.key&&(e.preventDefault(),a.onCancelEdit())},className:"min-h-32 text-sm"})}):(0,eb.jsxs)("article",{className:"vtl-agent-event-row group","data-kind":e.kind,children:[(0,eb.jsx)("div",{"data-streaming":e.isStreaming?"true":"false",className:(0,ez.cn)(H6(e)&&"rounded-md bg-muted p-2"),onDoubleClick:a?t=>{t.preventDefault(),a.onStartEdit(e.id,s??"")}:void 0,children:(0,eb.jsx)(H1,{content:u,isStreaming:e.isStreaming,deliverable:r})}),e.isStreaming||!n?null:(0,eb.jsxs)(HD,{className:(0,ez.cn)("mt-0.5 gap-0.5 transition-opacity","opacity-0 focus-within:opacity-100 group-hover:opacity-100 max-md:opacity-100"),children:[(0,eb.jsx)(H_,{type:"button","aria-label":t?.copyReply??"复制",title:t?.copyReply??"复制",onClick:()=>void f(),children:o?(0,eb.jsx)(h6,{}):(0,eb.jsx)(lV,{})}),i?(0,eb.jsx)(H_,{type:"button","aria-label":t?.branch??"从此处分支对话",title:t?.branch??"从此处分支对话",onClick:()=>i?.(e),children:(0,eb.jsx)(HM,{})}):null]})]})}let Ur=ew.memo(function({event:e,autoOpen:t,showActions:n,labels:r,contextEdit:a,deliverable:i,onOpenFile:o,onOpenSubagent:l,onOpenPlan:s,onOpenSpec:c,onOpenTasks:d,onRecallUserMessage:u,onBranchAssistantMessage:f,onRetry:m,onApprovalDecision:h,onFetchExplanation:p,onContinue:g}){if("approval"===e.kind)return(0,eb.jsx)(Uo,{event:e,onApprovalDecision:h,onFetchExplanation:p});if("user"===e.kind)return(0,eb.jsx)(Ut,{event:e,labels:r,onRecallUserMessage:u});if("assistant"===e.kind||"done"===e.kind)return H2(e)?null:"压缩交接"===e.meta?(0,eb.jsx)(UP,{event:e}):(0,eb.jsx)(Un,{event:e,labels:r,showActions:n,deliverable:i,contextEdit:a,onBranchAssistantMessage:f});if("toolgroup"===e.kind)return(0,eb.jsx)(UO,{event:e,labels:r,onOpenFile:o,onOpenSubagent:l});if(("read"===e.kind||"search"===e.kind||"tool"===e.kind)&&(e.files?.length||e.detail?.trim()))return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:(0,eb.jsx)(Uz,{event:e,autoOpen:t,children:(0,eb.jsx)(Ul,{event:e,onOpenFile:o})})});if("subagent"===e.kind&&e.subagents?.length)return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:(0,eb.jsx)(Up,{event:e,onOpenSubagent:l})});if("change"===e.kind)return(0,eb.jsx)(UA,{event:e,onOpenFile:o});if("thought"===e.kind)return(0,eb.jsx)(UI,{event:e,labels:r});if("compression"===e.kind){let t="running"===e.status||e.isStreaming?"running":"failed"===e.status?"failed":"done";return(0,eb.jsxs)("article",{className:"vtl-agent-event-row","data-kind":"compression",children:[(0,eb.jsxs)("div",{className:"vtl-agent-compression-divider","data-status":t,children:[(0,eb.jsx)("div",{className:"vtl-agent-compression-line"}),(0,eb.jsxs)("span",{className:"vtl-agent-compression-label",children:["running"===t&&(0,eb.jsx)("span",{className:"vtl-agent-compression-spinner","aria-hidden":!0}),e.title]}),(0,eb.jsx)("div",{className:"vtl-agent-compression-line"})]}),e.detail&&(0,eb.jsx)("div",{className:"vtl-agent-compression-detail",children:e.detail})]})}return"plan-answer"===e.kind||"plan-decision"===e.kind?(0,eb.jsx)(Uk,{event:e}):"task"===e.kind?(0,eb.jsx)(Uy,{event:e,onOpenTasks:d}):"plan"===e.kind||"plan-task"===e.kind||"plan-question"===e.kind||"plan-approval"===e.kind||"plan-compact"===e.kind?(0,eb.jsx)(Uw,{event:e,onOpenPlan:s,onOpenSpec:c}):"browser"===e.kind?(0,eb.jsx)(UN,{event:e,deliverable:i}):"skill"===e.kind||"memory"===e.kind?(0,eb.jsx)(US,{event:e}):"agent"===e.kind||"kanban"===e.kind?(0,eb.jsx)(UM,{event:e}):"limit"===e.kind?(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":"limit",children:(0,eb.jsxs)("div",{className:"vtl-agent-limit-card",children:[(0,eb.jsx)("span",{className:"vtl-agent-limit-title",children:e.title}),e.detail&&(0,eb.jsx)("span",{className:"vtl-agent-limit-detail",children:e.detail}),g&&(0,eb.jsxs)(eO.Button,{type:"button",size:"sm",variant:"outline",className:"vtl-agent-limit-continue",onClick:g,children:[(0,eb.jsx)(HE,{className:"mr-1.5 size-3"}),e.actionLabel??"继续"]})]})}):"ask"===e.kind?(0,eb.jsx)(Uj,{event:e}):"error"===e.kind?(0,eb.jsx)(UE,{event:e,onRetry:m}):(0,eb.jsx)(Uv,{event:e})}),Ua={safe:{text:"安全",className:"vtl-approval-badge-safe"},normal:{text:"常规",className:"vtl-approval-badge-normal"},risky:{text:"风险",className:"vtl-approval-badge-risky"},dangerous:{text:"危险",className:"vtl-approval-badge-dangerous"}},Ui={recursive_deletion:"递归删除",force_flag:"强制覆盖",network_access:"网络访问",system_modification:"系统修改",process_management:"进程管理",pipe_to_interpreter:"管道执行",dynamic_execution:"动态执行",git_destructive:"Git 破坏性操作",env_modification:"环境变量修改",registry_modification:"注册表修改",system_destructive:"系统破坏性",parse_error:"解析错误"};function Uo({event:e,onApprovalDecision:t,onFetchExplanation:n}){let r=function(e){if(!e)return null;try{return JSON.parse(e)}catch{return null}}(e.meta),a="pending"===e.status,i="done"===e.status,o="failed"===e.status,l=(r?Ua[r.classification]:void 0)??{text:"常规",className:"vtl-approval-badge-normal"},s=a&&!!r?.autoExplain&&!!n&&!!r?.approvalId,[c,d]=ew.useState(!1),[u,f]=ew.useState(""),[m,h]=ew.useState("idle"),p=ew.useRef(!1),g=ew.useRef(null);ew.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);let x=ew.useCallback(()=>{if(!n||!r?.approvalId)return;let e=r.approvalId,t=Date.now();h("loading");let a=()=>{n(e).then(e=>{if(e?.state==="ready"&&e.explanation.trim()){f(e.explanation),h("ready");return}e?.state==="error"||Date.now()-t>=2e4?h("error"):g.current=setTimeout(a,1500)}).catch(()=>{h("error")})};a()},[n,r?.approvalId]),v=ew.useCallback(()=>{s&&d(e=>{let t=!e;return t&&!p.current&&(p.current=!0,x()),t})},[s,x]);return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":"approval",children:(0,eb.jsxs)("div",{className:(0,ez.cn)("vtl-approval-card",a&&"vtl-approval-pending",i&&"vtl-approval-approved",o&&"vtl-approval-rejected"),children:[(0,eb.jsxs)("div",{className:"vtl-approval-header",children:[(0,eb.jsx)("span",{className:(0,ez.cn)("vtl-approval-badge",l.className),children:l.text}),(0,eb.jsx)("span",{className:"vtl-approval-label",children:a?"需要确认":i?"已放行":"已拒绝"}),r?.toolName&&(0,eb.jsx)("span",{className:"vtl-approval-tool",children:r.toolName})]}),(0,eb.jsx)("div",{className:(0,ez.cn)("vtl-approval-command",s&&"vtl-approval-command-clickable",s&&c&&"vtl-approval-command-open"),...s?{role:"button",tabIndex:0,title:c?"收起说明":"点击查看命令说明",onClick:v,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),v())}}:{},children:(0,eb.jsx)("code",{children:e.title})}),s&&c&&(0,eb.jsx)("div",{className:"vtl-approval-explanation",children:"loading"===m?(0,eb.jsx)("span",{className:"vtl-approval-explanation-loading",children:"正在解释中…"}):"ready"===m?(0,eb.jsx)("span",{className:"vtl-approval-explanation-text",children:u}):(0,eb.jsx)("span",{className:"vtl-approval-explanation-error",children:"暂无说明"})}),e.detail&&!i&&!o&&(0,eb.jsx)("div",{className:"vtl-approval-reason",children:e.detail}),r?.riskFactors&&r.riskFactors.length>0&&a&&(0,eb.jsx)("div",{className:"vtl-approval-risks",children:r.riskFactors.map(e=>(0,eb.jsx)("span",{className:"vtl-approval-risk-tag",children:Ui[e]??e},e))}),(i||o)&&e.detail&&(0,eb.jsx)("div",{className:"vtl-approval-resolved-detail",children:e.detail}),a&&t&&r&&(0,eb.jsxs)("div",{className:"vtl-approval-actions",children:[(0,eb.jsx)("button",{type:"button",className:"vtl-approval-btn vtl-approval-btn-approve",onClick:()=>t(r.approvalId,"approve"),children:"放行"}),(0,eb.jsx)("button",{type:"button",className:"vtl-approval-btn vtl-approval-btn-reject",onClick:()=>t(r.approvalId,"reject"),children:"拒绝"})]})]})})}function Ul({event:e,onOpenFile:t}){if(e.shellMeta)return(0,eb.jsx)(Us,{event:e,onOpenFile:t});let n=function(e){var t;let n=e.files?.map((t,n)=>Ud(e,t,n))??[],r=e.detail?.trim()&&("read"!==e.kind||e.actionLabel?.trim()==="探索")?HF(e.detail.replace(/\r\n/g,"\n")).trimEnd():"";return r?e.actionLabel?.trim()==="探索"?(t=function(e,t){let n,r,a,i,o=(n=[],r=[],a=[],i=null,t.split("\n").forEach((e,t)=>{let o=e.trim();if(!o)return;if(o.startsWith("hint:"))return void a.push({key:`hint-${t}`,label:o.replace(/^hint:\s*/,""),level:0,kind:"hint"});let l=Math.max(0,Math.floor((e.match(/^ */)?.[0].length??0)/2)),s=/[\\/]$/.test(o),c={key:`detail-${t}-${o}`,label:o.replace(/[\\/]+$/,""),level:l,kind:s?"folder":"file"};if(0===l){i={root:c,children:[]},n.push(i);return}i?i.children.push(c):r.push(c)}),{sections:n,orphans:r,hints:a});if(!o.sections.length&&!o.orphans.length)return[...e,...o.hints];let l=new Set,s=[];return e.forEach(e=>{s.push(e);let t=o.sections.findIndex((t,n)=>!l.has(n)&&Uu(t.root.label)===Uu(e.label));t>=0&&(l.add(t),s.push(...function(e,t,n){if(!t)return e;let r=[];return e.map(e=>{var a,i;let o,l=Math.max(0,e.level-1);return(r.length=l,r[l]=e.label,"file"!==e.kind)?e:{...e,file:{id:e.key,name:e.label,machineId:n,path:(a=t,i=r.slice(0,l+1),o=a.includes("\\")?"\\":"/",[a.replace(/[\\/]+$/,""),...i.map(e=>e.replace(/^[\\/]+|[\\/]+$/g,""))].filter(Boolean).join(o))}}})}(o.sections[t]?.children??[],e.file?.path,e.file?.machineId)))}),o.sections.forEach((e,t)=>{l.has(t)||s.push(e.root,...e.children)}),s.push(...o.orphans,...o.hints),s}(n,r)).map((e,n)=>{if(e.level<=0)return e;let r=Array.from({length:e.level-1},(e,r)=>Uf(t,n,r+1));return{...e,branch:{ancestorLines:r,isLast:!Uf(t,n,e.level)}}}):[...n,...r.split("\n").map((e,t)=>{let n=e.trim();return n?n.startsWith("hint:")?{key:`detail-hint-${t}`,label:n.replace(/^hint:\s*/,""),level:0,kind:"hint"}:{key:`detail-plain-${t}`,label:n,level:Math.max(0,Math.floor((e.match(/^ */)?.[0].length??0)/2)),kind:"plain"}:null}).filter(e=>!!e)]:n}(e);return n.length?(0,eb.jsx)("div",{className:"vtl-agent-tool-result","data-kind":e.actionLabel?.trim()==="探索"?"tree":e.kind,children:n.map(e=>(0,eb.jsx)(Uc,{row:e,onOpenFile:t},e.key))}):null}function Us({event:e,onOpenFile:t}){let n=e.shellMeta,r=e.detail?HF(e.detail).trim():void 0,a=e.files?.map((t,n)=>Ud(e,t,n))??[],i=ew.useCallback((e,t)=>{t.stopPropagation(),navigator.clipboard?.writeText(e)},[]),o="completed"===n.status||"done"===n.status?"shell-ok":"failed"===n.status||"timeout"===n.status?"shell-err":"shell-run",l=void 0!==n.exitCode&&null!==n.exitCode?0===n.exitCode:void 0;return(0,eb.jsxs)("div",{className:"vtl-agent-tool-result","data-kind":"shell",children:[(0,eb.jsxs)("div",{className:"vtl-shell-status-bar",children:[n.commandId?(0,eb.jsx)("button",{type:"button",className:"vtl-shell-chip",title:`命令 ID: ${n.commandId}
22
+ ${e.detail}`:e.title,c=H3(e,"detail"),d=H3(e,"title")??"",u=c?`${d}${d?"\n\n":""}${c}`:d,f=function(e,t){let n=ew.useRef(e),r=ew.useRef(e.length),a=ew.useRef(t),i=ew.useRef(null),o=ew.useRef(0),l=ew.useRef(!1),[s,c]=ew.useState(e.length),d=ew.useRef(s);d.current=s,a.current=t;let u=ew.useCallback(()=>{null!=i.current&&(cancelAnimationFrame(i.current),i.current=null)},[]),f=ew.useCallback(e=>{let t=o.current||e,l=(e-t)/1e3;o.current=e,l>.1&&(l=.1),l<0&&(l=0);let s=n.current.length,u=s-r.current;if(u<=0){r.current=s,i.current=null;return}let m=u*(1-Math.exp(-l/(a.current?.32:.12))),h=90*l;m<h&&(m=h),r.current=Math.min(s,r.current+m);let p=Math.floor(r.current);p!==d.current&&(d.current=p,c(p)),i.current=r.current<s?requestAnimationFrame(f):null},[]),m=ew.useCallback(()=>{l.current||null!=i.current||(o.current=0,i.current=requestAnimationFrame(f))},[f]);return ew.useEffect(()=>{l.current="function"==typeof window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches},[]),ew.useEffect(()=>{let t=n.current;if(n.current=e,l.current||!e.startsWith(t)){var a;return void(a=e.length,u(),r.current=a,d.current!==a&&(d.current=a,c(a)))}r.current<e.length&&m()},[e,m,u]),ew.useEffect(()=>{!l.current&&r.current<n.current.length&&m()},[t,m]),ew.useEffect(()=>u,[u]),e.slice(0,Math.min(s,e.length))}(u,!!e.isStreaming),m=f.length<u.length;async function h(){try{await navigator.clipboard.writeText(s??""),l(!0),window.setTimeout(()=>l(!1),1500)}catch{}}return a?.editingId===e.id&&a?(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:(0,eb.jsx)(w2,{autoFocus:!0,value:a.editDraft??"",onChange:e=>a.onEditDraftChange(e.currentTarget.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key?(e.preventDefault(),a.onSaveEdit()):"Escape"===e.key&&(e.preventDefault(),a.onCancelEdit())},className:"min-h-32 text-sm"})}):(0,eb.jsxs)("article",{className:"vtl-agent-event-row group","data-kind":e.kind,children:[(0,eb.jsx)("div",{"data-streaming":e.isStreaming||m?"true":"false",className:(0,ez.cn)(H6(e)&&"rounded-md bg-muted p-2"),onDoubleClick:a?t=>{t.preventDefault(),a.onStartEdit(e.id,s??"")}:void 0,children:(0,eb.jsx)(H1,{content:f,isStreaming:!!e.isStreaming||m,deliverable:r})}),e.isStreaming||m||!n?null:(0,eb.jsxs)(HD,{className:(0,ez.cn)("mt-0.5 gap-0.5 transition-opacity","opacity-0 focus-within:opacity-100 group-hover:opacity-100 max-md:opacity-100"),children:[(0,eb.jsx)(H_,{type:"button","aria-label":t?.copyReply??"复制",title:t?.copyReply??"复制",onClick:()=>void h(),children:o?(0,eb.jsx)(h6,{}):(0,eb.jsx)(lV,{})}),i?(0,eb.jsx)(H_,{type:"button","aria-label":t?.branch??"从此处分支对话",title:t?.branch??"从此处分支对话",onClick:()=>i?.(e),children:(0,eb.jsx)(HM,{})}):null]})]})}let Ur=ew.memo(function({event:e,autoOpen:t,showActions:n,labels:r,contextEdit:a,deliverable:i,onOpenFile:o,onOpenSubagent:l,onOpenPlan:s,onOpenSpec:c,onOpenTasks:d,onRecallUserMessage:u,onBranchAssistantMessage:f,onRetry:m,onApprovalDecision:h,onFetchExplanation:p,onContinue:g}){if("approval"===e.kind)return(0,eb.jsx)(Uo,{event:e,onApprovalDecision:h,onFetchExplanation:p});if("user"===e.kind)return(0,eb.jsx)(Ut,{event:e,labels:r,onRecallUserMessage:u});if("assistant"===e.kind||"done"===e.kind)return H2(e)?null:"压缩交接"===e.meta?(0,eb.jsx)(UP,{event:e}):(0,eb.jsx)(Un,{event:e,labels:r,showActions:n,deliverable:i,contextEdit:a,onBranchAssistantMessage:f});if("toolgroup"===e.kind)return(0,eb.jsx)(UO,{event:e,labels:r,onOpenFile:o,onOpenSubagent:l});if(("read"===e.kind||"search"===e.kind||"tool"===e.kind)&&(e.files?.length||e.detail?.trim()))return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:(0,eb.jsx)(Uz,{event:e,autoOpen:t,children:(0,eb.jsx)(Ul,{event:e,onOpenFile:o})})});if("subagent"===e.kind&&e.subagents?.length)return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:(0,eb.jsx)(Up,{event:e,onOpenSubagent:l})});if("change"===e.kind)return(0,eb.jsx)(UA,{event:e,onOpenFile:o});if("thought"===e.kind)return(0,eb.jsx)(UI,{event:e,labels:r});if("compression"===e.kind){let t="running"===e.status||e.isStreaming?"running":"failed"===e.status?"failed":"done";return(0,eb.jsxs)("article",{className:"vtl-agent-event-row","data-kind":"compression",children:[(0,eb.jsxs)("div",{className:"vtl-agent-compression-divider","data-status":t,children:[(0,eb.jsx)("div",{className:"vtl-agent-compression-line"}),(0,eb.jsxs)("span",{className:"vtl-agent-compression-label",children:["running"===t&&(0,eb.jsx)("span",{className:"vtl-agent-compression-spinner","aria-hidden":!0}),e.title]}),(0,eb.jsx)("div",{className:"vtl-agent-compression-line"})]}),e.detail&&(0,eb.jsx)("div",{className:"vtl-agent-compression-detail",children:e.detail})]})}return"plan-answer"===e.kind||"plan-decision"===e.kind?(0,eb.jsx)(Uk,{event:e}):"task"===e.kind?(0,eb.jsx)(Uy,{event:e,onOpenTasks:d}):"plan"===e.kind||"plan-task"===e.kind||"plan-question"===e.kind||"plan-approval"===e.kind||"plan-compact"===e.kind?(0,eb.jsx)(Uw,{event:e,onOpenPlan:s,onOpenSpec:c}):"browser"===e.kind?(0,eb.jsx)(UN,{event:e,deliverable:i}):"skill"===e.kind||"memory"===e.kind?(0,eb.jsx)(US,{event:e}):"agent"===e.kind||"kanban"===e.kind?(0,eb.jsx)(UM,{event:e}):"limit"===e.kind?(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":"limit",children:(0,eb.jsxs)("div",{className:"vtl-agent-limit-card",children:[(0,eb.jsx)("span",{className:"vtl-agent-limit-title",children:e.title}),e.detail&&(0,eb.jsx)("span",{className:"vtl-agent-limit-detail",children:e.detail}),g&&(0,eb.jsxs)(eO.Button,{type:"button",size:"sm",variant:"outline",className:"vtl-agent-limit-continue",onClick:g,children:[(0,eb.jsx)(HE,{className:"mr-1.5 size-3"}),e.actionLabel??"继续"]})]})}):"ask"===e.kind?(0,eb.jsx)(Uj,{event:e}):"error"===e.kind?(0,eb.jsx)(UE,{event:e,onRetry:m}):(0,eb.jsx)(Uv,{event:e})}),Ua={safe:{text:"安全",className:"vtl-approval-badge-safe"},normal:{text:"常规",className:"vtl-approval-badge-normal"},risky:{text:"风险",className:"vtl-approval-badge-risky"},dangerous:{text:"危险",className:"vtl-approval-badge-dangerous"}},Ui={recursive_deletion:"递归删除",force_flag:"强制覆盖",network_access:"网络访问",system_modification:"系统修改",process_management:"进程管理",pipe_to_interpreter:"管道执行",dynamic_execution:"动态执行",git_destructive:"Git 破坏性操作",env_modification:"环境变量修改",registry_modification:"注册表修改",system_destructive:"系统破坏性",parse_error:"解析错误"};function Uo({event:e,onApprovalDecision:t,onFetchExplanation:n}){let r=function(e){if(!e)return null;try{return JSON.parse(e)}catch{return null}}(e.meta),a="pending"===e.status,i="done"===e.status,o="failed"===e.status,l=(r?Ua[r.classification]:void 0)??{text:"常规",className:"vtl-approval-badge-normal"},s=a&&!!r?.autoExplain&&!!n&&!!r?.approvalId,[c,d]=ew.useState(!1),[u,f]=ew.useState(""),[m,h]=ew.useState("idle"),p=ew.useRef(!1),g=ew.useRef(null);ew.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);let x=ew.useCallback(()=>{if(!n||!r?.approvalId)return;let e=r.approvalId,t=Date.now();h("loading");let a=()=>{n(e).then(e=>{if(e?.state==="ready"&&e.explanation.trim()){f(e.explanation),h("ready");return}e?.state==="error"||Date.now()-t>=2e4?h("error"):g.current=setTimeout(a,1500)}).catch(()=>{h("error")})};a()},[n,r?.approvalId]),v=ew.useCallback(()=>{s&&d(e=>{let t=!e;return t&&!p.current&&(p.current=!0,x()),t})},[s,x]);return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":"approval",children:(0,eb.jsxs)("div",{className:(0,ez.cn)("vtl-approval-card",a&&"vtl-approval-pending",i&&"vtl-approval-approved",o&&"vtl-approval-rejected"),children:[(0,eb.jsxs)("div",{className:"vtl-approval-header",children:[(0,eb.jsx)("span",{className:(0,ez.cn)("vtl-approval-badge",l.className),children:l.text}),(0,eb.jsx)("span",{className:"vtl-approval-label",children:a?"需要确认":i?"已放行":"已拒绝"}),r?.toolName&&(0,eb.jsx)("span",{className:"vtl-approval-tool",children:r.toolName})]}),(0,eb.jsx)("div",{className:(0,ez.cn)("vtl-approval-command",s&&"vtl-approval-command-clickable",s&&c&&"vtl-approval-command-open"),...s?{role:"button",tabIndex:0,title:c?"收起说明":"点击查看命令说明",onClick:v,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),v())}}:{},children:(0,eb.jsx)("code",{children:e.title})}),s&&c&&(0,eb.jsx)("div",{className:"vtl-approval-explanation",children:"loading"===m?(0,eb.jsx)("span",{className:"vtl-approval-explanation-loading",children:"正在解释中…"}):"ready"===m?(0,eb.jsx)("span",{className:"vtl-approval-explanation-text",children:u}):(0,eb.jsx)("span",{className:"vtl-approval-explanation-error",children:"暂无说明"})}),e.detail&&!i&&!o&&(0,eb.jsx)("div",{className:"vtl-approval-reason",children:e.detail}),r?.riskFactors&&r.riskFactors.length>0&&a&&(0,eb.jsx)("div",{className:"vtl-approval-risks",children:r.riskFactors.map(e=>(0,eb.jsx)("span",{className:"vtl-approval-risk-tag",children:Ui[e]??e},e))}),(i||o)&&e.detail&&(0,eb.jsx)("div",{className:"vtl-approval-resolved-detail",children:e.detail}),a&&t&&r&&(0,eb.jsxs)("div",{className:"vtl-approval-actions",children:[(0,eb.jsx)("button",{type:"button",className:"vtl-approval-btn vtl-approval-btn-approve",onClick:()=>t(r.approvalId,"approve"),children:"放行"}),(0,eb.jsx)("button",{type:"button",className:"vtl-approval-btn vtl-approval-btn-reject",onClick:()=>t(r.approvalId,"reject"),children:"拒绝"})]})]})})}function Ul({event:e,onOpenFile:t}){if(e.shellMeta)return(0,eb.jsx)(Us,{event:e,onOpenFile:t});let n=function(e){var t;let n=e.files?.map((t,n)=>Ud(e,t,n))??[],r=e.detail?.trim()&&("read"!==e.kind||e.actionLabel?.trim()==="探索")?HF(e.detail.replace(/\r\n/g,"\n")).trimEnd():"";return r?e.actionLabel?.trim()==="探索"?(t=function(e,t){let n,r,a,i,o=(n=[],r=[],a=[],i=null,t.split("\n").forEach((e,t)=>{let o=e.trim();if(!o)return;if(o.startsWith("hint:"))return void a.push({key:`hint-${t}`,label:o.replace(/^hint:\s*/,""),level:0,kind:"hint"});let l=Math.max(0,Math.floor((e.match(/^ */)?.[0].length??0)/2)),s=/[\\/]$/.test(o),c={key:`detail-${t}-${o}`,label:o.replace(/[\\/]+$/,""),level:l,kind:s?"folder":"file"};if(0===l){i={root:c,children:[]},n.push(i);return}i?i.children.push(c):r.push(c)}),{sections:n,orphans:r,hints:a});if(!o.sections.length&&!o.orphans.length)return[...e,...o.hints];let l=new Set,s=[];return e.forEach(e=>{s.push(e);let t=o.sections.findIndex((t,n)=>!l.has(n)&&Uu(t.root.label)===Uu(e.label));t>=0&&(l.add(t),s.push(...function(e,t,n){if(!t)return e;let r=[];return e.map(e=>{var a,i;let o,l=Math.max(0,e.level-1);return(r.length=l,r[l]=e.label,"file"!==e.kind)?e:{...e,file:{id:e.key,name:e.label,machineId:n,path:(a=t,i=r.slice(0,l+1),o=a.includes("\\")?"\\":"/",[a.replace(/[\\/]+$/,""),...i.map(e=>e.replace(/^[\\/]+|[\\/]+$/g,""))].filter(Boolean).join(o))}}})}(o.sections[t]?.children??[],e.file?.path,e.file?.machineId)))}),o.sections.forEach((e,t)=>{l.has(t)||s.push(e.root,...e.children)}),s.push(...o.orphans,...o.hints),s}(n,r)).map((e,n)=>{if(e.level<=0)return e;let r=Array.from({length:e.level-1},(e,r)=>Uf(t,n,r+1));return{...e,branch:{ancestorLines:r,isLast:!Uf(t,n,e.level)}}}):[...n,...r.split("\n").map((e,t)=>{let n=e.trim();return n?n.startsWith("hint:")?{key:`detail-hint-${t}`,label:n.replace(/^hint:\s*/,""),level:0,kind:"hint"}:{key:`detail-plain-${t}`,label:n,level:Math.max(0,Math.floor((e.match(/^ */)?.[0].length??0)/2)),kind:"plain"}:null}).filter(e=>!!e)]:n}(e);return n.length?(0,eb.jsx)("div",{className:"vtl-agent-tool-result","data-kind":e.actionLabel?.trim()==="探索"?"tree":e.kind,children:n.map(e=>(0,eb.jsx)(Uc,{row:e,onOpenFile:t},e.key))}):null}function Us({event:e,onOpenFile:t}){let n=e.shellMeta,r=e.detail?HF(e.detail).trim():void 0,a=e.files?.map((t,n)=>Ud(e,t,n))??[],i=ew.useCallback((e,t)=>{t.stopPropagation(),navigator.clipboard?.writeText(e)},[]),o="completed"===n.status||"done"===n.status?"shell-ok":"failed"===n.status||"timeout"===n.status?"shell-err":"shell-run",l=void 0!==n.exitCode&&null!==n.exitCode?0===n.exitCode:void 0;return(0,eb.jsxs)("div",{className:"vtl-agent-tool-result","data-kind":"shell",children:[(0,eb.jsxs)("div",{className:"vtl-shell-status-bar",children:[n.commandId?(0,eb.jsx)("button",{type:"button",className:"vtl-shell-chip",title:`命令 ID: ${n.commandId}
23
23
  点击复制`,onClick:e=>i(n.commandId,e),children:n.commandId}):null,n.logId?(0,eb.jsx)("button",{type:"button",className:"vtl-shell-chip",title:`日志 ID: ${n.logId}
24
24
  点击复制`,onClick:e=>i(n.logId,e),children:n.logId.replace(/^artifacts\//,"")}):null,n.cwd?(0,eb.jsx)("button",{type:"button",className:"vtl-shell-chip vtl-shell-chip-cwd",title:`工作目录: ${n.cwd}
25
25
  点击复制`,onClick:e=>i(n.cwd,e),children:n.cwd}):null,(0,eb.jsx)("span",{className:"vtl-shell-spacer"}),n.status?(0,eb.jsx)("span",{className:`vtl-shell-badge ${o}`,children:n.status}):null,void 0!==l?(0,eb.jsxs)("span",{className:`vtl-shell-badge ${l?"shell-ok":"shell-err"}`,children:["exit ",n.exitCode]}):null,n.durationMs?(0,eb.jsx)("span",{className:"vtl-shell-badge shell-time",children:n.durationMs>=1e3?`${(n.durationMs/1e3).toFixed(1)}s`:`${n.durationMs}ms`}):null]}),r?(0,eb.jsx)("pre",{className:"vtl-shell-output",children:r}):null,a.length>0?(0,eb.jsx)("div",{className:"vtl-agent-tool-result","data-kind":"tool",children:a.map(e=>(0,eb.jsx)(Uc,{row:e,onOpenFile:t},e.key))}):null]})}function Uc({row:e,onOpenFile:t}){let n=(0,eb.jsxs)(eb.Fragment,{children:[(0,eb.jsxs)("span",{className:"vtl-agent-tool-row-tree","aria-hidden":"true","data-level":e.level,children:[e.branch?.ancestorLines.map((e,t)=>(0,eb.jsx)("span",{className:"vtl-agent-tool-row-tree-ancestor","data-active":e?"true":void 0},`ancestor-${t}`)),e.level>0?(0,eb.jsx)("span",{className:"vtl-agent-tool-row-tree-elbow","data-last":e.branch?.isLast?"true":void 0}):null,(0,eb.jsx)("span",{className:"vtl-agent-tool-row-icon",children:"folder"===e.kind?"▾":""})]}),(0,eb.jsx)("span",{className:"vtl-agent-tool-row-label",children:e.label}),e.meta?(0,eb.jsx)("em",{children:e.meta}):null]}),r={"--tool-tree-indent":`${13*Math.min(e.level,8)}px`,"--tool-tree-level":Math.min(e.level,8)};return e.file&&"file"===e.kind?(0,eb.jsx)("button",{type:"button",className:"vtl-agent-tool-row","data-kind":e.kind,style:r,onClick:()=>t?.(e.file),children:n}):(0,eb.jsx)("div",{className:"vtl-agent-tool-row","data-kind":e.kind,style:r,children:n})}function Ud(e,t,n){let r=e.actionLabel?.trim()==="探索"||t.meta?.toLowerCase().startsWith("depth")||/[\\/]$/.test(t.name)||!!(t.path&&/[\\/]$/.test(t.path)),a=UT(t.name||t.path||"untitled");return{key:t.id??`file-${n}-${t.path??t.name}`,label:a,level:0,kind:r?"folder":"file",meta:t.lines??t.meta,file:t}}function Uu(e){return UT(e.replace(/[\\/]+$/,"")).toLowerCase()}function Uf(e,t,n){for(let r=t+1;r<e.length;r+=1){let t=e[r]?.level??0;if(t<n)break;if(t===n)return!0}return!1}let Um={explore:{label:"探索",color:"text-sky-600 dark:text-sky-400",Icon:HC},workflow:{label:"工作流",color:"text-violet-600 dark:text-violet-400",Icon:u1},operator:{label:"操作员",color:"text-pink-600 dark:text-pink-400",Icon:u0},custom:{label:"自定义",color:"text-amber-600 dark:text-amber-400",Icon:uH}};function Uh(e){return Um[e??""]??{label:"子代理",color:"text-muted-foreground",Icon:uH}}function Up({event:e,onOpenSubagent:t}){return(0,eb.jsx)("div",{className:"grid gap-2",children:e.subagents?.map(n=>(0,eb.jsx)(Ug,{subagent:n,event:e,onOpenSubagent:t},n.id||n.title))})}function Ug({subagent:e,event:t,onOpenSubagent:n}){let[r,a]=ew.useState(!1),i=Uh(e.subagentType),o=e.status??(e.isRunning?"running":"done"),l=!!e.isRunning||"running"===o,s="failed"===o,c=e.name||`${i.label}子代理`,d=(e.result??t.detail??"").trim(),u=i.Icon,f=!!e.inline;return(0,eb.jsxs)("section",{className:(0,ez.cn)("overflow-hidden rounded-lg border bg-card/60",s&&"border-destructive/40"),"data-subagent-card":!0,"data-running":l?"true":void 0,children:[f?(0,eb.jsxs)("div",{className:"flex w-full items-center gap-2.5 px-3 py-2 text-left",children:[(0,eb.jsx)("span",{className:(0,ez.cn)("flex size-6 shrink-0 items-center justify-center rounded-md bg-muted/60",i.color),children:(0,eb.jsx)(u,{className:"size-3.5"})}),(0,eb.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,eb.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] font-medium",children:[(0,eb.jsx)("span",{className:"truncate",children:c}),(0,eb.jsx)("span",{className:"shrink-0 rounded bg-muted px-1 py-px text-[10px] font-normal text-muted-foreground",children:i.label})]}),e.title?(0,eb.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:e.title}):null]}),(0,eb.jsx)(Ux,{status:o,running:l})]}):(0,eb.jsxs)("button",{type:"button",className:"flex w-full items-center gap-2.5 px-3 py-2 text-left transition-colors hover:bg-accent/40",onClick:()=>n?.(e,t),title:"打开子代理对话",children:[(0,eb.jsx)("span",{className:(0,ez.cn)("flex size-6 shrink-0 items-center justify-center rounded-md bg-muted/60",i.color),children:(0,eb.jsx)(u,{className:"size-3.5"})}),(0,eb.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col",children:[(0,eb.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] font-medium",children:[(0,eb.jsx)("span",{className:"truncate",children:c}),(0,eb.jsx)("span",{className:"shrink-0 rounded bg-muted px-1 py-px text-[10px] font-normal text-muted-foreground",children:i.label})]}),e.title?(0,eb.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:e.title}):null]}),(0,eb.jsx)(Ux,{status:o,running:l})]}),d?(0,eb.jsx)("div",{className:"border-t",children:f?(0,eb.jsx)("div",{className:"max-h-72 overflow-auto whitespace-pre-wrap px-3 py-2 text-xs leading-relaxed text-foreground/80",children:d}):(0,eb.jsxs)(eb.Fragment,{children:[(0,eb.jsxs)("button",{type:"button",className:"flex w-full items-center gap-1 px-3 py-1.5 text-left text-xs text-muted-foreground transition-colors hover:text-foreground",onClick:()=>a(e=>!e),"aria-expanded":r,children:[(0,eb.jsx)(h7,{className:(0,ez.cn)("size-3 transition-transform",r&&"rotate-90")}),r?"收起结果":"查看结果"]}),r?(0,eb.jsx)("div",{className:"max-h-72 overflow-auto whitespace-pre-wrap px-3 pb-3 text-xs leading-relaxed text-foreground/80",children:d}):null]})}):null]})}function Ux({status:e,running:t}){return t?(0,eb.jsxs)("span",{className:"flex shrink-0 items-center gap-1 text-xs text-muted-foreground",children:[(0,eb.jsx)(eM,{className:"size-3 animate-spin"}),"运行中"]}):"failed"===e?(0,eb.jsxs)("span",{className:"flex shrink-0 items-center gap-1 text-xs text-destructive",children:[(0,eb.jsx)(m0,{className:"size-3"}),"失败"]}):(0,eb.jsxs)("span",{className:"flex shrink-0 items-center gap-1 text-xs text-emerald-600 dark:text-emerald-500",children:[(0,eb.jsx)(eI,{className:"size-3"}),"完成"]})}function Uv({event:e}){let t=H6(e);return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:(0,eb.jsxs)("p",{className:(0,ez.cn)("vtl-agent-action-line",t&&"rounded-md bg-muted p-2"),children:[e.actionLabel?(0,eb.jsx)("strong",{children:e.actionLabel}):null,H3(e,"title"),e.meta?(0,eb.jsx)("em",{children:e.meta}):null]})})}function Ub(e){return e.replace(/^(?:[\u{1F000}-\u{1FAFF}\u{2600}-\u{27BF}✅❌✓▶️]+)\s*/u,"").trim()}function Uy({event:e,onOpenTasks:t}){let n=e.tasks??[],r=n.length,a=n.filter(e=>"done"===e.status).length,i=n.find(e=>"in_progress"===e.status)??n.find(e=>"pending"===e.status)??n[r-1];return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":"task",children:(0,eb.jsxs)("button",{type:"button",className:"vtl-agent-event-read-line",onClick:t,children:[(0,eb.jsx)("span",{children:"任务"}),(0,eb.jsxs)("span",{className:"tabular-nums",children:[a,"/",r]}),i?(0,eb.jsx)("em",{className:"truncate text-muted-foreground",children:i.title}):(0,eb.jsx)("em",{className:"text-muted-foreground",children:"暂无任务"})]})})}function Uw({event:e,onOpenPlan:t,onOpenSpec:n}){let r="plan-question"===e.kind||"plan-approval"===e.kind,[a,i]=ew.useState(r),{category:o,action:l}=function(e){let t=Ub(e.title);if("plan-task"===e.kind){let e=t;return t.includes("活动任务")?e="更新活动任务":(t.includes("任务已更新")||"任务已更新"===t)&&(e="更新任务状态"),{category:"任务",action:e}}if("plan-question"===e.kind)return{category:"计划",action:"向用户提问"};if("plan-approval"===e.kind)return{category:"计划",action:"等待批准"};if("plan-compact"===e.kind)return{category:"计划",action:"压缩上下文"};let n=t;return t.includes("编译")?n="编译计划树":t.includes("规范")?n="更新规范":t.includes("计划")&&(n="更新计划"),{category:"计划",action:n}}(e),s=e.specPath?()=>n?.(e.specPath):void 0,c=!s&&("plan"===e.kind||"plan-approval"===e.kind||e.planDocPath)?t:void 0,d=s??c,u=e.applied??[],f=e.questions??[],m=e.detail?.trim()??"",h=!!m||u.length>0||f.length>0||!!d||"number"==typeof e.keepFileRefs;return(0,eb.jsxs)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:[(0,eb.jsxs)("button",{type:"button",className:"vtl-agent-event-read-line",onClick:()=>h&&i(e=>!e),"aria-expanded":a,children:[(0,eb.jsx)("span",{children:o}),l]}),h?(0,eb.jsx)("div",{className:(0,ez.cn)("grid overflow-hidden transition-[grid-template-rows,opacity,transform] duration-200 ease-out",a?"translate-y-0 grid-rows-[1fr] opacity-100":"-translate-y-1 grid-rows-[0fr] opacity-0"),children:(0,eb.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,eb.jsxs)("div",{className:"mt-1 space-y-1.5 border-l border-border/60 pl-2 text-xs text-muted-foreground",children:[f.length>0?(0,eb.jsx)("ul",{className:"space-y-1",children:f.map((t,n)=>(0,eb.jsxs)("li",{children:[(0,eb.jsx)("div",{className:"text-foreground/80",children:t.text}),t.options&&t.options.length>0?(0,eb.jsx)("div",{className:"mt-0.5 flex flex-wrap gap-1",children:t.options.map((t,r)=>(0,eb.jsx)("span",{className:"rounded border border-border/60 px-1.5 py-0.5",children:t},`${e.id}-q-${n}-o-${r}`))}):null]},t.id||`${e.id}-q-${n}`))}):m?(0,eb.jsx)("p",{className:"whitespace-pre-wrap break-words",children:m}):null,"number"==typeof e.keepFileRefs?(0,eb.jsx)("p",{children:`保留 ${e.keepFileRefs} 处文件引用`}):null,u.length>0?(0,eb.jsx)("ul",{className:"space-y-0.5",children:u.map((t,n)=>(0,eb.jsxs)("li",{className:"truncate",children:["✓ ",t]},`${e.id}-applied-${n}`))}):null,d?(0,eb.jsx)("button",{type:"button",className:"text-sky-teal hover:underline",onClick:d,children:s?"查看规范":"查看计划"}):null]})})}):null]})}function Uj({event:e}){let t=H3(e,"detail")||H3(e,"title");return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":"ask",children:(0,eb.jsxs)("p",{className:"vtl-agent-action-line",children:[(0,eb.jsx)("strong",{children:"提问"}),t]})})}function Uk({event:e}){let t=Ub(e.title);return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:(0,eb.jsxs)("p",{className:"vtl-agent-action-line",children:[t,e.detail?.trim()?(0,eb.jsx)("em",{children:e.detail.trim()}):null]})})}function UN({event:e,deliverable:t}){let[n,r]=ew.useState(!1),{category:a,action:i}=function(e){let t=Ub(e.title);for(let[e,n]of[[/^(navigate|go_to|goto)\b/i,"导航"],[/^click\b/i,"点击"],[/^(type|input)\b/i,"输入"],[/^scroll\b/i,"滚动"],[/^(key|send_keys)\b/i,"按键"],[/^(back|go_back)\b/i,"返回"],[/^find\b/i,"查找"],[/^extract\b/i,"提取"],[/^screenshot\b/i,"截图"],[/^(switch_tab|switch)\b/i,"切换标签"],[/^close_tab\b/i,"关闭标签"],[/^tabs?\b/i,"标签页"],[/^state\b/i,"读取状态"]])if(e.test(t)){let r=t.replace(e,"").trim();return{category:"浏览",action:r?`${n} ${r}`:n}}return{category:"浏览",action:t}}(e),o=e.detail?.trim()??"",l=!!o,s=e.screenshotPath?.trim(),c=s?t?.resolveImageSrc?.(s)??s:"";return(0,eb.jsxs)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:[(0,eb.jsxs)("button",{type:"button",className:"vtl-agent-event-read-line",onClick:()=>l&&r(e=>!e),"aria-expanded":n,children:[(0,eb.jsx)("span",{children:a}),i]}),l?(0,eb.jsx)("div",{className:(0,ez.cn)("grid overflow-hidden transition-[grid-template-rows,opacity,transform] duration-200 ease-out",n?"translate-y-0 grid-rows-[1fr] opacity-100":"-translate-y-1 grid-rows-[0fr] opacity-0"),children:(0,eb.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,eb.jsx)("div",{className:"mt-1 space-y-1.5 border-l border-border/60 pl-2 text-xs text-muted-foreground",children:(0,eb.jsx)("p",{className:"whitespace-pre-wrap break-words",children:o})})})}):null,c?(0,eb.jsx)("div",{className:"mt-1.5",children:(0,eb.jsx)(HH,{src:c,alt:"浏览器截图"})}):null]})}function US({event:e}){let[t,n]=ew.useState(!1),r="skill"===e.kind?"技能":"记忆",a=Ub(e.title),i=e.detail?.trim()??"",o=!!i;return(0,eb.jsxs)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:[(0,eb.jsxs)("button",{type:"button",className:"vtl-agent-event-read-line",onClick:()=>o&&n(e=>!e),"aria-expanded":t,children:[(0,eb.jsx)("span",{children:r}),a]}),o?(0,eb.jsx)("div",{className:(0,ez.cn)("grid overflow-hidden transition-[grid-template-rows,opacity,transform] duration-200 ease-out",t?"translate-y-0 grid-rows-[1fr] opacity-100":"-translate-y-1 grid-rows-[0fr] opacity-0"),children:(0,eb.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,eb.jsx)("div",{className:"mt-1 space-y-1.5 border-l border-border/60 pl-2 text-xs text-muted-foreground",children:(0,eb.jsx)("p",{className:"whitespace-pre-wrap break-words",children:i})})})}):null]})}let UC={backlog:"待办池",todo:"待办",in_progress:"进行中",blocked:"受阻",review:"评审",done:"完成",cancelled:"已取消"};function UM({event:e}){let[t,n]=ew.useState(!1),r="agent"===e.kind?"同伴":"看板",a=Ub(e.title),i=e.detail?.trim()??"",o=!!i,l=function(e){if("agent"===e.kind)return!0===e.delivered?"已送达":!0===e.woke?"已唤醒":e.peerConversationId&&/消息/.test(e.title)?"已排队":"";let t=e.kanbanStatus?.trim()||("string"==typeof e.status&&UC[e.status]?e.status:"");return t?UC[t]??t:""}(e);return(0,eb.jsxs)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:[(0,eb.jsxs)("button",{type:"button",className:"vtl-agent-event-read-line",onClick:()=>o&&n(e=>!e),"aria-expanded":t,children:[(0,eb.jsx)("span",{children:r}),a,l?(0,eb.jsx)("em",{className:"ml-1.5 text-[11px] not-italic text-muted-foreground/80",children:l}):null]}),o?(0,eb.jsx)("div",{className:(0,ez.cn)("grid overflow-hidden transition-[grid-template-rows,opacity,transform] duration-200 ease-out",t?"translate-y-0 grid-rows-[1fr] opacity-100":"-translate-y-1 grid-rows-[0fr] opacity-0"),children:(0,eb.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,eb.jsx)("div",{className:"mt-1 space-y-1.5 border-l border-border/60 pl-2 text-xs text-muted-foreground",children:(0,eb.jsx)("p",{className:"whitespace-pre-wrap break-words",children:i})})})}):null]})}function UE({event:e,onRetry:t}){return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:(0,eb.jsxs)("div",{className:"vtl-agent-error-card",children:[(0,eb.jsxs)("div",{className:"vtl-agent-error-card-body",children:[(0,eb.jsxs)("span",{children:[e.meta?(0,eb.jsx)("strong",{children:e.meta}):null,e.title]}),e.detail?(0,eb.jsx)("p",{children:e.detail}):null]}),e.retryable&&t?(0,eb.jsxs)("button",{type:"button",className:"vtl-agent-error-retry",onClick:()=>t(e),children:[(0,eb.jsx)(yt,{className:"size-3.5"}),"重试"]}):null]})})}function UI({event:e,labels:t}){let[n,r]=ew.useState(!!e.isStreaming),a=!!e.detail?.trim(),i=e.title||t?.thinking||"思考中";return ew.useEffect(()=>{r(!!e.isStreaming)},[e.isStreaming]),(0,eb.jsxs)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:[(0,eb.jsxs)("button",{type:"button",className:"vtl-agent-thought-line","data-streaming":e.isStreaming?"true":"false","aria-expanded":n,onClick:()=>a&&r(e=>!e),children:[(0,eb.jsx)("span",{children:i}),e.meta?(0,eb.jsx)("em",{children:e.meta}):null]}),a?(0,eb.jsx)("div",{className:(0,ez.cn)("grid overflow-hidden transition-[grid-template-rows,opacity,transform] duration-200 ease-out",n?"translate-y-0 grid-rows-[1fr] opacity-100":"-translate-y-1 grid-rows-[0fr] opacity-0"),children:(0,eb.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,eb.jsx)("div",{className:"vtl-agent-thought-detail",children:(0,eb.jsx)(H1,{content:e.detail??"",isStreaming:e.isStreaming})})})}):null]})}function UP({event:e}){let[t,n]=ew.useState(!1),r=H3(e,"title")??e.title??"",a=!!r.trim();return(0,eb.jsxs)("article",{className:"vtl-agent-event-row","data-kind":"compaction-handoff",children:[(0,eb.jsx)("button",{type:"button",className:"vtl-agent-thought-line","data-streaming":"false","aria-expanded":t,onClick:()=>a&&n(e=>!e),children:(0,eb.jsxs)("span",{children:["压缩交接摘要",t?"":"(点击展开)"]})}),a?(0,eb.jsx)("div",{className:(0,ez.cn)("grid overflow-hidden transition-[grid-template-rows,opacity,transform] duration-200 ease-out",t?"translate-y-0 grid-rows-[1fr] opacity-100":"-translate-y-1 grid-rows-[0fr] opacity-0"),children:(0,eb.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,eb.jsx)("div",{className:"vtl-agent-thought-detail",children:(0,eb.jsx)(H1,{content:r,isStreaming:e.isStreaming})})})}):null]})}function UO({event:e,labels:t,onOpenFile:n,onOpenSubagent:r}){let[a,i]=ew.useState(!1),o=e.groupedEvents??[];return(0,eb.jsxs)("article",{className:"vtl-agent-event-row","data-kind":"toolgroup",children:[(0,eb.jsxs)("button",{type:"button",className:"vtl-agent-event-read-line",onClick:()=>i(e=>!e),"aria-expanded":a,children:[(0,eb.jsx)("span",{children:a?"收起":"展开"}),e.title]}),(0,eb.jsx)("div",{className:(0,ez.cn)("grid overflow-hidden transition-[grid-template-rows,opacity] duration-200 ease-out",a?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:(0,eb.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,eb.jsx)("div",{className:"mt-1 space-y-0.5 border-l border-border/60 pl-2",children:o.map((e,a)=>(0,eb.jsx)(Ur,{event:e,autoOpen:!1,labels:t,onOpenFile:n,onOpenSubagent:r},UR(e,a)))})})})]})}function Uz({event:e,autoOpen:t,children:n}){let[r,a]=ew.useState(t),i=ew.useRef(null);return ew.useEffect(()=>{a(t)},[t]),ew.useEffect(()=>{if(!r||!t||!i.current)return;let e=i.current.querySelector(".vtl-agent-tool-result");e&&(e.scrollTop=e.scrollHeight)},[t,n,e.detail,e.files?.length,r]),(0,eb.jsxs)(eb.Fragment,{children:[(0,eb.jsxs)("button",{type:"button",className:"vtl-agent-event-read-line",onClick:()=>a(e=>!e),"aria-expanded":r,children:[(0,eb.jsx)("span",{children:e.actionLabel?e.actionLabel:null}),e.title]}),(0,eb.jsx)("div",{className:(0,ez.cn)("grid overflow-hidden transition-[grid-template-rows,opacity,transform] duration-200 ease-out",r?"translate-y-0 grid-rows-[1fr] opacity-100":"-translate-y-1 grid-rows-[0fr] opacity-0"),children:(0,eb.jsx)("div",{ref:i,className:"min-h-0 overflow-hidden",children:n})})]})}function UA({event:e,onOpenFile:t}){let n=e.files?.length?e.files:[{id:e.id,name:e.title,diff:e.diff,kind:"diff",mutationId:e.mutationId,additions:e.additions,deletions:e.deletions}];return(0,eb.jsx)("article",{className:"vtl-agent-event-row","data-kind":e.kind,children:(0,eb.jsx)("div",{className:"vtl-agent-change-stack",children:n.map((r,a)=>{let i=r.additions??(1===n.length?e.additions:void 0),o=r.deletions??(1===n.length?e.deletions:void 0),l=!!(r.diff??e.diff);return(0,eb.jsxs)("button",{type:"button",className:"vtl-agent-change-row","data-streaming":e.isStreaming?"true":void 0,disabled:!l,onClick:()=>{l&&t?.({...r,diff:r.diff??e.diff,kind:r.kind??"diff",mutationId:r.mutationId??e.mutationId})},children:[(0,eb.jsxs)("span",{children:[e.actionLabel?(0,eb.jsx)("strong",{children:e.actionLabel}):null,UT(r.name||r.path||e.title)]}),"number"==typeof i||"number"==typeof o?(0,eb.jsxs)("em",{children:["number"==typeof i?(0,eb.jsxs)("b",{"data-kind":"add",children:["+",i]}):null,"number"==typeof o?(0,eb.jsxs)("b",{"data-kind":"delete",children:["-",o]}):null]}):e.meta?(0,eb.jsx)("em",{children:e.meta}):null]},r.id??`${e.id}-${r.path??r.name}-${a}`)})})})}function UT(e){return e.split(/[\\/]/).filter(Boolean).at(-1)??e}function UR(e,t){return e.id||`index-${t}`}let UD="max-w-[42.5rem]",U_={recall:"回退对话到此处",branch:"从此处分支对话",copy:"复制提示词",copyReply:"复制",more:"更多操作",expand:"展开",collapse:"收起",completed:"完成",thinking:"运行中"},UL=ew.forwardRef(function(e,t){return(0,eb.jsx)(U$,{...e,handleRef:t})});function U$({handleRef:e,className:t,composerClassName:n,composerPlaceholder:r,flowContentClassName:a,initialEvents:i,events:o,hasEarlier:l,loadingEarlier:s,onLoadEarlier:c,models:d,modelId:u,effortOptions:f,selectedEffort:m,onEffortChange:h,hideComposerOptions:p,hidePermissionMode:g,permissionModeId:x,running:v,disabled:b,onEventsChange:y,onModelChange:w,onPermissionModeChange:j,onSubmit:k,attachments:N,onAttachmentsChange:S,onCardDrop:C,onStop:M,onOpenFile:E,deliverable:I,onOpenSubagent:P,onOpenPlan:O,onOpenSpec:z,onOpenTasks:A,planPromptBar:T,contextEdit:R,contextEditBar:D,onRetry:_,onApprovalDecision:L,onFetchExplanation:$,onContinue:F,onRecallUserMessage:B,onBranchAssistantMessage:V,onActiveEventChange:H,composerValue:U,onComposerValueChange:q,promptHistory:W,queuedMessages:K,onQueuedMessagesChange:G,onNudge:X,contextUsage:Y}){let Z=o??i??HS,[J,Q]=ew.useState(Z),ee=ew.useRef(0),et=ew.useRef(Z),en=ew.useRef([]),er=ew.useRef(null),ea=ew.useRef(null),ei=ew.useRef(null),eo=ew.useRef([]),[el,es]=ew.useState(168),[ec,ed]=ew.useState(!0),eu=ew.useId().replace(/[^a-zA-Z0-9_-]/g,""),ef=o??J,em=ew.useCallback(e=>{P?.(e)},[P]);function eh(e){let t=e(et.current);et.current=t,void 0===o&&Q(t),y?.(t)}function ep(e,t){let n=window.setTimeout(t,e);en.current.push(n)}return ew.useImperativeHandle(e,()=>({scrollToEvent:e=>{let t=ea.current;if(!t||!e)return;let n=t.querySelector('[data-slot="agent-conversation-flow"]');if(!n)return;eo.current.forEach(e=>window.clearTimeout(e)),eo.current=[];let r=`[data-index="${(window.CSS?.escape??function(e){return e.replace(/["\\]/g,"\\$&")})(e)}"]`,a=["rounded-lg","ring-2","ring-primary/60","ring-offset-2","ring-offset-background","transition-shadow","duration-300"],i=e=>{e.scrollIntoView({behavior:"smooth",block:"start"}),e.classList.add(...a);let t=window.setTimeout(()=>{e.classList.remove(...a)},1600);eo.current.push(t)},o=n.querySelector(r);if(o)return void i(o);ei.current?.scrollToEvent(e);let l=0,s=()=>{let e=n.querySelector(r);if(e)return void i(e);if((l+=1)<8){let e=window.setTimeout(s,60);eo.current.push(e)}},c=window.setTimeout(s,60);eo.current.push(c)}}),[]),ew.useEffect(()=>()=>{eo.current.forEach(e=>window.clearTimeout(e)),eo.current=[]},[]),ew.useLayoutEffect(()=>{let e=er.current;if(!e)return;function t(){es(Math.ceil(e.getBoundingClientRect().height))}t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[]),ew.useEffect(()=>{et.current=ef},[ef]),ew.useEffect(()=>()=>{en.current.forEach(e=>window.clearTimeout(e)),en.current=[]},[]),(0,eb.jsxs)("section",{ref:ea,className:(0,ez.cn)("vtl-agent-conversation-panel relative flex size-full min-h-0 min-w-0 flex-col overflow-hidden bg-transparent",t),children:[(0,eb.jsx)(H8,{ref:ei,events:ef,running:v,hasEarlier:l,loadingEarlier:s,onLoadEarlier:c,bottomInset:el+16,contentClassName:(0,ez.cn)(UD,n,a),onOpenFile:E,deliverable:I,onOpenSubagent:em,onOpenPlan:O,onOpenSpec:z,onOpenTasks:A,onRetry:_,onApprovalDecision:L,onFetchExplanation:$,onContinue:F,onRecallUserMessage:B,onBranchAssistantMessage:V,onActiveEventChange:H,onAtBottomChange:ed,labels:U_,contextEdit:R}),(0,eb.jsx)("button",{type:"button","aria-label":"滚动到底部",onClick:()=>ei.current?.scrollToBottom(),style:{bottom:el+12},className:(0,ez.cn)("pointer-events-auto absolute left-1/2 z-30 -translate-x-1/2 flex size-9 items-center justify-center rounded-full border bg-popover text-popover-foreground shadow-md transition-opacity hover:bg-muted",ec&&"pointer-events-none opacity-0"),children:(0,eb.jsx)(kD,{className:"size-4"})}),(0,eb.jsx)("div",{ref:er,className:"pointer-events-none absolute inset-x-0 bottom-0 z-20 flex justify-center px-4 pb-4",children:(0,eb.jsxs)("div",{className:(0,ez.cn)("vtl-agent-composer-dock pointer-events-auto relative w-full",UD,n),children:[T,D,(0,eb.jsx)(Hg,{className:"relative z-10 w-full",submitOnEnter:!0,value:U,onValueChange:q,promptHistory:W,running:v,disabled:b,minRows:1,maxRows:8,permissionModeId:x,onPermissionModeChange:e=>j?.(e),models:d,modelId:u,onModelChange:e=>w?.(e),effortOptions:f,selectedEffort:m,onEffortChange:e=>h?.(e),hideComposerOptions:p,hidePermissionMode:g,queuedMessages:K,onQueuedMessagesChange:G,onNudge:X,attachments:N,onAttachmentsChange:S,onCardDrop:C,contextUsage:Y,labels:{placeholder:r??"请问",mode:"模式",model:"模型",attach:"添加上下文",removeChip:"移除上下文",removeAttachment:"移除附件",queuedMessage:"待发送消息",guideQueuedMessage:"引导",removeQueuedMessage:"移除待发送消息",moreQueuedMessageActions:"更多待发送消息操作",contextUsage:"上下文用量",contextUsed:"已用",contextTokenSummary:"已用 {used} / {total}",toolCalls:"输入 token",userMessages:"输出 token",otherContext:"已完成轮次",compressContext:"压缩上下文",compressPrecise:"精确",compressExtreme:"极致",send:"发送",stop:"停止"},onSubmit:function(e){let t,n,r=e.value.trim(),a=(e.attachments?.length??0)>0;if(!r&&!a)return;if(k)return void k({value:r,modeId:"agent",modelId:e.modelId??u,attachments:e.attachments});ee.current+=1;let i=`${eu}-${ee.current}`,o=`user-${i}`;eh(e=>[...e,{id:o,kind:"user",title:r}]),t=HN(i),n=180,t.forEach(e=>{if("done"===e.kind){var t,r,a;let i,o,l=e.title;ep(n,()=>{eh(t=>[...t,{...e,title:"",isStreaming:!0,status:"running"}])}),t=e.id,r=l,a=n+120,i=Math.max(4,Math.ceil(r.length/36)),o=0,ep(a,function e(){o=Math.min(r.length,o+i),eh(e=>e.map(e=>e.id===t?{...e,title:r.slice(0,o),isStreaming:o<r.length,status:o<r.length?"running":"done"}:e)),o<r.length&&ep(42,e)}),n+=Math.min(2200,Math.max(900,18*l.length))+260;return}ep(n,()=>{eh(t=>[...t,e])}),n+="thought"===e.kind?520:300})},onStop:M})]})})]})}function UF({ownerMachineId:e,title:t,resolvedLocation:n,className:r}){let a=function(e){let{machines:t}=vd();return ew.useMemo(()=>{if(sM(e))return"本机";let n=t.find(t=>t.id===e);return n?n.isLocal?"本机":n.name:e??"本机"},[t,e])}(e),i=n??a,o=t.trim()||"新 Agent 对话";return(0,eb.jsxs)("div",{className:(0,ez.cn)("flex h-9 shrink-0 items-center gap-1.5 border-b px-3 text-sm",r),children:[(0,eb.jsx)(eP,{className:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"}),(0,eb.jsx)("span",{className:"shrink-0 truncate text-muted-foreground",title:i,children:i}),(0,eb.jsx)("span",{className:"shrink-0 text-muted-foreground/60","aria-hidden":"true",children:"/"}),(0,eb.jsx)("span",{className:"min-w-0 flex-1 truncate font-medium text-foreground",title:o,children:o})]})}function UB({rounds:e,onJumpToRound:t,activeRunId:n,className:r}){let[a,i]=ew.useState(!1),o=ew.useRef(null),[l,s]=ew.useState(304);if(ew.useEffect(()=>{if(!a)return;let e=e=>{"Escape"===e.key&&i(!1)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[a]),ew.useLayoutEffect(()=>{if(!a)return;let e=()=>{let e=o.current;if(!e)return;let t=e.getBoundingClientRect().left;s(Math.max(120,Math.min(304,window.innerWidth-t-16)))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[a]),!e.length)return null;let c=e.length>24?e.slice(e.length-24):e;return(0,eb.jsxs)("div",{ref:o,className:(0,ez.cn)("relative",r),children:[(0,eb.jsx)("button",{type:"button","aria-label":"轮次时间轴",title:`轮次时间轴 \xb7 共 ${e.length} 轮`,onClick:()=>i(e=>!e),className:(0,ez.cn)("group flex flex-col items-start gap-[7px] rounded-md px-1.5 py-2 outline-none transition-colors hover:bg-muted/50 focus-visible:bg-muted/50",a&&"invisible"),children:c.map(e=>{let t=!!n&&e.runId===n;return(0,eb.jsx)("span",{"aria-hidden":"true",className:(0,ez.cn)("h-[3px] rounded-full transition-all duration-200",t?"w-5 bg-foreground/85":"w-2.5 bg-muted-foreground/30 group-hover:bg-muted-foreground/55")},e.runId)})}),a?(0,eb.jsxs)(eb.Fragment,{children:[(0,eb.jsx)("div",{className:"fixed inset-0 z-40","aria-hidden":"true",onClick:()=>i(!1)}),(0,eb.jsx)("div",{style:{width:l},className:"absolute left-0 top-0 z-50 max-h-[20rem] overflow-y-auto overflow-x-hidden rounded-lg border bg-popover p-1 text-popover-foreground shadow-md vtl-scrollbar-hidden",children:(0,eb.jsx)("div",{className:"grid grid-cols-[minmax(0,1fr)] gap-px",children:e.map(e=>{let r=!!n&&e.runId===n;return(0,eb.jsxs)("button",{type:"button",className:(0,ez.cn)("flex w-full min-w-0 items-center gap-2 rounded px-2 py-1 text-left transition-colors",r?"bg-muted":"hover:bg-muted/70"),onClick:()=>{t(e),i(!1)},children:[(0,eb.jsx)("span",{"aria-hidden":"true",className:(0,ez.cn)("h-[2.5px] shrink-0 rounded-full transition-all",r?"w-3.5 bg-foreground/85":"w-2.5 bg-muted-foreground/40")}),(0,eb.jsx)("span",{className:(0,ez.cn)("min-w-0 flex-1 truncate text-[13px] leading-snug",r?"font-medium text-foreground":"text-foreground/90"),children:e.title?.trim()||e.summary?.trim()||"未命名轮次"})]},e.runId)})})})]}):null]})}let UV=(0,ek.default)("file-plus-corner",[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]]),UH=(0,ek.default)("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),UU={title:"Explorer",search:"Search files...",newFile:"New file",newFolder:"New folder",refresh:"Refresh",collapseAll:"Collapse all",rename:"Rename",delete:"Delete",copyPath:"Copy path",open:"Open",empty:"No files yet.",noResults:"No matching files.",loading:"Loading..."};function Uq(e){return"folder"===e.kind||!!e.children||!!e.hasChildren}function UW(e){return`${e.name} ${e.path}`.toLowerCase()}function UK(e,t){if(e&&t)return UG(e.children,t)}function UG(e,t){for(let n of e){if(n.id===t)return n;let e=n.children?UG(n.children,t):void 0;if(e)return e}}function UX(e,t){return e?t.map(t=>UG(e.children,t)).filter(e=>!!e):[]}function UY(e,t){let n=e.includes("\\")?"\\":"/";return e.endsWith("\\")||e.endsWith("/")?`${e}${t}`:`${e}${n}${t}`}function UZ(e,t,n){return e.map(e=>e.id===t?n(e):e.children?{...e,children:UZ(e.children,t,n)}:e)}function UJ(e,t){return e.filter(e=>!t.has(e.id)).map(e=>({...e,children:e.children?UJ(e.children,t):void 0}))}function UQ(e,t){return e.some(e=>e.id===t||!!(e.children&&UQ(e.children,t)))}function U0(e,t){let n=UY(t,e.name);return{...e,path:n,children:e.children?.map(e=>U0(e,n))}}function U1(e,t,n){let[r,a]=ew.useState(t??n);return[e??r,a]}function U2({roots:e,defaultRoots:t,activeRootId:n,defaultActiveRootId:r,activeNodeId:a,defaultActiveNodeId:i,selectedIds:o,defaultSelectedIds:l,expandedIds:s,defaultExpandedIds:c,searchValue:d,defaultSearchValue:u,loadingIds:f,labels:m,allowMultiSelect:h=!0,allowCreateFile:p=!0,allowCreateFolder:g=!0,allowRename:x=!0,allowDelete:v=!0,allowDragAndDrop:b=!0,allowBoxSelect:y=!0,openFilesOnSingleClick:w=!0,showSearch:j=!0,showToolbar:k=!0,compact:N=!1,onActiveRootChange:S,onActiveNodeChange:C,onSelectionChange:M,onExpandedChange:E,onSearchValueChange:I,onOpenNode:P,onLoadChildren:O,onCreateNode:z,onRenameNode:A,onDeleteNodes:T,onMoveNodes:R,onCopyPath:D,onRefresh:_,className:L,sidebarClassName:$,style:F}){let B={...UU,...m},V=ew.useRef(null),H=ew.useRef(void 0),U=ew.useRef([]),[q,W]=ew.useState(()=>(t??[]).map(e=>({...e,children:function e(t){return t.map(t=>({...t,children:t.children?e(t.children):void 0}))}(e.children)}))),K=e??q,G=K[0]?.id,[X,Y]=ew.useState(r??G),Z=n??X??G,J=K.find(e=>e.id===Z)??K[0],[Q,ee]=ew.useState(i),et=a??Q,[en,er]=U1(o,l,i?[i]:[]),[ea,ei]=U1(s,c,G?[G]:[]),[eo,el]=ew.useState(u??""),es=d??eo,[ec,ed]=ew.useState(),[eu,ef]=ew.useState(""),[em,eh]=ew.useState([]),[ep,eg]=ew.useState(),[ex,ev]=ew.useState(),ey=ew.useRef(0),ej=ew.useMemo(()=>new Set(f),[f]),ek=ew.useMemo(()=>new Set(ea),[ea]),eN=ew.useMemo(()=>new Set(en),[en]),eS=UK(J,et),eC=es.trim().length>0;function eM(t){e||W(e=>t(e))}function eE(e){void 0===s&&ei(e),E?.(e)}function eI(e){void 0===o&&er(e),M?.({root:J,node:e.at(-1)?UK(J,e.at(-1)):void 0,nodes:UX(J,e)})}function eP(e){void 0===a&&ee(e?.id),C?.(e)}async function eA(e){if(Uq(e)&&J){if(ek.has(e.id))return void eE(ea.filter(t=>t!==e.id));if(O&&e.hasChildren&&!e.children){let t=await O(e,J);eM(n=>n.map(n=>n.id===J.id?{...n,children:UZ(n.children,e.id,e=>({...e,children:t}))}:n))}eE([...ea,e.id])}}function eT(e){var t;t=e.id,void 0===n&&Y(t),S?.(t),ek.has(e.id)?eE(ea.filter(t=>t!==e.id)):eE([...ea,e.id])}function eR(e,t){if(e.disabled)return;let n=h&&(t?.metaKey||t?.ctrlKey)?eN.has(e.id)?en.filter(t=>t!==e.id):[...en,e.id]:[e.id];eP(e),eI(n)}function eD(e){J&&!e.disabled&&P?.(e,J)}function e_(e){if(!J)return;let t=eS&&Uq(eS)?eS:J,n="folder"===e?"untitled-folder":"untitled.ts";ey.current+=1;let r={id:`created-${ey.current}`,name:n,path:UY(t.path,n),kind:"folder"===e?"folder":"code",children:"folder"===e?[]:void 0};z?.(t,e,n),eM(e=>e.map(e=>{var n,a;return e.id!==J.id?e:"children"in t&&"platform"in t?{...e,children:[r,...e.children]}:{...e,children:(n=e.children,a=t.id,UZ(n,a,e=>({...e,children:[r,...e.children??[]],hasChildren:!0})))}})),eE([...new Set([...ea,t.id])]),eP(r),eI([r.id]),ed(r.id),ef(r.name)}function eL(e){!x||e.disabled||e.readonly||(ed(e.id),ef(e.name))}function e$(e){let t=eu.trim();ed(void 0),t&&t!==e.name&&(A?.(e,t),eM(n=>n.map(n=>n.id===J?.id?{...n,children:UZ(n.children,e.id,e=>{let n,r,a;return{...e,name:t,path:UY((r=(n=e.path.replace(/[\\/]+$/,"")).includes("\\")?"\\":"/",(a=n.lastIndexOf(r))<=0?n:n.slice(0,a)),t)}})}:n)))}function eF(e,t){if(!J||!b||e.disabled||ex)return void t.preventDefault();let n=eN.has(e.id)?en:[e.id];eN.has(e.id)||(eI([e.id]),eP(e)),eh(n),t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",n.join(","))}function eB(e,t){if(!b||0===em.length)return;t.preventDefault(),t.dataTransfer.dropEffect="move";let n=t.currentTarget.getBoundingClientRect(),r=(t.clientY-n.top)/n.height,a=r<.3?"before":r>.7?"after":Uq(e)?"inside":"after";eg({targetId:e.id,position:a})}function eV(e,t){t.preventDefault(),ep?.targetId===e.id&&function(e,t){let n;if(!J||0===em.length||!b)return;let r=(n=new Set(em),UX(J,em).filter(e=>!Array.from(n).some(t=>{var n,r;let a;return t!==e.id&&(n=J.children,r=e.id,a=UG(n,t),!!(a?.children&&UQ(a.children,r)))})));if(0===r.length||r.some(t=>t.id===e.id||!!(t.children&&UQ(t.children,e.id))))return;let a=new Set(r.map(e=>e.id)),i="inside"!==t||Uq(e)?t:"after";R?.({root:J,nodes:r,target:e,position:i}),eM(t=>t.map(t=>{if(t.id!==J.id)return t;let n=function e(t,n,r,a,i){let o=!1,l=[];for(let s of t){if(s.id===n){if("before"===r){l.push(...a.map(e=>U0(e,i))),l.push(s),o=!0;continue}if("after"===r){l.push(s),l.push(...a.map(e=>U0(e,i))),o=!0;continue}if("inside"===r){l.push({...s,children:[...a.map(e=>U0(e,s.path)),...s.children??[]],hasChildren:!0}),o=!0;continue}}if(s.children){let t=e(s.children,n,r,a,s.path);l.push({...s,children:t.nodes}),o=o||t.inserted}else l.push(s)}return{nodes:l,inserted:o}}(UJ(t.children,a),e.id,i,r,t.path);return{...t,children:n.inserted?n.nodes:t.children}})),"inside"===i&&eE([...new Set([...ea,e.id])]),eI(r.map(e=>e.id)),eP(r[0])}(e,ep.position),eg(void 0),eh([])}function eH(e){let t=V.current;if(!t||!J)return;let n=Math.min(e.startX,e.currentX),r=Math.max(e.startX,e.currentX),a=Math.min(e.startY,e.currentY),i=Math.max(e.startY,e.currentY),o=Array.from(t.querySelectorAll("[data-file-tree-node-id]")).filter(e=>{let t=e.getBoundingClientRect();return t.left<r&&t.right>n&&t.top<i&&t.bottom>a}).map(e=>e.dataset.fileTreeNodeId).filter(e=>!!e);if(o.length>0){eI(Array.from(new Set([...U.current,...o])));let e=UK(J,o.at(-1));e&&eP(e)}}return ew.useEffect(()=>{n||X||!G||Y(G)},[n,G,X]),(0,eb.jsxs)("div",{ref:V,"data-slot":"file-tree-panel",className:(0,ez.cn)("vtl-surface-panel relative flex min-h-[28rem] w-full max-w-sm flex-col overflow-hidden rounded-[var(--surface-panel-radius)] border",L),style:F,onPointerDown:function(e){let t=e.target;if(!y||!h||!e.ctrlKey||0!==e.button||t.closest("input, textarea, [data-file-tree-ignore-box]"))return;e.preventDefault();let n=e.currentTarget.getBoundingClientRect();H.current=e.pointerId,U.current=en,e.currentTarget.setPointerCapture(e.pointerId),ev({startX:e.clientX,startY:e.clientY,currentX:e.clientX,currentY:e.clientY,panelLeft:n.left,panelTop:n.top})},onPointerMove:function(e){if(!ex||H.current!==e.pointerId)return;e.preventDefault();let t={...ex,currentX:e.clientX,currentY:e.clientY};ev(t),eH(t)},onPointerUp:function(e){ex&&H.current===e.pointerId&&(eH(ex),ev(void 0),U.current=[],H.current=void 0)},onPointerCancel:()=>{ev(void 0),U.current=[],H.current=void 0},children:[k&&(0,eb.jsxs)("div",{"data-file-tree-ignore-box":!0,className:"flex h-10 shrink-0 items-center gap-1 border-b px-2",children:[(0,eb.jsx)("div",{className:"mr-auto min-w-0 truncate px-1 text-sm font-medium",children:B.title}),p&&(0,eb.jsx)(eO.Button,{type:"button",variant:"ghost",size:"icon-xs","aria-label":B.newFile,onClick:()=>e_("file"),children:(0,eb.jsx)(lY,{})}),g&&(0,eb.jsx)(eO.Button,{type:"button",variant:"ghost",size:"icon-xs","aria-label":B.newFolder,onClick:()=>e_("folder"),children:(0,eb.jsx)(b6,{})}),(0,eb.jsx)(eO.Button,{type:"button",variant:"ghost",size:"icon-xs","aria-label":B.refresh,onClick:()=>J&&_?.(J),children:(0,eb.jsx)(yt,{})}),(0,eb.jsx)(eO.Button,{type:"button",variant:"ghost",size:"icon-xs","aria-label":B.collapseAll,onClick:function(){eE(J?[J.id]:[])},children:(0,eb.jsx)(fV.XIcon,{})})]}),j&&(0,eb.jsx)("div",{"data-file-tree-ignore-box":!0,className:"shrink-0 border-b p-2",children:(0,eb.jsxs)(w5,{className:"h-7 rounded-md",children:[(0,eb.jsx)(w3,{align:"inline-start",className:"pl-2",children:(0,eb.jsx)(vu,{className:"size-3.5"})}),(0,eb.jsx)(w6,{value:es,onChange:e=>{var t;return t=e.target.value,void(void 0===d&&el(t),I?.(t))},placeholder:B.search,className:"h-7 text-xs"})]})}),(0,eb.jsx)(jP,{className:(0,ez.cn)("min-h-0 flex-1",$),"data-slot":"file-tree-panel-scroll",children:(0,eb.jsxs)("div",{className:(0,ez.cn)("py-1",N&&"py-0.5"),children:[0===K.length&&(0,eb.jsx)("div",{className:"px-3 py-8 text-center text-xs text-muted-foreground",children:B.empty}),K.map(e=>(0,eb.jsx)(U5,{root:e,activeRoot:J,labels:B,expandedSet:ek,selectedSet:eN,activeNodeId:et,searchValue:es,loadingSet:ej,compact:N,renamingId:ec,renamingName:eu,allowRename:x,allowDelete:v,allowDragAndDrop:b,openFilesOnSingleClick:w,draggingIds:em,dropTarget:ep,hasSearch:eC,onRootToggle:eT,onNodeToggle:e=>void eA(e),onNodeSelect:eR,onNodeOpen:eD,onStartRename:eL,onRenamingNameChange:ef,onCommitRename:e$,onCancelRename:()=>ed(void 0),onDelete:e=>(function(e){if(!v||0===e.length||!J)return;T?.(e);let t=new Set(e.map(e=>e.id));eM(e=>e.map(e=>e.id===J.id?{...e,children:UJ(e.children,t)}:e)),eI(en.filter(e=>!t.has(e))),et&&t.has(et)&&eP(void 0)})(function(e){if(eN.has(e.id)){let t=UX(J,en);return t.length>0?t:[e]}return[e]}(e)),onCopyPath:e=>D?.(e),onDragStart:eF,onDragOver:eB,onDragEnd:()=>{eh([]),eg(void 0)},onDrop:eV},e.id))]})}),ex&&(0,eb.jsx)(U8,{box:ex})]})}function U5({root:e,activeRoot:t,labels:n,expandedSet:r,selectedSet:a,activeNodeId:i,searchValue:o,loadingSet:l,compact:s,renamingId:c,renamingName:d,allowRename:u,allowDelete:f,allowDragAndDrop:m,openFilesOnSingleClick:h,draggingIds:p,dropTarget:g,hasSearch:x,onRootToggle:v,onNodeToggle:b,onNodeSelect:y,onNodeOpen:w,onStartRename:j,onRenamingNameChange:k,onCommitRename:N,onCancelRename:S,onDelete:C,onCopyPath:M,onDragStart:E,onDragOver:I,onDragEnd:P,onDrop:O}){let z=r.has(e.id),A=o.trim().toLowerCase(),T=x?e.children.filter(e=>qe(e,A)):e.children;return(0,eb.jsxs)("section",{"data-slot":"file-tree-root",className:"min-w-0",children:[(0,eb.jsxs)("button",{type:"button",className:(0,ez.cn)("group flex h-7 w-full items-center gap-1 px-2 text-left text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/60 hover:text-foreground",t?.id===e.id&&"text-foreground"),onClick:()=>v(e),children:[(0,eb.jsx)("span",{className:"flex size-4 shrink-0 items-center justify-center",children:z?(0,eb.jsx)(pt,{className:"size-3.5"}):(0,eb.jsx)(h7,{className:"size-3.5"})}),(0,eb.jsx)("span",{className:"flex size-4 shrink-0 items-center justify-center [&_svg]:size-3.5",children:e.icon??(0,eb.jsx)(uY,{})}),(0,eb.jsx)("span",{className:"truncate uppercase tracking-wide",children:e.name})]}),(z||x)&&(0,eb.jsxs)("div",{children:[l.has(e.id)&&(0,eb.jsx)("div",{className:"px-8 py-2 text-xs text-muted-foreground",children:n.loading}),!l.has(e.id)&&0===T.length&&(0,eb.jsx)("div",{className:"px-8 py-2 text-xs text-muted-foreground",children:x?n.noResults:n.empty}),T.map(t=>(0,eb.jsx)(U4,{node:t,root:e,depth:0,labels:n,expandedSet:r,selectedSet:a,activeNodeId:i,searchValue:A,loadingSet:l,compact:s,renamingId:c,renamingName:d,allowRename:u,allowDelete:f,allowDragAndDrop:m,openFilesOnSingleClick:h,draggingIds:p,dropTarget:g,hasSearch:x,onNodeToggle:b,onNodeSelect:y,onNodeOpen:w,onStartRename:j,onRenamingNameChange:k,onCommitRename:N,onCancelRename:S,onDelete:C,onCopyPath:M,onDragStart:E,onDragOver:I,onDragEnd:P,onDrop:O},t.id))]})]})}function U4({node:e,root:t,depth:n,labels:r,expandedSet:a,selectedSet:i,activeNodeId:o,searchValue:l,loadingSet:s,compact:c,renamingId:d,renamingName:u,allowRename:f,allowDelete:m,allowDragAndDrop:h,openFilesOnSingleClick:p,draggingIds:g,dropTarget:x,hasSearch:v,onNodeToggle:b,onNodeSelect:y,onNodeOpen:w,onStartRename:j,onRenamingNameChange:k,onCommitRename:N,onCancelRename:S,onDelete:C,onCopyPath:M,onDragStart:E,onDragOver:I,onDragEnd:P,onDrop:O}){let z=Uq(e),A=a.has(e.id),T=i.has(e.id),R=o===e.id,D=d===e.id,_=s.has(e.id),L=g.includes(e.id),$=x?.targetId===e.id&&"inside"!==x.position,F=x?.targetId===e.id&&"inside"===x.position,B=e.children??[],V=v?B.filter(e=>qe(e,l)):B,H=!v||UW(e).includes(l),U=(A||v)&&V.length>0,q=8+14*n;if(v&&!H&&0===V.length)return null;let W=(0,eb.jsxs)("div",{"data-slot":"file-tree-row","data-file-tree-node-id":e.id,"data-active":R?"true":void 0,"data-selected":T?"true":void 0,draggable:h&&!D&&!e.disabled,className:(0,ez.cn)("group/tree-row relative flex w-full items-center gap-1 pr-1 text-left text-xs transition-colors",c?"h-6":"h-7",T||R?"bg-muted text-foreground":"text-foreground hover:bg-muted/60",F&&"bg-primary/10 ring-1 ring-inset ring-primary/35",L&&"opacity-45",e.disabled&&"pointer-events-none opacity-50"),style:{paddingLeft:q},onDragStart:t=>E(e,t),onDragOver:t=>I(e,t),onDragLeave:e=>{e.currentTarget.contains(e.relatedTarget)||(e.currentTarget.dataset.dragLeave="true")},onDragEnd:P,onDrop:t=>O(e,t),onDoubleClick:()=>w(e),onKeyDown:t=>{"Enter"===t.key&&w(e),"F2"===t.key&&(t.preventDefault(),j(e)),("Delete"===t.key||"Backspace"===t.key)&&(t.preventDefault(),C(e)),"ArrowRight"===t.key&&z&&!A&&(t.preventDefault(),b(e)),"ArrowLeft"===t.key&&z&&A&&(t.preventDefault(),b(e))},children:[(0,eb.jsx)(U3,{depth:n}),$&&(0,eb.jsx)(U6,{position:x.position,depth:n}),e.recentlyModified&&(0,eb.jsx)("span",{className:"absolute top-1/2 left-1 h-1.5 w-1.5 -translate-y-1/2 rounded-full bg-primary"}),(0,eb.jsx)("button",{type:"button",tabIndex:-1,className:"flex size-4 shrink-0 items-center justify-center rounded-sm text-muted-foreground hover:bg-muted-foreground/10 hover:text-foreground",onClick:t=>{t.stopPropagation(),b(e)},"aria-label":A?"Collapse":"Expand",children:z?A?(0,eb.jsx)(pt,{className:"size-3.5"}):(0,eb.jsx)(h7,{className:"size-3.5"}):null}),(0,eb.jsxs)("button",{type:"button",className:"flex min-w-0 flex-1 items-center gap-1.5 text-left",onClick:t=>{y(e,t),!z||t.metaKey||t.ctrlKey?!z&&p&&w(e):b(e)},children:[(0,eb.jsx)(U9,{node:e,open:A}),D?(0,eb.jsx)("input",{value:u,onChange:e=>k(e.target.value),onClick:e=>e.stopPropagation(),onKeyDown:t=>{"Enter"===t.key&&(t.preventDefault(),N(e)),"Escape"===t.key&&(t.preventDefault(),S())},onBlur:()=>N(e),autoFocus:!0,className:"h-5 min-w-0 flex-1 rounded-sm border border-ring bg-background px-1 text-xs outline-none"}):(0,eb.jsxs)(eb.Fragment,{children:[(0,eb.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),e.badge&&(0,eb.jsx)("span",{className:"shrink-0 text-muted-foreground",children:e.badge}),e.meta&&(0,eb.jsx)("span",{className:"hidden shrink-0 text-muted-foreground group-hover/tree-row:inline sm:inline",children:e.meta})]})]}),!D&&(0,eb.jsx)(U7,{node:e,root:t,labels:r,allowRename:f,allowDelete:m,onOpen:w,onRename:j,onDelete:C,onCopyPath:M}),_&&(0,eb.jsx)("span",{className:"absolute inset-y-0 right-8 flex items-center text-[10px] text-muted-foreground",children:r.loading})]});return(0,eb.jsxs)(eb.Fragment,{children:[(0,eb.jsxs)(wh,{children:[(0,eb.jsx)(wg,{asChild:!0,children:W}),(0,eb.jsxs)(wN,{className:"w-40",children:[(0,eb.jsxs)(wS,{onSelect:()=>w(e),children:[(0,eb.jsx)(b2,{}),r.open]}),(0,eb.jsxs)(wS,{onSelect:()=>M(e),children:[(0,eb.jsx)(lV,{}),r.copyPath]}),f&&!e.readonly&&(0,eb.jsxs)(wS,{onSelect:()=>j(e),children:[(0,eb.jsx)(UH,{}),r.rename]}),m&&!e.readonly&&(0,eb.jsxs)(eb.Fragment,{children:[(0,eb.jsx)(wC,{}),(0,eb.jsxs)(wS,{variant:"destructive",onSelect:()=>C(e),children:[(0,eb.jsx)(yn,{}),r.delete]})]})]})]}),A&&z&&_&&(0,eb.jsx)("div",{className:"py-1 text-xs text-muted-foreground",style:{paddingLeft:q+40},children:r.loading}),U&&V.map(e=>(0,eb.jsx)(U4,{node:e,root:t,depth:n+1,labels:r,expandedSet:a,selectedSet:i,activeNodeId:o,searchValue:l,loadingSet:s,compact:c,renamingId:d,renamingName:u,allowRename:f,allowDelete:m,allowDragAndDrop:h,openFilesOnSingleClick:p,draggingIds:g,dropTarget:x,hasSearch:v,onNodeToggle:b,onNodeSelect:y,onNodeOpen:w,onStartRename:j,onRenamingNameChange:k,onCommitRename:N,onCancelRename:S,onDelete:C,onCopyPath:M,onDragStart:E,onDragOver:I,onDragEnd:P,onDrop:O},e.id))]})}function U3({depth:e}){return e<=0?null:(0,eb.jsx)("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-y-0 left-0",children:Array.from({length:e}).map((e,t)=>(0,eb.jsx)("span",{className:"absolute inset-y-0 w-px bg-border/80 dark:bg-border/70",style:{left:17+14*t}},t))})}function U6({position:e,depth:t}){return(0,eb.jsxs)("span",{"aria-hidden":"true",className:(0,ez.cn)("pointer-events-none absolute right-2 z-10 flex h-3 items-center text-primary","before"===e?"top-[-6px]":"bottom-[-6px]"),style:{left:28+14*t},children:[(0,eb.jsx)("span",{className:"text-[10px] leading-none",children:">"}),(0,eb.jsx)("span",{className:"mx-0.5 h-px flex-1 bg-primary"}),(0,eb.jsx)("span",{className:"text-[10px] leading-none",children:"<"})]})}function U8({box:e}){let t=Math.min(e.startX,e.currentX)-e.panelLeft,n=Math.min(e.startY,e.currentY)-e.panelTop,r=Math.abs(e.currentX-e.startX),a=Math.abs(e.currentY-e.startY);return(0,eb.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute z-50 rounded-sm border border-primary bg-primary/10 shadow-sm",style:{left:t,top:n,width:r,height:a}})}function U7({node:e,labels:t,allowRename:n,allowDelete:r,onOpen:a,onRename:i,onDelete:o,onCopyPath:l}){return(0,eb.jsxs)(wA,{children:[(0,eb.jsx)(wR,{asChild:!0,children:(0,eb.jsx)(eO.Button,{type:"button","data-file-tree-ignore-box":!0,variant:"ghost",size:"icon-xs",className:"size-6 opacity-0 group-hover/tree-row:opacity-100 data-[state=open]:opacity-100",onClick:e=>e.stopPropagation(),"aria-label":"More actions",children:(0,eb.jsx)(lG,{})})}),(0,eb.jsxs)(wG,{align:"end",className:"w-40",children:[(0,eb.jsxs)(wX,{onSelect:()=>a(e),children:[(0,eb.jsx)(b2,{}),t.open]}),(0,eb.jsxs)(wX,{onSelect:()=>l(e),children:[(0,eb.jsx)(lV,{}),t.copyPath]}),n&&!e.readonly&&(0,eb.jsxs)(wX,{onSelect:()=>i(e),children:[(0,eb.jsx)(UH,{}),t.rename]}),r&&!e.readonly&&(0,eb.jsxs)(eb.Fragment,{children:[(0,eb.jsx)(wJ,{}),(0,eb.jsxs)(wX,{variant:"destructive",onSelect:()=>o(e),children:[(0,eb.jsx)(yn,{}),t.delete]})]})]})]})}function U9({node:e,open:t}){let n=e.icon??function(e,t){if(Uq(e))return t?(0,eb.jsx)(uY,{}):(0,eb.jsx)(b3,{});let n=e.name.toLowerCase();return"image"===e.kind||/\.(png|jpg|jpeg|gif|webp|svg|avif)$/.test(n)?(0,eb.jsx)(b5,{}):"archive"===e.kind||/\.(zip|rar|7z|tar|gz)$/.test(n)?(0,eb.jsx)(bQ,{}):"code"===e.kind||/\.(ts|tsx|js|jsx|json|css|scss|html|py|rs|go|mdx)$/.test(n)?(0,eb.jsx)(uW,{}):"text"===e.kind||/\.(md|txt|log|yaml|yml)$/.test(n)?(0,eb.jsx)(uX,{}):(0,eb.jsx)(b2,{})}(e,t);return(0,eb.jsx)("span",{className:"flex size-4 shrink-0 items-center justify-center text-muted-foreground [&_svg]:size-3.5",children:n})}function qe(e,t){return!!(!t||UW(e).includes(t))||!!e.children?.some(e=>qe(e,t))}function qt(e){let t=e.trim(),n=/^vantaloom:\/\/([^/]+)\/(.+)$/i.exec(t);return n?{machineId:n[1]||"local",path:decodeURIComponent(n[2]||"").replace(/\//g,"/")}:{machineId:"local",path:t}}function qn(e){let t=e.replace(/[\\/]+$/,""),n=/([^\\/]+)$/.exec(t);return n?.[1]??(t||"workspace")}function qr(e){return e.map(e=>{var t;return{id:e.id,name:e.name,path:e.path,kind:"folder"===(t=e.kind)?"folder":"image"===t?"image":"archive"===t?"archive":"text"===t?"text":"code"===t?"code":"executable"===t?"config":"unknown",hasChildren:"folder"===e.kind,readonly:e.readonly,disabled:e.disabled}})}async function qa(e){let t=e.map(qt).filter(e=>e.path);return await Promise.all(t.map(async(e,t)=>{let n=await fc(e.machineId,e.path);return{id:`agent-root-${e.machineId}-${t}-${n.path}`,machineId:e.machineId,name:qn(n.path),path:n.path,platform:n.machine.platform,children:qr(n.items)}}))}async function qi(e,t){let n=t.machineId||"local";return qr((await fc(n,e.path)).items)}function qo({folders:e,className:t,onOpenFile:n}){let[r,a]=ew.useState([]),[i,o]=ew.useState(!1),[l,s]=ew.useState(0),c=e.join("\0"),d=ew.useCallback(async()=>{o(!0);try{a(await qa(e)),s(e=>e+1)}catch{a([]),s(e=>e+1)}finally{o(!1)}},[e]);return ew.useEffect(()=>{d()},[c,d]),ew.useEffect(()=>{function e(){d()}return window.addEventListener("vantaloom:file-system-changed",e),()=>window.removeEventListener("vantaloom:file-system-changed",e)},[d]),(0,eb.jsx)(U2,{className:t,compact:!0,openFilesOnSingleClick:!1,allowCreateFile:!1,allowCreateFolder:!1,allowRename:!1,allowDelete:!1,allowDragAndDrop:!1,allowBoxSelect:!1,defaultRoots:r,defaultExpandedIds:r.map(e=>e.id),loadingIds:i?r.map(e=>e.id):[],labels:{title:"Explorer",refresh:"刷新",collapseAll:"折叠",empty:0===e.length?"未配置可访问文件夹":"没有文件",noResults:"没有匹配文件",loading:"读取中..."},onLoadChildren:qi,onOpenNode:(e,t)=>{"folder"!==e.kind&&n?.({machineId:t.machineId||"local",path:e.path})},onRefresh:()=>{d()}},l)}function ql({open:e,folders:t,onOpenChange:n,onSelectFile:r}){return(0,eb.jsx)(dX,{open:e,onOpenChange:n,children:(0,eb.jsxs)(fU,{className:"h-[min(42rem,calc(100svh-2rem))] max-w-2xl gap-0 overflow-hidden p-0",children:[(0,eb.jsx)(fK,{className:"sr-only",children:"选择文件"}),(0,eb.jsx)(fG,{className:"sr-only",children:"从当前 Agent 可访问的文件夹中选择文件。"}),(0,eb.jsx)(qo,{folders:t,className:"size-full max-w-none rounded-none border-0",onOpenFile:e=>{r(e),n(!1)}})]})})}function qs({className:e,onChooseFile:t}){return(0,eb.jsx)("div",{className:(0,ez.cn)("grid size-full place-items-center rounded-[inherit] bg-background p-6",e),children:(0,eb.jsxs)("div",{className:"grid justify-items-center gap-3 text-center",children:[(0,eb.jsx)("div",{className:"grid size-10 place-items-center rounded-full border bg-muted/35 text-muted-foreground",children:(0,eb.jsx)(uY,{className:"size-4"})}),(0,eb.jsxs)(eO.Button,{type:"button",size:"sm",variant:"outline",onClick:t,children:[(0,eb.jsx)(UV,{className:"size-4"}),"选择文件"]})]})})}let qc="application/vnd.vantaloom.canvas-node",qd="application/vnd.vantaloom.canvas-tab",qu="application/vnd.vantaloom.dashboard-widget",qf="application/vnd.vantaloom.workspace-card";function qm(e){return fe.find(t=>t.id===e)?.title??"工作区卡片"}function qh(e){return JSON.stringify(function(e){let t=function(e){if("string"==typeof e.kind&&!e.data)return{kind:e.kind,title:e.title,tab:e.tab};let t=e.data??{},n=t.kind;return n?{kind:n,title:void 0,tab:t.tab}:null}(e);if(!t)return null;let n=t.tab?.title||t.title||qm(t.kind),r=function(e,t){let{kind:n,tab:r}=e,a=qm(n);switch(n){case"file-tab-viewer":{let e=r?.file,n=e?.path||e?.name||r?.title||"(未命名文件)",a=e?.previewContent??r?.defaultValue??"",i=[`工作区文件卡片:${t}`,`路径:${n}`,e?.language?`语言:${e.language}`:void 0,e?.truncated?"(注意:内容在工作区中被截断)":void 0].filter(Boolean).join("\n");if(a.trim())return`${i}
@@ -11,7 +11,7 @@ b:I[35417,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c758
11
11
  d:I[35417,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/7dfeab42587bcc0e.js"],"MetadataBoundary"]
12
12
  f:I[50025,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
13
13
  :HL["/_next/static/chunks/04d8db8bf4869e80.css","style"]
14
- 0:{"P":null,"b":"z104tXi8Tgpi7daWlsIpu","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/04d8db8bf4869e80.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/7dfeab42587bcc0e.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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,["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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:1: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:1: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:1: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:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],null]}],false]],"m":"$undefined","G":["$f","$undefined"],"S":true}
14
+ 0:{"P":null,"b":"5t3oOwp8449lfX7vX7O58","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/04d8db8bf4869e80.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/7dfeab42587bcc0e.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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,["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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:1: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:1: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:1: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:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],null]}],false]],"m":"$undefined","G":["$f","$undefined"],"S":true}
15
15
  c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
16
16
  a:null
17
17
  e:[["$","title","0",{"children":"Vantaloom"}],["$","meta","1",{"name":"description","content":"Vantaloom local agent operations console."}]]
@@ -2,4 +2,4 @@
2
2
  2:I[35417,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/7dfeab42587bcc0e.js"],"ViewportBoundary"]
3
3
  3:I[35417,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/7dfeab42587bcc0e.js"],"MetadataBoundary"]
4
4
  4:"$Sreact.suspense"
5
- 0:{"buildId":"z104tXi8Tgpi7daWlsIpu","rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$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":"Vantaloom"}],["$","meta","1",{"name":"description","content":"Vantaloom local agent operations console."}]]}]}]}],null]}],"loading":null,"isPartial":false}
5
+ 0:{"buildId":"5t3oOwp8449lfX7vX7O58","rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$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":"Vantaloom"}],["$","meta","1",{"name":"description","content":"Vantaloom local agent operations console."}]]}]}]}],null]}],"loading":null,"isPartial":false}
@@ -6,4 +6,4 @@
6
6
  6:I[45121,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
7
7
  7:I[60512,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
8
8
  :HL["/_next/static/chunks/04d8db8bf4869e80.css","style"]
9
- 0:{"buildId":"z104tXi8Tgpi7daWlsIpu","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04d8db8bf4869e80.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/7dfeab42587bcc0e.js","async":true}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","template":["$","$L7",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}
9
+ 0:{"buildId":"5t3oOwp8449lfX7vX7O58","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04d8db8bf4869e80.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/7dfeab42587bcc0e.js","async":true}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","template":["$","$L7",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,5 +1,5 @@
1
1
  1:"$Sreact.fragment"
2
2
  2:I[35417,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/7dfeab42587bcc0e.js"],"OutletBoundary"]
3
3
  3:"$Sreact.suspense"
4
- 0:{"buildId":"z104tXi8Tgpi7daWlsIpu","rsc":["$","$1","c",{"children":[[["$","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,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"loading":null,"isPartial":false}
4
+ 0:{"buildId":"5t3oOwp8449lfX7vX7O58","rsc":["$","$1","c",{"children":[[["$","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,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"loading":null,"isPartial":false}
5
5
  4:null
@@ -1,4 +1,4 @@
1
1
  1:"$Sreact.fragment"
2
2
  2:I[45121,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
3
3
  3:I[60512,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
4
- 0:{"buildId":"z104tXi8Tgpi7daWlsIpu","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"loading":null,"isPartial":false}
4
+ 0:{"buildId":"5t3oOwp8449lfX7vX7O58","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"loading":null,"isPartial":false}
@@ -1,2 +1,2 @@
1
1
  :HL["/_next/static/chunks/04d8db8bf4869e80.css","style"]
2
- 0:{"buildId":"z104tXi8Tgpi7daWlsIpu","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"/_not-found","paramType":null,"paramKey":"/_not-found","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
2
+ 0:{"buildId":"5t3oOwp8449lfX7vX7O58","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"/_not-found","paramType":null,"paramKey":"/_not-found","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
@@ -1 +1 @@
1
- <!DOCTYPE html><!--z104tXi8Tgpi7daWlsIpu--><html lang="zh-CN" class="font-sans antialiased" data-vtl-theme="default" data-vtl-density="default" data-vtl-motion="default"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/04d8db8bf4869e80.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/ccc016f22e340d7a.js"/><script src="/_next/static/chunks/465977caba526416.js" async=""></script><script src="/_next/static/chunks/757e2e1b77b5bacc.js" async=""></script><script src="/_next/static/chunks/turbopack-74ec218a8e8a6a34.js" async=""></script><script src="/_next/static/chunks/10ce0b22985f1a35.js" async=""></script><script src="/_next/static/chunks/c75862ae59265943.js" async=""></script><script src="/_next/static/chunks/7dfeab42587bcc0e.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Vantaloom</title><meta name="description" content="Vantaloom local agent operations console."/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><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","system",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;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/ccc016f22e340d7a.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[22332,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ThemeProvider\"]\n3:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"FrontendErrorBoundary\"]\n4:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"GlobalErrorHandlers\"]\n5:I[64990,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"TourProvider\"]\n6:I[45121,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n7:I[60512,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n8:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nb:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ViewportBoundary\"]\nd:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"MetadataBoundary\"]\nf:I[50025,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n:HL[\"/_next/static/chunks/04d8db8bf4869e80.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"z104tXi8Tgpi7daWlsIpu\",\"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/04d8db8bf4869e80.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/10ce0b22985f1a35.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/c75862ae59265943.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/7dfeab42587bcc0e.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"suppressHydrationWarning\":true,\"className\":\"font-sans antialiased\",\"data-vtl-theme\":\"default\",\"data-vtl-density\":\"default\",\"data-vtl-motion\":\"default\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{}],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",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,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",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:1: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:1: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:1: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:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Le\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"a:null\ne:[[\"$\",\"title\",\"0\",{\"children\":\"Vantaloom\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Vantaloom local agent operations console.\"}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--5t3oOwp8449lfX7vX7O58--><html lang="zh-CN" class="font-sans antialiased" data-vtl-theme="default" data-vtl-density="default" data-vtl-motion="default"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/04d8db8bf4869e80.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/ccc016f22e340d7a.js"/><script src="/_next/static/chunks/465977caba526416.js" async=""></script><script src="/_next/static/chunks/757e2e1b77b5bacc.js" async=""></script><script src="/_next/static/chunks/turbopack-74ec218a8e8a6a34.js" async=""></script><script src="/_next/static/chunks/10ce0b22985f1a35.js" async=""></script><script src="/_next/static/chunks/c75862ae59265943.js" async=""></script><script src="/_next/static/chunks/7dfeab42587bcc0e.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>Vantaloom</title><meta name="description" content="Vantaloom local agent operations console."/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><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","system",null,["light","dark"],null,true,true)</script><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;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/ccc016f22e340d7a.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[22332,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ThemeProvider\"]\n3:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"FrontendErrorBoundary\"]\n4:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"GlobalErrorHandlers\"]\n5:I[64990,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"TourProvider\"]\n6:I[45121,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n7:I[60512,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n8:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"OutletBoundary\"]\n9:\"$Sreact.suspense\"\nb:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ViewportBoundary\"]\nd:I[35417,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"MetadataBoundary\"]\nf:I[50025,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n:HL[\"/_next/static/chunks/04d8db8bf4869e80.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"5t3oOwp8449lfX7vX7O58\",\"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/04d8db8bf4869e80.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/10ce0b22985f1a35.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/c75862ae59265943.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/7dfeab42587bcc0e.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"suppressHydrationWarning\":true,\"className\":\"font-sans antialiased\",\"data-vtl-theme\":\"default\",\"data-vtl-density\":\"default\",\"data-vtl-motion\":\"default\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{}],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",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,[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",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:1: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:1: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:1: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:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L8\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@a\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Ld\",null,{\"children\":[\"$\",\"$9\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Le\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$f\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"c:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"a:null\ne:[[\"$\",\"title\",\"0\",{\"children\":\"Vantaloom\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Vantaloom local agent operations console.\"}]]\n"])</script></body></html>
@@ -11,7 +11,7 @@ b:I[35417,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c758
11
11
  d:I[35417,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/7dfeab42587bcc0e.js"],"MetadataBoundary"]
12
12
  f:I[50025,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
13
13
  :HL["/_next/static/chunks/04d8db8bf4869e80.css","style"]
14
- 0:{"P":null,"b":"z104tXi8Tgpi7daWlsIpu","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/04d8db8bf4869e80.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/7dfeab42587bcc0e.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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,["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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:1: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:1: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:1: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:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],null]}],false]],"m":"$undefined","G":["$f","$undefined"],"S":true}
14
+ 0:{"P":null,"b":"5t3oOwp8449lfX7vX7O58","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/04d8db8bf4869e80.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/7dfeab42587bcc0e.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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,["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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:1: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:1: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:1: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:1:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],null,["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],null]}],false]],"m":"$undefined","G":["$f","$undefined"],"S":true}
15
15
  c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
16
16
  a:null
17
17
  e:[["$","title","0",{"children":"Vantaloom"}],["$","meta","1",{"name":"description","content":"Vantaloom local agent operations console."}]]
package/web/index.html CHANGED
@@ -1 +1 @@
1
- <!DOCTYPE html><!--z104tXi8Tgpi7daWlsIpu--><html lang="zh-CN" class="font-sans antialiased" data-vtl-theme="default" data-vtl-density="default" data-vtl-motion="default"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/04d8db8bf4869e80.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/ccc016f22e340d7a.js"/><script src="/_next/static/chunks/465977caba526416.js" async=""></script><script src="/_next/static/chunks/757e2e1b77b5bacc.js" async=""></script><script src="/_next/static/chunks/turbopack-74ec218a8e8a6a34.js" async=""></script><script src="/_next/static/chunks/10ce0b22985f1a35.js" async=""></script><script src="/_next/static/chunks/c75862ae59265943.js" async=""></script><script src="/_next/static/chunks/7dfeab42587bcc0e.js" async=""></script><script src="/_next/static/chunks/17e0384154325960.js" async=""></script><script src="/_next/static/chunks/c990601c49cb69a5.js" async=""></script><script src="/_next/static/chunks/71eec620f5343c0c.js" async=""></script><script src="/_next/static/chunks/742d3900ca49db0a.js" async=""></script><title>Vantaloom</title><meta name="description" content="Vantaloom local agent operations console."/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><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","system",null,["light","dark"],null,true,true)</script><main class="grid min-h-svh place-items-center bg-background"><div class="flex flex-col items-center gap-3"><div class="size-8 animate-spin rounded-full border-2 border-muted-foreground/20 border-t-primary"></div><span class="text-sm text-muted-foreground">连接中...</span></div></main><!--$--><!--/$--><script src="/_next/static/chunks/ccc016f22e340d7a.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[22332,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\"],\"ThemeProvider\"]\n3:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\"],\"FrontendErrorBoundary\"]\n4:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\"],\"GlobalErrorHandlers\"]\n5:I[64990,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\"],\"TourProvider\"]\n6:I[45121,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n7:I[60512,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n8:I[66863,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ClientPageRoot\"]\n9:I[66204,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/17e0384154325960.js\",\"/_next/static/chunks/c990601c49cb69a5.js\",\"/_next/static/chunks/71eec620f5343c0c.js\",\"/_next/static/chunks/742d3900ca49db0a.js\"],\"default\"]\nc:I[35417,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"OutletBoundary\"]\nd:\"$Sreact.suspense\"\nf:I[35417,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ViewportBoundary\"]\n11:I[35417,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"MetadataBoundary\"]\n13:I[50025,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n:HL[\"/_next/static/chunks/04d8db8bf4869e80.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"z104tXi8Tgpi7daWlsIpu\",\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/04d8db8bf4869e80.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/10ce0b22985f1a35.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/c75862ae59265943.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"suppressHydrationWarning\":true,\"className\":\"font-sans antialiased\",\"data-vtl-theme\":\"default\",\"data-vtl-density\":\"default\",\"data-vtl-motion\":\"default\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{}],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",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\":[[\"$\",\"$L8\",null,{\"Component\":\"$9\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@a\",\"$@b\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/17e0384154325960.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/c990601c49cb69a5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/71eec620f5343c0c.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/742d3900ca49db0a.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@e\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L11\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L12\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$13\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:{}\nb:\"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:null\n12:[[\"$\",\"title\",\"0\",{\"children\":\"Vantaloom\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Vantaloom local agent operations console.\"}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--5t3oOwp8449lfX7vX7O58--><html lang="zh-CN" class="font-sans antialiased" data-vtl-theme="default" data-vtl-density="default" data-vtl-motion="default"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/04d8db8bf4869e80.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/ccc016f22e340d7a.js"/><script src="/_next/static/chunks/465977caba526416.js" async=""></script><script src="/_next/static/chunks/757e2e1b77b5bacc.js" async=""></script><script src="/_next/static/chunks/turbopack-74ec218a8e8a6a34.js" async=""></script><script src="/_next/static/chunks/10ce0b22985f1a35.js" async=""></script><script src="/_next/static/chunks/c75862ae59265943.js" async=""></script><script src="/_next/static/chunks/7dfeab42587bcc0e.js" async=""></script><script src="/_next/static/chunks/17e0384154325960.js" async=""></script><script src="/_next/static/chunks/c990601c49cb69a5.js" async=""></script><script src="/_next/static/chunks/dc65a95f066997e0.js" async=""></script><script src="/_next/static/chunks/742d3900ca49db0a.js" async=""></script><title>Vantaloom</title><meta name="description" content="Vantaloom local agent operations console."/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><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","system",null,["light","dark"],null,true,true)</script><main class="grid min-h-svh place-items-center bg-background"><div class="flex flex-col items-center gap-3"><div class="size-8 animate-spin rounded-full border-2 border-muted-foreground/20 border-t-primary"></div><span class="text-sm text-muted-foreground">连接中...</span></div></main><!--$--><!--/$--><script src="/_next/static/chunks/ccc016f22e340d7a.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[22332,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\"],\"ThemeProvider\"]\n3:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\"],\"FrontendErrorBoundary\"]\n4:I[97452,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\"],\"GlobalErrorHandlers\"]\n5:I[64990,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\"],\"TourProvider\"]\n6:I[45121,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n7:I[60512,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n8:I[66863,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ClientPageRoot\"]\n9:I[66204,[\"/_next/static/chunks/10ce0b22985f1a35.js\",\"/_next/static/chunks/c75862ae59265943.js\",\"/_next/static/chunks/17e0384154325960.js\",\"/_next/static/chunks/c990601c49cb69a5.js\",\"/_next/static/chunks/dc65a95f066997e0.js\",\"/_next/static/chunks/742d3900ca49db0a.js\"],\"default\"]\nc:I[35417,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"OutletBoundary\"]\nd:\"$Sreact.suspense\"\nf:I[35417,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"ViewportBoundary\"]\n11:I[35417,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"MetadataBoundary\"]\n13:I[50025,[\"/_next/static/chunks/7dfeab42587bcc0e.js\"],\"default\"]\n:HL[\"/_next/static/chunks/04d8db8bf4869e80.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"5t3oOwp8449lfX7vX7O58\",\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/04d8db8bf4869e80.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/10ce0b22985f1a35.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/c75862ae59265943.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"suppressHydrationWarning\":true,\"className\":\"font-sans antialiased\",\"data-vtl-theme\":\"default\",\"data-vtl-density\":\"default\",\"data-vtl-motion\":\"default\",\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[[\"$\",\"$L4\",null,{}],[\"$\",\"$L5\",null,{\"children\":[\"$\",\"$L6\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L7\",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\":[[\"$\",\"$L8\",null,{\"Component\":\"$9\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@a\",\"$@b\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/17e0384154325960.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/c990601c49cb69a5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/dc65a95f066997e0.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/742d3900ca49db0a.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@e\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lf\",null,{\"children\":\"$L10\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L11\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L12\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$13\",[]],\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:{}\nb:\"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"10:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:null\n12:[[\"$\",\"title\",\"0\",{\"children\":\"Vantaloom\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Vantaloom local agent operations console.\"}]]\n"])</script></body></html>
package/web/index.txt CHANGED
@@ -6,14 +6,14 @@
6
6
  6:I[45121,["/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
7
7
  7:I[60512,["/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
8
8
  8:I[66863,["/_next/static/chunks/7dfeab42587bcc0e.js"],"ClientPageRoot"]
9
- 9:I[66204,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/17e0384154325960.js","/_next/static/chunks/c990601c49cb69a5.js","/_next/static/chunks/71eec620f5343c0c.js","/_next/static/chunks/742d3900ca49db0a.js"],"default"]
9
+ 9:I[66204,["/_next/static/chunks/10ce0b22985f1a35.js","/_next/static/chunks/c75862ae59265943.js","/_next/static/chunks/17e0384154325960.js","/_next/static/chunks/c990601c49cb69a5.js","/_next/static/chunks/dc65a95f066997e0.js","/_next/static/chunks/742d3900ca49db0a.js"],"default"]
10
10
  c:I[35417,["/_next/static/chunks/7dfeab42587bcc0e.js"],"OutletBoundary"]
11
11
  d:"$Sreact.suspense"
12
12
  f:I[35417,["/_next/static/chunks/7dfeab42587bcc0e.js"],"ViewportBoundary"]
13
13
  11:I[35417,["/_next/static/chunks/7dfeab42587bcc0e.js"],"MetadataBoundary"]
14
14
  13:I[50025,["/_next/static/chunks/7dfeab42587bcc0e.js"],"default"]
15
15
  :HL["/_next/static/chunks/04d8db8bf4869e80.css","style"]
16
- 0:{"P":null,"b":"z104tXi8Tgpi7daWlsIpu","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04d8db8bf4869e80.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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":[["$","$L8",null,{"Component":"$9","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@a","$@b"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/17e0384154325960.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c990601c49cb69a5.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/71eec620f5343c0c.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/742d3900ca49db0a.js","async":true,"nonce":"$undefined"}]],["$","$Lc",null,{"children":["$","$d",null,{"name":"Next.MetadataOutlet","children":"$@e"}]}]]}],{},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","div",null,{"hidden":true,"children":["$","$L11",null,{"children":["$","$d",null,{"name":"Next.Metadata","children":"$L12"}]}]}],null]}],false]],"m":"$undefined","G":["$13",[]],"S":true}
16
+ 0:{"P":null,"b":"5t3oOwp8449lfX7vX7O58","c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04d8db8bf4869e80.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/10ce0b22985f1a35.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c75862ae59265943.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"className":"font-sans antialiased","data-vtl-theme":"default","data-vtl-density":"default","data-vtl-motion":"default","children":["$","body",null,{"children":["$","$L2",null,{"children":["$","$L3",null,{"children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L6",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L7",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":[["$","$L8",null,{"Component":"$9","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@a","$@b"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/17e0384154325960.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/c990601c49cb69a5.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/dc65a95f066997e0.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/742d3900ca49db0a.js","async":true,"nonce":"$undefined"}]],["$","$Lc",null,{"children":["$","$d",null,{"name":"Next.MetadataOutlet","children":"$@e"}]}]]}],{},null,false,false]},null,false,false],["$","$1","h",{"children":[null,["$","$Lf",null,{"children":"$L10"}],["$","div",null,{"hidden":true,"children":["$","$L11",null,{"children":["$","$d",null,{"name":"Next.Metadata","children":"$L12"}]}]}],null]}],false]],"m":"$undefined","G":["$13",[]],"S":true}
17
17
  a:{}
18
18
  b:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
19
19
  10:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]