mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-07 05:11:51 +08:00
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:
1 parent
b18cf89b77
commit
778e49317d
28 files changed
+1683
-124
No files matched your search
@@ -78,6 +78,7 @@ type TaskDTO struct {
|
||||
NoResultMinFindings int `json:"no_result_min_findings"`
|
||||
NoResultMinSeverity string `json:"no_result_min_severity"`
|
||||
StopReason string `json:"stop_reason"`
|
||||
ProxyRoute *TaskProxyRouteDTO `json:"proxy_route,omitempty"`
|
||||
}
|
||||
|
||||
type ProxyReconnectDTO struct {
|
||||
@@ -96,6 +97,14 @@ type FindingSeverityDTO struct {
|
||||
Low int `json:"low"`
|
||||
}
|
||||
|
||||
// TaskProxyRouteDTO summarizes a task container's effective proxy route override.
|
||||
type TaskProxyRouteDTO struct {
|
||||
Mode string `json:"mode"`
|
||||
ProxyPoolID string `json:"proxy_pool_id,omitempty"`
|
||||
ProxyURL string `json:"proxy_url,omitempty"`
|
||||
EffectiveProxy string `json:"effective_proxy"`
|
||||
}
|
||||
|
||||
func applyTaskArchiveBlocker(dto *TaskDTO, blockers map[int64]int64) {
|
||||
if dto == nil || len(blockers) == 0 {
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user