From 8277a00118a907a0a0aada684037eca5ec8242de Mon Sep 17 00:00:00 2001 From: Hans Heinemann Date: Mon, 16 Mar 2026 01:14:08 -0400 Subject: [PATCH] =?UTF-8?q?perf(team=5Frunner):=20T4=20capability=20fast-c?= =?UTF-8?q?heap=20=E2=80=94=20implementers=20produce=20structured=20JSON,?= =?UTF-8?q?=20don't=20need=20capable=20tier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/team_runner.py | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/core/team_runner.py b/core/team_runner.py index 78e3fec..7d59914 100644 --- a/core/team_runner.py +++ b/core/team_runner.py @@ -58,7 +58,7 @@ _TIER_CAPABILITIES: dict[int, str] = { 1: "reasoning-heavy", 2: "reasoning-heavy", 3: "capable", - 4: "capable", + 4: "fast-cheap", 5: "fast-cheap", } @@ -71,18 +71,16 @@ _TIER_CAPABILITIES: dict[int, str] = { # enabling third-party adapters without touching this file. # --------------------------------------------------------------------------- -_LLM_ADAPTERS: dict[str, str] = { - "anthropic": "adapters.llm.anthropic:AnthropicAdapter", -} -_VCS_ADAPTERS: dict[str, str] = { - "github": "adapters.vcs.github:GitHubAdapter", -} -_NOTIFY_ADAPTERS: dict[str, str] = { - "openclaw": "adapters.notify.openclaw:OpenClawNotifyAdapter", -} -_RUNTIME_ADAPTERS: dict[str, str] = { - "openclaw": "adapters.runtime.openclaw:OpenClawRuntimeAdapter", - "claude_code": "adapters.runtime.claude_code:ClaudeCodeRuntimeAdapter", +# Adapter registries are loaded from team.yaml at runtime (adapter_registry section). +# Fallback built-ins are used only if team.yaml doesn't define adapter_registry. +_BUILTIN_ADAPTER_REGISTRY: dict[str, dict[str, str]] = { + "llm": {"anthropic": "adapters.llm.anthropic:AnthropicAdapter"}, + "vcs": {"github": "adapters.vcs.github:GitHubAdapter"}, + "notify": {"openclaw": "adapters.notify.openclaw:OpenClawNotifyAdapter"}, + "runtime": { + "openclaw": "adapters.runtime.openclaw:OpenClawRuntimeAdapter", + "claude_code": "adapters.runtime.claude_code:ClaudeCodeRuntimeAdapter", + }, }