Skip to content

Implement the NIP-34 git event surface - #20

Merged
imattau merged 6 commits into
mainfrom
feat/nip34
Nov 27, 2026
Merged

imattau merged 6 commits into
mainfrom
feat/nip34

Conversation

@imattau

@imattau imattau commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Implements NIP-34 publication end to end.

  • New nscript-nip34 crate with builders and validation for kinds 30617, 30618, 1617, 1618, 1619, 1621, 1630-1633, and 10317.
  • nscript git with announce, state, patch, pr, pr-update, issue, status, grasp, and latest; local signing, dry runs, JSON, relay thresholds, nip34.json, and state --from-git.
  • The nip34 module now declares the full event surface, typed tags, and four pure functions, so scripts can publish these events under deploy.
  • Language support for repeated typed tags (List<TagType>), needed for refs, status markers, quotes, and committers.
  • Conformance fixtures, wire vectors, CLI and vector cross-check tests, and docs.

Git object transport is explicitly out of scope; clone URLs still point at git servers or grasp services.

lostcause 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.
@imattau
imattau merged commit 0333ca1 into main Nov 27, 2026
2 checks passed
@imattau
imattau deleted the feat/nip34 branch November 28, 2026 00:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant