feat(protocol): implement unified protocol_muse package, wheel caching, and rebuild recovery
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: protocol_muse
|
||||
Version: 0.1.0
|
||||
Summary: Unified Muse Noise protocol client and Chromebox DM fallback transport
|
||||
Author-email: NetVM Fleet Operators <operator@muse-dev.online>
|
||||
Requires-Python: >=3.9
|
||||
Description-Content-Type: text/markdown
|
||||
Requires-Dist: curl-cffi>=0.7.0
|
||||
Requires-Dist: noiseprotocol>=0.3.1
|
||||
Requires-Dist: protobuf>=4.21.0
|
||||
Provides-Extra: test
|
||||
Requires-Dist: pytest>=7.0.0; extra == "test"
|
||||
|
||||
# protocol_muse
|
||||
|
||||
Unified Python library for the NetVM Muse fleet. Provides dual-modality transport:
|
||||
1. Fast, headless gateway connecting via WebSockets (`wss://gateway.muse.ai/v1/noise`) using encrypted Noise protocol frames (`Noise_XX_25519_AESGCM_SHA256`).
|
||||
2. Automatic fallback to the Chromebox HTTPS gateway (`https://dm.muse-dev.online` or `https://100.123.153.75:8445`) for DM operations and task queue inspection.
|
||||
|
||||
## Quickstart
|
||||
|
||||
```python
|
||||
from protocol_muse import MuseClient
|
||||
|
||||
# Connect under agent node identity
|
||||
client = MuseClient(node="pip")
|
||||
|
||||
# List threads
|
||||
threads = client.list_threads()
|
||||
|
||||
# Send message with automatic gateway -> HTTPS fallback
|
||||
res = client.send_message("Task completed", thread_id="...")
|
||||
|
||||
# Query fleet task queue
|
||||
queue = client.get_queue()
|
||||
print(f"Pending tasks: {queue.pending_count}")
|
||||
```
|
||||
@@ -0,0 +1,13 @@
|
||||
README.md
|
||||
pyproject.toml
|
||||
setup.py
|
||||
protocol_muse/__init__.py
|
||||
protocol_muse/client.py
|
||||
protocol_muse/fallback.py
|
||||
protocol_muse/gateway.py
|
||||
protocol_muse/queue.py
|
||||
protocol_muse.egg-info/PKG-INFO
|
||||
protocol_muse.egg-info/SOURCES.txt
|
||||
protocol_muse.egg-info/dependency_links.txt
|
||||
protocol_muse.egg-info/requires.txt
|
||||
protocol_muse.egg-info/top_level.txt
|
||||
@@ -0,0 +1,6 @@
|
||||
curl-cffi>=0.7.0
|
||||
noiseprotocol>=0.3.1
|
||||
protobuf>=4.21.0
|
||||
|
||||
[test]
|
||||
pytest>=7.0.0
|
||||
@@ -0,0 +1 @@
|
||||
protocol_muse
|
||||
Reference in New Issue
Block a user