Repository navigation
v0.8.0-rc.48
Pre-release
Pre-release
·
202 commits
to main
since this release
Added
- Adds
dm reactanddm unreact: NIP-25 reactions and their NIP-09 retractions inside NIP-17 gift wraps, to the conversation's participants and a copy to yourself.dm readshows them asreaction/deleteentries, and--foldapplies the deletions (each only to its own author's events) and folds reactions into the messages they react to. - Adds the signer's
nipoa_attestmethod andattestrule (subordinates, a requiredmax_until,kinds): an attestation is signed only when such a rule allows it, so existing policies refuse every one.signer check --method nipoa_attest --subordinate --conditionsdecides one offline. - Adds
ncli id attest, which signs a NIP-OA owner attestation with--identityor through--signerand prints theauthtag, verified. - Adds
ncli form create/list/show/respond/withdraw/result: NIP-PF forms (kinds 1069, 1019, 1070) -- questions with the recommended option and why, notes required on some options, defaults, quorum and an end, answered in one response and closed by the author with a result (decided, default, cancelled). A form is private (--to: gift-wrapped to each responder and to you), in a NIP-29 group (--group --relay) or public;respondrefuses a response the form doesn't accept before anything is sent. Every rule is nmilat'snippf. - Adds the
ncli-formsskill. - Adds labels to
dmandform: an event'sttags print as#label(printable ASCII, every other rune escaped) after the author and before the subject or title, anddm send --labelsets them. - Adds
--auth(andNCLI_AUTH_TAG) to every command that signs through--signer: a NIP-OAauthtag, checked against the signer's key, added to every event it signs whose kind and time its conditions allow -- on a DM's or a private form's rumor too, inside the seal; never on a seal, a gift wrap or a NIP-42 login event. - Adds the signer selector
tags_one: the event must carry exactly one tag of each named key, with a listed value. Unliketags, an event with a second same-named tag doesn't match, so a NIP-42 login can be bound to one relay. The example policies use it forrelay. - Adds
ncli nip98 <url> <method>, which prints a NIP-98Authorizationheader signed with--identityor through--signer;--payload-filebinds the request body. - Adds NIP-OA attestations to
dm read,dm verify,groups read/feedand theformcommands: anauthtag is checked,--jsongivesattested_by,attest_validandattest_trusted, and text output shows[agent of <owner>]for an owner named in--trust-owners(word:--attest-label),[attested by <owner>, owner not trusted]or[invalid attestation], in the client's column after the author.
Changed
- Changes subjects, titles and message lines to print a non-ASCII letter that sits beside ASCII letters as an escape (look-alikes such as a Cyrillic
е), collapse padding, and cap titles at 200 runes.
Fixed
- Fixes ncli's own NIP-98 headers (relay admin, huddle) tagging their anti-replay value
nonce, which NIP-13 reads as a proof-of-work claim, so a socket signer's client refused them. They tagsalt, as nmilat'snip98.Signdoes; verifiers never read it, so old and new headers interoperate. - Fixes the signer charging an
unwrap_fromrule's rate before it knew the seal's author, so gift wraps from anyone could use up a listed sender's rate. The rate is charged only for a wrap the rule releases; refused wraps are remembered and refused again without decryption;dm readretries a wrap refused for rate instead of skipping it. - Fixes text output printing fields a relay or another author controls (message content and subject, reactions, group, space and profile fields, decoded NIP-19/token identifiers, relay hints and labels, identity relays, NIP-85 stat values, every relay publish result, and Blossom server responses and blob listings) raw: control, separator and format characters (bidi, zero-width, tags) and invalid UTF-8 now print as Go escapes, and multi-line content stays indented, so remote text can't forge a line, move the cursor or reorder what the terminal shows.
--jsonis unchanged. - Fixes
find -fanddm read -flosing messages: a gift wrap that didn't open (or was dated in the future) no longer moves the resume point, a saved resume point ahead of now is dropped, and a resubscription pages back through a relay's stored events past its per-request cap, so a backdated wrap under a flood is still delivered.