@auto-ai/agent 2.1.167 → 2.1.168

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 (48) hide show
  1. package/dist/404/index.html +1 -1
  2. package/dist/404.html +1 -1
  3. package/dist/_next/static/chunks/0a4ab823884025be.css +1 -0
  4. package/dist/_next/static/chunks/1acf2d9664500f51.js +1 -0
  5. package/dist/_next/static/chunks/1f3da8a76b11d2aa.js +1 -0
  6. package/dist/_next/static/chunks/257d36fba79aa4ab.js +1 -0
  7. package/dist/_next/static/chunks/2b18c967f27dd561.js +1 -0
  8. package/dist/_next/static/chunks/7def01c245e03b59.js +1 -0
  9. package/dist/_next/static/chunks/{fa5420e426d2de9f.css → 886a31720c72a306.css} +1 -1
  10. package/dist/_next/static/chunks/a256978ef9393e3e.js +1 -0
  11. package/dist/_next/static/chunks/{04865c74d0dcb5b6.js → b66a17ae6f8aeff3.js} +1 -1
  12. package/dist/_next/static/chunks/{22fb0418205bc3b6.js → c242e5c1d3639838.js} +1 -1
  13. package/dist/_next/static/chunks/{fdecc614380e597a.js → d77e4439761aa20d.js} +1 -1
  14. package/dist/_next/static/chunks/{07cd0b140a56ee30.js → e42498eec0c8d570.js} +1 -1
  15. package/dist/_next/static/chunks/{5cdf21cf7f4c7608.js → ec7537a65499e7a4.js} +1 -1
  16. package/dist/index.html +2 -2
  17. package/dist/index.txt +10 -10
  18. package/dist/manage/about/index.html +2 -2
  19. package/dist/manage/about/index.txt +11 -11
  20. package/dist/manage/env/index.html +2 -2
  21. package/dist/manage/env/index.txt +13 -13
  22. package/dist/manage/general/index.html +2 -2
  23. package/dist/manage/general/index.txt +11 -11
  24. package/dist/manage/index.html +2 -2
  25. package/dist/manage/index.txt +8 -8
  26. package/dist/manage/mcp/index.html +2 -2
  27. package/dist/manage/mcp/index.txt +11 -11
  28. package/dist/manage/permissions/index.html +2 -2
  29. package/dist/manage/permissions/index.txt +11 -11
  30. package/dist/manage/skills/index.html +2 -2
  31. package/dist/manage/skills/index.txt +12 -12
  32. package/dist/manage/task/index.html +2 -2
  33. package/dist/manage/task/index.txt +11 -11
  34. package/dist/manage/teams/index.html +2 -2
  35. package/dist/manage/teams/index.txt +12 -12
  36. package/dist/manage/tools/index.html +2 -2
  37. package/dist/manage/tools/index.txt +12 -12
  38. package/package.json +6 -6
  39. package/dist/_next/static/chunks/1348edc568cfb2b2.js +0 -1
  40. package/dist/_next/static/chunks/2761e463114b018c.js +0 -1
  41. package/dist/_next/static/chunks/345032ba59cb60d8.js +0 -1
  42. package/dist/_next/static/chunks/4cc4bd81c5ae0c40.js +0 -1
  43. package/dist/_next/static/chunks/8a1a9a399fe2d329.js +0 -1
  44. package/dist/_next/static/chunks/b7546ebaecffed5f.js +0 -1
  45. package/dist/_next/static/chunks/c73f7d77cbe3f2f1.css +0 -1
  46. /package/dist/_next/static/{bgHnfEbjqZYUwK_KG6A0m → 6_8Ppg2OmCO0VcGqmqnxR}/_buildManifest.js +0 -0
  47. /package/dist/_next/static/{bgHnfEbjqZYUwK_KG6A0m → 6_8Ppg2OmCO0VcGqmqnxR}/_clientMiddlewareManifest.json +0 -0
  48. /package/dist/_next/static/{bgHnfEbjqZYUwK_KG6A0m → 6_8Ppg2OmCO0VcGqmqnxR}/_ssgManifest.js +0 -0
@@ -1,2 +1,2 @@
1
- <!DOCTYPE html><!--bgHnfEbjqZYUwK_KG6A0m--><html lang="zh-CN" class="sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/app/_next/static/chunks/7bdf0e5b41aeb209.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/fa5420e426d2de9f.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/c73f7d77cbe3f2f1.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/6e61f670898cb297.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/app/_next/static/chunks/9ccf7a8bca1730bf.js"/><script src="/app/_next/static/chunks/522518d740397639.js" async=""></script><script src="/app/_next/static/chunks/40268f8e3ff0314e.js" async=""></script><script src="/app/_next/static/chunks/32b4d63e10d31351.js" async=""></script><script src="/app/_next/static/chunks/66b30159915524db.js" async=""></script><script src="/app/_next/static/chunks/turbopack-63952675b1d69124.js" async=""></script><script src="/app/_next/static/chunks/bf2c1c402dbcccdf.js" async=""></script><script src="/app/_next/static/chunks/61b3d4c00499dd14.js" async=""></script><script src="/app/_next/static/chunks/7988d5ea63356e10.js" async=""></script><script src="/app/_next/static/chunks/fdecc614380e597a.js" async=""></script><script src="/app/_next/static/chunks/b7f72bcb870dda3b.js" async=""></script><script src="/app/_next/static/chunks/5bad5163b6e015f5.js" async=""></script><script src="/app/_next/static/chunks/8085c74f26fa2c4e.js" async=""></script><script src="/app/_next/static/chunks/652e486c20710ca8.js" async=""></script><script src="/app/_next/static/chunks/345032ba59cb60d8.js" async=""></script><script src="/app/_next/static/chunks/bdd88bcfd223f52a.js" async=""></script><script src="/app/_next/static/chunks/6ddf95b168bfbc36.js" async=""></script><script src="/app/_next/static/chunks/8a1a9a399fe2d329.js" async=""></script><script src="/app/_next/static/chunks/07cd0b140a56ee30.js" async=""></script><script src="/app/_next/static/chunks/cd4556cbed1f8957.js" async=""></script><script src="/app/_next/static/chunks/d55f4f3df263ad3d.js" async=""></script><meta name="next-size-adjust" content=""/><title>Claude Code测试平台</title><meta name="description" content="Claude Code测试平台"/><script src="/app/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><!--$?--><template id="B:0"></template><div class="flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg> 加载中</div><!--/$--><script>requestAnimationFrame(function(){$RT=performance.now()});</script><script src="/app/_next/static/chunks/9ccf7a8bca1730bf.js" id="_R_" async=""></script><div hidden id="S:0"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><div class="ws-config-hidden" aria-hidden="true"><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value="qihoo"/></div><div class="app" data-ui-layer="presentation" data-topology="local-first"><aside class="sidebar " data-region="sidebar-panels"><div class="sidebar-brand"><div class="sidebar-brand-title-row flex items-center justify-between"><div class="logo flex min-w-0 items-center gap-2"><span class="truncate text-zinc-900">Claude Code测试平台</span></div><span data-slot="tooltip" class="inline-flex"><button type="button" class="sidebar-icon-btn" title="收起侧边栏" aria-label="收起侧边栏"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 1024 1024" color="#8f8f8f" fill="#8f8f8f" aria-hidden="true"><path d="M331.05 85.333h361.9c34.346 0 62.72 0 85.76 1.878 24.02 1.962 46.08 6.186 66.773 16.725a170.67 170.67 0 0 1 74.581 74.581c10.539 20.694 14.763 42.752 16.725 66.731 1.878 23.125 1.878 51.456 1.878 85.76v361.941c0 34.347 0 62.72-1.878 85.76-1.962 24.022-6.186 46.08-16.725 66.774a170.67 170.67 0 0 1-74.581 74.581c-20.694 10.539-42.752 14.763-66.731 16.725-23.083 1.878-51.456 1.878-85.76 1.878H331.008c-34.347 0-62.72 0-85.76-1.878-24.021-1.962-46.08-6.186-66.773-16.725a170.67 170.67 0 0 1-74.582-74.581c-10.538-20.694-14.762-42.752-16.725-66.731-1.835-23.125-1.835-51.456-1.835-85.76V331.008c0-34.347 0-62.72 1.878-85.76 1.962-24.021 6.186-46.08 16.725-66.773a170.67 170.67 0 0 1 74.581-74.582c20.694-10.538 42.752-14.762 66.731-16.725 23.125-1.835 51.456-1.835 85.76-1.835zm95.617 768H691.2c36.565 0 61.397 0 80.597-1.621 18.688-1.493 28.288-4.267 34.944-7.68a85.33 85.33 0 0 0 37.291-37.29c3.413-6.657 6.187-16.214 7.68-34.945 1.579-19.2 1.621-44.032 1.621-80.597V332.8c0-36.565 0-61.397-1.621-80.597-1.493-18.688-4.267-28.288-7.68-34.944a85.33 85.33 0 0 0-37.29-37.291c-6.657-3.413-16.214-6.187-34.945-7.68-19.2-1.621-44.032-1.621-80.597-1.621H426.667zm-85.334-682.666H332.8c-36.565 0-61.397 0-80.597 1.621-18.688 1.493-28.288 4.267-34.944 7.68a85.33 85.33 0 0 0-37.291 37.29c-3.413 6.657-6.187 16.214-7.68 34.945-1.621 19.2-1.621 44.032-1.621 80.597v358.4c0 36.565 0 61.397 1.621 80.597 1.493 18.688 4.267 28.288 7.68 34.944a85.33 85.33 0 0 0 37.29 37.291c6.657 3.413 16.214 6.187 34.945 7.68 19.2 1.621 44.032 1.621 80.597 1.621h8.533z"></path></svg></button></span></div></div><div class="new-chat"><div class="mb-4 ml-2 mr-2 mt-2 flex cursor-pointer items-center gap-2.5 rounded-2xl px-2 py-2 text-zinc-700 transition-colors hover:bg-white/70" title="开启新对话" aria-label="开启新对话"><span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--ds-item-active)] text-[var(--ds-accent)]" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></span><span class="min-w-0 font-medium">新会话</span></div></div><div class="sidebar-drawers px-[10px]"><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="m259.413 120.036-149.22 106.666-49.606-69.404L209.92 50.63l49.607 69.405zM814.08 50.63l149.39 106.667-49.607 69.404-149.276-106.666 49.607-69.405zM78.28 554.667a433.778 433.778 0 1 1 867.555 0 433.778 433.778 0 0 1-867.556 0M512 206.222a348.444 348.444 0 1 0 0 696.89 348.444 348.444 0 0 0 0-696.89m-47.787 356.125V327.623h85.334v217.145l153.258 153.316-60.302 60.302-165.831-165.774a42.67 42.67 0 0 1-12.516-30.152z"></path></svg><span class="text-zinc-900">定时任务</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M424.64 115.392A170.432 170.432 0 0 1 714.304 254.4a166.464 166.464 0 0 1 137.728 282.752l-307.84 307.712 94.912 94.848a36.736 36.736 0 0 1-51.712 51.84L466.624 870.784a36.544 36.544 0 0 1 0-51.712l333.568-333.568a93.312 93.312 0 0 0-131.648-132.096l-3.008 2.88v.128L428.352 592.96a36.544 36.544 0 0 1-56.064-5.44c-.576-.768-.96-1.664-1.472-2.432a36.3 36.3 0 0 1-4.352-23.68l.32-1.92a36.4 36.4 0 0 1 5.12-12.608l4.8-5.76 236.992-236.416 6.72-7.488A97.28 97.28 0 0 0 476.288 167.04L136.576 507.008a36.544 36.544 0 0 1-51.712-51.712l339.84-339.84zm94.912 94.4a36.544 36.544 0 0 1 51.008 52.352L329.024 497.856a98.368 98.368 0 1 0 138.624 139.52l240.64-243.584a36.672 36.672 0 0 1 52.096 51.328l-240.64 243.584A171.584 171.584 0 1 1 277.952 445.44z"></path></svg><span class="text-zinc-900">MCP</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] bg-[var(--ds-item-active)] text-[var(--ds-accent)]" role="button" tabindex="0" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M938.667 981.333H85.333C38.4 981.333 0 942.933 0 896V298.667c0-46.934 38.4-85.334 85.333-85.334h192V128c0-46.933 38.4-85.333 85.334-85.333h298.666c46.934 0 85.334 38.4 85.334 85.333v85.333h192c46.933 0 85.333 38.4 85.333 85.334V896c0 46.933-38.4 85.333-85.333 85.333m-277.334-832c0-12.8-8.533-21.333-21.333-21.333H384c-12.8 0-21.333 8.533-21.333 21.333v64h298.666zM938.667 320c0-12.8-8.534-21.333-21.334-21.333H106.667c-12.8 0-21.334 8.533-21.334 21.333v128h213.334c17.066 0 32 10.667 38.4 23.467L388.267 576H633.6l51.2-104.533C691.2 456.533 706.133 448 723.2 448h213.333V320zm0 213.333H750.933l-51.2 104.534c-6.4 14.933-21.333 23.466-38.4 23.466H362.667c-17.067 0-32-10.666-38.4-23.466l-51.2-104.534H85.333v341.334c0 12.8 8.534 21.333 21.334 21.333h810.666c12.8 0 21.334-8.533 21.334-21.333z"></path></svg><span class="text-zinc-900">工具</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1088 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M370.24 127.232c16.384-44.736 79.68-44.672 96.128 0L556.8 373.504l246.208 90.432c44.8 16.384 44.8 79.68 0 96.128L556.8 650.496 466.368 896.64c-16.448 44.8-79.744 44.8-96.128 0l-90.432-246.208L33.536 560c-44.736-16.448-44.736-79.744 0-96.128l246.272-90.432 90.432-246.272zm-22.464 283.84a51.2 51.2 0 0 1-30.4 30.4L125.44 512l192 70.528a51.2 51.2 0 0 1 28.16 25.28l2.24 5.12 70.528 191.936 70.528-192 2.176-5.12a51.2 51.2 0 0 1 28.16-25.216l192-70.528-192-70.528a51.2 51.2 0 0 1-30.336-30.4l-70.528-192-70.528 192zM756.608 32.64a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.68l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.616l-80-29.376a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552l29.376-80zm0 700.672a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.616l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.552l-80-29.44a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552z"></path></svg><span class="text-zinc-900">技能</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1103 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M995.146 703.015a136.665 136.665 0 0 0-159.035 15.754L770.89 680.96V494.277a54.11 54.11 0 0 0-27.097-46.868L576.41 350.996v-82.55a137.846 137.846 0 1 0-88.616 0v82.55L320.41 447.409a54.11 54.11 0 0 0-27.097 46.868V680.88l-65.22 37.81a136.665 136.665 0 0 0-158.957-15.754 138.08 138.08 0 0 0-50.491 188.18 136.82 136.82 0 0 0 187.313 50.412 137.85 137.85 0 0 0 66.009-146.196l59.864-34.816 173.056 99.643a54.51 54.51 0 0 0 54.194 0l172.898-99.564 59.943 34.816a138.08 138.08 0 0 0 66.009 146.274 136.743 136.743 0 0 0 187.313-50.412 138.004 138.004 0 0 0-50.097-188.259m-828.337 170.3a58.604 58.604 0 0 1-80.266-21.583 59.077 59.077 0 0 1 21.583-80.66 58.604 58.604 0 0 1 80.266 21.662 59.077 59.077 0 0 1-21.583 80.66zm306.097-735.469a59.077 59.077 0 1 1 118.154 0 59.077 59.077 0 0 1-118.154 0m209.211 549.18-150.134 86.488-150.134-86.489v-172.82l150.134-86.488 150.134 86.489zM977.423 851.81a58.683 58.683 0 0 1-80.266 21.662 59.156 59.156 0 0 1-21.504-80.58 58.683 58.683 0 0 1 80.187-21.662 59.077 59.077 0 0 1 21.583 80.58"></path></svg><span class="text-zinc-900">agent / teams</span></div></div><div class="sidebar-drawers"><div class="sidebar-drawer m-[.35rem_.35rem_0] mt-4"><button type="button" class="flex w-full cursor-pointer items-center !border-none !bg-transparent p-[.45rem_.75rem] text-left text-[12px] font-[600] text-zinc-400 hover:text-zinc-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ds-accent)] focus-visible:ring-offset-2" aria-expanded="true" aria-controls="sessionList" aria-label="收起历史会话列表">历史会话<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down ml-1 shrink-0 text-[var(--ds-muted)]" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button><div class="sidebar-drawer-body sidebar-drawer-body--sessions"><div id="sessionList"><p class="sidebar-drawer-empty">(暂无会话)</p></div></div></div></div><div class="shrink-0 border-t border-solid border-[var(--ds-border)] transition flex items-center gap-2 p-[1rem_.75rem]"><div class="relative min-w-0 flex-1"><div class="flex min-w-0 cursor-pointer items-center gap-2 rounded-lg px-0.5 py-0.5"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold text-white" style="background:var(--avatar-bg)">QI</span><span class="min-w-0 truncate text-[var(--ds-text)]">qihoo</span></div></div><span data-slot="tooltip" class="inline-flex"><button type="button" tabindex="0" data-slot="button" data-size="icon-sm" aria-label="设置" class="group/button inline-flex shrink-0 items-center justify-center cursor-pointer !pl-[16px] !pr-[16px] [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg]:align-middle [&amp;_svg:not([class*=&#x27;size-&#x27;]):not([width])]:size-4 [&amp;_svg]:stroke-current [&amp;_svg[fill=none]_path]:fill-none [&amp;_svg:not([fill=none])_path]:fill-current bg-transparent border-0 size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg text-[var(--ds-muted)] hover:bg-[var(--ds-item-hover)] focus-visible:ring-2 focus-visible:ring-[var(--ds-accent)]"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings shrink-0" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></div></aside><main class="main overflow-x-auto manage-main" data-region="manage-shell"><div class="main-content"><!--$--><!--$?--><template id="B:1"></template><!--/$--><!--$--><!--/$--><!--/$--></div></main><aside class="stage-thread-flyout" data-region="stage-thread-flyout" aria-hidden="true" style="--stage-flyout-width:760px"></aside></div></div><script>$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
2
- $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};$RC("B:0","S:0")</script><div hidden id="S:1"><div class="manage-page-wrap flex min-h-0 flex-1 flex-col"><div class="manage-page-header flex shrink-0 items-start justify-between gap-[var(--space-4)] pb-[var(--space-4)]"><div class="manage-page-title-block flex items-center"><div class="mr-[16px] rounded-md bg-[var(--green-light)] px-4 py-3"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="text-[var(--green-dark)]" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M938.667 981.333H85.333C38.4 981.333 0 942.933 0 896V298.667c0-46.934 38.4-85.334 85.333-85.334h192V128c0-46.933 38.4-85.333 85.334-85.333h298.666c46.934 0 85.334 38.4 85.334 85.333v85.333h192c46.933 0 85.333 38.4 85.333 85.334V896c0 46.933-38.4 85.333-85.333 85.333m-277.334-832c0-12.8-8.533-21.333-21.333-21.333H384c-12.8 0-21.333 8.533-21.333 21.333v64h298.666zM938.667 320c0-12.8-8.534-21.333-21.334-21.333H106.667c-12.8 0-21.334 8.533-21.334 21.333v128h213.334c17.066 0 32 10.667 38.4 23.467L388.267 576H633.6l51.2-104.533C691.2 456.533 706.133 448 723.2 448h213.333V320zm0 213.333H750.933l-51.2 104.534c-6.4 14.933-21.333 23.466-38.4 23.466H362.667c-17.067 0-32-10.666-38.4-23.466l-51.2-104.534H85.333v341.334c0 12.8 8.534 21.333 21.334 21.333h810.666c12.8 0 21.334-8.533 21.334-21.333z"></path></svg></div><div class="pt-2"><h1 class="manage-page-title">工具管理</h1><p class="manage-page-desc">管理当前 Agent 已挂载的工具列表</p></div></div><div class="manage-page-header-actions self-start"></div></div><div class="manage-page-body flex min-h-0 min-w-0 flex-1 flex-col"><!--$--><div class="overflow-hidden border border-[var(--ds-border)]"><div class="relative w-full overflow-auto"><table class="w-full caption-bottom border-collapse"><thead class="[&amp;_tr]:table [&amp;_tr]:w-full [&amp;_tr]:table-fixed [&amp;_tr]:border-b"><tr class="border-b transition-colors [&amp;&gt;td]:transition-colors data-[state=selected]:[&amp;&gt;td]:!bg-[var(--ds-item-active)] group/table-row bg-[var(--ds-main-tint)] hover:bg-[var(--ds-main-tint)]"><th class="h-10 border-b border-[var(--border-subtle)] bg-[var(--surface-2)] px-3 text-left align-middle text-[14px] font-medium !text-[var(--ds-text)] text-muted-foreground">名称</th><th class="h-10 border-b border-[var(--border-subtle)] bg-[var(--surface-2)] px-3 text-left align-middle text-[14px] font-medium !text-[var(--ds-text)] text-muted-foreground">详情</th><th class="h-10 border-b border-[var(--border-subtle)] bg-[var(--surface-2)] px-3 text-left align-middle text-[14px] font-medium !text-[var(--ds-text)] text-muted-foreground">启用/未启用</th><th class="h-10 border-b border-[var(--border-subtle)] bg-[var(--surface-2)] px-3 text-left align-middle text-[14px] font-medium !text-[var(--ds-text)] text-muted-foreground w-[128px]">操作</th></tr></thead><tbody class="block overflow-y-auto [&amp;_tr:last-child]:border-b-0 [&amp;_tr:last-child_td]:border-b-0 [&amp;_tr]:table [&amp;_tr]:w-full [&amp;_tr]:table-fixed"><tr class="border-b transition-colors [&amp;&gt;td]:transition-colors data-[state=selected]:[&amp;&gt;td]:!bg-[var(--ds-item-active)]"><td class="border-x-0 border-b border-t-0 border-solid border-[var(--border-subtle)] p-3 align-middle transition-colors group-has-[td:hover]/table-row:!bg-[var(--ds-item-hover)] py-6" colSpan="4"><div class="flex min-h-[180px] w-full flex-col items-center justify-center gap-2 py-4 text-[var(--ds-muted)]" role="status" aria-live="polite"><span class="block shrink-0" style="width:180px"><img alt="暂无数据" draggable="false" loading="lazy" width="973" height="482" decoding="async" data-nimg="1" class="h-auto w-full object-contain" style="color:transparent" src="/app/_next/static/media/no-data.48c973b9.png"/></span><span>暂无数据</span></div></td></tr></tbody></table></div></div><!--/$--></div></div></div><script>$RC("B:1","S:1")</script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[13354,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AppToaster\"]\n3:I[39756,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n4:I[37457,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"5:I[21199,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/fdecc614380e597a.js\",\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/652e486c20710ca8.js\",\"/app/_next/static/chunks/345032ba59cb60d8.js\",\"/app/_next/static/chunks/bdd88bcfd223f52a.js\",\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"/app/_next/static/chunks/8a1a9a399fe2d329.js\",\"/app/_next/static/chunks/07cd0b140a56ee30.js\",\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"/app/_next/static/chunks/d55f4f3df263ad3d.js\"],\"WorkspaceShell\"]\n"])</script><script>self.__next_f.push([1,"a:I[68027,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n:HL[\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/fa5420e426d2de9f.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/c73f7d77cbe3f2f1.css\",\"style\"]\n:HL[\"/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/chunks/6e61f670898cb297.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"bgHnfEbjqZYUwK_KG6A0m\",\"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/fa5420e426d2de9f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/c73f7d77cbe3f2f1.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/7988d5ea63356e10.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/fdecc614380e597a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/app/_next/static/chunks/652e486c20710ca8.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/app/_next/static/chunks/345032ba59cb60d8.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}\n"])</script><script>self.__next_f.push([1,"f:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"OutletBoundary\"]\n11:I[11533,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AsyncMetadataOutlet\"]\n"])</script><script>self.__next_f.push([1,"13:I[5014,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/fdecc614380e597a.js\",\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/652e486c20710ca8.js\",\"/app/_next/static/chunks/345032ba59cb60d8.js\",\"/app/_next/static/chunks/bdd88bcfd223f52a.js\",\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"/app/_next/static/chunks/8a1a9a399fe2d329.js\",\"/app/_next/static/chunks/07cd0b140a56ee30.js\",\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"/app/_next/static/chunks/d55f4f3df263ad3d.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"14:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"ViewportBoundary\"]\n16:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"MetadataBoundary\"]\n17:\"$Sreact.suspense\"\n"])</script><script>self.__next_f.push([1,"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/bdd88bcfd223f52a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/8a1a9a399fe2d329.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/07cd0b140a56ee30.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/app/_next/static/chunks/d55f4f3df263ad3d.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lf\",null,{\"children\":[\"$L10\",[\"$\",\"$L11\",null,{\"promise\":\"$@12\"}]]}]]}]\n"])</script><script>self.__next_f.push([1,"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\"}],\" 加载中\"]}]\n8:[\"$\",\"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\"}],\" 加载中\"]}]\n9:[\"$\",\"$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\"}]}]}]]}]\nb:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\nc:[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/fa5420e426d2de9f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\nd:[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/c73f7d77cbe3f2f1.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"19:I[56708,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/fdecc614380e597a.js\",\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/652e486c20710ca8.js\",\"/app/_next/static/chunks/345032ba59cb60d8.js\",\"/app/_next/static/chunks/bdd88bcfd223f52a.js\",\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"/app/_next/static/chunks/8a1a9a399fe2d329.js\",\"/app/_next/static/chunks/07cd0b140a56ee30.js\",\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"/app/_next/static/chunks/d55f4f3df263ad3d.js\"],\"ManageFeatureChrome\"]\n"])</script><script>self.__next_f.push([1,"1a:I[52157,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/fdecc614380e597a.js\",\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/652e486c20710ca8.js\",\"/app/_next/static/chunks/345032ba59cb60d8.js\",\"/app/_next/static/chunks/bdd88bcfd223f52a.js\",\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"/app/_next/static/chunks/8a1a9a399fe2d329.js\",\"/app/_next/static/chunks/07cd0b140a56ee30.js\",\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"/app/_next/static/chunks/d55f4f3df263ad3d.js\"],\"PreloadChunks\"]\n"])</script><script>self.__next_f.push([1,"e:[\"$\",\"$17\",null,{\"fallback\":null,\"children\":[\"$\",\"$L19\",null,{\"headerIcon\":\"Tool\",\"title\":\"工具管理\",\"description\":\"管理当前 Agent 已挂载的工具列表\",\"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\"]}]}]}]\n"])</script><script>self.__next_f.push([1,"1c:I[19573,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/fdecc614380e597a.js\",\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/652e486c20710ca8.js\",\"/app/_next/static/chunks/345032ba59cb60d8.js\",\"/app/_next/static/chunks/bdd88bcfd223f52a.js\",\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"/app/_next/static/chunks/8a1a9a399fe2d329.js\",\"/app/_next/static/chunks/07cd0b140a56ee30.js\",\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"/app/_next/static/chunks/d55f4f3df263ad3d.js\"],\"ToolsManageView\"]\n"])</script><script>self.__next_f.push([1,"1b:[\"$\",\"$L1c\",null,{}]\n"])</script><script>self.__next_f.push([1,"15:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n10:null\n"])</script><script>self.__next_f.push([1,"12:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Claude Code测试平台\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Claude Code测试平台\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"18:\"$12:metadata\"\n"])</script></body></html>
1
+ <!DOCTYPE html><!--6_8Ppg2OmCO0VcGqmqnxR--><html lang="zh-CN" class="sora_a6e0e515-module__NbNjtG__variable dm_sans_fa25cdfd-module__fB5nTW__variable jetbrains_mono_2b1eae20-module__XfFTLG__variable font-sans"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/app/_next/static/chunks/7bdf0e5b41aeb209.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/886a31720c72a306.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/0a4ab823884025be.css" data-precedence="next"/><link rel="stylesheet" href="/app/_next/static/chunks/6e61f670898cb297.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/app/_next/static/chunks/9ccf7a8bca1730bf.js"/><script src="/app/_next/static/chunks/522518d740397639.js" async=""></script><script src="/app/_next/static/chunks/40268f8e3ff0314e.js" async=""></script><script src="/app/_next/static/chunks/32b4d63e10d31351.js" async=""></script><script src="/app/_next/static/chunks/66b30159915524db.js" async=""></script><script src="/app/_next/static/chunks/turbopack-63952675b1d69124.js" async=""></script><script src="/app/_next/static/chunks/bf2c1c402dbcccdf.js" async=""></script><script src="/app/_next/static/chunks/61b3d4c00499dd14.js" async=""></script><script src="/app/_next/static/chunks/7988d5ea63356e10.js" async=""></script><script src="/app/_next/static/chunks/d77e4439761aa20d.js" async=""></script><script src="/app/_next/static/chunks/b7f72bcb870dda3b.js" async=""></script><script src="/app/_next/static/chunks/5bad5163b6e015f5.js" async=""></script><script src="/app/_next/static/chunks/8085c74f26fa2c4e.js" async=""></script><script src="/app/_next/static/chunks/652e486c20710ca8.js" async=""></script><script src="/app/_next/static/chunks/2b18c967f27dd561.js" async=""></script><script src="/app/_next/static/chunks/bdd88bcfd223f52a.js" async=""></script><script src="/app/_next/static/chunks/6ddf95b168bfbc36.js" async=""></script><script src="/app/_next/static/chunks/7def01c245e03b59.js" async=""></script><script src="/app/_next/static/chunks/e42498eec0c8d570.js" async=""></script><script src="/app/_next/static/chunks/cd4556cbed1f8957.js" async=""></script><script src="/app/_next/static/chunks/d55f4f3df263ad3d.js" async=""></script><meta name="next-size-adjust" content=""/><title>Claude Code测试平台</title><meta name="description" content="Claude Code测试平台"/><script src="/app/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><!--$?--><template id="B:0"></template><div class="flex min-h-[40vh] flex-1 items-center justify-center gap-2 text-zinc-500"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg> 加载中</div><!--/$--><script>requestAnimationFrame(function(){$RT=performance.now()});</script><script src="/app/_next/static/chunks/9ccf7a8bca1730bf.js" id="_R_" async=""></script><div hidden id="S:0"><!--$!--><template data-dgst="BAILOUT_TO_CLIENT_SIDE_RENDERING"></template><!--/$--><div class="ws-config-hidden" aria-hidden="true"><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value=""/><input readOnly="" hidden="" value="qihoo"/></div><div class="app" data-ui-layer="presentation" data-topology="local-first"><aside class="sidebar " data-region="sidebar-panels"><div class="sidebar-brand"><div class="sidebar-brand-title-row flex items-center justify-between"><div class="logo flex min-w-0 items-center gap-2"><span class="truncate text-zinc-900">Claude Code测试平台</span></div><span data-slot="tooltip" class="inline-flex"><button type="button" class="sidebar-icon-btn" title="收起侧边栏" aria-label="收起侧边栏"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 1024 1024" color="#8f8f8f" fill="#8f8f8f" aria-hidden="true"><path d="M331.05 85.333h361.9c34.346 0 62.72 0 85.76 1.878 24.02 1.962 46.08 6.186 66.773 16.725a170.67 170.67 0 0 1 74.581 74.581c10.539 20.694 14.763 42.752 16.725 66.731 1.878 23.125 1.878 51.456 1.878 85.76v361.941c0 34.347 0 62.72-1.878 85.76-1.962 24.022-6.186 46.08-16.725 66.774a170.67 170.67 0 0 1-74.581 74.581c-20.694 10.539-42.752 14.763-66.731 16.725-23.083 1.878-51.456 1.878-85.76 1.878H331.008c-34.347 0-62.72 0-85.76-1.878-24.021-1.962-46.08-6.186-66.773-16.725a170.67 170.67 0 0 1-74.582-74.581c-10.538-20.694-14.762-42.752-16.725-66.731-1.835-23.125-1.835-51.456-1.835-85.76V331.008c0-34.347 0-62.72 1.878-85.76 1.962-24.021 6.186-46.08 16.725-66.773a170.67 170.67 0 0 1 74.581-74.582c20.694-10.538 42.752-14.762 66.731-16.725 23.125-1.835 51.456-1.835 85.76-1.835zm95.617 768H691.2c36.565 0 61.397 0 80.597-1.621 18.688-1.493 28.288-4.267 34.944-7.68a85.33 85.33 0 0 0 37.291-37.29c3.413-6.657 6.187-16.214 7.68-34.945 1.579-19.2 1.621-44.032 1.621-80.597V332.8c0-36.565 0-61.397-1.621-80.597-1.493-18.688-4.267-28.288-7.68-34.944a85.33 85.33 0 0 0-37.29-37.291c-6.657-3.413-16.214-6.187-34.945-7.68-19.2-1.621-44.032-1.621-80.597-1.621H426.667zm-85.334-682.666H332.8c-36.565 0-61.397 0-80.597 1.621-18.688 1.493-28.288 4.267-34.944 7.68a85.33 85.33 0 0 0-37.291 37.29c-3.413 6.657-6.187 16.214-7.68 34.945-1.621 19.2-1.621 44.032-1.621 80.597v358.4c0 36.565 0 61.397 1.621 80.597 1.493 18.688 4.267 28.288 7.68 34.944a85.33 85.33 0 0 0 37.29 37.291c6.657 3.413 16.214 6.187 34.945 7.68 19.2 1.621 44.032 1.621 80.597 1.621h8.533z"></path></svg></button></span></div></div><div class="new-chat"><div class="mb-4 ml-2 mr-2 mt-2 flex cursor-pointer items-center gap-2.5 rounded-2xl px-2 py-2 text-zinc-700 transition-colors hover:bg-white/70" title="开启新对话" aria-label="开启新对话"><span class="flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[var(--ds-item-active)] text-[var(--ds-accent)]" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M12 5v14M5 12h14"></path></svg></span><span class="min-w-0 font-medium">新会话</span></div></div><div class="sidebar-drawers px-[10px]"><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="m259.413 120.036-149.22 106.666-49.606-69.404L209.92 50.63l49.607 69.405zM814.08 50.63l149.39 106.667-49.607 69.404-149.276-106.666 49.607-69.405zM78.28 554.667a433.778 433.778 0 1 1 867.555 0 433.778 433.778 0 0 1-867.556 0M512 206.222a348.444 348.444 0 1 0 0 696.89 348.444 348.444 0 0 0 0-696.89m-47.787 356.125V327.623h85.334v217.145l153.258 153.316-60.302 60.302-165.831-165.774a42.67 42.67 0 0 1-12.516-30.152z"></path></svg><span class="text-zinc-900">定时任务</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M424.64 115.392A170.432 170.432 0 0 1 714.304 254.4a166.464 166.464 0 0 1 137.728 282.752l-307.84 307.712 94.912 94.848a36.736 36.736 0 0 1-51.712 51.84L466.624 870.784a36.544 36.544 0 0 1 0-51.712l333.568-333.568a93.312 93.312 0 0 0-131.648-132.096l-3.008 2.88v.128L428.352 592.96a36.544 36.544 0 0 1-56.064-5.44c-.576-.768-.96-1.664-1.472-2.432a36.3 36.3 0 0 1-4.352-23.68l.32-1.92a36.4 36.4 0 0 1 5.12-12.608l4.8-5.76 236.992-236.416 6.72-7.488A97.28 97.28 0 0 0 476.288 167.04L136.576 507.008a36.544 36.544 0 0 1-51.712-51.712l339.84-339.84zm94.912 94.4a36.544 36.544 0 0 1 51.008 52.352L329.024 497.856a98.368 98.368 0 1 0 138.624 139.52l240.64-243.584a36.672 36.672 0 0 1 52.096 51.328l-240.64 243.584A171.584 171.584 0 1 1 277.952 445.44z"></path></svg><span class="text-zinc-900">MCP</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] bg-[var(--ds-item-active)] text-[var(--ds-accent)]" role="button" tabindex="0" aria-current="page"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M938.667 981.333H85.333C38.4 981.333 0 942.933 0 896V298.667c0-46.934 38.4-85.334 85.333-85.334h192V128c0-46.933 38.4-85.333 85.334-85.333h298.666c46.934 0 85.334 38.4 85.334 85.333v85.333h192c46.933 0 85.333 38.4 85.333 85.334V896c0 46.933-38.4 85.333-85.333 85.333m-277.334-832c0-12.8-8.533-21.333-21.333-21.333H384c-12.8 0-21.333 8.533-21.333 21.333v64h298.666zM938.667 320c0-12.8-8.534-21.333-21.334-21.333H106.667c-12.8 0-21.334 8.533-21.334 21.333v128h213.334c17.066 0 32 10.667 38.4 23.467L388.267 576H633.6l51.2-104.533C691.2 456.533 706.133 448 723.2 448h213.333V320zm0 213.333H750.933l-51.2 104.534c-6.4 14.933-21.333 23.466-38.4 23.466H362.667c-17.067 0-32-10.666-38.4-23.466l-51.2-104.534H85.333v341.334c0 12.8 8.534 21.333 21.334 21.333h810.666c12.8 0 21.334-8.533 21.334-21.333z"></path></svg><span class="text-zinc-900">Tools</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1088 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M370.24 127.232c16.384-44.736 79.68-44.672 96.128 0L556.8 373.504l246.208 90.432c44.8 16.384 44.8 79.68 0 96.128L556.8 650.496 466.368 896.64c-16.448 44.8-79.744 44.8-96.128 0l-90.432-246.208L33.536 560c-44.736-16.448-44.736-79.744 0-96.128l246.272-90.432 90.432-246.272zm-22.464 283.84a51.2 51.2 0 0 1-30.4 30.4L125.44 512l192 70.528a51.2 51.2 0 0 1 28.16 25.28l2.24 5.12 70.528 191.936 70.528-192 2.176-5.12a51.2 51.2 0 0 1 28.16-25.216l192-70.528-192-70.528a51.2 51.2 0 0 1-30.336-30.4l-70.528-192-70.528 192zM756.608 32.64a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.68l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.616l-80-29.376a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552l29.376-80zm0 700.672a12.8 12.8 0 0 1 24 0l29.44 80a12.8 12.8 0 0 0 7.552 7.616l80 29.376a12.8 12.8 0 0 1 0 24l-80 29.44a12.8 12.8 0 0 0-7.616 7.552l-29.376 80a12.8 12.8 0 0 1-24 0l-29.44-80a12.8 12.8 0 0 0-7.552-7.552l-80-29.44a12.8 12.8 0 0 1 0-24l80-29.44a12.8 12.8 0 0 0 7.616-7.552z"></path></svg><span class="text-zinc-900">Skills</span></div><div class="m-[.45rem_0_0] flex cursor-pointer items-center rounded-[var(--ds-radius-sm)] p-[.45rem_.75rem] hover:bg-[var(--ds-item-active)] hover:text-zinc-900" role="button" tabindex="0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" class="mr-3 text-zinc-700" viewBox="0 0 1103 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M995.146 703.015a136.665 136.665 0 0 0-159.035 15.754L770.89 680.96V494.277a54.11 54.11 0 0 0-27.097-46.868L576.41 350.996v-82.55a137.846 137.846 0 1 0-88.616 0v82.55L320.41 447.409a54.11 54.11 0 0 0-27.097 46.868V680.88l-65.22 37.81a136.665 136.665 0 0 0-158.957-15.754 138.08 138.08 0 0 0-50.491 188.18 136.82 136.82 0 0 0 187.313 50.412 137.85 137.85 0 0 0 66.009-146.196l59.864-34.816 173.056 99.643a54.51 54.51 0 0 0 54.194 0l172.898-99.564 59.943 34.816a138.08 138.08 0 0 0 66.009 146.274 136.743 136.743 0 0 0 187.313-50.412 138.004 138.004 0 0 0-50.097-188.259m-828.337 170.3a58.604 58.604 0 0 1-80.266-21.583 59.077 59.077 0 0 1 21.583-80.66 58.604 58.604 0 0 1 80.266 21.662 59.077 59.077 0 0 1-21.583 80.66zm306.097-735.469a59.077 59.077 0 1 1 118.154 0 59.077 59.077 0 0 1-118.154 0m209.211 549.18-150.134 86.488-150.134-86.489v-172.82l150.134-86.488 150.134 86.489zM977.423 851.81a58.683 58.683 0 0 1-80.266 21.662 59.156 59.156 0 0 1-21.504-80.58 58.683 58.683 0 0 1 80.187-21.662 59.077 59.077 0 0 1 21.583 80.58"></path></svg><span class="text-zinc-900">Agent / Teams</span></div></div><div class="sidebar-drawers"><div class="sidebar-drawer m-[.35rem_.35rem_0] mt-4"><button type="button" class="flex w-full cursor-pointer items-center !border-none !bg-transparent p-[.45rem_.75rem] text-left text-[12px] font-[600] text-zinc-400 hover:text-zinc-600 focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ds-accent)] focus-visible:ring-offset-2" aria-expanded="true" aria-controls="sessionList" aria-label="收起历史会话列表">历史会话<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down ml-1 shrink-0 text-[var(--ds-muted)]" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button><div class="sidebar-drawer-body sidebar-drawer-body--sessions"><div id="sessionList"><p class="sidebar-drawer-empty">(暂无会话)</p></div></div></div></div><div class="shrink-0 border-t border-solid border-[var(--ds-border)] transition flex items-center gap-2 p-[1rem_.75rem]"><div class="relative min-w-0 flex-1"><div class="flex min-w-0 cursor-pointer items-center gap-2 rounded-lg px-0.5 py-0.5"><span class="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold text-white" style="background:var(--avatar-bg)">QI</span><span class="min-w-0 truncate text-[var(--ds-text)]">qihoo</span></div></div><span data-slot="tooltip" class="inline-flex"><button type="button" tabindex="0" data-slot="button" data-size="icon-sm" aria-label="设置" class="group/button inline-flex shrink-0 items-center justify-center cursor-pointer !pl-[16px] !pr-[16px] [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 [&amp;_svg]:align-middle [&amp;_svg:not([class*=&#x27;size-&#x27;]):not([width])]:size-4 [&amp;_svg]:stroke-current [&amp;_svg[fill=none]_path]:fill-none [&amp;_svg:not([fill=none])_path]:fill-current bg-transparent border-0 size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg text-[var(--ds-muted)] hover:bg-[var(--ds-item-hover)] focus-visible:ring-2 focus-visible:ring-[var(--ds-accent)]"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings shrink-0" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></div></aside><main class="main overflow-x-auto manage-main" data-region="manage-shell"><div class="main-content"><!--$--><!--$?--><template id="B:1"></template><!--/$--><!--$--><!--/$--><!--/$--></div></main><aside class="stage-thread-flyout" data-region="stage-thread-flyout" aria-hidden="true" style="--stage-flyout-width:760px"></aside></div></div><script>$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};
2
+ $RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};$RC("B:0","S:0")</script><div hidden id="S:1"><div class="manage-page-wrap flex min-h-0 flex-1 flex-col"><div class="manage-page-header flex shrink-0 items-start justify-between gap-[var(--space-4)] pb-[var(--space-4)]"><div class="manage-page-title-block flex items-center"><div class="mr-[16px] rounded-md bg-[var(--green-light)] px-4 py-3"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="text-[var(--green-dark)]" viewBox="0 0 1024 1024" color="currentColor" fill="currentColor" aria-hidden="true"><path d="M938.667 981.333H85.333C38.4 981.333 0 942.933 0 896V298.667c0-46.934 38.4-85.334 85.333-85.334h192V128c0-46.933 38.4-85.333 85.334-85.333h298.666c46.934 0 85.334 38.4 85.334 85.333v85.333h192c46.933 0 85.333 38.4 85.333 85.334V896c0 46.933-38.4 85.333-85.333 85.333m-277.334-832c0-12.8-8.533-21.333-21.333-21.333H384c-12.8 0-21.333 8.533-21.333 21.333v64h298.666zM938.667 320c0-12.8-8.534-21.333-21.334-21.333H106.667c-12.8 0-21.334 8.533-21.334 21.333v128h213.334c17.066 0 32 10.667 38.4 23.467L388.267 576H633.6l51.2-104.533C691.2 456.533 706.133 448 723.2 448h213.333V320zm0 213.333H750.933l-51.2 104.534c-6.4 14.933-21.333 23.466-38.4 23.466H362.667c-17.067 0-32-10.666-38.4-23.466l-51.2-104.534H85.333v341.334c0 12.8 8.534 21.333 21.334 21.333h810.666c12.8 0 21.334-8.533 21.334-21.333z"></path></svg></div><div class="pt-2"><h1 class="manage-page-title">Tools管理</h1><p class="manage-page-desc">管理当前 Agent 已挂载的Tools列表</p></div></div><div class="manage-page-header-actions self-start"></div></div><div class="manage-page-body flex min-h-0 min-w-0 flex-1 flex-col"><!--$--><div class="overflow-hidden border border-[var(--ds-border)]"><div class="relative w-full overflow-auto"><table class="w-full caption-bottom border-collapse"><thead class="[&amp;_tr]:table [&amp;_tr]:w-full [&amp;_tr]:table-fixed [&amp;_tr]:border-b"><tr class="border-b transition-colors [&amp;&gt;td]:transition-colors data-[state=selected]:[&amp;&gt;td]:!bg-[var(--ds-item-active)] group/table-row bg-[var(--ds-main-tint)] hover:bg-[var(--ds-main-tint)]"><th class="h-10 border-b border-[var(--border-subtle)] bg-[var(--surface-2)] px-3 text-left align-middle text-[14px] font-medium !text-[var(--ds-text)] text-muted-foreground">名称</th><th class="h-10 border-b border-[var(--border-subtle)] bg-[var(--surface-2)] px-3 text-left align-middle text-[14px] font-medium !text-[var(--ds-text)] text-muted-foreground">详情</th><th class="h-10 border-b border-[var(--border-subtle)] bg-[var(--surface-2)] px-3 text-left align-middle text-[14px] font-medium !text-[var(--ds-text)] text-muted-foreground">启用/未启用</th><th class="h-10 border-b border-[var(--border-subtle)] bg-[var(--surface-2)] px-3 text-left align-middle text-[14px] font-medium !text-[var(--ds-text)] text-muted-foreground w-[128px]">操作</th></tr></thead><tbody class="block overflow-y-auto [&amp;_tr:last-child]:border-b-0 [&amp;_tr:last-child_td]:border-b-0 [&amp;_tr]:table [&amp;_tr]:w-full [&amp;_tr]:table-fixed"><tr class="border-b transition-colors [&amp;&gt;td]:transition-colors data-[state=selected]:[&amp;&gt;td]:!bg-[var(--ds-item-active)]"><td class="border-x-0 border-b border-t-0 border-solid border-[var(--border-subtle)] p-3 align-middle transition-colors group-has-[td:hover]/table-row:!bg-[var(--ds-item-hover)] py-6" colSpan="4"><div class="flex min-h-[180px] w-full flex-col items-center justify-center gap-2 py-4 text-[var(--ds-muted)]" role="status" aria-live="polite"><span class="block shrink-0" style="width:180px"><img alt="暂无数据" draggable="false" loading="lazy" width="973" height="482" decoding="async" data-nimg="1" class="h-auto w-full object-contain" style="color:transparent" src="/app/_next/static/media/no-data.48c973b9.png"/></span><span>暂无数据</span></div></td></tr></tbody></table></div></div><!--/$--></div></div></div><script>$RC("B:1","S:1")</script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[13354,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AppToaster\"]\n3:I[39756,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n4:I[37457,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"5:I[21199,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/d77e4439761aa20d.js\",\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/652e486c20710ca8.js\",\"/app/_next/static/chunks/2b18c967f27dd561.js\",\"/app/_next/static/chunks/bdd88bcfd223f52a.js\",\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"/app/_next/static/chunks/7def01c245e03b59.js\",\"/app/_next/static/chunks/e42498eec0c8d570.js\",\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"/app/_next/static/chunks/d55f4f3df263ad3d.js\"],\"WorkspaceShell\"]\n"])</script><script>self.__next_f.push([1,"a:I[68027,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"default\"]\n:HL[\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/886a31720c72a306.css\",\"style\"]\n:HL[\"/app/_next/static/chunks/0a4ab823884025be.css\",\"style\"]\n:HL[\"/app/_next/static/media/5c285b27cdda1fe8-s.p.a62025f2.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/70bc3e132a0a741e-s.p.15008bfb.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/media/c41ca59f1c34ba31-s.p.e20f337c.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/app/_next/static/chunks/6e61f670898cb297.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"6_8Ppg2OmCO0VcGqmqnxR\",\"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/886a31720c72a306.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/0a4ab823884025be.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/7988d5ea63356e10.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/d77e4439761aa20d.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/app/_next/static/chunks/652e486c20710ca8.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/app/_next/static/chunks/2b18c967f27dd561.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}\n"])</script><script>self.__next_f.push([1,"f:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"OutletBoundary\"]\n11:I[11533,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"AsyncMetadataOutlet\"]\n"])</script><script>self.__next_f.push([1,"13:I[5014,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/d77e4439761aa20d.js\",\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/652e486c20710ca8.js\",\"/app/_next/static/chunks/2b18c967f27dd561.js\",\"/app/_next/static/chunks/bdd88bcfd223f52a.js\",\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"/app/_next/static/chunks/7def01c245e03b59.js\",\"/app/_next/static/chunks/e42498eec0c8d570.js\",\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"/app/_next/static/chunks/d55f4f3df263ad3d.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"14:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"ViewportBoundary\"]\n16:I[97367,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\"],\"MetadataBoundary\"]\n17:\"$Sreact.suspense\"\n"])</script><script>self.__next_f.push([1,"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/bdd88bcfd223f52a.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/app/_next/static/chunks/7def01c245e03b59.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/app/_next/static/chunks/e42498eec0c8d570.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-4\",{\"src\":\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-5\",{\"src\":\"/app/_next/static/chunks/d55f4f3df263ad3d.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$Lf\",null,{\"children\":[\"$L10\",[\"$\",\"$L11\",null,{\"promise\":\"$@12\"}]]}]]}]\n"])</script><script>self.__next_f.push([1,"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\"}],\" 加载中\"]}]\n8:[\"$\",\"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\"}],\" 加载中\"]}]\n9:[\"$\",\"$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\"}]}]}]]}]\nb:[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/7bdf0e5b41aeb209.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\nc:[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/886a31720c72a306.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\nd:[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/app/_next/static/chunks/0a4ab823884025be.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]\n"])</script><script>self.__next_f.push([1,"19:I[56708,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/d77e4439761aa20d.js\",\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/652e486c20710ca8.js\",\"/app/_next/static/chunks/2b18c967f27dd561.js\",\"/app/_next/static/chunks/bdd88bcfd223f52a.js\",\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"/app/_next/static/chunks/7def01c245e03b59.js\",\"/app/_next/static/chunks/e42498eec0c8d570.js\",\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"/app/_next/static/chunks/d55f4f3df263ad3d.js\"],\"ManageFeatureChrome\"]\n"])</script><script>self.__next_f.push([1,"1a:I[52157,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/d77e4439761aa20d.js\",\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/652e486c20710ca8.js\",\"/app/_next/static/chunks/2b18c967f27dd561.js\",\"/app/_next/static/chunks/bdd88bcfd223f52a.js\",\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"/app/_next/static/chunks/7def01c245e03b59.js\",\"/app/_next/static/chunks/e42498eec0c8d570.js\",\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"/app/_next/static/chunks/d55f4f3df263ad3d.js\"],\"PreloadChunks\"]\n"])</script><script>self.__next_f.push([1,"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\"]}]}]}]\n"])</script><script>self.__next_f.push([1,"1c:I[19573,[\"/app/_next/static/chunks/bf2c1c402dbcccdf.js\",\"/app/_next/static/chunks/61b3d4c00499dd14.js\",\"/app/_next/static/chunks/7988d5ea63356e10.js\",\"/app/_next/static/chunks/d77e4439761aa20d.js\",\"/app/_next/static/chunks/b7f72bcb870dda3b.js\",\"/app/_next/static/chunks/5bad5163b6e015f5.js\",\"/app/_next/static/chunks/8085c74f26fa2c4e.js\",\"/app/_next/static/chunks/652e486c20710ca8.js\",\"/app/_next/static/chunks/2b18c967f27dd561.js\",\"/app/_next/static/chunks/bdd88bcfd223f52a.js\",\"/app/_next/static/chunks/6ddf95b168bfbc36.js\",\"/app/_next/static/chunks/7def01c245e03b59.js\",\"/app/_next/static/chunks/e42498eec0c8d570.js\",\"/app/_next/static/chunks/cd4556cbed1f8957.js\",\"/app/_next/static/chunks/d55f4f3df263ad3d.js\"],\"ToolsManageView\"]\n"])</script><script>self.__next_f.push([1,"1b:[\"$\",\"$L1c\",null,{}]\n"])</script><script>self.__next_f.push([1,"15:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n10:null\n"])</script><script>self.__next_f.push([1,"12:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Claude Code测试平台\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Claude Code测试平台\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"18:\"$12:metadata\"\n"])</script></body></html>
@@ -2,33 +2,33 @@
2
2
  2:I[13354,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js"],"AppToaster"]
3
3
  3:I[39756,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js"],"default"]
4
4
  4:I[37457,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js"],"default"]
5
- 5:I[21199,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js","/app/_next/static/chunks/fdecc614380e597a.js","/app/_next/static/chunks/b7f72bcb870dda3b.js","/app/_next/static/chunks/5bad5163b6e015f5.js","/app/_next/static/chunks/8085c74f26fa2c4e.js","/app/_next/static/chunks/652e486c20710ca8.js","/app/_next/static/chunks/345032ba59cb60d8.js","/app/_next/static/chunks/bdd88bcfd223f52a.js","/app/_next/static/chunks/6ddf95b168bfbc36.js","/app/_next/static/chunks/8a1a9a399fe2d329.js","/app/_next/static/chunks/07cd0b140a56ee30.js","/app/_next/static/chunks/cd4556cbed1f8957.js","/app/_next/static/chunks/d55f4f3df263ad3d.js"],"WorkspaceShell"]
5
+ 5:I[21199,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js","/app/_next/static/chunks/d77e4439761aa20d.js","/app/_next/static/chunks/b7f72bcb870dda3b.js","/app/_next/static/chunks/5bad5163b6e015f5.js","/app/_next/static/chunks/8085c74f26fa2c4e.js","/app/_next/static/chunks/652e486c20710ca8.js","/app/_next/static/chunks/2b18c967f27dd561.js","/app/_next/static/chunks/bdd88bcfd223f52a.js","/app/_next/static/chunks/6ddf95b168bfbc36.js","/app/_next/static/chunks/7def01c245e03b59.js","/app/_next/static/chunks/e42498eec0c8d570.js","/app/_next/static/chunks/cd4556cbed1f8957.js","/app/_next/static/chunks/d55f4f3df263ad3d.js"],"WorkspaceShell"]
6
6
  a:I[68027,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js"],"default"]
7
7
  :HL["/app/_next/static/chunks/7bdf0e5b41aeb209.css","style"]
8
- :HL["/app/_next/static/chunks/fa5420e426d2de9f.css","style"]
9
- :HL["/app/_next/static/chunks/c73f7d77cbe3f2f1.css","style"]
8
+ :HL["/app/_next/static/chunks/886a31720c72a306.css","style"]
9
+ :HL["/app/_next/static/chunks/0a4ab823884025be.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":"bgHnfEbjqZYUwK_KG6A0m","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/fa5420e426d2de9f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/app/_next/static/chunks/c73f7d77cbe3f2f1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/app/_next/static/chunks/bf2c1c402dbcccdf.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/61b3d4c00499dd14.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/7988d5ea63356e10.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/fdecc614380e597a.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/b7f72bcb870dda3b.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/5bad5163b6e015f5.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/app/_next/static/chunks/8085c74f26fa2c4e.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/app/_next/static/chunks/652e486c20710ca8.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/app/_next/static/chunks/345032ba59cb60d8.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}
14
+ 0:{"P":null,"b":"6_8Ppg2OmCO0VcGqmqnxR","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/886a31720c72a306.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/app/_next/static/chunks/0a4ab823884025be.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/app/_next/static/chunks/bf2c1c402dbcccdf.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/61b3d4c00499dd14.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/7988d5ea63356e10.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/d77e4439761aa20d.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/b7f72bcb870dda3b.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/5bad5163b6e015f5.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/app/_next/static/chunks/8085c74f26fa2c4e.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/app/_next/static/chunks/652e486c20710ca8.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/app/_next/static/chunks/2b18c967f27dd561.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
15
  f:I[97367,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js"],"OutletBoundary"]
16
16
  11:I[11533,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js"],"AsyncMetadataOutlet"]
17
- 13:I[5014,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js","/app/_next/static/chunks/fdecc614380e597a.js","/app/_next/static/chunks/b7f72bcb870dda3b.js","/app/_next/static/chunks/5bad5163b6e015f5.js","/app/_next/static/chunks/8085c74f26fa2c4e.js","/app/_next/static/chunks/652e486c20710ca8.js","/app/_next/static/chunks/345032ba59cb60d8.js","/app/_next/static/chunks/bdd88bcfd223f52a.js","/app/_next/static/chunks/6ddf95b168bfbc36.js","/app/_next/static/chunks/8a1a9a399fe2d329.js","/app/_next/static/chunks/07cd0b140a56ee30.js","/app/_next/static/chunks/cd4556cbed1f8957.js","/app/_next/static/chunks/d55f4f3df263ad3d.js"],"default"]
17
+ 13:I[5014,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js","/app/_next/static/chunks/d77e4439761aa20d.js","/app/_next/static/chunks/b7f72bcb870dda3b.js","/app/_next/static/chunks/5bad5163b6e015f5.js","/app/_next/static/chunks/8085c74f26fa2c4e.js","/app/_next/static/chunks/652e486c20710ca8.js","/app/_next/static/chunks/2b18c967f27dd561.js","/app/_next/static/chunks/bdd88bcfd223f52a.js","/app/_next/static/chunks/6ddf95b168bfbc36.js","/app/_next/static/chunks/7def01c245e03b59.js","/app/_next/static/chunks/e42498eec0c8d570.js","/app/_next/static/chunks/cd4556cbed1f8957.js","/app/_next/static/chunks/d55f4f3df263ad3d.js"],"default"]
18
18
  14:I[97367,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js"],"ViewportBoundary"]
19
19
  16:I[97367,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js"],"MetadataBoundary"]
20
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/bdd88bcfd223f52a.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/6ddf95b168bfbc36.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/8a1a9a399fe2d329.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/app/_next/static/chunks/07cd0b140a56ee30.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/app/_next/static/chunks/cd4556cbed1f8957.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/app/_next/static/chunks/d55f4f3df263ad3d.js","async":true,"nonce":"$undefined"}]],["$","$Lf",null,{"children":["$L10",["$","$L11",null,{"promise":"$@12"}]]}]]}]
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/bdd88bcfd223f52a.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/app/_next/static/chunks/6ddf95b168bfbc36.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/app/_next/static/chunks/7def01c245e03b59.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/app/_next/static/chunks/e42498eec0c8d570.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/app/_next/static/chunks/cd4556cbed1f8957.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/app/_next/static/chunks/d55f4f3df263ad3d.js","async":true,"nonce":"$undefined"}]],["$","$Lf",null,{"children":["$L10",["$","$L11",null,{"promise":"$@12"}]]}]]}]
22
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
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
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
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/fa5420e426d2de9f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
27
- d:["$","link","2",{"rel":"stylesheet","href":"/app/_next/static/chunks/c73f7d77cbe3f2f1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
28
- 19:I[56708,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js","/app/_next/static/chunks/fdecc614380e597a.js","/app/_next/static/chunks/b7f72bcb870dda3b.js","/app/_next/static/chunks/5bad5163b6e015f5.js","/app/_next/static/chunks/8085c74f26fa2c4e.js","/app/_next/static/chunks/652e486c20710ca8.js","/app/_next/static/chunks/345032ba59cb60d8.js","/app/_next/static/chunks/bdd88bcfd223f52a.js","/app/_next/static/chunks/6ddf95b168bfbc36.js","/app/_next/static/chunks/8a1a9a399fe2d329.js","/app/_next/static/chunks/07cd0b140a56ee30.js","/app/_next/static/chunks/cd4556cbed1f8957.js","/app/_next/static/chunks/d55f4f3df263ad3d.js"],"ManageFeatureChrome"]
29
- 1a:I[52157,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js","/app/_next/static/chunks/fdecc614380e597a.js","/app/_next/static/chunks/b7f72bcb870dda3b.js","/app/_next/static/chunks/5bad5163b6e015f5.js","/app/_next/static/chunks/8085c74f26fa2c4e.js","/app/_next/static/chunks/652e486c20710ca8.js","/app/_next/static/chunks/345032ba59cb60d8.js","/app/_next/static/chunks/bdd88bcfd223f52a.js","/app/_next/static/chunks/6ddf95b168bfbc36.js","/app/_next/static/chunks/8a1a9a399fe2d329.js","/app/_next/static/chunks/07cd0b140a56ee30.js","/app/_next/static/chunks/cd4556cbed1f8957.js","/app/_next/static/chunks/d55f4f3df263ad3d.js"],"PreloadChunks"]
30
- e:["$","$17",null,{"fallback":null,"children":["$","$L19",null,{"headerIcon":"Tool","title":"工具管理","description":"管理当前 Agent 已挂载的工具列表","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[19573,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js","/app/_next/static/chunks/fdecc614380e597a.js","/app/_next/static/chunks/b7f72bcb870dda3b.js","/app/_next/static/chunks/5bad5163b6e015f5.js","/app/_next/static/chunks/8085c74f26fa2c4e.js","/app/_next/static/chunks/652e486c20710ca8.js","/app/_next/static/chunks/345032ba59cb60d8.js","/app/_next/static/chunks/bdd88bcfd223f52a.js","/app/_next/static/chunks/6ddf95b168bfbc36.js","/app/_next/static/chunks/8a1a9a399fe2d329.js","/app/_next/static/chunks/07cd0b140a56ee30.js","/app/_next/static/chunks/cd4556cbed1f8957.js","/app/_next/static/chunks/d55f4f3df263ad3d.js"],"ToolsManageView"]
26
+ c:["$","link","1",{"rel":"stylesheet","href":"/app/_next/static/chunks/886a31720c72a306.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
27
+ d:["$","link","2",{"rel":"stylesheet","href":"/app/_next/static/chunks/0a4ab823884025be.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]
28
+ 19:I[56708,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js","/app/_next/static/chunks/d77e4439761aa20d.js","/app/_next/static/chunks/b7f72bcb870dda3b.js","/app/_next/static/chunks/5bad5163b6e015f5.js","/app/_next/static/chunks/8085c74f26fa2c4e.js","/app/_next/static/chunks/652e486c20710ca8.js","/app/_next/static/chunks/2b18c967f27dd561.js","/app/_next/static/chunks/bdd88bcfd223f52a.js","/app/_next/static/chunks/6ddf95b168bfbc36.js","/app/_next/static/chunks/7def01c245e03b59.js","/app/_next/static/chunks/e42498eec0c8d570.js","/app/_next/static/chunks/cd4556cbed1f8957.js","/app/_next/static/chunks/d55f4f3df263ad3d.js"],"ManageFeatureChrome"]
29
+ 1a:I[52157,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js","/app/_next/static/chunks/d77e4439761aa20d.js","/app/_next/static/chunks/b7f72bcb870dda3b.js","/app/_next/static/chunks/5bad5163b6e015f5.js","/app/_next/static/chunks/8085c74f26fa2c4e.js","/app/_next/static/chunks/652e486c20710ca8.js","/app/_next/static/chunks/2b18c967f27dd561.js","/app/_next/static/chunks/bdd88bcfd223f52a.js","/app/_next/static/chunks/6ddf95b168bfbc36.js","/app/_next/static/chunks/7def01c245e03b59.js","/app/_next/static/chunks/e42498eec0c8d570.js","/app/_next/static/chunks/cd4556cbed1f8957.js","/app/_next/static/chunks/d55f4f3df263ad3d.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[19573,["/app/_next/static/chunks/bf2c1c402dbcccdf.js","/app/_next/static/chunks/61b3d4c00499dd14.js","/app/_next/static/chunks/7988d5ea63356e10.js","/app/_next/static/chunks/d77e4439761aa20d.js","/app/_next/static/chunks/b7f72bcb870dda3b.js","/app/_next/static/chunks/5bad5163b6e015f5.js","/app/_next/static/chunks/8085c74f26fa2c4e.js","/app/_next/static/chunks/652e486c20710ca8.js","/app/_next/static/chunks/2b18c967f27dd561.js","/app/_next/static/chunks/bdd88bcfd223f52a.js","/app/_next/static/chunks/6ddf95b168bfbc36.js","/app/_next/static/chunks/7def01c245e03b59.js","/app/_next/static/chunks/e42498eec0c8d570.js","/app/_next/static/chunks/cd4556cbed1f8957.js","/app/_next/static/chunks/d55f4f3df263ad3d.js"],"ToolsManageView"]
32
32
  1b:["$","$L1c",null,{}]
33
33
  15:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
34
34
  10:null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auto-ai/agent",
3
- "version": "2.1.167",
3
+ "version": "2.1.168",
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.167",
36
- "@auto-ai/agent-linux-arm64": "2.1.167",
37
- "@auto-ai/agent-darwin-x64": "2.1.167",
38
- "@auto-ai/agent-darwin-arm64": "2.1.167",
39
- "@auto-ai/agent-win-x64": "2.1.167"
35
+ "@auto-ai/agent-linux-x64": "2.1.168",
36
+ "@auto-ai/agent-linux-arm64": "2.1.168",
37
+ "@auto-ai/agent-darwin-x64": "2.1.168",
38
+ "@auto-ai/agent-darwin-arm64": "2.1.168",
39
+ "@auto-ai/agent-win-x64": "2.1.168"
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,93479,e=>{"use strict";e.s(["Input",()=>l]);var t=e.i(18050),a=e.i(75157);function l(e){let{className:l,type:s="text",size:r="default",...i}=e;return(0,t.jsx)("input",{type:s,"data-slot":"input","data-size":r,className:(0,a.cn)("h-9 w-full appearance-none rounded-md border border-solid border-border bg-transparent px-3 outline-none transition-[color,box-shadow,border-color] duration-150 ease-in-out placeholder:text-muted-foreground hover:border-[var(--border-hover)] focus-visible:border-[var(--border-focus)] focus-visible:[box-shadow:var(--ring-focus-sm)] read-only:focus-visible:border-border read-only:focus-visible:[box-shadow:none] disabled:cursor-not-allowed disabled:opacity-50 disabled:focus-visible:border-border disabled:focus-visible:[box-shadow:none] data-[size=default]:h-9 data-[size=lg]:h-10 data-[size=sm]:h-7",l),...i})}},51239,e=>{e.v("/app/_next/static/media/data-loading.be8d921a.png")},2839,e=>{"use strict";e.s(["Loading",()=>i],2839);var t=e.i(18050),a=e.i(57688);let l={src:e.i(51239).default,width:951,height:482,blurWidth:8,blurHeight:4,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAj0lEQVR42gGEAHv/AAAAAAANERAObXJwYaGko5N/gYBwDg8PCgAAAAAAAAAAAAMEBAJic2xp2+3m7fL8+P7l6ujjUlhWTAYGBgUAAAAAADM3NTG6x8LB7fr1/vD89/7f9+3+wNXNzycpKB4AAAAAAJ+qpozL2dO/0NvWx9Td2c6gzrzRpcq8u2FpZk8CAgIBCRI7kCfNfAcAAAAASUVORK5CYII="};var s=e.i(87968),r=e.i(75157);function i(e){let{text:i="加载中",className:n,showImage:o=!0,imageSrc:c=l,imageAlt:d="加载中",imageSize:u=180,imageClassName:m}=e,p="string"==typeof c?{width:u,height:u}:{width:c.width,height:c.height};return(0,t.jsxs)("div",{className:(0,r.cn)("flex min-h-[180px] w-full flex-col items-center justify-center gap-2 py-4 text-[var(--ds-muted)]",n),role:"status","aria-live":"polite",children:[o?(0,t.jsx)("span",{className:(0,r.cn)("block shrink-0",m),style:{width:u},children:(0,t.jsx)(a.default,{src:c,alt:d,width:p.width,height:p.height,unoptimized:!0,draggable:!1,sizes:"".concat(u,"px"),className:"h-auto w-full object-contain"})}):null,(0,t.jsxs)("span",{className:"flex items-center",children:[(0,t.jsx)(s.Spinner,{className:"mr-2"}),i]})]})}},92715,e=>{"use strict";e.s(["AppTable",()=>u],92715);var t=e.i(18050),a=e.i(85413),l=e.i(71645),s=e.i(75157);let r=l.forwardRef((e,a)=>{let{className:l,...r}=e;return(0,t.jsx)("div",{className:"relative w-full overflow-auto",children:(0,t.jsx)("table",{ref:a,className:(0,s.cn)("w-full caption-bottom border-collapse",l),...r})})});r.displayName="Table";let i=l.forwardRef((e,a)=>{let{className:l,...r}=e;return(0,t.jsx)("thead",{ref:a,className:(0,s.cn)("[&_tr]:table [&_tr]:w-full [&_tr]:table-fixed [&_tr]:border-b",l),...r})});i.displayName="TableHeader";let n=l.forwardRef((e,a)=>{let{className:r,viewportFit:i=!0,viewportReserveBottom:n=16,viewportPaginationReserve:o=0,style:c,...d}=e,u=l.useRef(null),m=l.useCallback(e=>{u.current=e,"function"==typeof a?a(e):a&&(a.current=e)},[a]),[p,f]=l.useState(void 0);return l.useLayoutEffect(()=>{var e,t;if(!i)return void f(void 0);let a=()=>{var e,t;let a=u.current;if(!a)return;let l=a.getBoundingClientRect().top;f(Math.max(80,Math.floor((null!=(t=null==(e=window.visualViewport)?void 0:e.height)?t:window.innerHeight)-l-(n+o))))};a();let l=new ResizeObserver(()=>{a()});try{l.observe(document.body)}catch(e){}return window.addEventListener("resize",a),null==(e=window.visualViewport)||e.addEventListener("resize",a),null==(t=window.visualViewport)||t.addEventListener("scroll",a),window.addEventListener("scroll",a,!0),()=>{var e,t;l.disconnect(),window.removeEventListener("resize",a),null==(e=window.visualViewport)||e.removeEventListener("resize",a),null==(t=window.visualViewport)||t.removeEventListener("scroll",a),window.removeEventListener("scroll",a,!0)}},[i,n,o]),(0,t.jsx)("tbody",{ref:m,className:(0,s.cn)("block overflow-y-auto [&_tr:last-child]:border-b-0 [&_tr:last-child_td]:border-b-0 [&_tr]:table [&_tr]:w-full [&_tr]:table-fixed",r),style:i&&void 0!==p?{...c,maxHeight:p}:c,...d})});n.displayName="TableBody";let o=l.forwardRef((e,a)=>{let{className:l,hoverable:r=!0,...i}=e;return(0,t.jsx)("tr",{ref:a,className:(0,s.cn)("border-b transition-colors [&>td]:transition-colors data-[state=selected]:[&>td]:!bg-[var(--ds-item-active)]",r&&"group/table-row",l),...i})});o.displayName="TableRow";let c=l.forwardRef((e,a)=>{let{className:l,...r}=e;return(0,t.jsx)("th",{ref:a,className:(0,s.cn)("h-10 border-b border-[var(--border-subtle)] bg-[var(--surface-2)] px-3 text-left align-middle text-[14px] font-medium !text-[var(--ds-text)] text-muted-foreground",l),...r})});c.displayName="TableHead";let d=l.forwardRef((e,a)=>{let{className:l,...r}=e;return(0,t.jsx)("td",{ref:a,className:(0,s.cn)("border-x-0 border-b border-t-0 border-solid border-[var(--border-subtle)] p-3 align-middle transition-colors group-has-[td:hover]/table-row:!bg-[var(--ds-item-hover)]",l),...r})});function u(e){let{rows:l,columns:u,getRowKey:m,className:p,rowClassName:f,headerRowClassName:x,emptyText:h,emptyNode:b,bodyProps:g}=e;return(0,t.jsx)("div",{className:(0,s.cn)("overflow-hidden border border-[var(--ds-border)]",p),children:(0,t.jsxs)(r,{children:[(0,t.jsx)(i,{children:(0,t.jsx)(o,{className:(0,s.cn)("bg-[var(--ds-main-tint)] hover:bg-[var(--ds-main-tint)]",x),children:u.map(e=>(0,t.jsx)(c,{className:e.headerClassName,children:e.title},e.key))})}),(0,t.jsx)(n,{...g,children:l.length?l.map(e=>(0,t.jsx)(o,{className:"function"==typeof f?f(e):f,children:u.map(a=>(0,t.jsx)(d,{className:a.cellClassName,children:a.render(e)},a.key))},m(e))):(0,t.jsx)(o,{hoverable:!1,children:(0,t.jsx)(d,{colSpan:u.length,className:"py-6",children:null!=b?b:(0,t.jsx)(a.Empty,{text:h})})})})]})})}d.displayName="TableCell"},62427,e=>{"use strict";e.s(["clearRuntimeMcpItemConfig",()=>w,"deleteRuntimeMcp",()=>m,"deleteRuntimeSkill",()=>j,"deleteRuntimeTool",()=>u,"exportRuntimeMcpUrl",()=>f,"exportRuntimeSkillUrl",()=>N,"exportRuntimeToolUrl",()=>p,"importRuntimeMcp",()=>h,"importRuntimeTool",()=>x,"installCloudSkill",()=>C,"listBaseSkills",()=>r,"listCloudSkillCatalog",()=>k,"listInstalledSkills",()=>i,"listInstalledTools",()=>s,"listMcpServers",()=>l,"listRuntimeMcpPackages",()=>d,"listRuntimeTools",()=>c,"loadBaseSkillMd",()=>n,"loadRemoteMcpJson",()=>b,"loadRuntimeMcpItemConfig",()=>v,"saveBaseSkillMd",()=>o,"saveRemoteMcpJson",()=>g,"saveRuntimeMcpItemConfig",()=>y]);var t=e.i(29250),a=e.i(36845);async function l(e,l,s){let r=await (0,t.get)((0,a.buildMcpServersListUrl)(e,l,s));return{servers:Array.isArray(r.servers)?r.servers:[]}}async function s(e,l,s){let r=await (0,t.get)((0,a.buildToolInstalledListUrl)(e,l,s));return{tools:Array.isArray(r.tools)?r.tools:[]}}async function r(e,l,s){let r=await (0,t.get)((0,a.buildSkillBaseListUrl)(e,l,s));return{skills:Array.isArray(r.skills)?r.skills:[]}}async function i(e,l,s){let r=await (0,t.get)((0,a.buildSkillInstalledListUrl)(e,l,s));return{skills:Array.isArray(r.skills)?r.skills:[]}}async function n(e,l,s,r){return(0,t.get)((0,a.buildBaseSkillMdUrl)(e,l,s,r))}async function o(e,l,s,r,i){await (0,t.put)((0,a.buildBaseSkillMdUrl)(e,l,s,r),{content:i})}async function c(e,l,s){let r=await (0,t.get)((0,a.buildToolsRuntimeFilesUrl)(e,l,s));return{runtimeToolsDir:"string"==typeof r.runtimeToolsDir?r.runtimeToolsDir:"",items:Array.isArray(r.items)?r.items.filter(e=>!!(e&&e.id)):[]}}async function d(e,l,s){let r=await (0,t.get)((0,a.buildMcpRuntimeFilesUrl)(e,l,s));return{mcpRuntimeDir:"string"==typeof r.mcpRuntimeDir?r.mcpRuntimeDir:"",items:Array.isArray(r.items)?r.items.filter(e=>!!(e&&e.id)):[]}}async function u(e,l,s,r){return(0,t.del)((0,a.buildToolsRuntimeDeleteUrl)(e,l,s,r))}async function m(e,l,s,r){return(0,t.del)((0,a.buildMcpRuntimeDeleteUrl)(e,l,s,r))}function p(e,t,l,s){return(0,a.buildToolsRuntimeExportUrl)(e,t,l,s)}function f(e,t,l,s){return(0,a.buildMcpRuntimeExportUrl)(e,t,l,s)}async function x(e,l,s,r){let i=new FormData;return i.append("file",r),(0,t.post)((0,a.buildToolsRuntimeImportUrl)(e,l,s),i,{type:"file"})}async function h(e,l,s,r){let i=new FormData;return i.append("file",r),(0,t.post)((0,a.buildMcpRuntimeImportUrl)(e,l,s),i,{type:"file"})}async function b(e,l,s){return(0,t.get)((0,a.buildRemoteMcpJsonUrl)(e,l,s))}async function g(e,l,s,r){await (0,t.post)((0,a.buildRemoteMcpJsonUrl)(e,l,s),{content:r})}async function v(e,l,s,r,i){return(0,t.get)((0,a.buildRuntimeMcpItemConfigUrl)(e,l,s,r,i))}async function y(e,l,s,r,i,n){await (0,t.put)((0,a.buildRuntimeMcpItemConfigUrl)(e,l,s,r,i),{server:n})}async function w(e,l,s,r,i){await (0,t.del)((0,a.buildRuntimeMcpItemConfigUrl)(e,l,s,r,i))}async function j(e,l,s,r){return(0,t.del)((0,a.buildSkillsRuntimeDeleteUrl)(e,l,s,r))}function N(e,t,l,s){return(0,a.buildSkillsRuntimeExportUrl)(e,t,l,s)}async function k(e,l,s,r,i,n){let o=await (0,t.get)((0,a.buildCloudSkillCatalogUrl)(e,l,s,r,i,n));return{items:Array.isArray(o.items)?o.items:[],totalPages:Number(o.totalPages||0)}}async function C(e,l,s,r){await (0,t.post)((0,a.buildCloudSkillInstallUrl)(e,l,s),{id:r})}},53925,e=>{"use strict";e.s(["ResourceImportDialog",()=>u],53925);var t=e.i(18050),a=e.i(71645),l=e.i(72064),s=e.i(75157),r=e.i(19455);function i(e){return e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB")}function n(e){let{uploadUrl:n,accept:o,disabled:c=!1,multiple:d=!1,maxFileSize:u=0x3200000,autoUpload:m=!1,method:p="POST",transport:f="xhr",fieldName:x="file",headers:h,extraFormData:b,autoRetryTimes:g=0,autoRetryDelayMs:v=800,selectionOnly:y=!1,className:w,emptyTitle:j="点击或拖拽文件到此处",emptyHint:N="支持上传文件",onFilesChange:k,onUploadSuccess:C,onUploadError:A,onValidationError:S}=e,R=a.useId(),T=a.useRef(null),U=a.useRef(new Map),z=a.useRef(new Map),M=a.useRef([]),[B,L]=a.useState(!1),[D,E]=a.useState([]),I=a.useMemo(()=>o?o.split(",").map(e=>e.trim().toLowerCase()).filter(Boolean):[],[o]);a.useEffect(()=>{M.current=D,null==k||k(D)},[D,k]),a.useEffect(()=>()=>{for(let e of U.current.values())e.abort();for(let e of z.current.values())e.abort();for(let e of M.current)e.previewUrl&&URL.revokeObjectURL(e.previewUrl)},[]);let O=a.useCallback((e,t)=>{E(a=>a.map(a=>a.id===e?{...a,...t}:a))},[]),P=a.useCallback(async(e,t)=>{let a=M.current.find(t=>t.id===e);if(!a||c)return;O(e,{status:t>0?"retrying":"uploading",progress:0,error:"",retryCount:t});let l=new FormData;if(b)for(let[e,t]of Object.entries(b))l.append(e,t);l.append(x,a.file);try{let t="";if("fetch"===f){let a=new AbortController;z.current.set(e,a);let s=await fetch(n,{method:p,headers:h,body:l,signal:a.signal}),r=await s.text();try{t=r?JSON.parse(r):""}catch(e){t=r}if(!s.ok)throw Error("上传失败:".concat(s.status," ").concat(s.statusText))}else t=await new Promise((t,a)=>{let s=new XMLHttpRequest;if(U.current.set(e,s),s.open(p,n,!0),h)for(let[e,t]of Object.entries(h))s.setRequestHeader(e,t);s.upload.onprogress=t=>{if(!t.lengthComputable)return;let a=Math.min(100,Math.round(t.loaded/t.total*100));O(e,{progress:a})},s.onerror=()=>a(Error("网络异常,上传失败")),s.onabort=()=>a(Error("__ABORTED__")),s.onload=()=>{s.status>=200&&s.status<300?t(function(e){let t=e.responseText||"";try{return JSON.parse(t)}catch(e){return t}}(s)):a(Error("上传失败:".concat(s.status," ").concat(s.statusText)))},s.send(l)});O(e,{status:"success",progress:100,error:""});let a=M.current.find(t=>t.id===e);a&&(null==C||C(a,t))}catch(s){let a=s instanceof Error?s.message:String(s);if("__ABORTED__"===a)return void O(e,{status:"selected",progress:0,error:""});if(t<g){O(e,{status:"retrying",error:"重试中(".concat(t+1,"/").concat(g,")")}),await new Promise(e=>window.setTimeout(e,v)),await P(e,t+1);return}O(e,{status:"error",error:a});let l=M.current.find(t=>t.id===e);l&&(null==A||A(l,a))}finally{U.current.delete(e),z.current.delete(e)}},[v,g,c,b,x,h,p,A,C,f,O,n]),_=a.useCallback(e=>{P(e,0)},[P]),F=a.useCallback(e=>{var t,a;null==(t=U.current.get(e))||t.abort(),null==(a=z.current.get(e))||a.abort()},[]),H=a.useCallback(()=>{for(let e of M.current)("selected"===e.status||"error"===e.status)&&_(e.id)},[_]),K=a.useCallback(e=>{if(c||!e.length)return;let t=new Set(M.current.map(e=>"".concat(e.file.name,"::").concat(e.file.size))),a=[];for(let l of e){let e="".concat(l.name,"::").concat(l.size);if(!t.has(e)){if(!function(e,t){if(!t.length)return!0;let a=e.name.toLowerCase(),l=(e.type||"").toLowerCase();return t.some(e=>e.startsWith(".")?a.endsWith(e):e.endsWith("/*")?l.startsWith("".concat(e.slice(0,-1))):l===e)}(l,I)){null==S||S("文件类型不支持:".concat(l.name));continue}if(l.size>u){null==S||S("文件过大(最大 ".concat(i(u),"):").concat(l.name));continue}t.add(e),a.push({id:"".concat(Date.now(),"-").concat(Math.random().toString(36).slice(2,8)),file:l,status:"selected",progress:0,error:"",retryCount:0,previewUrl:l.type.startsWith("image/")?URL.createObjectURL(l):""})}}if(!a.length)return;let l=d?[...M.current,...a]:[a[a.length-1]];if(!d)for(let e of M.current)e.previewUrl&&URL.revokeObjectURL(e.previewUrl);if(E(l),m&&!y)for(let e of a)_(e.id)},[I,m,c,u,d,S,y,_]),V=a.useCallback(e=>{let t=e.target.files;t&&(K(Array.from(t)),e.target.value="")},[K]),J=a.useCallback(e=>{var t;e.preventDefault(),e.stopPropagation(),L(!1),c||K(Array.from(null!=(t=e.dataTransfer.files)?t:[]))},[K,c]);return(0,t.jsxs)("div",{className:(0,s.cn)("flex min-h-0 w-full flex-col gap-3",w),children:[(0,t.jsx)("input",{ref:T,id:R,type:"file",hidden:!0,accept:o,multiple:d,disabled:c,onChange:V}),(0,t.jsxs)("label",{htmlFor:R,onDragOver:e=>{e.preventDefault(),c||L(!0)},onDragLeave:e=>{e.preventDefault(),L(!1)},onDrop:J,className:(0,s.cn)("flex min-h-[124px] cursor-pointer flex-col items-center justify-center gap-1 rounded-lg border border-dashed border-[var(--ds-border)] px-4 py-6 text-center transition-colors hover:border-[var(--ds-border-hover)] hover:bg-[var(--ds-main-tint)]",B&&"bg-[var(--ds-accent)]/5 border-[var(--ds-accent)]",c&&"cursor-not-allowed opacity-60"),children:[(0,t.jsx)(l.default,{name:"Upload",size:20,className:"text-[var(--ds-muted)]"}),(0,t.jsx)("div",{className:"text-[var(--ds-text)]",children:j}),(0,t.jsx)("div",{className:"text-[var(--ds-muted)]",children:N})]}),D.length?(0,t.jsx)("div",{className:"space-y-2",children:D.map(e=>(0,t.jsx)("div",{className:"rounded-md border border-[var(--ds-border)] p-2.5",children:(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"truncate text-[var(--ds-text)]",children:e.file.name}),(0,t.jsx)("div",{className:"text-[var(--ds-muted)]",children:i(e.file.size)}),e.previewUrl?(0,t.jsx)("img",{src:e.previewUrl,alt:e.file.name,className:"mt-2 h-14 w-14 rounded object-cover"}):null,"uploading"===e.status||"retrying"===e.status?(0,t.jsx)("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded bg-[var(--ds-main-tint)]",children:(0,t.jsx)("div",{className:"h-full bg-[var(--ds-accent)] transition-all",style:{width:"".concat(e.progress,"%")}})}):null,"error"===e.status?(0,t.jsx)("div",{className:"mt-1 text-[var(--ds-danger)]",children:e.error||"上传失败"}):null]}),y?null:(0,t.jsxs)("div",{className:"flex items-center gap-1",children:["success"===e.status?(0,t.jsx)(l.default,{name:"CheckCircle2",size:16,className:"text-[var(--ds-accent)]"}):null,"selected"===e.status||"error"===e.status?(0,t.jsxs)(r.Button,{type:"button",size:"sm",variant:"outline",disabled:c,onClick:()=>_(e.id),children:["error"===e.status?(0,t.jsx)(l.default,{name:"RefreshCw",size:14,className:"mr-1"}):null,"error"===e.status?"重试":"上传"]}):null,"uploading"===e.status||"retrying"===e.status?(0,t.jsxs)(r.Button,{type:"button",size:"sm",variant:"outline",onClick:()=>F(e.id),children:[(0,t.jsx)(l.default,{name:"XCircle",size:14,className:"mr-1"}),"取消"]}):null]})]})},e.id))}):null,!y&&!m&&D.some(e=>"selected"===e.status||"error"===e.status)?(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)(r.Button,{type:"button",size:"sm",onClick:H,disabled:c,children:"上传"})}):null]})}var o=e.i(76639),c=e.i(13354),d=e.i(29250);function u(e){let{open:l,onOpenChange:s,title:i,description:u,uploadUrl:m,resetKey:p}=e,[f,x]=(0,a.useState)(!1),[h,b]=(0,a.useState)(null),g=(0,a.useCallback)(()=>{s(!1),b(null)},[s]),v=(0,a.useCallback)(async()=>{if(!h)return void c.appToast.info("请先选择 zip 文件");let e=new FormData;e.append("file",h),x(!0);try{let t=await (0,d.bridgeFetch)(m,{method:"POST",body:e}),a=Number(t.imported||0),l=Number(t.overwritten||0),s=Array.isArray(t.rejected)?t.rejected.length:0;c.appToast.success("导入完成:导入 ".concat(a,",覆盖 ").concat(l)+(s>0?",拒绝 ".concat(s):"")),g()}catch(e){c.appToast.error("导入失败:".concat(e instanceof Error?e.message:String(e)))}finally{x(!1)}},[g,h,m]);return(0,t.jsx)(o.Dialog,{open:l,onOpenChange:e=>{s(e),e||b(null)},children:(0,t.jsxs)(o.DialogContent,{className:"flex min-h-[320px] max-w-[560px] flex-col",children:[(0,t.jsxs)(o.DialogHeader,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(o.DialogTitle,{children:i}),(0,t.jsx)(o.DialogDescription,{children:u})]}),(0,t.jsx)(o.DialogClose,{className:"sidebar-icon-btn","aria-label":"关闭",onClick:g,children:"✕"})]}),(0,t.jsxs)("div",{className:"m-3 flex flex-1 flex-col gap-3",children:[(0,t.jsx)(n,{uploadUrl:m,accept:".zip,application/zip",maxFileSize:0x3200000,multiple:!1,disabled:f,selectionOnly:!0,emptyTitle:"点击或拖拽 zip 文件到此处",emptyHint:"支持 .zip 格式,最大 50MB",onFilesChange:e=>{var t,a;b(null!=(a=null==(t=e[0])?void 0:t.file)?a:null)},onValidationError:e=>{c.appToast.info(e)}},"".concat(l?"open":"closed","-").concat(null!=p?p:m)),(0,t.jsxs)("div",{className:"mt-auto flex justify-end pt-2",children:[(0,t.jsx)(r.Button,{className:"mr-[12px]",type:"button",variant:"plain-outline",size:"lg",onClick:g,children:"取消"}),(0,t.jsx)(r.Button,{type:"button",size:"lg",variant:"default",disabled:f||null==h,onClick:()=>void v(),children:f?"导入中…":"确定"})]})]})]})})}},55242,e=>{"use strict";e.s(["AppDialog",()=>r]);var t=e.i(18050),a=e.i(71645),l=e.i(76639),s=e.i(75157);function r(e){let{open:r,onOpenChange:i,title:n,children:o,footer:c,width:d="max-w-3xl",minHeight:u}=e,m=(0,a.useId)();return(0,t.jsx)(l.Dialog,{open:r,onOpenChange:i,children:(0,t.jsxs)(l.DialogContent,{"aria-labelledby":m,className:(0,s.cn)(d,u?"!min-h-[--min-h]":""),style:u?{"--min-h":u}:void 0,children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{id:m,children:n}),(0,t.jsx)(l.DialogClose,{"aria-label":"关闭"})]}),(0,t.jsx)(l.DialogBody,{className:"!px-4 !py-3",children:o}),c?(0,t.jsx)("div",{className:"flex flex-shrink-0 justify-end gap-2 border-t border-[var(--ds-border)] bg-[var(--ds-sidebar)] px-4 py-3",children:c}):null]})})}},39721,e=>{"use strict";e.s(["SkillsManageView",()=>z],39721);var t=e.i(18050),a=e.i(71645),l=e.i(65934),s=e.i(87243),r=e.i(13354),i=e.i(50711),n=e.i(51419),o=e.i(92715),c=e.i(19455),d=e.i(94055),u=e.i(94197),m=e.i(72064),p=e.i(93479),f=e.i(75157);function x(e){let{className:a,...l}=e;return(0,t.jsx)("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:(0,f.cn)("flex w-full justify-end",a),...l})}let h=a.forwardRef((e,a)=>{let{className:l,...s}=e;return(0,t.jsx)("ul",{ref:a,"data-slot":"pagination-content",className:(0,f.cn)("flex flex-row flex-wrap items-center justify-end gap-1",l),...s})});h.displayName="PaginationContent";let b=a.forwardRef((e,a)=>{let{className:l,...s}=e;return(0,t.jsx)("li",{ref:a,"data-slot":"pagination-item",className:(0,f.cn)("",l),...s})});b.displayName="PaginationItem",a.forwardRef((e,a)=>{let{className:l,isActive:s,size:r="icon",...i}=e;return(0,t.jsx)("a",{ref:a,"aria-current":s?"page":void 0,"data-slot":"pagination-link","data-active":s?"true":void 0,className:(0,f.cn)((0,c.buttonVariants)({variant:s?"outline":"ghost",size:r}),l),...i})}).displayName="PaginationLink";var g=e.i(62427),v=e.i(2839);function y(e){let{active:l,wsUrl:s,apiBase:i,agent:n,onAfterInstall:d,className:u}=e,[f,y]=(0,a.useState)(""),[w,j]=(0,a.useState)(1),[N,k]=(0,a.useState)(0),[C,A]=(0,a.useState)([]),[S,R]=(0,a.useState)(!1),[T,U]=(0,a.useState)(""),[z,M]=(0,a.useState)({}),B=(0,a.useRef)(0),L=(0,a.useCallback)(async()=>{let e=++B.current;R(!0),U("");try{let t=await (0,g.listCloudSkillCatalog)(s,i,n,f,w,10);if(e!==B.current)return;let a=Array.isArray(t.items)?t.items:[],l=[];for(let e of a)e&&"object"==typeof e&&e.id&&l.push({id:String(e.id),title:String(e.title||""),skillName:String(e.skillName||""),description:"string"==typeof e.description?e.description:"",installed:!!e.installed});A(l),k(t.totalPages)}catch(t){if(e!==B.current)return;A([]),k(0),U(t instanceof Error?t.message:String(t))}finally{e===B.current&&R(!1)}},[s,i,n,f,w]);(0,a.useEffect)(()=>{if(!l){y(""),j(1),k(0),A([]),U(""),M({}),B.current+=1;return}L()},[l,L]);let D=(0,a.useMemo)(()=>{if(S)return"加载中…";if(T)return"加载失败:".concat(T);let e=C.reduce((e,t)=>e+ +!!t.installed,0);return"已安装 ".concat(e," 项")},[S,T,C]),E=(0,a.useCallback)(async(e,t)=>{M(t=>({...t,[e]:!0}));try{await (0,g.installCloudSkill)(s,i,n,e),r.appToast.success("云端技能已安装:".concat(t)),await L(),null==d||d()}catch(e){r.appToast.error("安装失败:".concat(e instanceof Error?e.message:String(e)))}finally{M(t=>{let a={...t};return delete a[e],a})}},[s,i,n,L,d]);if((0,a.useCallback)(e=>{j(1),y(e)},[]),!l)return null;let I=N>0?"第 ".concat(w,"/").concat(N," 页"):"第 0/0 页",O=S||w<=1,P=S||N<=0||w>=N,_=[{key:"name",title:"名称",headerClassName:"",cellClassName:" text-[var(--ds-text)]",render:e=>e.skillName?"".concat(e.skillName):e.id},{key:"description",title:"详情",headerClassName:"",cellClassName:" text-[var(--ds-text)]",render:e=>(0,t.jsxs)(t.Fragment,{children:[e.title,e.description?" — ".concat(e.description):""]})},{key:"status",title:"状态",headerClassName:"",cellClassName:"whitespace-nowrap text-[var(--ds-text)]",render:e=>e.installed?"已安装":"未安装"},{key:"actions",title:"操作",headerClassName:"w-[96px] text-right ",cellClassName:"w-[116px] text-right",render:e=>{let a=!!z[e.id],l=!!e.installed;return!a&&l?"-":(0,t.jsx)(c.Button,{type:"button",size:"sm",variant:"outline",disabled:a||l,onClick:()=>void E(e.id,e.title||e.skillName||e.id),children:a?"安装中…":l?"已安装":"安装"})}}];return(0,t.jsx)("div",{className:u,children:(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"relative max-w-md",children:[(0,t.jsx)(p.Input,{type:"search",value:f,onChange:e=>y(e.target.value),placeholder:"搜索名称 / 详情",className:"h-8 pl-8","aria-label":"搜索已安装 Skill"}),(0,t.jsx)(m.default,{name:"Search",size:16,className:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-[var(--ds-muted)]","aria-hidden":!0})]}),(0,t.jsx)("div",{className:"text-[var(--ds-muted)]",children:D}),(0,t.jsx)(o.AppTable,{rows:C,columns:_,getRowKey:e=>e.id,className:"min-h-0 flex-1 rounded-md",bodyProps:{viewportPaginationReserve:64},emptyNode:S?(0,t.jsx)(v.Loading,{text:"加载中…",className:"min-h-[200px]"}):void 0}),(0,t.jsx)(x,{className:"mx-0 w-full",children:(0,t.jsxs)(h,{className:"w-full flex-wrap justify-end gap-2",children:[(0,t.jsx)(b,{children:(0,t.jsxs)(c.Button,{type:"button",variant:"outline",size:"sm",disabled:O,className:"gap-1",onClick:()=>j(e=>Math.max(1,e-1)),"aria-label":"上一页",children:[(0,t.jsx)(m.default,{name:"ChevronLeft",size:16,className:"shrink-0"}),"上一页"]})}),(0,t.jsx)(b,{children:(0,t.jsx)("span",{className:"flex h-9 min-w-[6.5rem] items-center justify-center text-[var(--ds-muted)]",children:I})}),(0,t.jsx)(b,{children:(0,t.jsxs)(c.Button,{type:"button",variant:"outline",size:"sm",disabled:P,className:"gap-1",onClick:()=>j(e=>e+1),"aria-label":"下一页",children:["下一页",(0,t.jsx)(m.default,{name:"ChevronRight",size:16,className:"shrink-0",strokeWidth:1})]})})]})})]})})}var w=e.i(36845),j=e.i(53925);function N(e){let{open:a,onOpenChange:l,wsUrl:s,apiBase:r,agent:i}=e;return(0,t.jsx)(j.ResourceImportDialog,{open:a,onOpenChange:l,title:"导入 Skill zip",description:"选择一个 zip 文件并导入到 skills-runtime。",uploadUrl:(0,w.buildSkillsRuntimeImportUrl)(s,r,i),resetKey:i})}var k=e.i(55242);function C(e){let{open:l,onOpenChange:s,skillName:i,wsUrl:n,apiBase:o,agent:d,onSaved:u}=e,[m,p]=(0,a.useState)(""),[f,x]=(0,a.useState)(!1),[h,b]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(!l||!i.trim())return;let e=!1;return x(!0),p(""),(0,g.loadBaseSkillMd)(n,o,d,i).then(t=>{e||p("string"==typeof t.content?t.content:"")}).catch(t=>{e||(r.appToast.error("加载 SKILL.md 失败:".concat(t instanceof Error?t.message:String(t))),s(!1))}).finally(()=>{e||x(!1)}),()=>{e=!0}},[l,i,n,o,d,s]);let v=(0,a.useCallback)(async()=>{if(i.trim()){b(!0);try{await (0,g.saveBaseSkillMd)(n,o,d,i,m),r.appToast.success("SKILL.md 已保存"),s(!1),null==u||u()}catch(e){r.appToast.error("保存失败:".concat(e instanceof Error?e.message:String(e)))}finally{b(!1)}}},[i,n,o,d,m,s,u]);return(0,t.jsx)(k.AppDialog,{open:l,onOpenChange:s,title:"编辑 SKILL.md · /".concat(i),width:"max-w-4xl",minHeight:"420px",footer:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Button,{type:"button",variant:"plain-outline",size:"lg",disabled:f||h,onClick:()=>s(!1),children:"取消"}),(0,t.jsx)(c.Button,{type:"button",size:"lg",disabled:f||h,onClick:()=>void v(),children:"保存"})]}),children:f?(0,t.jsx)("p",{className:"py-6 text-center text-[var(--ds-muted)]",children:"加载中…"}):(0,t.jsx)("textarea",{className:"focus-visible:ring-[var(--ds-accent)]/30 min-h-[320px] w-full resize-y rounded-md border border-[var(--ds-border)] bg-[var(--ds-bg)] p-3 leading-6 text-[var(--ds-text)] outline-none focus-visible:ring-2",spellCheck:!1,value:m,placeholder:"Markdown 源码…",onChange:e=>p(e.target.value)})})}function A(e){let{items:l,saveBusy:s,onToggleEnabled:r,onExport:i,onRemove:n,className:c}=e,[f,x]=(0,a.useState)(""),h=(0,a.useMemo)(()=>l.filter(e=>(function(e,t){var a;let l=t.trim().toLowerCase();return!l||"".concat(e.name," ").concat(null!=(a=e.description)?a:"").toLowerCase().includes(l)})(e,f)),[l,f]),b=[{key:"name",title:"名称",headerClassName:"",cellClassName:"",render:e=>"/".concat(e.name)},{key:"description",title:"详情",headerClassName:"",cellClassName:"",render:e=>e.description||"-"},{key:"status",title:"状态",headerClassName:"w-[160px] ",cellClassName:"w-[160px] text-[var(--ds-text)]",render:()=>"已安装"},{key:"enabled",title:"启用/未启用",headerClassName:"w-[160px] text-right ",cellClassName:"w-[160px] py-2 text-right align-middle",render:e=>(0,t.jsx)("span",{className:"inline-flex items-center justify-end gap-2",children:(0,t.jsx)(d.AccentSwitch,{checked:e.enabled,disabled:s,onCheckedChange:t=>r(e.name,t),"aria-label":"".concat(e.enabled?"禁用":"启用"," ").concat(e.name)})})},{key:"actions",title:"操作",headerClassName:"w-[128px] ",cellClassName:"w-[128px]",render:e=>(0,t.jsxs)("div",{className:"inline-flex items-center justify-end gap-1",children:[(0,t.jsx)(u.IconTooltipButton,{icon:"Download",label:"导出",ariaLabel:"导出 ".concat(e.name),disabled:s,onClick:()=>i(e.name)}),(0,t.jsx)(u.IconTooltipButton,{icon:"Trash2",label:"删除",tone:"danger",ariaLabel:"删除 ".concat(e.name),disabled:s,onClick:()=>{n(e.name)}})]})}],g=f.trim();return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"relative max-w-md",children:[(0,t.jsx)(p.Input,{type:"search",value:f,onChange:e=>x(e.target.value),placeholder:"搜索名称 / 详情",className:"h-8 pl-8","aria-label":"搜索已安装 Skill"}),(0,t.jsx)(m.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)(o.AppTable,{rows:h,columns:b,getRowKey:e=>"skills:".concat(e.name),className:c,emptyText:g?"无匹配的 Skill":void 0})]})}var S=e.i(68499),R=e.i(56708);function T(e,t){var a,l,s;let r=(s=null!=(l=null!=(a=e.description)?a:e.whenToUse)?l:"")?s.length>100?s.slice(0,100):s:"";return{...e,id:e.name,label:"/".concat(e.name),description:r,isRuntime:t,canManage:e.canManage}}let U=[{value:"installed",label:"已安装Skill"},{value:"cloud_catalog",label:"Skill商店"}];function z(){let e=(0,l.useAppStore)(e=>e.wsUrl),p=(0,l.useAppStore)(e=>e.apiBase),f=(0,l.useAppStore)(e=>e.agentConfig),x=(0,l.useAppStore)(e=>e.patchAgentConfig),{currentAgent:h,loadAgentConfig:b}=(0,s.useSession)(),w=(0,i.usePersistAgentConfigField)("skills"),j=f.skills,k=(0,a.useMemo)(()=>[...j].sort().join("\0"),[j]),[z,M]=(0,a.useState)([]),[B,L]=(0,a.useState)([]),[D,E]=(0,a.useState)([]),[I,O]=(0,a.useState)(!1),[P,_]=(0,a.useState)(!1),[F,H]=(0,a.useState)(!1),[K,V]=(0,a.useState)("basic"),[J,W]=(0,a.useState)(!1),[G,X]=(0,a.useState)(""),[Y,q]=(0,a.useState)(!1);(0,a.useEffect)(()=>{b()},[b]);let Q=(0,a.useCallback)(async(e,t)=>{H(!0);try{await w(e,{silent:t})}finally{H(!1)}},[w]),Z=(0,a.useCallback)(async()=>{M([]),O(!0);try{var t;let a=await (0,g.listBaseSkills)(e,p,h());M((null!=(t=a.skills)?t:[]).map(e=>T(e,!1)))}catch(e){M([]),r.appToast.error("加载失败:".concat(e instanceof Error?e.message:String(e)))}finally{O(!1)}},[e,p,h]),$=(0,a.useCallback)(async()=>{L([]),_(!0);try{var t;let a=await (0,g.listInstalledSkills)(e,p,h());L((null!=(t=a.skills)?t:[]).map(e=>T(e,!0)))}catch(e){L([]),r.appToast.error("加载失败:".concat(e instanceof Error?e.message:String(e)))}finally{_(!1)}},[e,p,h]),ee=(0,a.useCallback)(async()=>{await Promise.all([Z(),$()])},[Z,$]),et=(0,a.useCallback)(async t=>{if(await (0,S.confirmAlertDialog)({title:"确认删除 Skill 包?",description:"Skill:".concat(t),confirmText:"删除",cancelText:"取消"}))try{await (0,g.deleteRuntimeSkill)(e,p,h(),t);let a=j.filter(e=>e!==t);E(e=>e.filter(e=>e!==t)),x({skills:a}),await Q(a,!0),await ee()}catch(e){r.appToast.error("删除失败:".concat(e instanceof Error?e.message:String(e)))}},[e,p,h,j,x,Q,ee]);(0,a.useEffect)(()=>{"basic"===K&&Z(),"installed"===K&&$()},[K,Z,$]);let ea=(0,a.useCallback)(()=>{ee()},[ee]);(0,a.useEffect)(()=>{"basic"===K&&E([...j])},[K,j,k]);let el=(0,a.useCallback)(e=>{let t=[...new Set(e)].sort();x({skills:t}),Q(t,!0)},[x,Q]),es=(0,a.useMemo)(()=>B.slice().sort((e,t)=>e.label.localeCompare(t.label)).map(e=>({name:e.id,installed:!0,description:e.description||"",enabled:j.includes(e.id)})),[B,j]),er=(0,a.useCallback)((e,t)=>{let a=t?[...new Set([...j,e])].sort():j.filter(t=>t!==e);x({skills:a}),E(a),Q(a,!0)},[j,x,Q]),ei=(0,a.useCallback)(t=>{window.open((0,g.exportRuntimeSkillUrl)(e,p,h(),t),"_blank","noopener")},[e,p,h]),en=(0,a.useCallback)(e=>{X(e.id),q(!0)},[]),eo=[{key:"name",title:"名称",headerClassName:" text-[var(--ds-muted)]",cellClassName:" text-[var(--ds-text)]",render:e=>e.label},{key:"description",title:"详情",headerClassName:" text-[var(--ds-muted)]",cellClassName:" text-[var(--ds-text)]",render:e=>e.description||"-"},{key:"enabled",title:"启用/未启用",headerClassName:"w-[102px] text-right text-[var(--ds-muted)]",cellClassName:"w-[102px] py-2 text-right align-middle",render:e=>(0,t.jsx)("span",{className:"inline-flex justify-end",children:(0,t.jsx)(d.AccentSwitch,{checked:D.includes(e.id),disabled:F,onCheckedChange:t=>{let a=t?[...new Set([...D,e.id])]:D.filter(t=>t!==e.id);E(a),el(a)},"aria-label":"选择 ".concat(e.label)})})},{key:"actions",title:"操作",headerClassName:"w-[104px] text-right text-[var(--ds-muted)]",cellClassName:"w-[104px] py-2 text-right align-middle",render:e=>(0,t.jsxs)("span",{className:"inline-flex justify-end gap-1",children:[(0,t.jsx)(u.IconTooltipButton,{icon:"Edit",label:"编辑",disabled:F,ariaLabel:"编辑 ".concat(e.label),onClick:()=>en(e)}),(0,t.jsx)(u.IconTooltipButton,{icon:"Trash2",label:"系统技能不可删除",tone:"danger",disabled:!0,ariaLabel:"删除 ".concat(e.label)})]})}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(R.ManageChromeHeaderActions,{children:(0,t.jsxs)(c.Button,{id:"btnAgentImportSkill",type:"button",variant:"plain-outline",size:"lg",className:"inline-flex items-center justify-center gap-1.5",onClick:()=>W(!0),children:[(0,t.jsx)(m.default,{name:"Import",size:16,className:"align-middle"}),"导入Skill"]})}),(0,t.jsxs)(n.AppTabs,{tabs:U,value:K,listVariant:"line",onChange:e=>V(e),children:[(0,t.jsx)(n.AppTabsPanel,{value:"basic",children:(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col gap-3",children:(0,t.jsx)("div",{className:"min-h-0",children:I?(0,t.jsx)(v.Loading,{text:"加载中…",className:"min-h-[200px]"}):(0,t.jsx)(o.AppTable,{rows:z,columns:eo,getRowKey:e=>e.id})})})}),(0,t.jsx)(n.AppTabsPanel,{value:"installed",children:P?(0,t.jsx)(v.Loading,{text:"加载中…",className:"min-h-[200px]"}):(0,t.jsx)(A,{items:es,saveBusy:F,onToggleEnabled:er,onExport:ei,onRemove:et})}),(0,t.jsx)(n.AppTabsPanel,{value:"cloud_catalog",className:"flex min-h-0 flex-1 flex-col",children:(0,t.jsx)(y,{active:"cloud_catalog"===K,wsUrl:e,apiBase:p,agent:h(),onAfterInstall:ea,className:"min-h-0 flex-1"})})]}),(0,t.jsx)(N,{open:J,onOpenChange:e=>{W(e),e||ee()},wsUrl:e,apiBase:p,agent:h()}),(0,t.jsx)(C,{open:Y,onOpenChange:q,skillName:G,wsUrl:e,apiBase:p,agent:h(),onSaved:()=>void ee()})]})}}]);
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93479,e=>{"use strict";e.s(["Input",()=>n]);var t=e.i(18050),r=e.i(75157);function n(e){let{className:n,type:o="text",size:i="default",...a}=e;return(0,t.jsx)("input",{type:o,"data-slot":"input","data-size":i,className:(0,r.cn)("h-9 w-full appearance-none rounded-md border border-solid border-border bg-transparent px-3 outline-none transition-[color,box-shadow,border-color] duration-150 ease-in-out placeholder:text-muted-foreground hover:border-[var(--border-hover)] focus-visible:border-[var(--border-focus)] focus-visible:[box-shadow:var(--ring-focus-sm)] read-only:focus-visible:border-border read-only:focus-visible:[box-shadow:none] disabled:cursor-not-allowed disabled:opacity-50 disabled:focus-visible:border-border disabled:focus-visible:[box-shadow:none] data-[size=default]:h-9 data-[size=lg]:h-10 data-[size=sm]:h-7",n),...a})}},20783,e=>{"use strict";e.s(["composeRefs",()=>n,"useComposedRefs",()=>o]);var t=e.i(71645);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1,o=t.map(t=>{let o=r(t,e);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let e=0;e<o.length;e++){let n=o[e];"function"==typeof n?n():r(t[e],null)}}}}function o(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.useCallback(n(...r),r)}},24687,e=>{"use strict";e.s(["Textarea",()=>n]);var t=e.i(18050),r=e.i(75157);function n(e){let{className:n,...o}=e;return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,r.cn)("flex min-h-20 w-full rounded-md border border-solid border-border bg-transparent px-3 py-2 outline-none transition-[color,box-shadow,border-color] duration-150 ease-in-out placeholder:text-muted-foreground hover:border-[var(--border-hover)] focus-visible:border-[var(--border-focus)] focus-visible:[box-shadow:var(--ring-focus-sm)] read-only:focus-visible:border-border read-only:focus-visible:[box-shadow:none] disabled:cursor-not-allowed disabled:opacity-50 disabled:focus-visible:border-border disabled:focus-visible:[box-shadow:none]",n),...o})}},51239,e=>{e.v("/app/_next/static/media/data-loading.be8d921a.png")},2839,e=>{"use strict";e.s(["Loading",()=>a],2839);var t=e.i(18050),r=e.i(57688);let n={src:e.i(51239).default,width:951,height:482,blurWidth:8,blurHeight:4,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAj0lEQVR42gGEAHv/AAAAAAANERAObXJwYaGko5N/gYBwDg8PCgAAAAAAAAAAAAMEBAJic2xp2+3m7fL8+P7l6ujjUlhWTAYGBgUAAAAAADM3NTG6x8LB7fr1/vD89/7f9+3+wNXNzycpKB4AAAAAAJ+qpozL2dO/0NvWx9Td2c6gzrzRpcq8u2FpZk8CAgIBCRI7kCfNfAcAAAAASUVORK5CYII="};var o=e.i(87968),i=e.i(75157);function a(e){let{text:a="加载中",className:u,showImage:s=!0,imageSrc:l=n,imageAlt:c="加载中",imageSize:f=180,imageClassName:d}=e,p="string"==typeof l?{width:f,height:f}:{width:l.width,height:l.height};return(0,t.jsxs)("div",{className:(0,i.cn)("flex min-h-[180px] w-full flex-col items-center justify-center gap-2 py-4 text-[var(--ds-muted)]",u),role:"status","aria-live":"polite",children:[s?(0,t.jsx)("span",{className:(0,i.cn)("block shrink-0",d),style:{width:f},children:(0,t.jsx)(r.default,{src:l,alt:c,width:p.width,height:p.height,unoptimized:!0,draggable:!1,sizes:"".concat(f,"px"),className:"h-auto w-full object-contain"})}):null,(0,t.jsxs)("span",{className:"flex items-center",children:[(0,t.jsx)(o.Spinner,{className:"mr-2"}),a]})]})}},98183,(e,t,r)=>{"use strict";function n(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(let t of r){for(let r of t.keys())e.delete(r);for(let[r,n]of t.entries())e.append(r,n)}return e}Object.defineProperty(r,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{assign:function(){return a},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return i}})},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return a}});let n=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,i=e.protocol||"",a=e.pathname||"",u=e.hash||"",s=e.query||"",l=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?l=t+e.host:r&&(l=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(l+=":"+e.port)),s&&"object"==typeof s&&(s=String(n.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==l?(l="//"+(l||""),a&&"/"!==a[0]&&(a="/"+a)):l||(l=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+i+l+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{DecodeError:function(){return b},MiddlewareNotFoundError:function(){return m},MissingStaticPage:function(){return y},NormalizeError:function(){return g},PageNotFoundError:function(){return A},SP:function(){return p},ST:function(){return h},WEB_VITALS:function(){return n},execOnce:function(){return o},getDisplayName:function(){return l},getLocationOrigin:function(){return u},getURL:function(){return s},isAbsoluteUrl:function(){return a},isResSent:function(){return c},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return v}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return r||(r=!0,t=e(...o)),t}}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,a=e=>i.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=u();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&c(r))return n;if(!n)throw Object.defineProperty(Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.'),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let p="undefined"!=typeof performance,h=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class g extends Error{}class A extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class m extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return i}});let n=e.r(18967),o=e.r(52817);function i(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(r,{default:function(){return g},useLinkStatus:function(){return y}});let n=e.r(90809),o=e.r(18050),i=n._(e.r(71645)),a=e.r(95057),u=e.r(8372),s=e.r(18581),l=e.r(18967),c=e.r(84395);e.r(33525);let f=e.r(91949),d=e.r(73668),p=e.r(99781);e.r(84508);let h=e.r(65165);function b(e){return"string"==typeof e?e:(0,a.formatUrl)(e)}function g(e){var t;let r,n,a,[g,y]=(0,i.useOptimistic)(f.IDLE_LINK_STATUS),m=(0,i.useRef)(null),{href:v,as:x,children:P,prefetch:w=null,passHref:j,replace:E,shallow:N,scroll:O,onClick:C,onMouseEnter:T,onTouchStart:S,legacyBehavior:_=!1,onNavigate:R,ref:U,unstable_dynamicOnHover:L,...I}=e;r=P,_&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let k=i.default.useContext(u.AppRouterContext),M=!1!==w,z=!1!==w?null===(t=w)||"auto"===t?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,{href:B,as:D}=i.default.useMemo(()=>{let e=b(v);return{href:e,as:x?b(x):e}},[v,x]);_&&(n=i.default.Children.only(r));let F=_?n&&"object"==typeof n&&n.ref:U,K=i.default.useCallback(e=>(null!==k&&(m.current=(0,f.mountLinkInstance)(e,B,k,z,M,y)),()=>{m.current&&((0,f.unmountLinkForCurrentNavigation)(m.current),m.current=null),(0,f.unmountPrefetchableInstance)(e)}),[M,B,k,z,y]),G={ref:(0,s.useMergedRef)(K,F),onClick(e){_||"function"!=typeof C||C(e),_&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),k&&(e.defaultPrevented||function(e,t,r,n,o,a,u){let{nodeName:s}=e.currentTarget;if(!("A"===s.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,d.isLocalURL)(t)){o&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}i.default.startTransition(()=>{(0,p.dispatchNavigateAction)(r||t,o?"replace":"push",null==a||a,n.current)})}}(e,B,D,m,E,O,R))},onMouseEnter(e){_||"function"!=typeof T||T(e),_&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),k&&M&&(0,f.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){_||"function"!=typeof S||S(e),_&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),k&&M&&(0,f.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,l.isAbsoluteUrl)(D)?G.href=D:_&&!j&&("a"!==n.type||"href"in n.props)||(G.href=(0,c.addBasePath)(D)),a=_?i.default.cloneElement(n,G):(0,o.jsx)("a",{...I,...G,children:r}),(0,o.jsx)(A.Provider,{value:g,children:a})}let A=(0,i.createContext)(f.IDLE_LINK_STATUS),y=()=>(0,i.useContext)(A);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)}]);