fix: temporarily disable routers to isolate Pydantic validation issue and add agent endpoints to working routers
- Comment out most routers in main.py to isolate Pydantic issue - Keep only blockchain router enabled for testing - Fix database warmup to use get_session() instead of SessionDep() - Add blockchain router to __init__.py exports - Add test endpoint to agent_router for verification - Duplicate agent network and execution receipt endpoints in client and exchange routers as temporary workaround
This commit is contained in:
@@ -25,8 +25,8 @@ from .commands.exchange import exchange
|
||||
from .commands.agent import agent
|
||||
from .commands.multimodal import multimodal
|
||||
from .commands.optimize import optimize
|
||||
# from .commands.openclaw import openclaw # Temporarily disabled due to command registration issues
|
||||
# from .commands.marketplace_advanced import advanced # Temporarily disabled due to command registration issues
|
||||
# from .commands.openclaw import openclaw # Temporarily disabled due to naming conflict
|
||||
from .commands.marketplace_advanced import advanced # Re-enabled after fixing registration issues
|
||||
from .commands.swarm import swarm
|
||||
from .commands.chain import chain
|
||||
from .commands.genesis import genesis
|
||||
@@ -129,14 +129,15 @@ def cli(ctx, url: Optional[str], api_key: Optional[str], output: str,
|
||||
if test_mode:
|
||||
config.coordinator_url = config.coordinator_url or "http://localhost:8000"
|
||||
config.api_key = config.api_key or "test-api-key"
|
||||
if not config.api_key.startswith("test-"):
|
||||
config.api_key = f"test-{config.api_key}"
|
||||
|
||||
|
||||
# Add command groups
|
||||
cli.add_command(client)
|
||||
cli.add_command(miner)
|
||||
cli.add_command(wallet)
|
||||
cli.add_command(plugin)
|
||||
# cli.add_command(openclaw) # Temporarily disabled due to naming conflict
|
||||
cli.add_command(advanced) # Re-enabled after fixing registration issues
|
||||
cli.add_command(auth)
|
||||
cli.add_command(blockchain)
|
||||
cli.add_command(marketplace)
|
||||
@@ -149,6 +150,7 @@ cli.add_command(exchange)
|
||||
cli.add_command(agent)
|
||||
cli.add_command(multimodal)
|
||||
cli.add_command(optimize)
|
||||
# cli.add_command(openclaw) # Temporarily disabled
|
||||
cli.add_command(swarm)
|
||||
cli.add_command(chain)
|
||||
cli.add_command(genesis)
|
||||
|
||||
Reference in New Issue
Block a user