entari-plugin-server 0.7.1__tar.gz → 0.7.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/PKG-INFO +1 -1
- {entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/pyproject.toml +1 -1
- {entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/src/entari_plugin_server/__init__.py +1 -1
- {entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/src/entari_plugin_server/patch.py +3 -1
- {entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/LICENSE +0 -0
- {entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/README.md +0 -0
- {entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/src/entari_plugin_server/README.md +0 -0
- {entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/src/entari_plugin_server/_adapter.py +0 -0
- {entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/src/entari_plugin_server/config.py +0 -0
- {entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/tests/__init__.py +0 -0
{entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/src/entari_plugin_server/__init__.py
RENAMED
|
@@ -35,7 +35,7 @@ plugin.metadata(
|
|
|
35
35
|
"server",
|
|
36
36
|
PluginRole.LIBRARY,
|
|
37
37
|
[{"name": "RF-Tar-Railt", "email": "rf_tar_railt@qq.com"}],
|
|
38
|
-
"0.7.
|
|
38
|
+
"0.7.2",
|
|
39
39
|
description="为 Entari 提供 Satori 服务器支持,基于此为 Entari 提供 ASGI 服务、适配器连接等功能",
|
|
40
40
|
urls={
|
|
41
41
|
"homepage": "https://github.com/ArcletProject/entari-plugin-server",
|
|
@@ -3,6 +3,7 @@ from io import BytesIO
|
|
|
3
3
|
from arclet.entari import Entari
|
|
4
4
|
from arclet.entari.logger import log
|
|
5
5
|
from arclet.entari.session import EntariProtocol
|
|
6
|
+
from arclet.letoderea.utils import add_task
|
|
6
7
|
from satori import Api, Event
|
|
7
8
|
from satori.client import Account, ApiInfo
|
|
8
9
|
from satori.exception import (
|
|
@@ -64,6 +65,7 @@ class DirectAdapterProtocol(EntariProtocol):
|
|
|
64
65
|
req._form = _form
|
|
65
66
|
else:
|
|
66
67
|
req._json = params or {}
|
|
68
|
+
|
|
67
69
|
resp = await self.server.http_server_handler(req)
|
|
68
70
|
if isinstance(resp, JSONResponse):
|
|
69
71
|
return decode(resp.body) # type: ignore
|
|
@@ -108,4 +110,4 @@ class DirectAdapterServer(Server):
|
|
|
108
110
|
else:
|
|
109
111
|
acc = app.accounts[login_sn].custom(protocol_cls=DirectAdapterProtocol)
|
|
110
112
|
acc.protocol.server = self
|
|
111
|
-
|
|
113
|
+
add_task(app.handle_event(acc, event))
|
|
File without changes
|
|
File without changes
|
{entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/src/entari_plugin_server/README.md
RENAMED
|
File without changes
|
{entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/src/entari_plugin_server/_adapter.py
RENAMED
|
File without changes
|
{entari_plugin_server-0.7.1 → entari_plugin_server-0.7.2}/src/entari_plugin_server/config.py
RENAMED
|
File without changes
|
|
File without changes
|