Subtract dead agent husks and unify the gateway executor path.

Remove SpecialistAgentRunner, plan_agent_v2 re-export shims, empty runtime husks, and disconnected Admin knobs. Fold ops into build_gateway_executor, align AIA_ENABLE_PLUGIN_TOOLS with catalog, and allow ops on the default MCP specialist list.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-11 01:02:29 +08:00
parent e2fc72607e
commit 628a9dffd2
32 changed files with 127 additions and 870 deletions

View file

@ -1,9 +1,15 @@
from __future__ import annotations
"""Ops specialist helpers.
Prefer ``build_gateway_executor(specialist=\"ops\")``. This module keeps the
legacy ``NetworkOpsAgent`` name as a thin ``Agent`` factory for older imports.
"""
from typing import Any
from runtime.chat.agent import Agent
from runtime.agent_context import build_role_system_context
from runtime.chat.agent import Agent
from svc.persistence.sqlite_store import SqliteStore
from runtime.tools import default_registry
@ -12,7 +18,10 @@ NETWORK_SYSTEM_PROMPT_ZH = build_role_system_context("ops")
class NetworkOpsAgent(Agent):
"""网络运维专家 Agent:固定专家提示词与专家工具目录。"""
"""Compatibility alias: ops specialist with network_ops(+memory) tool catalog.
New code should use ``runtime.agents.factory.build_gateway_executor(specialist=\"ops\")``.
"""
def __init__(
self,
@ -27,7 +36,8 @@ class NetworkOpsAgent(Agent):
path_policy_user_id: str | None = None,
) -> None:
tools = default_registry(
expert="network_ops",
expert="network_ops+memory",
specialist="ops",
policy_session_id=policy_session_id,
path_policy_tenant_id=path_policy_tenant_id,
path_policy_user_id=path_policy_user_id,