Commit Graph

6 Commits

Author SHA1 Message Date
Claude
d20a41970b refactor: Remove bare pubkey support for communikeys
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.
2026-01-16 10:55:19 +00:00
Claude
57d3f0bd42 feat: Add "communikeys" protocol with NIP-CC spec link
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.
2026-01-16 10:44:29 +00:00
Alejandro
76dd1e801d fix: reconstruct chat command for edit button (#62)
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>
2026-01-12 17:07:22 +01:00
Alejandro Gómez
26fc2bf7af fix: edit OPEN 2025-12-13 23:20:00 +01:00
Alejandro Gómez
c287cff413 refactor: remove unused commands 2025-12-13 22:58:22 +01:00
Alejandro Gómez
d877e51317 feat: editable commands 2025-12-13 22:53:27 +01:00