refactor: enforce gRPC framing on all MWP wire traffic
- Delete STREAM_MIME_TYPE from models/wire.py — application/grpc+muse is the single wire Content-Type for all push and fetch endpoints - musehub_wire.py: import grpc_frame; _sp() and wire_fetch_stream local _pack() now wrap every response frame in grpc_frame() before yielding - routes/wire.py: push response Content-Type → GRPC_CONTENT_TYPE; fetch route strips 5-byte gRPC prefix before msgpack decode; response media_type → GRPC_CONTENT_TYPE - Tests: STREAM_MIME_TYPE → GRPC_CONTENT_TYPE throughout; _unpack_all rewritten to handle gRPC-wrapped msgpack response frames; test_wire_ streaming_push _wrap() adds grpc_frame(); test_background_jobs adds _wrap() helper; GrpcFrameReader used where raw msgpack.Unpacker was
sha256:9590cee1e0ccd6c76528f005b95d634d80f5019f0dcb7c371e149adc31d1fb65
sha
sha256:6cbdb8779a5861879d5eb9b76df31485534a1d8ed16dcd80706b7fc3b3500cb5
snapshot
← Older
Oldest on task/grpc-only-wire
All commits
Newer
feat(wire): Phase 14B server-side OC-frame reassembly
sha256:7b5741c91286e310b18bdae2435d6740836ac7fb4d33f31857e0181a16d6faf9
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:9590cee1e0ccd6c76528f005b95d634d80f5019f0dcb7c371e149adc31d1fb65 --body "your comment"
No comments yet. Be the first to start the discussion.