From 0bd392e076e36c80a152abe00cbcd0bc9efedd9c Mon Sep 17 00:00:00 2001 From: bndw Date: Mon, 9 Mar 2026 12:48:39 -0700 Subject: feat: add axon CLI for pub/sub; fix relay hijack context bug - cmd/axon: new CLI module with keygen, pub, and req subcommands - keygen: generate Ed25519 keypair, print hex seed and pubkey - pub: sign and publish an event; accepts --kind, --content, --tag - req: query/stream events as JSON lines; accepts --kind, --author, --tag, --since, --until, --limit, --stream - key loaded from --key flag or AXON_KEY env var - relay/websocket: add Dial() for client-side WebSocket handshake (ws:// and wss://, RFC 6455 masking via client:true) - relay/server: fix broken-pipe on auth by switching hijacked conn goroutine from r.Context() to context.Background(); r.Context() is cancelled by net/http immediately after Hijack is called --- cmd/axon/cli | Bin 0 -> 7995047 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100755 cmd/axon/cli (limited to 'cmd/axon/cli') diff --git a/cmd/axon/cli b/cmd/axon/cli new file mode 100755 index 0000000..93f7706 Binary files /dev/null and b/cmd/axon/cli differ -- cgit v1.2.3