feat(napi): implement serve() function with WraithServer, WraithServerStream, and ConnectionInfo

Expose NAPI serve() per ADR-016. WraithServer provides close() and
onConnection(callback) for receiving SSH channel streams from
incoming connections. Each connection produces a WraithServerStream
(Duplex-like read/write/close) with ConnectionInfo (remoteAddr,
transportKind). Supports TCP transport with optional authorizedKeys
and certAuthority auth. TLS and iroh transports return helpful errors
indicating future support.
This commit is contained in:
glm-5.1 committed 2026-06-02 20:05:13 +00:00
1 parent 62d57dd477
commit 0fdb6cd782
5 files changed
+738 -22

No files matched your search

Generated
+1
View File
@@ -5636,6 +5636,7 @@ dependencies = [
name = "wraith-napi"
version = "0.1.0"
dependencies = [
"async-trait",
"napi",
"napi-derive",
"russh",