#!/usr/bin/env sh # A2A (JSON-RPC 2.0, protocol 0.3.0): the router is free and never charges. For a site-report request it answers with # the endpoint, the on-sale status, the price status and a ready JSON body (data part, intent "paid_service"); you then # POST that body to the endpoint with an x402 client (see ../curl.sh or ../node/site-report.mjs). SHOP="${SHOP:-http://127.0.0.1:4999}" # 1. The agent card lists the skill "site-report". curl -s "$SHOP/.well-known/agent-card.json" # 2. Ask with the message in message-send.json (text + a data part naming the skill and the URL). curl -s "$SHOP/a2a" -H 'content-type: application/json' -d @a2a/message-send.json