Removes support for opening communikeys with bare pubkeys (npub/hex),
reserving that format for DMs. Communikeys now require either:
1. naddr format (kind 10222) - preferred
2. relay'pubkey format - with explicit relay hint
Changes:
- Removed bare pubkey parsing from parseIdentifier()
- Updated command reconstructor to require relay hints
- Updated getChatIdentifier to require relay URL
- Updated documentation to remove bare pubkey examples
This ensures communikeys always have relay hints for better
connectivity, while keeping bare pubkey format available for future
DM implementation.
Changes the protocol identifier for communikey groups from "nip-29" to
"communikeys" to distinguish them from traditional NIP-29 groups. The
protocol badge in the chat header now displays "COMMUNIKEYS" and links
to the NIP-CC specification when clicked.
Changes:
- Added "communikeys" to ChatProtocol type union
- Updated NIP-29 adapter to return "communikeys" protocol for communikey
conversations
- Updated ChatViewer handleNipClick to open NIP-CC spec event
(naddr1qvzqqqrcvypzp22rfmsktmgpk2rtan7zwu00zuzax5maq5dnsu5g3xxvqr2u3pd7q...)
when communikeys badge is clicked
- Updated getAdapter in ChatViewer and DynamicWindowTitle to handle
"communikeys" protocol (uses Nip29Adapter)
- Updated getChatIdentifier to return proper identifiers for communikeys
(relay'pubkey or just pubkey)
- Updated command reconstructor to generate correct chat commands for
communikeys
The protocol badge now shows "COMMUNIKEYS" for communikey groups and
links to the NIP-CC specification document, while traditional NIP-29
groups still show "NIP-29" and link to NIP-29.
Add chat case to reconstructCommand to properly reconstruct the chat
command string when clicking the edit button in the window toolbar.
- NIP-29 groups: reconstruct as `chat relay'group-id`
- NIP-53 live activities: reconstruct as `chat naddr1...`
Co-authored-by: Claude <noreply@anthropic.com>