Reusable WS/headless server infrastructure extracted from apps/electron.
- WS RPC transport primitives (
server,codec,types,capabilities) - Runtime platform contracts (
PlatformServices) and headless implementation - Generic handler dependency contracts
- Reusable headless bootstrap orchestration
- Electron UI/main-process window management
- Renderer channel maps and generated client API wrappers
- Session/domain business logic (
SessionManager, handlers)
Those remain in apps/electron and are injected into bootstrap at runtime.