@auto-ai/agent 2.1.213 → 2.1.216

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/safe-a/404/index.html +1 -1
  2. package/dist/safe-a/404.html +1 -1
  3. package/dist/safe-a/_next/static/chunks/009ad4aad9cfa502.js +1 -0
  4. package/dist/safe-a/_next/static/chunks/00efede689cf035f.css +7 -0
  5. package/dist/safe-a/_next/static/chunks/0fb74192c4e23fbe.js +1 -0
  6. package/dist/safe-a/_next/static/chunks/101f70bebf1522b2.js +1 -0
  7. package/dist/safe-a/_next/static/chunks/11f35a289d90c8f7.js +1 -0
  8. package/dist/safe-a/_next/static/chunks/{7e2887a3269dfc01.js → 2954e8f94d83412a.js} +1 -1
  9. package/dist/safe-a/_next/static/chunks/2c300e2a1fb17288.js +1 -0
  10. package/dist/safe-a/_next/static/chunks/7defa1cc0271dd01.css +1 -0
  11. package/dist/safe-a/_next/static/chunks/{ece085cc915ab5e5.js → 8249026c4faf64b8.js} +1 -1
  12. package/dist/safe-a/_next/static/chunks/8ed5273cea590ac8.js +1 -0
  13. package/dist/safe-a/_next/static/chunks/9311fdc96f82fdcc.js +1 -0
  14. package/dist/safe-a/_next/static/chunks/b4b8918a2dbddca7.js +1 -0
  15. package/dist/safe-a/_next/static/chunks/b725c08f4efec3ab.js +1 -0
  16. package/dist/safe-a/_next/static/chunks/c6362bd055df6043.js +1 -0
  17. package/dist/safe-a/_next/static/chunks/{e6c441f81a8ea81c.js → dc982433a82e2718.js} +1 -1
  18. package/dist/safe-a/index.html +2 -2
  19. package/dist/safe-a/index.txt +29 -31
  20. package/dist/safe-a/manage/about/index.html +2 -2
  21. package/dist/safe-a/manage/about/index.txt +29 -30
  22. package/dist/safe-a/manage/env/index.html +2 -2
  23. package/dist/safe-a/manage/env/index.txt +32 -33
  24. package/dist/safe-a/manage/geelib/index.html +2 -2
  25. package/dist/safe-a/manage/geelib/index.txt +32 -33
  26. package/dist/safe-a/manage/general/index.html +2 -2
  27. package/dist/safe-a/manage/general/index.txt +29 -30
  28. package/dist/safe-a/manage/git/index.html +2 -2
  29. package/dist/safe-a/manage/git/index.txt +32 -33
  30. package/dist/safe-a/manage/im/index.html +2 -2
  31. package/dist/safe-a/manage/im/index.txt +32 -33
  32. package/dist/safe-a/manage/index.html +2 -2
  33. package/dist/safe-a/manage/index.txt +26 -27
  34. package/dist/safe-a/manage/library/index.html +2 -2
  35. package/dist/safe-a/manage/library/index.txt +30 -31
  36. package/dist/safe-a/manage/mcp/index.html +2 -2
  37. package/dist/safe-a/manage/mcp/index.txt +30 -31
  38. package/dist/safe-a/manage/permissions/index.html +2 -2
  39. package/dist/safe-a/manage/permissions/index.txt +29 -30
  40. package/dist/safe-a/manage/skills/index.html +2 -2
  41. package/dist/safe-a/manage/skills/index.txt +30 -31
  42. package/dist/safe-a/manage/task/index.html +2 -2
  43. package/dist/safe-a/manage/task/index.txt +30 -31
  44. package/dist/safe-a/manage/teams/index.html +2 -2
  45. package/dist/safe-a/manage/teams/index.txt +30 -31
  46. package/dist/safe-a/manage/tools/index.html +2 -2
  47. package/dist/safe-a/manage/tools/index.txt +30 -31
  48. package/dist/ws-test/ws-test.js +33 -1
  49. package/mcps-runtime/claude-ws-channel/server/gateway.bundle.mjs +10 -1
  50. package/package.json +6 -6
  51. package/dist/safe-a/_next/static/chunks/0d0a0fd8bc7c5154.js +0 -1
  52. package/dist/safe-a/_next/static/chunks/37e4ac5f3654a688.js +0 -1
  53. package/dist/safe-a/_next/static/chunks/38e76abda882c1a8.js +0 -1
  54. package/dist/safe-a/_next/static/chunks/3f74431cdf49e5e1.js +0 -1
  55. package/dist/safe-a/_next/static/chunks/7cadf95d4932deec.js +0 -1
  56. package/dist/safe-a/_next/static/chunks/846fd48826ed3d89.js +0 -1
  57. package/dist/safe-a/_next/static/chunks/913de10eeb8a88d9.js +0 -1
  58. package/dist/safe-a/_next/static/chunks/9971428081f87b2e.js +0 -1
  59. package/dist/safe-a/_next/static/chunks/b744b1f1595cffb6.js +0 -1
  60. package/dist/safe-a/_next/static/chunks/dda0af99af0e0631.css +0 -7
  61. package/dist/safe-a/_next/static/chunks/e0b6375c01566831.js +0 -1
  62. package/dist/safe-a/_next/static/chunks/f37854d807ee41ac.css +0 -1
  63. package/dist/safe-a/_next/static/chunks/fd9b8164ea743aa0.js +0 -1
  64. /package/dist/safe-a/_next/static/{ydg1pWMUiUWUhsV4OnPd9 → fJY87EWm4q7Foe1k9iCt0}/_buildManifest.js +0 -0
  65. /package/dist/safe-a/_next/static/{ydg1pWMUiUWUhsV4OnPd9 → fJY87EWm4q7Foe1k9iCt0}/_clientMiddlewareManifest.json +0 -0
  66. /package/dist/safe-a/_next/static/{ydg1pWMUiUWUhsV4OnPd9 → fJY87EWm4q7Foe1k9iCt0}/_ssgManifest.js +0 -0
@@ -1,37 +1,36 @@
1
1
  1:"$Sreact.fragment"
2
- 2:I[18805,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js"],"AppToaster"]
3
- 3:I[3450,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js"],"default"]
4
- 4:I[58973,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js"],"default"]
5
- 5:I[82860,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js","/app/_next/static/chunks/9971428081f87b2e.js","/app/_next/static/chunks/913de10eeb8a88d9.js","/app/_next/static/chunks/7cadf95d4932deec.js","/app/_next/static/chunks/37e4ac5f3654a688.js","/app/_next/static/chunks/c7ce2c0e40c62b6b.js","/app/_next/static/chunks/42d0ae4192d72f8e.js","/app/_next/static/chunks/e0b6375c01566831.js","/app/_next/static/chunks/84e8e1e50a6b3ab7.js","/app/_next/static/chunks/1a900b3c5a00d59b.js","/app/_next/static/chunks/0d0a0fd8bc7c5154.js","/app/_next/static/chunks/38d88de54642e44e.js","/app/_next/static/chunks/7c2d68248d759f50.js","/app/_next/static/chunks/e6c441f81a8ea81c.js","/app/_next/static/chunks/7562ab6463e9fc3f.js","/app/_next/static/chunks/b31fde4b83862330.js","/app/_next/static/chunks/b744b1f1595cffb6.js"],"WorkspaceShell"]
6
- b:I[40193,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js"],"default"]
2
+ 2:I[18805,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js"],"AppToaster"]
3
+ 3:I[3450,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js"],"default"]
4
+ 4:I[58973,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js"],"default"]
5
+ 5:I[82860,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js","/app/_next/static/chunks/9311fdc96f82fdcc.js","/app/_next/static/chunks/b4b8918a2dbddca7.js","/app/_next/static/chunks/101f70bebf1522b2.js","/app/_next/static/chunks/42d0ae4192d72f8e.js","/app/_next/static/chunks/c7ce2c0e40c62b6b.js","/app/_next/static/chunks/11f35a289d90c8f7.js","/app/_next/static/chunks/84e8e1e50a6b3ab7.js","/app/_next/static/chunks/1a900b3c5a00d59b.js","/app/_next/static/chunks/8ed5273cea590ac8.js","/app/_next/static/chunks/7c2d68248d759f50.js","/app/_next/static/chunks/7562ab6463e9fc3f.js","/app/_next/static/chunks/dc982433a82e2718.js","/app/_next/static/chunks/38d88de54642e44e.js","/app/_next/static/chunks/b31fde4b83862330.js","/app/_next/static/chunks/2c300e2a1fb17288.js"],"WorkspaceShell"]
6
+ a:I[40193,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js"],"default"]
7
7
  :HL["/app/_next/static/chunks/7bdf0e5b41aeb209.css","style"]
8
- :HL["/app/_next/static/chunks/dda0af99af0e0631.css","style"]
9
- :HL["/app/_next/static/chunks/f37854d807ee41ac.css","style"]
8
+ :HL["/app/_next/static/chunks/00efede689cf035f.css","style"]
9
+ :HL["/app/_next/static/chunks/7defa1cc0271dd01.css","style"]
10
10
  :HL["/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
11
11
  :HL["/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
12
12
  :HL["/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
13
13
  :HL["/app/_next/static/chunks/6e61f670898cb297.css","style"]
14
- 0:{"P":null,"b":"ydg1pWMUiUWUhsV4OnPd9","p":"/app","c":["","manage","tools",""],"i":false,"f":[[["",{"children":["(workspace)",{"children":["manage",{"children":[["route","tools","oc"],{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/app/_next/static/chunks/7bdf0e5b41aeb209.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/app/_next/static/chunks/dda0af99af0e0631.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/app/_next/static/chunks/f37854d807ee41ac.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/app/_next/static/chunks/d2b5664aa6eb613c.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/846fd48826ed3d89.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/d78975cda9119543.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","className":"sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans","children":["$","body",null,{"children":[["$","$L2",null,{}],["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"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":["(workspace)",["$","$1","c",{"children":[[["$","script","script-0",{"src":"/app/_next/static/chunks/9971428081f87b2e.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/913de10eeb8a88d9.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/7cadf95d4932deec.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/app/_next/static/chunks/37e4ac5f3654a688.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/app/_next/static/chunks/c7ce2c0e40c62b6b.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/app/_next/static/chunks/42d0ae4192d72f8e.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/app/_next/static/chunks/e0b6375c01566831.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:1: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:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}],{"children":["manage",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["route","tools","oc"],["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":"$L6","templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__","$L7",{},null,false]},null,false]},["$L8",[],[]],false]},null,false]},["$L9",[],[]],false],"$La",false]],"m":"$undefined","G":["$b",["$Lc","$Ld","$Le"]],"s":false,"S":true}
15
- 10:I[65226,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js"],"OutletBoundary"]
16
- 12:I[80890,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js"],"AsyncMetadataOutlet"]
17
- 14:I[22924,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js","/app/_next/static/chunks/9971428081f87b2e.js","/app/_next/static/chunks/913de10eeb8a88d9.js","/app/_next/static/chunks/7cadf95d4932deec.js","/app/_next/static/chunks/37e4ac5f3654a688.js","/app/_next/static/chunks/c7ce2c0e40c62b6b.js","/app/_next/static/chunks/42d0ae4192d72f8e.js","/app/_next/static/chunks/e0b6375c01566831.js","/app/_next/static/chunks/84e8e1e50a6b3ab7.js","/app/_next/static/chunks/1a900b3c5a00d59b.js","/app/_next/static/chunks/0d0a0fd8bc7c5154.js","/app/_next/static/chunks/38d88de54642e44e.js","/app/_next/static/chunks/7c2d68248d759f50.js","/app/_next/static/chunks/e6c441f81a8ea81c.js","/app/_next/static/chunks/7562ab6463e9fc3f.js","/app/_next/static/chunks/b31fde4b83862330.js","/app/_next/static/chunks/b744b1f1595cffb6.js"],"default"]
18
- 15:I[65226,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js"],"ViewportBoundary"]
19
- 17:I[65226,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js"],"MetadataBoundary"]
20
- 18:"$Sreact.suspense"
21
- 6:["$","$L4",null,{}]
22
- 7:["$","$1","c",{"children":["$Lf",[["$","link","0",{"rel":"stylesheet","href":"/app/_next/static/chunks/6e61f670898cb297.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/app/_next/static/chunks/84e8e1e50a6b3ab7.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/1a900b3c5a00d59b.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/0d0a0fd8bc7c5154.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/app/_next/static/chunks/38d88de54642e44e.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/app/_next/static/chunks/7c2d68248d759f50.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/app/_next/static/chunks/e6c441f81a8ea81c.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/app/_next/static/chunks/7562ab6463e9fc3f.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/app/_next/static/chunks/b31fde4b83862330.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/app/_next/static/chunks/b744b1f1595cffb6.js","async":true,"nonce":"$undefined"}]],["$","$L10",null,{"children":["$L11",["$","$L12",null,{"promise":"$@13"}]]}]]}]
23
- 8:["$","div","l",{"className":"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500","children":[["$","$L14",null,{"ref":"$undefined","iconNode":[["path",{"d":"M21 12a9 9 0 1 1-6.219-8.56","key":"13zald"}]],"className":"lucide-loader-circle animate-spin text-muted-foreground","size":16,"color":"currentColor","strokeWidth":2,"aria-hidden":"true"}]," 加载中"]}]
24
- 9:["$","div","l",{"className":"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500","children":[["$","$L14",null,{"ref":"$undefined","iconNode":"$8:props:children:0:props:iconNode","className":"lucide-loader-circle animate-spin text-muted-foreground","size":16,"color":"currentColor","strokeWidth":2,"aria-hidden":"true"}]," 加载中"]}]
25
- a:["$","$1","h",{"children":[null,[["$","$L15",null,{"children":"$L16"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$L17",null,{"children":["$","div",null,{"hidden":true,"children":["$","$18",null,{"fallback":null,"children":"$L19"}]}]}]]}]
26
- c:["$","link","0",{"rel":"stylesheet","href":"/app/_next/static/chunks/7bdf0e5b41aeb209.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
27
- d:["$","link","1",{"rel":"stylesheet","href":"/app/_next/static/chunks/dda0af99af0e0631.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
28
- e:["$","link","2",{"rel":"stylesheet","href":"/app/_next/static/chunks/f37854d807ee41ac.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
29
- 1a:I[15692,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js","/app/_next/static/chunks/9971428081f87b2e.js","/app/_next/static/chunks/913de10eeb8a88d9.js","/app/_next/static/chunks/7cadf95d4932deec.js","/app/_next/static/chunks/37e4ac5f3654a688.js","/app/_next/static/chunks/c7ce2c0e40c62b6b.js","/app/_next/static/chunks/42d0ae4192d72f8e.js","/app/_next/static/chunks/e0b6375c01566831.js","/app/_next/static/chunks/84e8e1e50a6b3ab7.js","/app/_next/static/chunks/1a900b3c5a00d59b.js","/app/_next/static/chunks/0d0a0fd8bc7c5154.js","/app/_next/static/chunks/38d88de54642e44e.js","/app/_next/static/chunks/7c2d68248d759f50.js","/app/_next/static/chunks/e6c441f81a8ea81c.js","/app/_next/static/chunks/7562ab6463e9fc3f.js","/app/_next/static/chunks/b31fde4b83862330.js","/app/_next/static/chunks/b744b1f1595cffb6.js"],"ManageFeatureChrome"]
30
- 1b:I[3339,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js","/app/_next/static/chunks/9971428081f87b2e.js","/app/_next/static/chunks/913de10eeb8a88d9.js","/app/_next/static/chunks/7cadf95d4932deec.js","/app/_next/static/chunks/37e4ac5f3654a688.js","/app/_next/static/chunks/c7ce2c0e40c62b6b.js","/app/_next/static/chunks/42d0ae4192d72f8e.js","/app/_next/static/chunks/e0b6375c01566831.js","/app/_next/static/chunks/84e8e1e50a6b3ab7.js","/app/_next/static/chunks/1a900b3c5a00d59b.js","/app/_next/static/chunks/0d0a0fd8bc7c5154.js","/app/_next/static/chunks/38d88de54642e44e.js","/app/_next/static/chunks/7c2d68248d759f50.js","/app/_next/static/chunks/e6c441f81a8ea81c.js","/app/_next/static/chunks/7562ab6463e9fc3f.js","/app/_next/static/chunks/b31fde4b83862330.js","/app/_next/static/chunks/b744b1f1595cffb6.js"],"PreloadChunks"]
31
- f:["$","$18",null,{"fallback":null,"children":["$","$L1a",null,{"headerIcon":"Tool","title":"Tools管理","description":"管理当前 Agent 已挂载的Tools列表","showTitle":true,"children":["$","$18",null,{"fallback":["$","div",null,{"className":"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500","children":[["$","$L14",null,{"ref":"$undefined","iconNode":"$8:props:children:0:props:iconNode","className":"lucide-loader-circle animate-spin text-muted-foreground","size":16,"color":"currentColor","strokeWidth":2,"aria-hidden":"true"}]," 加载中"]}],"children":[["$","$L1b",null,{"moduleIds":"$undefined"}],"$L1c"]}]}]}]
32
- 1d:I[47284,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/846fd48826ed3d89.js","/app/_next/static/chunks/d78975cda9119543.js","/app/_next/static/chunks/9971428081f87b2e.js","/app/_next/static/chunks/913de10eeb8a88d9.js","/app/_next/static/chunks/7cadf95d4932deec.js","/app/_next/static/chunks/37e4ac5f3654a688.js","/app/_next/static/chunks/c7ce2c0e40c62b6b.js","/app/_next/static/chunks/42d0ae4192d72f8e.js","/app/_next/static/chunks/e0b6375c01566831.js","/app/_next/static/chunks/84e8e1e50a6b3ab7.js","/app/_next/static/chunks/1a900b3c5a00d59b.js","/app/_next/static/chunks/0d0a0fd8bc7c5154.js","/app/_next/static/chunks/38d88de54642e44e.js","/app/_next/static/chunks/7c2d68248d759f50.js","/app/_next/static/chunks/e6c441f81a8ea81c.js","/app/_next/static/chunks/7562ab6463e9fc3f.js","/app/_next/static/chunks/b31fde4b83862330.js","/app/_next/static/chunks/b744b1f1595cffb6.js"],"ToolsManageView"]
33
- 1c:["$","$L1d",null,{}]
34
- 16:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
35
- 11:null
36
- 13:{"metadata":[["$","title","0",{"children":"Claude Code测试平台"}],["$","meta","1",{"name":"description","content":"Claude Code测试平台"}]],"error":null,"digest":"$undefined"}
37
- 19:"$13:metadata"
14
+ 0:{"P":null,"b":"fJY87EWm4q7Foe1k9iCt0","p":"/app","c":["","manage","tools",""],"i":false,"f":[[["",{"children":["(workspace)",{"children":["manage",{"children":[["route","tools","oc"],{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/app/_next/static/chunks/7bdf0e5b41aeb209.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/app/_next/static/chunks/00efede689cf035f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/app/_next/static/chunks/7defa1cc0271dd01.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/app/_next/static/chunks/d2b5664aa6eb613c.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/b725c08f4efec3ab.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/d78975cda9119543.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","className":"sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans","children":["$","body",null,{"children":[["$","$L2",null,{}],["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"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":["(workspace)",["$","$1","c",{"children":[[["$","script","script-0",{"src":"/app/_next/static/chunks/9311fdc96f82fdcc.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/b4b8918a2dbddca7.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/101f70bebf1522b2.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/app/_next/static/chunks/42d0ae4192d72f8e.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/app/_next/static/chunks/c7ce2c0e40c62b6b.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/app/_next/static/chunks/11f35a289d90c8f7.js","async":true,"nonce":"$undefined"}]],["$","$L5",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:1: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:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:1:props:style","children":404}],["$","div",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:style","children":["$","h2",null,{"style":"$0:f:0:1:1:props:children:1:props:children:props:children:1:props:notFound:0:1:props:children:props:children:2:props:children:props:style","children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]]}],{"children":["manage",["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["route","tools","oc"],["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__","$L6",{},null,false]},null,false]},["$L7",[],[]],false]},null,false]},["$L8",[],[]],false],"$L9",false]],"m":"$undefined","G":["$a",["$Lb","$Lc","$Ld"]],"s":false,"S":true}
15
+ f:I[65226,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js"],"OutletBoundary"]
16
+ 11:I[80890,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js"],"AsyncMetadataOutlet"]
17
+ 13:I[22924,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js","/app/_next/static/chunks/9311fdc96f82fdcc.js","/app/_next/static/chunks/b4b8918a2dbddca7.js","/app/_next/static/chunks/101f70bebf1522b2.js","/app/_next/static/chunks/42d0ae4192d72f8e.js","/app/_next/static/chunks/c7ce2c0e40c62b6b.js","/app/_next/static/chunks/11f35a289d90c8f7.js","/app/_next/static/chunks/84e8e1e50a6b3ab7.js","/app/_next/static/chunks/1a900b3c5a00d59b.js","/app/_next/static/chunks/8ed5273cea590ac8.js","/app/_next/static/chunks/7c2d68248d759f50.js","/app/_next/static/chunks/7562ab6463e9fc3f.js","/app/_next/static/chunks/dc982433a82e2718.js","/app/_next/static/chunks/38d88de54642e44e.js","/app/_next/static/chunks/b31fde4b83862330.js","/app/_next/static/chunks/2c300e2a1fb17288.js"],"default"]
18
+ 14:I[65226,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js"],"ViewportBoundary"]
19
+ 16:I[65226,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js"],"MetadataBoundary"]
20
+ 17:"$Sreact.suspense"
21
+ 6:["$","$1","c",{"children":["$Le",[["$","link","0",{"rel":"stylesheet","href":"/app/_next/static/chunks/6e61f670898cb297.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/app/_next/static/chunks/84e8e1e50a6b3ab7.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/1a900b3c5a00d59b.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/8ed5273cea590ac8.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/app/_next/static/chunks/7c2d68248d759f50.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/app/_next/static/chunks/7562ab6463e9fc3f.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/app/_next/static/chunks/dc982433a82e2718.js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/app/_next/static/chunks/38d88de54642e44e.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/app/_next/static/chunks/b31fde4b83862330.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/app/_next/static/chunks/2c300e2a1fb17288.js","async":true,"nonce":"$undefined"}]],["$","$Lf",null,{"children":["$L10",["$","$L11",null,{"promise":"$@12"}]]}]]}]
22
+ 7:["$","div","l",{"className":"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500","children":[["$","$L13",null,{"ref":"$undefined","iconNode":[["path",{"d":"M21 12a9 9 0 1 1-6.219-8.56","key":"13zald"}]],"className":"lucide-loader-circle animate-spin text-muted-foreground","size":16,"color":"currentColor","strokeWidth":2,"aria-hidden":"true"}]," 加载中"]}]
23
+ 8:["$","div","l",{"className":"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500","children":[["$","$L13",null,{"ref":"$undefined","iconNode":"$7:props:children:0:props:iconNode","className":"lucide-loader-circle animate-spin text-muted-foreground","size":16,"color":"currentColor","strokeWidth":2,"aria-hidden":"true"}]," 加载中"]}]
24
+ 9:["$","$1","h",{"children":[null,[["$","$L14",null,{"children":"$L15"}],["$","meta",null,{"name":"next-size-adjust","content":""}]],["$","$L16",null,{"children":["$","div",null,{"hidden":true,"children":["$","$17",null,{"fallback":null,"children":"$L18"}]}]}]]}]
25
+ b:["$","link","0",{"rel":"stylesheet","href":"/app/_next/static/chunks/7bdf0e5b41aeb209.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
26
+ c:["$","link","1",{"rel":"stylesheet","href":"/app/_next/static/chunks/00efede689cf035f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
27
+ d:["$","link","2",{"rel":"stylesheet","href":"/app/_next/static/chunks/7defa1cc0271dd01.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
28
+ 19:I[15692,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js","/app/_next/static/chunks/9311fdc96f82fdcc.js","/app/_next/static/chunks/b4b8918a2dbddca7.js","/app/_next/static/chunks/101f70bebf1522b2.js","/app/_next/static/chunks/42d0ae4192d72f8e.js","/app/_next/static/chunks/c7ce2c0e40c62b6b.js","/app/_next/static/chunks/11f35a289d90c8f7.js","/app/_next/static/chunks/84e8e1e50a6b3ab7.js","/app/_next/static/chunks/1a900b3c5a00d59b.js","/app/_next/static/chunks/8ed5273cea590ac8.js","/app/_next/static/chunks/7c2d68248d759f50.js","/app/_next/static/chunks/7562ab6463e9fc3f.js","/app/_next/static/chunks/dc982433a82e2718.js","/app/_next/static/chunks/38d88de54642e44e.js","/app/_next/static/chunks/b31fde4b83862330.js","/app/_next/static/chunks/2c300e2a1fb17288.js"],"ManageFeatureChrome"]
29
+ 1a:I[3339,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js","/app/_next/static/chunks/9311fdc96f82fdcc.js","/app/_next/static/chunks/b4b8918a2dbddca7.js","/app/_next/static/chunks/101f70bebf1522b2.js","/app/_next/static/chunks/42d0ae4192d72f8e.js","/app/_next/static/chunks/c7ce2c0e40c62b6b.js","/app/_next/static/chunks/11f35a289d90c8f7.js","/app/_next/static/chunks/84e8e1e50a6b3ab7.js","/app/_next/static/chunks/1a900b3c5a00d59b.js","/app/_next/static/chunks/8ed5273cea590ac8.js","/app/_next/static/chunks/7c2d68248d759f50.js","/app/_next/static/chunks/7562ab6463e9fc3f.js","/app/_next/static/chunks/dc982433a82e2718.js","/app/_next/static/chunks/38d88de54642e44e.js","/app/_next/static/chunks/b31fde4b83862330.js","/app/_next/static/chunks/2c300e2a1fb17288.js"],"PreloadChunks"]
30
+ e:["$","$17",null,{"fallback":null,"children":["$","$L19",null,{"headerIcon":"Tool","title":"Tools管理","description":"管理当前 Agent 已挂载的Tools列表","showTitle":true,"children":["$","$17",null,{"fallback":["$","div",null,{"className":"flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500","children":[["$","$L13",null,{"ref":"$undefined","iconNode":"$7:props:children:0:props:iconNode","className":"lucide-loader-circle animate-spin text-muted-foreground","size":16,"color":"currentColor","strokeWidth":2,"aria-hidden":"true"}]," 加载中"]}],"children":[["$","$L1a",null,{"moduleIds":"$undefined"}],"$L1b"]}]}]}]
31
+ 1c:I[47284,["/app/_next/static/chunks/d2b5664aa6eb613c.js","/app/_next/static/chunks/b725c08f4efec3ab.js","/app/_next/static/chunks/d78975cda9119543.js","/app/_next/static/chunks/9311fdc96f82fdcc.js","/app/_next/static/chunks/b4b8918a2dbddca7.js","/app/_next/static/chunks/101f70bebf1522b2.js","/app/_next/static/chunks/42d0ae4192d72f8e.js","/app/_next/static/chunks/c7ce2c0e40c62b6b.js","/app/_next/static/chunks/11f35a289d90c8f7.js","/app/_next/static/chunks/84e8e1e50a6b3ab7.js","/app/_next/static/chunks/1a900b3c5a00d59b.js","/app/_next/static/chunks/8ed5273cea590ac8.js","/app/_next/static/chunks/7c2d68248d759f50.js","/app/_next/static/chunks/7562ab6463e9fc3f.js","/app/_next/static/chunks/dc982433a82e2718.js","/app/_next/static/chunks/38d88de54642e44e.js","/app/_next/static/chunks/b31fde4b83862330.js","/app/_next/static/chunks/2c300e2a1fb17288.js"],"ToolsManageView"]
32
+ 1b:["$","$L1c",null,{}]
33
+ 15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
34
+ 10:null
35
+ 12:{"metadata":[["$","title","0",{"children":"Claude Code测试平台"}],["$","meta","1",{"name":"description","content":"Claude Code测试平台"}]],"error":null,"digest":"$undefined"}
36
+ 18:"$12:metadata"
@@ -2825,6 +2825,13 @@
2825
2825
  setTerminalPanelState('终端组件未加载', true)
2826
2826
  return
2827
2827
  }
2828
+ /** script 标签加载的 UMD 包将构造函数挂在 FitAddon.FitAddon 上 */
2829
+ const FitAddonCtor =
2830
+ typeof FitAddon === 'function' ? FitAddon : FitAddon.FitAddon
2831
+ if (typeof FitAddonCtor !== 'function') {
2832
+ setTerminalPanelState('FitAddon 加载异常', true)
2833
+ return
2834
+ }
2828
2835
  destroyTerminalSession()
2829
2836
  setTerminalPanelState('连接中…', false)
2830
2837
 
@@ -2839,7 +2846,7 @@
2839
2846
  selectionBackground: 'rgba(10, 132, 255, 0.28)',
2840
2847
  },
2841
2848
  })
2842
- const fitAddon = new FitAddon()
2849
+ const fitAddon = new FitAddonCtor()
2843
2850
  term.loadAddon(fitAddon)
2844
2851
  if (terminalMount) {
2845
2852
  term.open(terminalMount)
@@ -5398,6 +5405,14 @@
5398
5405
  const sid = sessionIdInput ? sessionIdInput.value.trim() : ''
5399
5406
  updatePromptSessionInfo()
5400
5407
  if (!mainTitleEl) return
5408
+ if (isTerminalManageViewActive()) {
5409
+ mainTitleEl.textContent = '命令行'
5410
+ if (mainSubEl) {
5411
+ mainSubEl.textContent = ''
5412
+ mainSubEl.hidden = true
5413
+ }
5414
+ return
5415
+ }
5401
5416
  if (isRepoManageViewActive()) {
5402
5417
  mainTitleEl.textContent = '文件'
5403
5418
  if (mainSubEl) {
@@ -5406,6 +5421,23 @@
5406
5421
  }
5407
5422
  return
5408
5423
  }
5424
+ if (scheduleManageState.viewActive) {
5425
+ mainTitleEl.textContent = '定时任务'
5426
+ if (mainSubEl) {
5427
+ mainSubEl.textContent = ''
5428
+ mainSubEl.hidden = true
5429
+ }
5430
+ return
5431
+ }
5432
+ if (pickerManageState.viewActive) {
5433
+ mainTitleEl.textContent =
5434
+ PICKER_KIND_TITLES[pickerManageState.kind] || '管理'
5435
+ if (mainSubEl) {
5436
+ mainSubEl.textContent = ''
5437
+ mainSubEl.hidden = true
5438
+ }
5439
+ return
5440
+ }
5409
5441
  if (isAgentSettingsViewActive()) {
5410
5442
  mainTitleEl.textContent = '设置'
5411
5443
  if (mainSubEl) {
@@ -407300,6 +407300,7 @@ init_acpProtocol();
407300
407300
  init_wsSubprocess();
407301
407301
 
407302
407302
  // src/server/channel/adapters/wsAdapter.ts
407303
+ init_debug();
407303
407304
  init_wsSessionId();
407304
407305
 
407305
407306
  class WsChannelAdapter {
@@ -407354,6 +407355,8 @@ class WsChannelAdapter {
407354
407355
  sendStreaming(runtime, envelope) {
407355
407356
  const sessionId = runtime.storageSessionId || resolveSessionTranscriptStorageId(runtime.sessionId ?? "") || "";
407356
407357
  if (!sessionId.trim()) {
407358
+ const env7 = envelope;
407359
+ logForDebugging(`[wsAdapter] sendStreaming drop: missing storageSessionId agent=${runtime.agent} type=${String(env7.type ?? "")} runId=${String(env7.runId ?? "")}`, { level: "warn" });
407357
407360
  return;
407358
407361
  }
407359
407362
  this.pushEnvelope(sessionId, envelope);
@@ -413301,6 +413304,7 @@ async function handleRuntimePackageApi(req, url3) {
413301
413304
  }
413302
413305
 
413303
413306
  // src/server/wsMcp/httpGateway.ts
413307
+ init_debug();
413304
413308
  init_wsAgentWorkspace();
413305
413309
  init_wsSessionId();
413306
413310
  init_wsSessionOverrides();
@@ -413772,7 +413776,12 @@ function startWsMcpGateway(opts) {
413772
413776
  };
413773
413777
  const pushToSession = (sessionId, envelope) => {
413774
413778
  const storage = resolveSessionTranscriptStorageId(sessionId) ?? sessionId.trim();
413775
- pushBrowserJson(resolveSessionSocket(storage) ?? null, envelope);
413779
+ const ws = resolveSessionSocket(storage);
413780
+ if (!ws) {
413781
+ const env7 = envelope;
413782
+ logForDebugging(`[ws-gateway] push drop: no browser socket session=${storage} type=${String(env7.type ?? "")} runId=${String(env7.runId ?? "")}`, { level: "warn" });
413783
+ }
413784
+ pushBrowserJson(ws, envelope);
413776
413785
  };
413777
413786
  configureWsScheduleWsBridge(createGatewayWsBrowserPush({
413778
413787
  hasSessionSocket: (storageSessionId) => resolveSessionSocket(storageSessionId) != null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auto-ai/agent",
3
- "version": "2.1.213",
3
+ "version": "2.1.216",
4
4
  "description": "Auto AI Agent 网关 CLI(WebSocket,独立二进制,无需 Bun)",
5
5
  "type": "module",
6
6
  "maintainers": [
@@ -32,11 +32,11 @@
32
32
  "zod": "^4.3.6"
33
33
  },
34
34
  "optionalDependencies": {
35
- "@auto-ai/agent-linux-x64": "2.1.213",
36
- "@auto-ai/agent-linux-arm64": "2.1.213",
37
- "@auto-ai/agent-darwin-x64": "2.1.213",
38
- "@auto-ai/agent-darwin-arm64": "2.1.213",
39
- "@auto-ai/agent-win-x64": "2.1.213"
35
+ "@auto-ai/agent-linux-x64": "2.1.216",
36
+ "@auto-ai/agent-linux-arm64": "2.1.216",
37
+ "@auto-ai/agent-darwin-x64": "2.1.216",
38
+ "@auto-ai/agent-darwin-arm64": "2.1.216",
39
+ "@auto-ai/agent-win-x64": "2.1.216"
40
40
  },
41
41
  "scripts": {
42
42
  "prepare": "node ../../scripts/sync-launcher-env.js",
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,25587,e=>{"use strict";let r;e.s(["TeamsView",()=>X],25587);var t=e.i(59992),a=e.i(65765),l=e.i(15692),s=e.i(92369),n=e.i(87655),o=e.i(17678),i=e.i(33751),d=e.i(85941),c=e.i(18805),u=e.i(92371),m=e.i(96745);let x={expand:!0,copy:!0};function p(e){let{value:r,onChange:l,minLines:s,placeholder:n,readOnly:o,className:i}=e,d=(0,a.useRef)(null),c=(0,a.useRef)(null),x=Math.max(r.split("\n").length,s),p=(0,a.useCallback)(()=>{d.current&&c.current&&(c.current.scrollTop=d.current.scrollTop)},[]);return(0,t.jsxs)("div",{className:(0,m.cn)("flex min-h-0 flex-1",i),children:[(0,t.jsx)("div",{ref:c,"aria-hidden":!0,className:"w-10 shrink-0 overflow-hidden border-r border-[var(--ds-color-border-default)] bg-[#fafafa] py-3 text-right font-mono text-base leading-[1.5] text-[var(--ds-muted)]",children:Array.from({length:x},(e,r)=>(0,t.jsx)("div",{className:"px-2",children:r+1},r))}),(0,t.jsx)(u.Textarea,{ref:d,spellCheck:!1,readOnly:o,value:r,onChange:e=>l(e.target.value),onScroll:p,placeholder:n,className:"agent-md-editor min-h-0 flex-1 resize-none rounded-none border-0 bg-white px-4 py-3 shadow-none focus-visible:ring-0"})]})}function f(e){let{actions:r,copyDisabled:a,onCopy:l,className:s}=e;return r.copy?(0,t.jsx)("div",{className:(0,m.cn)("flex items-center gap-0.5",s),children:(0,t.jsx)(d.IconTooltipButton,{icon:"Copy",label:"复制内容",disabled:a,onClick:l})}):null}function h(e){let{show:r,expanded:a,onToggleExpand:l,className:s}=e;return r?(0,t.jsx)("div",{className:(0,m.cn)("flex items-center",s),children:(0,t.jsx)(d.IconTooltipButton,{icon:a?"Minimize2":"Maximize2",label:a?"收起编辑器":"展开编辑器",onClick:l})}):null}function b(e){let{value:r,onChange:l,minLines:s=20,className:n,placeholder:o="编辑 Markdown 内容",readOnly:d=!1,actions:u,expandTitle:b="编辑 Markdown",copySuccessMessage:v="已复制到剪贴板",copyEmptyMessage:g="暂无内容可复制"}=e,[j,N]=(0,a.useState)(!1),w=!1===u?{expand:!1,copy:!1}:{...x,...u},y=(0,a.useCallback)(()=>{if(!r.trim())return void c.appToast.error(g);("undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText?navigator.clipboard.writeText(r):"undefined"==typeof document?Promise.reject(Error("Clipboard unavailable")):new Promise((e,t)=>{let a=document.createElement("textarea");a.value=r,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="-9999px",a.style.opacity="0",document.body.appendChild(a),a.focus(),a.select();let l=document.execCommand("copy");if(document.body.removeChild(a),l)return void e();t(Error("Clipboard copy failed"))})).then(()=>{c.appToast.success(v)},()=>{c.appToast.error("复制失败,请手动选择复制")})},[r,v,g]),C=(0,a.useCallback)(()=>{N(e=>!e)},[]);(0,a.useEffect)(()=>{if(!j)return;let e=e=>{"Escape"===e.key&&N(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[j]);let k=(0,m.cn)("relative flex min-h-[320px] flex-1 flex-col overflow-hidden rounded-lg border border-[var(--ds-color-border-default)] bg-white",n),T=!r.trim()||d,S=(0,t.jsxs)("div",{className:k,children:[(0,t.jsx)(f,{actions:w,copyDisabled:T,onCopy:y,className:"absolute right-2 top-2 z-[1]"}),(0,t.jsx)(p,{value:r,onChange:l,minLines:s,placeholder:o,readOnly:d}),(0,t.jsx)(h,{show:w.expand,expanded:!1,onToggleExpand:C,className:"absolute bottom-2 right-2 z-[1]"})]}),A=j&&"undefined"!=typeof document?(0,i.createPortal)((0,t.jsxs)("div",{className:"fixed inset-0 z-[100] flex flex-col bg-[var(--surface-2)]",role:"dialog","aria-modal":"true","aria-label":b,children:[(0,t.jsx)("header",{className:"flex shrink-0 items-center border-b border-[var(--ds-color-border-default)] px-5 py-4",children:(0,t.jsx)("h2",{className:"truncate text-lg font-semibold text-[var(--ds-text)]",children:b})}),(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col p-5",children:(0,t.jsxs)("div",{className:"relative flex min-h-0 flex-1 flex-col overflow-hidden rounded-lg border border-[var(--ds-color-border-default)] bg-white",children:[(0,t.jsx)(f,{actions:w,copyDisabled:T,onCopy:y,className:"absolute right-2 top-2 z-[1]"}),(0,t.jsx)(p,{value:r,onChange:l,minLines:s,placeholder:o,readOnly:d,className:"min-h-0 flex-1"}),(0,t.jsx)(h,{show:w.expand,expanded:!0,onToggleExpand:C,className:"absolute bottom-2 right-2 z-[1]"})]})})]}),document.body):null;return(0,t.jsxs)(t.Fragment,{children:[S,A]})}var v=e.i(72099),g=e.i(60314),j=e.i(55105),N=e.i(49377),w=e.i(82649),y=e.i(28015);let C=/^[a-zA-Z0-9_-]{1,64}$/,k=[{id:"all",label:"全部"},{id:"joined_other",label:"已加入其他团队"}];function T(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:80,t=String(e||"").replace(/\s+/g," ").trim();return t?t.length<=r?t:"".concat(t.slice(0,r-1),"…"):"暂无使用说明"}var S=e.i(26995),A=e.i(99354);let z={sm:"h-7 w-7 text-xs",md:"h-9 w-9 "};function F(e){let{label:r,size:a="md",className:l}=e,s=(0,A.initialsFromLabel)(r);return(0,t.jsx)(S.TooltipProvider,{delayDuration:150,children:(0,t.jsxs)(S.Tooltip,{children:[(0,t.jsx)(S.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("span",{className:(0,m.cn)("inline-flex shrink-0 cursor-default items-center justify-center rounded-full font-semibold text-white",z[a],l),style:{background:(0,A.avatarBgForLabel)(r)},"aria-label":r,children:s})}),(0,t.jsx)(S.TooltipContent,{side:"bottom",align:"center",className:"",children:r})]})})}let D=[{value:"agents",label:"AGENTS"}];function E(e){let{mode:r,editAgentId:l,onClose:i,onSaved:d}=e,x=(0,N.useAppStore)(e=>e.wsUrl),p=(0,N.useAppStore)(e=>e.apiBase),f=(0,w.useStageThreadFlyoutStore)(e=>e.setFlyoutDirty),h=(0,w.useStageThreadFlyoutStore)(e=>e.requestCloseFlyout),k="edit"===r,[T,S]=(0,a.useState)(!1),[A,z]=(0,a.useState)(k),[E,M]=(0,a.useState)(null),[B,I]=(0,a.useState)("basic"),_=(0,a.useRef)(null),O=(0,o.useForm)({defaultValues:{id:"",whentouse:"",prompt:""},mode:"onChange"}),{isDirty:R}=(0,o.useFormState)({control:O.control}),L=O.watch("id"),P=k?"编辑 Agent · ".concat(null!=l?l:L):"新建Agent",H=T?k?"保存中…":"创建中…":k?"保存":"创建",U=(0,a.useCallback)(async()=>{let e=null==l?void 0:l.trim();if(e){z(!0),M(null);try{let r=await (0,y.getAgentDetail)(x,p,e);_.current=r.config,O.reset({id:r.id,whentouse:r.whentouse,prompt:r.prompt})}catch(r){let e=r instanceof Error?r.message:String(r);M(e),c.appToast.error("加载失败:".concat(e))}finally{z(!1)}}},[l,x,p,O]);(0,a.useEffect)(()=>{k&&U()},[k,U]),(0,a.useEffect)(()=>(f(R),()=>f(!1)),[R,f]);let G=(0,a.useCallback)(()=>{h()},[h]),V=(0,a.useCallback)(async e=>{let r=(k&&null!=l?l:e.id).trim();if(r){if(!k&&!C.test(String(r||"").trim()))return void c.appToast.error("Agent ID 仅支持字母、数字、下划线和中划线,长度 1~64");S(!0);try{k?(await (0,y.updateAgent)(x,p,{id:r,prompt:e.prompt,whentouse:e.whentouse,baseConfig:_.current}),c.appToast.success("已保存")):(await (0,y.createAgent)(x,p,{id:r,whentouse:e.whentouse,prompt:e.prompt}),c.appToast.success("已创建")),await (null==d?void 0:d()),i()}catch(r){let e=k?"保存":"创建";c.appToast.error("".concat(e,"失败:").concat(r instanceof Error?r.message:String(r)))}finally{S(!1)}}},[k,l,x,p,i,d]);return(0,t.jsx)(g.Form,{...O,children:(0,t.jsxs)("form",{className:"flex h-full min-h-0 flex-col bg-[var(--surface-2)]",onSubmit:O.handleSubmit(V),children:[(0,t.jsx)("header",{className:"shrink-0 border-b border-[var(--ds-color-border-default)] bg-[var(--surface-2)] px-5 pb-4 pt-5",children:(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center",children:[(0,t.jsx)(s.Button,{type:"button",variant:"plain",size:"icon",onClick:G,disabled:T,className:"shrink-0 cursor-pointer px-2 text-[var(--ds-text)] hover:bg-transparent hover:text-[color:var(--ds-color-accent)] [&_svg_path]:!fill-current","aria-label":"返回",children:(0,t.jsx)(n.default,{name:"Back",size:16})}),(0,t.jsx)("h2",{className:"truncate text-lg font-semibold text-[var(--ds-text)]",children:P})]}),(0,t.jsx)(s.Button,{type:"submit",variant:"default",size:"lg",disabled:T||A||!!E,className:"shrink-0 cursor-pointer rounded-lg bg-[#111] px-5 hover:bg-[#333]",children:H})]})}),(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto px-5 py-4",children:A?(0,t.jsx)("div",{className:"flex min-h-[240px] flex-1 items-center justify-center text-[var(--ds-muted)]",role:"status","aria-live":"polite",children:"加载中…"}):E?(0,t.jsxs)("div",{className:"flex min-h-[240px] flex-1 flex-col items-center justify-center gap-3 text-destructive",role:"alert",children:[(0,t.jsxs)("span",{children:["加载失败:",E]}),(0,t.jsx)(s.Button,{type:"button",variant:"outline",size:"sm",onClick:()=>void U(),children:"重试"})]}):"basic"===B?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("section",{className:"rounded-xl border border-[var(--ds-color-border-default)] bg-white p-4",children:(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)("div",{className:"flex shrink-0 flex-col items-center gap-2",children:(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)(F,{label:L.trim()||"Agent",className:"h-16 w-16 text-lg"})})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-3",children:[(0,t.jsx)(g.FormField,{control:O.control,name:"id",render:e=>{let{field:r}=e;return(0,t.jsxs)(g.FormItem,{children:[(0,t.jsx)(g.FormControl,{children:(0,t.jsx)(j.Input,{...r,readOnly:k,spellCheck:!1,placeholder:"例如 my-agent,agent名称是唯一标识",autoComplete:"off",className:(0,m.cn)("h-10 rounded-md border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)]",k&&"cursor-default text-[var(--ds-muted)]")})}),(0,t.jsx)(g.FormMessage,{})]})}}),(0,t.jsx)(g.FormField,{control:O.control,name:"whentouse",render:e=>{let{field:r}=e;return(0,t.jsxs)(g.FormItem,{children:[(0,t.jsx)(g.FormControl,{children:(0,t.jsx)(u.Textarea,{...r,spellCheck:!1,placeholder:"用一句话说明它的身份/它主要帮你做什么/使用时机(whentouse)",className:"min-h-[88px] resize-none rounded-md border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)] leading-relaxed"})}),(0,t.jsx)(g.FormMessage,{})]})}})]})]})}),(0,t.jsx)(v.AppTabs,{tabs:D,defaultValue:"agents",listVariant:"line",listClassName:"mt-4",className:"min-h-0 flex-1",children:(0,t.jsx)(v.AppTabsPanel,{value:"agents",className:"mt-4 flex min-h-0 flex-1 flex-col",children:(0,t.jsx)(g.FormField,{control:O.control,name:"prompt",render:e=>{let{field:r}=e;return(0,t.jsxs)(g.FormItem,{className:"flex min-h-0 flex-1 flex-col",children:[(0,t.jsx)(g.FormControl,{children:(0,t.jsx)(b,{value:r.value,onChange:r.onChange,className:"min-h-[320px]",placeholder:"Agent 提示词",expandTitle:"编辑 (agent.md)"})}),(0,t.jsx)(g.FormMessage,{})]})}})})})]}):(0,t.jsx)("div",{className:"flex flex-1 items-center justify-center text-[var(--ds-muted)]",children:"敬请期待"})})]})})}var M=e.i(28661),B=e.i(38671),I=e.i(75733);function _(e){let{label:r,hint:a,icon:l,onClick:s}=e,o=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.default,{name:l,size:14,className:"shrink-0 text-[var(--ds-muted)]"}),(0,t.jsx)("span",{children:a})]}),i=(0,m.cn)("inline-flex min-h-9 w-fit max-w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-[var(--ds-color-border-default)] !bg-transparent px-3 text-[var(--ds-muted)]",s&&"cursor-pointer hover:border-[color:var(--ds-color-border-hover)] hover:bg-[var(--ds-color-surface-main-tint)]");return s?(0,t.jsx)("button",{type:"button",className:i,onClick:s,"aria-label":r,children:o}):(0,t.jsx)("div",{className:i,"aria-label":r,children:o})}let O=a.forwardRef(function(e,r){let{className:l,size:s="default",checked:o,defaultChecked:i,disabled:d,id:c,onChange:u,...x}=e,p=void 0!==o,[f,h]=a.useState(!!i),b=p?!!o:f;return(0,t.jsxs)("span",{"data-slot":"checkbox","data-size":s,"data-checked":b?"true":"false",className:(0,m.cn)("relative inline-flex shrink-0 items-center justify-center rounded-sm border border-solid border-border bg-transparent outline-none transition-[color,box-shadow,border-color,background-color] duration-150 ease-in-out","has-[:focus-visible]:border-[var(--border-focus)] has-[:focus-visible]:[box-shadow:var(--ring-focus-sm)]","has-[:disabled]:cursor-not-allowed has-[:disabled]:opacity-50","data-[size=default]:size-4 data-[size=sm]:size-3.5",b?"border-[var(--ds-color-accent)] bg-[var(--ds-color-accent)]":"bg-transparent",l),children:[b?(0,t.jsx)(n.default,{name:"Check",className:(0,m.cn)("pointer-events-none text-[var(--surface-1)] [&_path]:!fill-none","sm"===s?"size-3":"size-3.5"),strokeWidth:2.25,"aria-hidden":"true"}):null,(0,t.jsx)("input",{ref:r,id:c,type:"checkbox",checked:p?o:void 0,defaultChecked:p?void 0:i,disabled:d,className:"absolute inset-0 m-0 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed",onChange:e=>{p||h(e.target.checked),null==u||u(e)},...x})]})});var R=e.i(65486);let L={captain:null,members:[]};function P(e){return{id:e.id,displayName:e.displayName.trim()||e.id}}function H(e,r,t,a){for(let s of t){var l;if(s.id===r)continue;let t=a(s.id);if((null==(l=t.captain)?void 0:l.id)===e||t.members.some(r=>r.id===e))return s.id}return null}function U(e){let{member:r,subtitle:a,onRemove:l,badge:s}=e;return(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-lg border border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)] p-2.5",children:[(0,t.jsx)(F,{label:r.displayName,size:"sm"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"mb-0 truncate text-base font-medium text-[var(--ds-text)]",children:r.displayName}),(0,t.jsx)("p",{className:"mb-0 truncate text-[12px] text-[var(--ds-muted)]",children:a})]}),s?(0,t.jsx)("span",{className:"shrink-0 rounded bg-[var(--ds-color-success-bg)] px-1.5 py-0.5 text-[10px] font-medium text-[var(--ds-color-success-text)]",children:s}):null,l?(0,t.jsx)(d.IconTooltipButton,{icon:"Close",label:"移除agent",className:"!h-7 !w-7 shrink-0 bg-transparent text-[var(--ds-muted)] hover:bg-transparent hover:text-[color:var(--ds-color-accent)]",iconClassName:"!size-3.5",onClick:l}):null]})}function G(e){let{open:r,onOpenChange:l,team:o,allAgents:i,rosters:d,onConfirm:u,onAgentsRefresh:x}=e,p=(0,N.useAppStore)(e=>e.wsUrl),f=(0,N.useAppStore)(e=>e.apiBase),h=o.id,b=d.getRoster,[v,g]=(0,a.useState)(""),[w,C]=(0,a.useState)("all"),[S,A]=(0,a.useState)([]),[z,D]=(0,a.useState)(!1),E=(0,a.useMemo)(()=>P(o),[o]);(0,a.useEffect)(()=>{if(!r)return;let e=b(h);g(""),C("all"),A(e.members.filter(e=>e.id!==h).map(e=>e.id))},[r,h,b]);let M=(0,a.useMemo)(()=>S.map(e=>i.find(r=>r.id===e)).filter(e=>null!=e).map(P),[S,i]),B=(0,a.useMemo)(()=>i.filter(e=>{if(!function(e,r){let t=r.trim().toLowerCase();return!t||"".concat(e.id," ").concat(e.displayName," ").concat(e.whentouse).toLowerCase().includes(t)}(e,v))return!1;let r=e.id===h,t=H(e.id,h,i,b);return"available"===w?!r:"joined_other"===w?!!t:"recommended"!==w||!t&&!r}),[i,v,w,h,b]),I=(0,a.useCallback)((e,r)=>{e!==h&&A(t=>r?t.includes(e)?t:[...t,e]:t.filter(r=>r!==e))},[h]),_=(0,a.useCallback)(()=>{A([])},[]),L=(0,a.useCallback)(()=>{l(!1)},[l]),G=(0,a.useCallback)(()=>{(async()=>{let e=h.trim();if(!e||z)return;let r=b(h).members.map(e=>e.id),t=S.filter(e=>!r.includes(e)),a=r.filter(e=>!S.includes(e));if(0===t.length&&0===a.length)return L();D(!0);try{for(let r of a)await (0,y.removeTeamMember)(p,f,e,r);for(let r of t)await (0,y.addTeamMember)(p,f,e,r);await (null==x?void 0:x()),u({captain:E,members:M}),t.length>0&&0===a.length?c.appToast.success(1===t.length?"已添加队员 ".concat(t[0]):"已添加 ".concat(t.length," 名队员")):c.appToast.success("已更新队员"),L()}catch(e){c.appToast.error("添加队员失败:".concat(e instanceof Error?e.message:String(e)))}finally{D(!1)}})()},[h,z,b,S,p,f,x,u,E,M,L]);return(0,t.jsx)(R.Dialog,{open:r,onOpenChange:l,children:(0,t.jsxs)(R.DialogContent,{className:"max-w-[920px]","aria-labelledby":"add-team-members-title",children:[(0,t.jsxs)(R.DialogHeader,{className:"items-start gap-3",children:[(0,t.jsx)(R.DialogTitle,{id:"add-team-members-title",className:"text-lg",children:"添加队员"}),(0,t.jsx)(R.DialogClose,{"aria-label":"关闭"})]}),(0,t.jsx)(R.DialogBody,{className:"!p-0",children:(0,t.jsxs)("div",{className:"flex h-[min(68vh,520px)] min-h-0 flex-col px-[24px] md:flex-row",children:[(0,t.jsxs)("div",{className:"mr-[16px] flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden border-b border-[var(--ds-color-border-default)] md:border-b-0 md:border-r",children:[(0,t.jsxs)("div",{className:"shrink-0 space-y-3 border-b border-[var(--ds-color-border-default)] pb-4",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(n.default,{name:"Search",size:16,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-[var(--ds-muted)]"}),(0,t.jsx)(j.Input,{value:v,onChange:e=>g(e.target.value),placeholder:"搜索成员名称 / 能力 / 标签",className:"h-8 pl-8"})]}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:k.map(e=>{let r=w===e.id;return(0,t.jsx)(s.Button,{type:"button",variant:"plain-outline",size:"sm",className:(0,m.cn)("cursor-pointer rounded-full px-3",r&&"border-[color:var(--ds-color-accent)] bg-[var(--ds-color-success-bg)] text-[var(--ds-color-success-text)] hover:bg-[var(--ds-color-success-bg)]"),onClick:()=>C(e.id),children:e.label},e.id)})})]}),(0,t.jsx)("ul",{className:"m-0 min-h-0 flex-1 list-none space-y-4 overflow-y-auto",role:"listbox","aria-label":"可选队员",children:B.map(e=>{let r=e.id===h,a=S.includes(e.id),l=H(e.id,h,i,b),s=function(e){let r=T(e,24);return"暂无使用说明"===r?[]:r.split(/[,,、\s]+/).filter(Boolean).slice(0,2)}(e.whentouse),o=T(e.whentouse,32);return(0,t.jsx)("li",{children:(0,t.jsxs)("label",{className:(0,m.cn)("flex cursor-pointer items-center gap-3 rounded-lg border border-solid bg-[var(--ds-color-surface-default)] px-2 py-2.5 transition-[border-color,background-color]","border-[color:var(--ds-color-border-default)]",r?"cursor-not-allowed opacity-60":"hover:border-[color:var(--ds-color-border-hover)] hover:bg-[var(--ds-color-surface-main-tint)]",a&&!r&&"bg-[var(--ds-color-success-bg)]/40 border-[color:var(--ds-color-accent)]"),children:[(0,t.jsx)(O,{checked:!r&&a,disabled:r,onChange:r=>I(e.id,r.target.checked),"aria-label":"选择 ".concat(e.displayName)}),(0,t.jsx)(F,{label:e.displayName,size:"md"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("p",{className:"mb-0 truncate font-medium text-[var(--ds-text)]",children:[e.displayName,r?(0,t.jsx)("span",{className:"ml-1 text-xs font-normal text-[var(--ds-muted)]",children:"(当前团队)"}):null]}),(0,t.jsx)("p",{className:"mb-0 mt-0.5 truncate text-[var(--ds-muted)]",children:o}),s.length>0?(0,t.jsx)("div",{className:"mt-1 flex flex-wrap gap-1",children:s.map(e=>(0,t.jsx)("span",{className:"rounded bg-[var(--surface-2)] px-1.5 py-0.5 text-[10px] text-[var(--ds-muted)]",children:e},e))}):null]}),(0,t.jsx)("div",{className:"shrink-0 text-right",children:r?(0,t.jsx)("span",{className:"text-xs text-[var(--ds-muted)]",children:"不可选"}):l?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs text-amber-600",children:[(0,t.jsx)(n.default,{name:"Info",size:14}),"已加入其他团队"]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs text-[var(--ds-color-success-text)]",children:[(0,t.jsx)("span",{className:"size-1.5 rounded-full bg-[var(--ds-color-accent)]"}),"可用 Agent"]})})]})},e.id)})}),(0,t.jsxs)("div",{className:"shrink-0 border-t border-[var(--ds-color-border-default)] px-4 py-2.5 text-[var(--ds-muted)]",children:["已选择 ",S.length," 名队员"]})]}),(0,t.jsx)("div",{className:"flex min-h-0 w-full shrink-0 flex-col overflow-hidden bg-[var(--ds-color-surface-log)] md:w-[300px]",children:(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden p-4",children:(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-hidden",children:[(0,t.jsxs)("div",{className:"mb-2 flex shrink-0 items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"font-medium text-[var(--ds-text)]",children:["已选成员(",M.length,")"]}),(0,t.jsx)(s.Button,{type:"button",variant:"plain",size:"sm",disabled:0===M.length,className:"h-auto cursor-pointer !px-1 text-base text-[var(--ds-color-accent)] hover:bg-transparent hover:text-[var(--ds-text)] disabled:cursor-not-allowed",onClick:_,children:"清空"})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:M.length>0?(0,t.jsx)("div",{className:"space-y-4",children:M.map(e=>{let r=i.find(r=>r.id===e.id),a=r?T(r.whentouse,28):e.id;return(0,t.jsx)(U,{member:e,subtitle:a,onRemove:()=>I(e.id,!1)},e.id)})}):(0,t.jsx)("p",{className:"mb-0 text-xs text-[var(--ds-muted)]",children:"请从左侧勾选队员"})})]})})})]})}),(0,t.jsxs)("div",{className:"flex shrink-0 justify-end gap-2 border-t border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-sidebar)] px-5 py-3",children:[(0,t.jsx)(s.Button,{type:"button",variant:"plain-outline",size:"lg",onClick:L,className:"cursor-pointer",children:"取消"}),(0,t.jsx)(s.Button,{type:"button",variant:"default",size:"lg",onClick:G,disabled:z,className:"cursor-pointer disabled:cursor-not-allowed",children:z?"添加中…":"确认添加"})]})]})})}function V(e){let{open:r,onOpenChange:l,title:n,description:o,candidates:i,onPick:d}=e,[c,u]=(0,a.useState)("");(0,a.useEffect)(()=>{r&&u("")},[r]);let x=(0,a.useCallback)(()=>{l(!1)},[l]),p=(0,a.useCallback)(()=>{let e=i.find(e=>e.id===c);e&&(d(e),x())},[i,c,d,x]),f=(0,a.useMemo)(()=>i.length>0?null:"暂无可选 Agent",[i.length]);return(0,t.jsx)(R.Dialog,{open:r,onOpenChange:l,children:(0,t.jsxs)(R.DialogContent,{className:"max-w-[480px]","aria-labelledby":"pick-team-member-title",children:[(0,t.jsxs)(R.DialogHeader,{className:"items-start gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)(R.DialogTitle,{id:"pick-team-member-title",children:n}),(0,t.jsx)(R.DialogDescription,{className:"mt-1",children:o})]}),(0,t.jsx)(R.DialogClose,{"aria-label":"关闭"})]}),(0,t.jsx)(R.DialogBody,{className:"max-h-[min(50vh,360px)] overflow-y-auto !px-5 !py-4",children:f?(0,t.jsx)("p",{className:"mb-0 text-center text-[var(--ds-muted)]",children:f}):(0,t.jsx)("ul",{className:"m-0 list-none space-y-1 p-0",role:"listbox",children:i.map(e=>{let r=c===e.id,a=P(e);return(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":r,className:(0,m.cn)("flex w-full cursor-pointer items-center gap-3 rounded-lg border border-solid px-3 py-2.5 text-left transition-colors",r?"border-[color:var(--ds-color-accent)] bg-[var(--ds-color-success-bg)]":"border-[color:var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)] hover:bg-[var(--ds-color-surface-main-tint)]"),onClick:()=>u(e.id),children:[(0,t.jsx)(F,{label:a.displayName,size:"md"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"mb-0 truncate font-medium text-[var(--ds-text)]",children:a.displayName}),(0,t.jsx)("p",{className:"mb-0 mt-0.5 truncate text-xs text-[var(--ds-muted)]",children:e.id})]})]})},e.id)})})}),(0,t.jsxs)("div",{className:"flex shrink-0 justify-end gap-2 border-t border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-sidebar)] px-5 py-3",children:[(0,t.jsx)(s.Button,{type:"button",variant:"plain-outline",size:"lg",onClick:x,className:"cursor-pointer",children:"取消"}),(0,t.jsx)(s.Button,{type:"button",variant:"default",size:"lg",disabled:!c,onClick:p,className:"cursor-pointer",children:"确定"})]})]})})}function W(e){let{member:r,displayName:a}=e;return(0,t.jsxs)("span",{className:"relative inline-flex w-fit items-center rounded-full",children:[(0,t.jsx)(F,{label:r.displayName,size:"sm"}),a?(0,t.jsx)("span",{className:"ml-2 whitespace-nowrap text-[var(--ds-text)]",children:a}):null]})}function q(e){let{members:r}=e,[l,s]=(0,a.useState)(!1),n=(0,a.useRef)(null),o=(0,a.useCallback)(()=>{n.current&&(clearTimeout(n.current),n.current=null),s(!0)},[]),i=(0,a.useCallback)(()=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>s(!1),120)},[]);return(0,t.jsxs)(B.DropdownMenu,{open:l,onOpenChange:s,children:[(0,t.jsxs)(B.DropdownMenuTrigger,{type:"button",className:"inline-flex shrink-0 cursor-default items-center rounded-full border border-solid border-[color:var(--ds-color-border-default)] bg-[var(--surface-2)] px-2.5 py-1 font-medium text-[var(--ds-muted)] hover:bg-[var(--surface-2)]","aria-label":"还有 ".concat(r.length," 名队员"),onMouseEnter:o,onMouseLeave:i,children:["+",r.length]}),(0,t.jsxs)(B.DropdownMenuContent,{align:"start",side:"bottom",sideOffset:6,className:(0,m.cn)("min-w-[200px] max-w-[min(100vw-32px,320px)] p-3"),onMouseEnter:o,onMouseLeave:i,children:[(0,t.jsxs)("p",{className:"mb-2 px-1 text-xs text-[var(--ds-muted)]",children:["其余队员(",r.length,")"]}),(0,t.jsx)("div",{className:"flex max-h-[240px] flex-col gap-2 overflow-y-auto",children:r.map(e=>(0,t.jsx)(W,{member:e,displayName:e.displayName},e.id))})]})]})}function K(e){let{members:r,className:a}=e,l=r.slice(0,6),s=r.slice(6);return(0,t.jsxs)("div",{className:(0,m.cn)("flex min-w-0 max-w-full flex-wrap items-center gap-1",a),children:[l.map(e=>(0,t.jsx)(W,{member:e},e.id)),s.length>0?(0,t.jsx)(q,{members:s}):null]})}function Y(e){let{onEdit:r,onDelete:l,deleting:s=!1}=e,[o,i]=(0,a.useState)(!1);return(0,t.jsxs)(B.DropdownMenu,{open:o,onOpenChange:i,children:[(0,t.jsx)(B.DropdownMenuTrigger,{type:"button",className:"inline-flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-md border-0 bg-transparent p-0 text-[var(--ds-muted)] hover:bg-transparent hover:text-[color:var(--ds-color-accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ds-color-accent)]","aria-label":"更多",onClick:e=>{e.stopPropagation()},children:(0,t.jsx)(n.default,{name:"More",size:20})}),(0,t.jsxs)(B.DropdownMenuContent,{align:"end",side:"bottom",sideOffset:6,className:"w-[172px] min-w-[172px] rounded-[var(--ds-radius-sm)] border border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)] p-1.5",children:[(0,t.jsxs)(B.DropdownMenuItem,{className:"h-9 rounded-xl px-2.5 text-[var(--ds-text)] hover:bg-[var(--ds-color-surface-item-active)] focus:bg-[var(--ds-color-surface-item-hover)]",onClick:()=>{i(!1),r()},children:[(0,t.jsx)(n.default,{name:"Edit",size:16,className:"text-[var(--ds-muted)]"}),"编辑 Agent"]}),(0,t.jsx)(B.DropdownMenuSeparator,{className:"mx-1 my-1 bg-[var(--ds-color-border-default)]"}),(0,t.jsxs)(B.DropdownMenuItem,{variant:"destructive",disabled:s,className:"h-9 rounded-xl px-2.5 hover:bg-[#fff1f1] focus:bg-[#fff1f1]",onClick:()=>{i(!1),l()},children:[(0,t.jsx)(n.default,{name:"Trash2",size:16}),"删除 Agent"]})]})]})}function $(e){let{team:l,allAgents:s,rosters:n,onAgentSaved:o}=e,i=(0,N.useAppStore)(e=>e.agentId),u=(0,N.useAppStore)(e=>e.wsUrl),x=(0,N.useAppStore)(e=>e.apiBase),p=i.trim()||"qihoo",f=l.id===p,h=n.getRoster(l.id),b=T(l.whentouse),v=(0,A.initialsFromLabel)(l.id).slice(0,1),[g,j]=(0,a.useState)(!1),[C,k]=(0,a.useState)(!1),[S,z]=(0,a.useState)(!1),F=n.getAvailableCandidates(l.id,s),D=(0,a.useCallback)(e=>{n.setCaptain(l.id,P(e))},[n,l.id]),B=(0,a.useCallback)(e=>{n.applyRoster(l.id,e)},[n,l.id]),O=(0,a.useCallback)(()=>{let e=l.id.trim();if(!e||e===p)return;let r=(0,I.buildAppNavHref)("/",{ensureAgent:!0,agent:e}),t=I.BASE_PATH.replace(/\/+$/,""),a="".concat(window.location.origin).concat(t).concat(r);window.open(a,"_blank","noopener")},[l.id,p]),R=(0,a.useCallback)(()=>{!function(e){var a;let l=e.agentId.trim();if(!l)return;let{openFlyout:s,closeFlyout:n}=w.useStageThreadFlyoutStore.getState(),o=null!=(a=e.onSaved)?a:r;s({width:w.CREATE_AGENT_FLYOUT_WIDTH,hideHeader:!0,bodyClassName:"!p-0 overflow-hidden",navigationGuard:!0,content:(0,t.jsx)(E,{mode:"edit",editAgentId:l,onClose:n,onSaved:o})})}({agentId:l.id,onSaved:o})},[l.id,o]),L=(0,a.useCallback)(async()=>{let e=l.id.trim();if(e&&await (0,M.confirmAlertDialog)({title:"确定删除 Agent?",description:"Agent「".concat(e,"」将被永久删除,此操作不可恢复。"),confirmText:"删除",cancelText:"取消"})){z(!0);try{await (0,y.deleteAgentItem)(u,x,e),c.appToast.success("已删除"),await (null==o?void 0:o())}catch(e){c.appToast.error("删除失败:".concat(e instanceof Error?e.message:String(e)))}finally{z(!1)}}},[l.id,u,x,o]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:(0,m.cn)("flex w-full flex-wrap items-center gap-4 rounded-xl border border-solid bg-[var(--ds-color-surface-default)] px-4 py-3 lg:flex-nowrap","border-[color:var(--ds-color-border-default)] transition-[border-color,box-shadow]","hover:shadow-[0_2px_12px_rgba(0,0,0,0.06)]"),children:[(0,t.jsxs)("div",{className:"flex min-w-[200px] flex-1 items-center gap-4",children:[(0,t.jsx)("span",{className:"inline-flex h-11 w-11 shrink-0 items-center justify-center rounded-lg text-lg font-semibold text-white",style:{background:(0,A.avatarBgForLabel)(l.id)},"aria-hidden":!0,children:v}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 text-left",children:[(0,t.jsx)("button",{type:"button",onClick:O,disabled:f,className:(0,m.cn)("mb-0 block w-full truncate border-0 bg-transparent p-0 text-left text-base font-semibold text-[var(--ds-text)]",f?"cursor-default":"cursor-pointer hover:text-[color:var(--ds-color-accent)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ds-color-accent)]"),"aria-current":f?"true":void 0,"aria-label":f?"当前 Agent:".concat(l.id):"在新标签页切换到 Agent ".concat(l.id),children:l.id}),(0,t.jsx)("p",{className:"mb-0 mt-1 truncate text-sm text-[var(--ds-muted)]",children:b})]})]}),(0,t.jsx)("div",{className:"flex min-w-0 max-w-full flex-1 flex-col gap-1.5",children:(0,t.jsx)("div",{className:(0,m.cn)("flex min-w-0 max-w-full flex-wrap items-center gap-2",""),children:(0,t.jsxs)("div",{className:"flex w-fit justify-end gap-2 rounded-xl border border-solid border-[color:var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)] p-2",children:[h.members.length>0?(0,t.jsx)(K,{members:h.members,className:""}):(0,t.jsx)(_,{label:"队员列表",hint:"暂无队员",icon:"Team"}),(0,t.jsx)(d.IconTooltipButton,{icon:"Create",label:"添加队员",disabled:s.length<=1,className:(0,m.cn)("h-8 w-8 shrink-0 border border-dashed border-[color:var(--ds-color-border-default)] hover:border-[color:var(--ds-color-accent)] hover:text-[color:var(--ds-color-accent)]",s.length>1&&"text-[var(--ds-color-accent)] hover:bg-[var(--ds-color-success-bg)]"),iconClassName:"!size-4",onClick:()=>k(!0)})]})})}),(0,t.jsx)(Y,{onEdit:R,onDelete:()=>void L(),deleting:S})]}),(0,t.jsx)(V,{open:g,onOpenChange:j,title:"设置队长",description:"从可选 Agent 中选择一名作为队长",candidates:F,onPick:D}),(0,t.jsx)(G,{open:C,onOpenChange:k,team:l,allAgents:s,rosters:n,onConfirm:B,onAgentsRefresh:o})]})}function Z(e){let{agentsState:r}=e,{agents:l,loading:s,error:n}=r,o=function(e){let[r,t]=(0,a.useState)({});(0,a.useEffect)(()=>{t(r=>{let t={...r};for(let l of e){var a;let s=null!=(a=r[l.id])?a:L;t[l.id]={captain:s.captain,members:function(e,r){return e.agentTeamMembers.map(e=>{let t=r.find(r=>r.id===e.agentType);return{id:e.agentType,displayName:(null==t?void 0:t.displayName.trim())||e.agentType}})}(l,e)}}return t})},[e]);let l=(0,a.useCallback)(e=>{var t;return null!=(t=r[e])?t:L},[r]),s=(0,a.useCallback)((e,r)=>{t(t=>{var a;let l=(null!=(a=t[e])?a:L).members.filter(e=>e.id!==r.id);return{...t,[e]:{captain:r,members:l}}})},[]),n=(0,a.useCallback)(e=>{t(r=>{var t;let a=null!=(t=r[e])?t:L;return{...r,[e]:{...a,captain:null}}})},[]),o=(0,a.useCallback)((e,r)=>{t(t=>{var a,l;let s=null!=(l=t[e])?l:L;return(null==(a=s.captain)?void 0:a.id)===r.id||s.members.some(e=>e.id===r.id)?t:{...t,[e]:{...s,members:[...s.members,r]}}})},[]),i=(0,a.useCallback)((e,r)=>{t(t=>{var a;let l=null!=(a=t[e])?a:L;return{...t,[e]:{...l,members:l.members.filter(e=>e.id!==r)}}})},[]);return{getRoster:l,setCaptain:s,removeCaptain:n,addMember:o,removeMember:i,applyRoster:(0,a.useCallback)((e,r)=>{let a=r.captain,l=r.members.filter(e=>e.id!==(null==a?void 0:a.id));t(r=>({...r,[e]:{captain:a,members:l}}))},[]),getAvailableCandidates:(0,a.useCallback)((e,t)=>{var a;let l=null!=(a=r[e])?a:L,s=new Set([e,...l.captain?[l.captain.id]:[],...l.members.map(e=>e.id)]);return t.filter(e=>!s.has(e.id))},[r])}}(l);return(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col rounded-xl border border-[var(--ds-color-border-default)] bg-[var(--ds-color-surface-default)] shadow-[var(--shadow-sm)]",children:(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto p-[16px]",children:s?(0,t.jsx)("div",{className:"flex min-h-[200px] items-center justify-center text-[var(--ds-muted)]",children:"加载中…"}):n?(0,t.jsxs)("div",{className:"flex min-h-[200px] items-center justify-center px-4 text-center text-red-600",children:["加载失败:",n]}):0===l.length?(0,t.jsx)("div",{className:"flex min-h-[200px] items-center justify-center px-4 text-center text-[var(--ds-muted)]",children:"暂无 Agent,点击右上角「新建 Agent」创建"}):(0,t.jsx)("ul",{className:"m-0 list-none space-y-4 p-0",role:"list",children:l.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)($,{team:e,allAgents:l,rosters:o,onAgentSaved:r.loadAgents})},e.id))})})})}function J(e){let{label:r,value:a,hint:l,icon:s}=e;return(0,t.jsxs)("div",{className:"mt-2 flex min-w-0 flex-1 items-center gap-4 rounded-xl border border-[var(--ds-color-border-default)] bg-white px-4 py-3.5 shadow-[var(--shadow-sm)]",children:[(0,t.jsx)("span",{className:"flex size-10 shrink-0 items-center justify-center rounded-full bg-[var(--ds-color-border-default)]","aria-hidden":!0,children:(0,t.jsx)(n.default,{name:s,size:20,className:"text-[var(--ds-text)]"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block text-[var(--ds-text)]",children:r}),(0,t.jsx)("span",{className:"mt-1 block text-2xl font-semibold leading-none text-[var(--ds-text)]",children:a}),(0,t.jsx)("span",{className:"mt-1 block text-sm text-[var(--ds-muted)]",children:l})]})]})}function Q(e){let{agents:r,className:l}=e,s=(0,a.useMemo)(()=>{let e=r.length;return[{label:"团队总数",value:r.filter(e=>e.agentTeamMembers.length>=1).length,icon:"Teams",hint:"队员数大于 1 的 Agent 编组"},{label:"成员总数",value:e,icon:"Agent",hint:"角色、能力和工具的智能执行体"}]},[r]);return(0,t.jsx)("div",{className:(0,m.cn)("flex flex-wrap gap-3",l),children:s.map(e=>(0,t.jsx)(J,{...e},e.label))})}function X(){let e=function(){let e=(0,N.useAppStore)(e=>e.wsUrl),r=(0,N.useAppStore)(e=>e.apiBase),[t,l]=(0,a.useState)([]),[s,n]=(0,a.useState)(!0),[o,i]=(0,a.useState)(null),d=(0,a.useCallback)(async()=>{n(!0),i(null);try{let t=await (0,y.listAgentsForManage)(e,r);l(t)}catch(r){let e=r instanceof Error?r.message:String(r);l([]),i(e),c.appToast.error("加载失败:".concat(e))}finally{n(!1)}},[e,r]);return(0,a.useEffect)(()=>{d()},[d]),{agents:t,loading:s,error:o,loadAgents:d}}();(0,a.useEffect)(()=>(r=e.loadAgents,()=>{r=void 0}),[e.loadAgents]);let o=(0,a.useCallback)(()=>{!function(){var e;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{openFlyout:l,closeFlyout:s}=w.useStageThreadFlyoutStore.getState(),n=null!=(e=a.onSaved)?e:r;l({width:w.CREATE_AGENT_FLYOUT_WIDTH,hideHeader:!0,bodyClassName:"!p-0 overflow-hidden",navigationGuard:!0,content:(0,t.jsx)(E,{mode:"create",onClose:s,onSaved:n})})}()},[]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.ManageChromeHeaderActions,{children:(0,t.jsx)("div",{className:"flex flex-wrap items-center",children:(0,t.jsxs)(s.Button,{type:"button",variant:"default",size:"lg",onClick:o,className:"mr-[12px] cursor-pointer",children:[(0,t.jsx)(n.default,{name:"Create",size:16,className:"align-middle"}),"新建 Agent"]})})}),(0,t.jsx)(Q,{agents:e.agents,className:"mb-4"}),(0,t.jsx)(Z,{agentsState:e})]})}}]);