refactor: replace direct calls to provisioning functions with OpenClawProvisioningService methods

This commit is contained in:
Abhimanyu Saharan
2026-02-10 22:30:14 +05:30
parent d9199f8d8d
commit ad75871e61
12 changed files with 703 additions and 844 deletions

View File

@@ -54,7 +54,7 @@ async def _run() -> int:
from app.models.gateways import Gateway
from app.services.openclaw.provisioning import (
GatewayTemplateSyncOptions,
sync_gateway_templates,
OpenClawProvisioningService,
)
args = _parse_args()
@@ -67,10 +67,9 @@ async def _run() -> int:
message = f"Gateway not found: {gateway_id}"
raise SystemExit(message)
result = await sync_gateway_templates(
session,
result = await OpenClawProvisioningService(session).sync_gateway_templates(
gateway,
options=GatewayTemplateSyncOptions(
GatewayTemplateSyncOptions(
user=None,
include_main=bool(args.include_main),
reset_sessions=bool(args.reset_sessions),