feat(proxy,chat): add per-task/schedule/chat proxy pool routing and @task mentions

- Support pool auto-rotation mode alongside inherit/direct/node/custom proxy routes across gateway and MITM proxy
- Add GET /api/proxy/routes/{scope}/{owner_id}, task create/DTO proxy_route, and schedule proxy persistence + propagation
- Add list_proxy_pool and set_task_proxy chat agent tools and @task mention search/context injection
- Wire shared proxy/pool selectors into tasks, schedules, chat sandbox popover, and container routes UI
This commit is contained in:
ji ruo committed 2026-12-03 00:10:50 +08:00
1 parent b18cf89b77
commit 778e49317d
28 files changed
+1683 -124

No files matched your search

+1
View File
@@ -117,6 +117,7 @@ export const messages = {
"auth.reenterPassword": ["再次输入密码", "Enter your password again"],
"auth.saving": ["保存中...", "Saving…"],
"auth.setupAndLogin": ["设置密码并登录", "Set password and sign in"],
"mention.task": ["任务", "Task"],
"mention.finding": ["漏洞", "Finding"],
"mention.asset": ["资产", "Asset"],
"mention.company": ["企业", "Company"],
+9
View File
@@ -202,4 +202,13 @@ export const scheduleMessages = {
"演示模式不会执行计划任务,请在实际部署中运行",
"Demo mode does not execute schedules. Run this schedule in a deployed instance.",
],
"schedule.proxy": ["出口代理 / 代理池", "Egress Proxy / Proxy Pool"],
"schedule.proxyInherit": [
"保持任务自身 / 全局代理设置(不覆盖)",
"Keep task / global proxy (do not override)",
],
"schedule.proxyHelp": [
"设为直连、代理池或指定代理后,保存与计划触发时会自动应用到所有关联任务的容器。",
"When set to direct, proxy pool, or specific proxy, bound tasks automatically apply this route on save and when the schedule runs.",
],
} as const;
+9
View File
@@ -934,4 +934,13 @@ export const taskMessages = {
"taskUI.phase.delete_metadata": ["删除归档元数据", "Deleting archive metadata"],
"taskUI.phase.ready": ["可还原", "Ready to restore"],
"taskUI.phase.failed": ["失败", "Failed"],
"taskUI.proxy": ["出口代理 / 代理池", "Egress Proxy / Proxy Pool"],
"taskUI.proxyHelp": [
"为本任务沙箱容器单独设置出口代理(继承全局、强制直连、代理池自动轮换、指定节点或自定义 URL)。",
"Override the sandbox container egress proxy for this task (direct, auto-rotating proxy pool, specific pool node, or custom URL).",
],
"taskUI.proxyRequired": [
"请选择代理池节点或输入自定义代理 URL",
"Select a proxy pool node or enter a custom proxy URL",
],
} as const;