responder

command
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

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>"}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL