feat: M6 Transport wrappers — fetch + WebSocket adapters

- ShadeFetchTransport: HTTP client for prekey server
  (register, fetchBundle, replenish, getKeyCount)
- ShadeWebSocket: wraps existing WebSocket with auto E2EE
  (binary wire format, transparent encrypt/decrypt)
- Full integration test: register → fetch → session → encrypt → decrypt
  over real HTTP against in-process Hono prekey server

101 tests, 0 failures across all milestones (M1-M7).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-09 20:18:21 +02:00
parent 740a652d51
commit d071551b2f
7 changed files with 300 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
export { ShadeFetchTransport } from './fetch-transport.js';
export { ShadeWebSocket } from './ws-adapter.js';