Daemon presumably to handle receiving messages and triggering actions based on that. Do other signal clients allow CLI usage, or integrating with other software? (I'm genuinely not sure)
This daemon handles as much of the weird signal-specific stuff and exposes an easier to use API. It handles things like encrypting and decrypting messages, generating and storing keys, syncing with linked devices and a bunch of others.
signald doesn't really "trigger actions" or anything, but it would be pretty easy to write something that does using it.
There is a CLI client. Notifications/subscriptions may not be available. I think someone mentioned later in the thread that signald is a fork of signal-cli.
I suspect that a next step could be a browser-based client, or a Pidgin plugin, etc, something where you cannot just run Java code, or even open a socket.