reactor-sdk 0.1.0__tar.gz → 0.1.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.
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/PKG-INFO +1 -1
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/pyproject.toml +1 -1
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/__init__.py +8 -2
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/reactor.py +9 -1
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/.github/workflows/ci.yml +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/.github/workflows/publish.yml +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/.gitignore +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/LICENSE +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/README.md +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/examples/pygame_app/README.md +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/examples/pygame_app/controller.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/examples/pygame_app/main.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/examples/pygame_app/requirements.txt +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/examples/rtmp_app/README.md +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/examples/rtmp_app/main.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/examples/rtmp_app/requirements.txt +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/coordinator/__init__.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/coordinator/client.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/coordinator/local_client.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/interface.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/model/__init__.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/model/client.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/py.typed +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/types.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/utils/__init__.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/utils/tokens.py +0 -0
- {reactor_sdk-0.1.0 → reactor_sdk-0.1.2}/src/reactor_sdk/utils/webrtc.py +0 -0
|
@@ -20,6 +20,13 @@ Example:
|
|
|
20
20
|
await reactor.connect()
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
|
+
from importlib.metadata import version, PackageNotFoundError
|
|
24
|
+
|
|
25
|
+
try:
|
|
26
|
+
__version__ = version("reactor-sdk")
|
|
27
|
+
except PackageNotFoundError:
|
|
28
|
+
__version__ = "0.0.0.dev"
|
|
29
|
+
|
|
23
30
|
# Main class
|
|
24
31
|
from reactor_sdk.interface import Reactor
|
|
25
32
|
|
|
@@ -52,6 +59,5 @@ __all__ = [
|
|
|
52
59
|
"GPUMachineEvent",
|
|
53
60
|
"FrameCallback",
|
|
54
61
|
"ConflictError",
|
|
62
|
+
"__version__",
|
|
55
63
|
]
|
|
56
|
-
|
|
57
|
-
__version__ = "0.1.0"
|
|
@@ -700,7 +700,15 @@ class _ReactorImpl:
|
|
|
700
700
|
return
|
|
701
701
|
|
|
702
702
|
def on_application(message: Any) -> None:
|
|
703
|
-
|
|
703
|
+
# Unwrap "application" envelope if present - the runtime wraps
|
|
704
|
+
# outgoing app messages in {"type": "application", "data": ...}
|
|
705
|
+
if isinstance(message, dict) and message.get("type") == "application" and "data" in message:
|
|
706
|
+
self._emit("new_message", message["data"])
|
|
707
|
+
else:
|
|
708
|
+
# Emit full message when no envelope wrapper is present.
|
|
709
|
+
# This is crucial for compatibility with capabilities responses
|
|
710
|
+
# which are sent as raw {"commands": {...}} without envelope.
|
|
711
|
+
self._emit("new_message", message)
|
|
704
712
|
|
|
705
713
|
def on_status_changed(status: GPUMachineStatus) -> None:
|
|
706
714
|
if status == GPUMachineStatus.CONNECTED:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|