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

View file

@ -1,5 +1,5 @@
[workspace]
members = ["channels/irc", "channels/telegram", "channels/tmux"]
members = ["channels/irc", "channels/telegram", "channels/tmux", "channels/socat"]
resolver = "2"
[workspace.package]