b0a8cae194
Replace the requireAuth: Boolean parameter in NostrServer with a pluggable AuthPolicy interface. Each policy has trigger points for EVENT (acceptEvent), REQ (acceptReq with filter rewriting), COUNT (acceptCount), and live event delivery (canSendToSession). Built-in policies: OpenPolicy (allow all) and RequireAuthPolicy (require auth for all commands, matching the previous behavior). https://claude.ai/code/session_017vdjbdxdYK1oJMH66koVZE