channels: add socat daemon for generic stream channels

consciousness-channel-socat listens on a unix socket for incoming
connections, turning each into a bidirectional text channel. Also
supports outbound connections via the open RPC (tcp: or unix:).

Two sockets:
  socat.sock        — capnp RPC (channel protocol)
  socat.stream.sock — data (incoming connections become channels)

No config file needed. The simplest possible channel daemon.

Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2026-04-04 22:48:33 -04:00
parent 2a84fb325d
commit 7123c9166d
4 changed files with 355 additions and 1 deletions

17
Cargo.lock generated
View file

@ -605,6 +605,23 @@ dependencies = [
"webpki-roots",
]
[[package]]
name = "consciousness-channel-socat"
version = "0.4.0"
dependencies = [
"capnp",
"capnp-rpc",
"dirs",
"futures",
"json5",
"poc-memory",
"serde",
"tokio",
"tokio-util",
"tracing",
"tracing-subscriber",
]
[[package]]
name = "consciousness-channel-telegram"
version = "0.4.0"