Documentation
¶
Overview ¶
responder is a cron-based daemon that polls the pilot inbox, dispatches recognised commands to local HTTP services, and sends the responses back to the originating node.
Startup fails immediately if ~/.pilot/endpoints.yaml is missing or invalid.
Usage:
responder [-config <path>] [-interval <duration>] [-socket <path>]
Endpoints are configured in ~/.pilot/endpoints.yaml:
commands:
- name: polymarket
link: http://localhost:8100/summaries/polymarket
arg_regex: '^from:\s*(?P<from>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z?)(?:\s*,\s*to:\s*(?P<to>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z?))?$'
- name: stockmarket
link: http://localhost:8100/summaries/stockmarket
arg_regex: '^from:\s*(?P<from>\d{4}-\d{2}-\d{2})(?:\s*,\s*to:\s*(?P<to>\d{4}-\d{2}-\d{2}))?$'
Incoming messages must be JSON: {"command":"<name>","body":"<args>"}
Click to show internal directories.
Click to hide internal directories.