Repository navigation
Implement the NIP-34 git event surface - #20
Merged
Merged
Conversation
added 6 commits
November 28, 2026 10:39
Move local signing, relay connection, per-relay reporting, and the publish threshold into publish.rs so nscript git can reuse them without duplicating behavior. ncc output and error strings are unchanged.
Construct repository announcements and state, patches, pull requests and updates, issues, status events, and the grasp list as UnsignedEvent values. Validation covers ids, commit ids, repository addresses, refs, relays, and the status-only merge fields.
A field declared as List<TagType> now lowers one wire tag per element, in source order, through the declared tag schema. Top-level publishes accept literal tag-record lists and handlers lower computed ones. This is needed for NIP-34 refs, status markers, quotes, and committers.
Declare repository announcements and state, patches, pull requests and updates, issues, the four status kinds, and the grasp list, with typed tags for EUC, refs, commit metadata, status markers, and quotes. Add repository_identifier, clone_urls, relay_urls, and status_is_known pure functions plus conformance fixtures and wire vectors.
Publish repository announcements and state, patches, pull requests and updates, issues, status events, and the grasp list with a local key. Commands read nip34.json and accept flag overrides; state can read refs and HEAD with --from-git. Every command supports --dry-run/--json and a relay acceptance threshold. Move npub normalization into the shared publisher and cover the commands with CLI and vector tests.
Add docs/NIP34.md with the event table, CLI examples, nip34.json, the language module, and the transport non-goal. Update LAYER3, the Nostr spec, the README, and the ngit mirror notes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements NIP-34 publication end to end.
nscript-nip34crate with builders and validation for kinds 30617, 30618, 1617, 1618, 1619, 1621, 1630-1633, and 10317.nscript gitwithannounce,state,patch,pr,pr-update,issue,status,grasp, andlatest; local signing, dry runs, JSON, relay thresholds,nip34.json, andstate --from-git.nip34module now declares the full event surface, typed tags, and four pure functions, so scripts can publish these events underdeploy.List<TagType>), needed forrefs, status markers, quotes, and committers.Git object transport is explicitly out of scope; clone URLs still point at git servers or grasp services.