refactor: update module docstrings for clarity and consistency

This commit is contained in:
Abhimanyu Saharan
2026-02-09 15:49:50 +05:30
parent 78bb08d4a3
commit 7ca1899d9f
99 changed files with 2345 additions and 855 deletions

View File

@@ -1,3 +1,5 @@
"""Seed a minimal local demo dataset for manual development flows."""
from __future__ import annotations
import asyncio
@@ -16,14 +18,16 @@ from app.models.users import User # noqa: E402
async def run() -> None:
"""Populate the local database with a demo gateway, board, user, and agent."""
await init_db()
async with async_session_maker() as session:
demo_workspace_root = BACKEND_ROOT / ".tmp" / "openclaw-demo"
gateway = Gateway(
name="Demo Gateway",
url="http://localhost:8080",
token=None,
main_session_key="demo:main",
workspace_root="/tmp/openclaw-demo",
workspace_root=str(demo_workspace_root),
)
session.add(gateway)
await session.commit()