refactor: update imports to use provisioning_db and gateway_rpc modules

This commit is contained in:
Abhimanyu Saharan
2026-02-11 00:00:19 +05:30
parent 997d21c913
commit b038d0df4c
22 changed files with 1391 additions and 1438 deletions

View File

@@ -9,7 +9,7 @@ from uuid import UUID, uuid4
import pytest
import app.services.openclaw.agent_service as agent_service
import app.services.openclaw.provisioning_db as agent_service
@dataclass

View File

@@ -8,7 +8,7 @@ from uuid import UUID, uuid4
import pytest
import app.services.openclaw.provisioning as agent_provisioning
from app.services.openclaw.agent_service import AgentLifecycleService
from app.services.openclaw.provisioning_db import AgentLifecycleService
from app.services.openclaw.shared import GatewayAgentIdentity

View File

@@ -13,8 +13,8 @@ from fastapi import HTTPException, status
import app.services.openclaw.coordination_service as coordination_lifecycle
import app.services.openclaw.onboarding_service as onboarding_lifecycle
from app.integrations.openclaw_gateway import GatewayConfig as GatewayClientConfig
from app.integrations.openclaw_gateway import OpenClawGatewayError
from app.services.openclaw.gateway_rpc import GatewayConfig as GatewayClientConfig
from app.services.openclaw.gateway_rpc import OpenClawGatewayError
from app.services.openclaw.shared import GatewayAgentIdentity

View File

@@ -27,6 +27,6 @@ def test_no_openclaw_package_barrel_imports() -> None:
assert not violations, (
"Use concrete OpenClaw modules (for example "
"`from app.services.openclaw.agent_service import ...`) instead of package imports. "
"`from app.services.openclaw.provisioning_db import ...`) instead of package imports. "
f"Violations: {', '.join(violations)}"
)