mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-06 21:11:50 +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
@@ -20,7 +20,7 @@ type GatewaySSRFPolicy struct {
|
||||
type GatewayContainerRoute struct {
|
||||
Scope string `json:"scope"`
|
||||
OwnerID string `json:"owner_id"`
|
||||
Mode string `json:"mode"` // inherit, direct, proxy
|
||||
Mode string `json:"mode"` // inherit, direct, pool, proxy
|
||||
ProxyPoolID string `json:"proxy_pool_id,omitempty"`
|
||||
ProxyURL string `json:"proxy_url,omitempty"`
|
||||
EffectiveURL string `json:"effective_url,omitempty"` // resolved raw URL (only in internal gateway sync)
|
||||
@@ -145,7 +145,7 @@ func (s *RemotePolicyState) Apply(snap GatewayPolicySnapshot) {
|
||||
switch strings.ToLower(strings.TrimSpace(r.Mode)) {
|
||||
case "direct":
|
||||
routes[key] = nil
|
||||
case "proxy":
|
||||
case "proxy", "pool":
|
||||
raw := strings.TrimSpace(r.EffectiveURL)
|
||||
if raw == "" {
|
||||
raw = strings.TrimSpace(r.ProxyURL)
|
||||
|
||||
Reference in new issue
Block a user