feat(agent-call): implement remediation plan

This commit is contained in:
2026-09-13 19:20:28 +08:00
parent d30314c7d1
commit b95d2aee81
25 changed files with 3159 additions and 535 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ if str(PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(PROJECT_ROOT))
_core = importlib.import_module("agent_call.core")
ValidationError = _core.ValidationError
queue_name = _core.queue_name
routing_key = _core.routing_key
@@ -30,7 +31,7 @@ def check(profile_path: str | Path) -> list[str]:
try:
route = routing_key(tenant["tenant_key"])
queue_name(tenant["tenant_key"])
except Exception as exc:
except (KeyError, TypeError, ValidationError) as exc:
problems.append(f"tenant route invalid: {type(exc).__name__}")
continue
if len(route.encode("utf-8")) > 255: