Files
shakespeare/src/components/git/index.ts
T
shakespeare.diy 166c2eb72c Add repository announcement feature for Nostr git (NIP-34)
Created AnnounceRepositoryDialog component to publish repository announcements
(kind 30617) which are required before patches can be discovered on Nostr git
clients like NostrHub.

Key features:
- Auto-detects earliest unique commit (euc) from git history
- Pre-fills repository ID from remote URL
- Allows adding multiple web URLs, clone URLs, and relays
- Publishes to designated relays with proper NIP-34 tags
- Returns naddr for easy sharing

The dialog is displayed in GitDialog for Nostr remotes, positioned next to the
Create Patch button. This completes the Nostr git workflow:

1. Announce repository (creates kind 30617 with euc tag)
2. Submit patches (creates kind 1617 with 'a' tag referencing announcement)

Without step 1, patches are published but not discoverable since clients query
repositories first, then filter patches by the repository's 'a' tag coordinate.
2025-10-15 00:14:41 -05:00

8 lines
371 B
TypeScript

export { AnnounceRepositoryDialog } from './AnnounceRepositoryDialog';
export { BranchManager } from './BranchManager';
export { CompareView } from './CompareView';
export { DiffViewer } from './DiffViewer';
export { GitManagementDialog } from './GitManagementDialog';
export { MergeDialog } from './MergeDialog';
export { PullRequestDialog } from './PullRequestDialog';