update to handle new structure from spectra, no more gobs (#1266)

This commit is contained in:
NotSoToothless
2026-05-23 17:16:53 -07:00
committed by GitHub
parent 2d5adfcbe0
commit f6f4e33a65
11 changed files with 459 additions and 313 deletions
+1 -12
View File
@@ -6,7 +6,7 @@ Bridge helpers for external SREBOT transfer.
This module provides two pieces:
1. A formal SREBOT API client that external consumers can use to query the
SREBOT HTTP API.
2. A persistent outbox for replay and GOB payloads so the external bridge
2. A persistent outbox for replay payloads so the external bridge
service can fan them out over websocket.
"""
@@ -210,17 +210,6 @@ async def publish_replay_batch(replays: list[dict[str, Any]]) -> None:
await _append_external_envelope(envelope)
async def publish_gob_payload(payload: dict[str, Any]) -> None:
"""Queue a GOB payload for websocket delivery by the external bridge."""
envelope = {
"type": "spectra.gob",
"version": 1,
"source": "srebot",
"payload": payload,
}
await _append_external_envelope(envelope)
async def publish_event(event_type: str, payload: dict[str, Any]) -> None:
"""Generic queue helper for future bridge events."""
envelope = {