PLUGIN_META = {
    "name": "pos_operations",
    "display_name": "POS Operations",
    "description": "POS 收银员登录、18+ 双人验证与在线退货编排。",
    "icon": "shield",
    "category": "pos",
    "version": "0.1.0",
    "author": "LS",
    "default_enabled": False,
    "config_fields": [],
}


def init_plugin(app) -> None:
    # Lazy import so test collection never triggers FastAPI import side effects.
    from app.plugins.pos_operations.router import admin_router, snapshot_router
    from app.plugins.pos_operations.returns_router import returns_admin_router, returns_router

    app.include_router(admin_router, prefix="/api")
    app.include_router(snapshot_router, prefix="/api")
    app.include_router(returns_router, prefix="/api")
    app.include_router(returns_admin_router, prefix="/api")
