Skip to content

v0.8.0-rc.48

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 02 Nov 18:49
· 202 commits to main since this release
f13d87d

Added

  • Adds dm react and dm 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 read shows them as reaction / delete entries, and --fold applies the deletions (each only to its own author's events) and folds reactions into the messages they react to.
  • Adds the signer's nipoa_attest method and attest rule (subordinates, a required max_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 --conditions decides one offline.
  • Adds ncli id attest, which signs a NIP-OA owner attestation with --identity or through --signer and prints the auth tag, 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; respond refuses a response the form doesn't accept before anything is sent. Every rule is nmilat's nippf.
  • Adds the ncli-forms skill.
  • Adds labels to dm and form: an event's t tags print as #label (printable ASCII, every other rune escaped) after the author and before the subject or title, and dm send --label sets them.
  • Adds --auth (and NCLI_AUTH_TAG) to every command that signs through --signer: a NIP-OA auth tag, 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. Unlike tags, 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 for relay.
  • Adds ncli nip98 <url> <method>, which prints a NIP-98 Authorization header signed with --identity or through --signer; --payload-file binds the request body.
  • Adds NIP-OA attestations to dm read, dm verify, groups read/feed and the form commands: an auth tag is checked, --json gives attested_by, attest_valid and attest_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 tag salt, as nmilat's nip98.Sign does; verifiers never read it, so old and new headers interoperate.
  • Fixes the signer charging an unwrap_from rule'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 read retries 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. --json is unchanged.
  • Fixes find -f and dm read -f losing 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.