Utilities for the Syndicated Actor Model
Go to file
Emery Hemingway 2a1a3fe200 Adjust to Syndicate-nim changes 2023-05-18 12:41:52 +01:00
src Adjust to Syndicate-nim changes 2023-05-18 12:41:52 +01:00
.envrc Syndicate API update 2023-04-10 10:46:50 -05:00
.gitignore Remove http_translator 2023-05-07 09:22:47 +01:00
README.md Add <connected "…"> assertion to json_socket_translator 2023-05-16 18:44:10 +01:00
Tuprules.tup Syndicate API update 2023-04-10 10:46:50 -05:00
config.prs Add <connected "…"> assertion to json_socket_translator 2023-05-16 18:44:10 +01:00
mpv.config-example.pr Adjust to Syndicate-nim changes 2023-05-18 12:41:52 +01:00
syndicate_utils.nimble Adjust to Syndicate-nim changes 2023-05-18 12:41:52 +01:00

README.md

Syndicate utils

json_translator

Wrapper that executes a command, parses its JSON output, and asserts a Preserves conversion in an <output …> record.

json_socket_translator

Utility to communicate with sockets that send and receive lines of JSON using <sen-json …> and <recv-json …> messages. Compatible with mpv, see mpv.config-example.pr.

Do not send messages immediately to the dataspace passed json_socket_translator, wait until it asserts <connected @socketPath string>.

msg

A utility that sends a message to $SYNDICATE_SOCK in the form <ARGV…>.