Documentation
¶
Overview ¶
Package signal is the gateway's Signal channel adapter. It talks to a signal-cli daemon running in native HTTP mode (`signal-cli daemon --http`): inbound messages arrive over the daemon's SSE event stream, replies go out as JSON-RPC `send` calls. Nobody embeds libsignal — both Hermes and OpenClaw require the same companion daemon; we spawn nothing and just connect to it (SIGNAL_CLI_URL, default http://127.0.0.1:8080). The account is a LINKED DEVICE (`signal-cli link`) — use a dedicated number, not your main one.
Attachments: the daemon writes them to its own data directory; the adapter reads them from there (attachmentsDir) and copies them into the media spool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel is a connection to a signal-cli HTTP daemon.
func (*Channel) Send ¶
Send posts a reply — to a peer (DM) or a group — as JSON-RPC send calls, split with the shared chunker. A synthesized voice note (VoicePath) rides the first part as an attachment path; the daemon runs on the same machine, so the spool path is directly readable.