Operation Darling Purge: slim to wealth core (-33,783 lines) (#121)

This commit is contained in:
Alexander Whitestone
2026-03-02 13:17:38 -05:00
committed by GitHub
parent f694eff0a4
commit 584eeb679e
183 changed files with 154 additions and 33807 deletions

View File

@@ -9,7 +9,10 @@ import json
import logging
from typing import Optional
from swarm.event_log import EventLogEntry
try:
from swarm.event_log import EventLogEntry
except ImportError:
EventLogEntry = None
logger = logging.getLogger(__name__)

View File

@@ -18,7 +18,12 @@ import logging
from typing import Any
from infrastructure.openfang.client import OPENFANG_HANDS, openfang_client
from mcp.schemas.base import create_tool_schema
try:
from mcp.schemas.base import create_tool_schema
except ImportError:
def create_tool_schema(**kwargs):
return kwargs
logger = logging.getLogger(__name__)
@@ -190,7 +195,11 @@ def register_openfang_tools() -> int:
Returns the number of tools registered.
"""
from mcp.registry import tool_registry
try:
from mcp.registry import tool_registry
except ImportError:
logger.warning("MCP registry not available — skipping OpenFang tool registration")
return 0
count = 0
for hand_name in OPENFANG_HANDS: