v1.6: Platform Gateway — Amazon/JD/Taobao/PDD/TikTok 5平台API集成 + start_provision_v2.sh

This commit is contained in:
Chatwoot AI Agent Dev
2026-06-05 04:30:28 +00:00
parent 351c9b82fb
commit 989e21d1f6
19 changed files with 1760 additions and 15 deletions
+16
View File
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
"""Platform Gateway — multi-tenant platform API aggregator.
This package is a *library*, not a service. It is imported in-process by
chatwoot_ws_agent.py and exposes a synchronous facade (``router.fetch``)
that schedules work onto a background asyncio event loop.
The library must never start its own event loop. Callers must call
``gateway.loop.start()`` once at process start.
"""
from .loop import gateway_loop, BackgroundLoop # noqa: F401
from .router import fetch, fetch_all # noqa: F401
from .base import UnifiedResult # noqa: F401
__all__ = ["gateway_loop", "BackgroundLoop", "fetch", "fetch_all", "UnifiedResult"]