Yasuhiro Matsumoto
8563178bfd
key: combine crashed with unbounded recursion when no valid pubkeys were given, and silently dropped unparseable keys from the result.
2026-07-15 09:40:55 +09:00
fiatjaf
d374fe9bd3
publish: allow kind:1111 comment, force when --comment is used instead of --reply.
2026-07-02 13:32:41 -03:00
fiatjaf
4ea0edc52b
two blossom tweaks.
2026-07-02 00:48:43 -03:00
fiatjaf
6087c71072
publish: proper root/reply tags.
2026-07-02 00:18:30 -03:00
fiatjaf
0bcb90e37e
publish: also read from arguments, not only stdin.
2026-07-02 00:12:54 -03:00
fiatjaf
98b7a1ae6a
admin: color flag is an int now.
2026-06-25 19:00:44 -03:00
fiatjaf
46a809d284
admin: new nip86 "role" commands.
2026-06-25 17:54:52 -03:00
Yasuhiro Matsumoto and fiatjaf
cbfc16f354
add --jq-raw flag to print jq string results unquoted, like jq -r
2026-06-22 21:14:26 -03:00
fiatjaf
62fa610a06
add --jq examples to README.
v0.20.0
2026-06-21 08:38:15 -03:00
fiatjaf
5afdce2672
profile: flags to print only specific things.
2026-06-21 08:26:55 -03:00
fiatjaf
4fd7400272
date function helpers in --jq
2026-06-21 08:19:33 -03:00
fiatjaf
40a934e3f9
fix conflicts with running bunker connections (client and server apparently) through auth-required relays, clarify "connect-as" and use a special flag for it, let's see.
...
hopefully fixes https://github.com/fiatjaf/nak/issues/116
2026-06-20 20:30:45 -03:00
fiatjaf
12000232a7
bunker: remove duplicated "--sec" flags that were interfering with everything.
2026-06-20 20:24:18 -03:00
fiatjaf
cc879b6bf6
serve: --auth and --eager-auth flags.
2026-06-20 20:23:39 -03:00
fiatjaf
483bf94ff4
support --jq flag on fetch and event commands.
2026-06-17 11:39:30 -03:00
fiatjaf
814059fcec
also use the default key as the bunker client key if nothing else is provided.
2026-06-17 11:11:57 -03:00
fiatjaf
b3e009730c
use a default key that is different for each machine.
2026-06-17 10:59:22 -03:00
fiatjaf
7bbff0a3ad
fix blossom ipv6 dialing.
...
fixes https://github.com/fiatjaf/nak/issues/142
v0.19.13
2026-06-15 08:31:32 -03:00
fiatjaf
c97e1815b4
nsite: --title
2026-06-15 08:30:22 -03:00
fiatjaf
29113783b3
nip: use the full terminal width.
2026-06-13 09:39:02 -03:00
fiatjaf
59c691f4d5
bring back color.
2026-06-11 18:10:33 -03:00
fiatjaf
0c8e643609
key and auth flags on root command.
2026-06-11 17:49:20 -03:00
fiatjaf
7872c61a4d
combineFlags() and authFlags compendium.
2026-06-11 16:23:20 -03:00
fiatjaf
97950d1203
nsite: fine-grained relay control.
2026-06-11 14:16:18 -03:00
fiatjaf
0960ceb6a6
nsite: --tag
2026-06-11 13:59:34 -03:00
fiatjaf
6a95407939
fix getKindSlice() usage. keep nil when no kinds are specified.
v0.19.12
2026-06-08 21:41:14 -03:00
fiatjaf
ac988a792d
nsite: log identifiers instead of printing.
2026-06-08 21:14:26 -03:00
fiatjaf
fa41c22c12
nak profile example on README.
2026-06-04 16:13:13 -03:00
fiatjaf
c2902bfb5d
nak kind, and accept names on --kind flags.
2026-06-04 16:13:13 -03:00
fiatjaf
0f7268c071
preliminary (half-broken) podcast support.
2026-06-04 16:12:48 -03:00
Yasuhiro Matsumoto and fiatjaf
f7a00cec10
group chat: handle events synchronously in select, drop goroutine and mutex
2026-06-04 15:05:59 -03:00
52cf03d423
gift unwrap: override rumor pubkey from seal and recompute ID
...
NIP-17 requires clients verify that the kind:14 pubkey matches
the kind:13 pubkey to prevent sender impersonation. The CLI
gift unwrap path outputs the rumor as-is without setting the
pubkey from the verified seal or recomputing the event ID.
This mirrors nip59.GiftUnwrap() which does both operations.
The override is placed after the ZeroID sentinel check to
preserve decryption failure detection.
Fixes https://github.com/fiatjaf/nak/issues/110
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-06-04 09:16:03 -03:00
d0c291b25c
gift unwrap: verify seal signature before trusting pubkey
...
The CLI gift unwrap path skips seal signature verification that
nip59.GiftUnwrap() performs. Without this check, a forged seal
with an arbitrary pubkey would be trusted for decryption key
lookup and sender identity.
Fixes https://github.com/fiatjaf/nak/issues/110
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-06-04 09:16:03 -03:00
mattn and GitHub
6ee60cb197
Merge pull request #139 from mattn/fix/count-auth-handler-consistency
...
count: use Pool.AuthRequiredHandler to match other commands
2026-06-04 01:56:59 +00:00
mattn and GitHub
c2eb2d7bdd
Merge pull request #138 from mattn/fix/req-sync-save-error
...
req: propagate non-duplicate save errors when loading sync file
2026-06-04 01:56:34 +00:00
Yasuhiro Matsumoto
168a182d50
count: use Pool.AuthRequiredHandler to match other commands.
2026-06-04 10:55:14 +09:00
Yasuhiro Matsumoto
f202f038a4
req: propagate non-duplicate save errors when loading sync file.
2026-06-04 10:52:46 +09:00
mattn and GitHub
1043b2a7af
Merge pull request #137 from mattn/fix/req-tag-decode-dead-code
...
req: actually decode bech32 values for single-letter --tag flags
2026-06-04 01:51:56 +00:00
Yasuhiro Matsumoto
9c3b4b69b6
req: actually decode bech32 values for single-letter --tag flags.
2026-06-04 10:50:53 +09:00
mattn and GitHub
1c542deb5e
Merge pull request #136 from mattn/fix/group-chat-race
...
group: fix data race and out-of-bounds panic in chat command
2026-06-04 01:50:08 +00:00
Yasuhiro Matsumoto
cefc0b91d0
group: fix data race and out-of-bounds panic in chat command.
2026-06-04 09:49:48 +09:00
mattn and GitHub
8c97c7becb
Merge pull request #135 from mattn/refactor/lmdb-early-return
...
lmdb: invert configPath check to flatten setupLocalDatabases
2026-06-04 00:49:14 +00:00
mattn and GitHub
ada938c3a8
Merge pull request #134 from mattn/refactor/blossom-mirror-early-return
...
blossom: drop unnecessary else after early return in mirror command
2026-06-04 00:48:35 +00:00
mattn and GitHub
c2d74b846e
Merge pull request #133 from mattn/refactor/git-init-flatten-nesting
...
git: flatten nested ifs in ngit remote migration with guard clauses
2026-06-04 00:48:07 +00:00
Yasuhiro Matsumoto
06bd1ddb11
lmdb: invert configPath check to flatten setupLocalDatabases.
2026-06-04 09:48:03 +09:00
Yasuhiro Matsumoto
ebd93964de
blossom: drop unnecessary else after early return in mirror command.
2026-06-04 09:21:52 +09:00
Yasuhiro Matsumoto
a285ac6723
git: flatten nested ifs in ngit remote migration with guard clauses.
2026-06-04 09:20:14 +09:00
fiatjaf
e2f791ab85
fetch: support --auth.
v0.19.11
2026-06-02 21:35:58 -03:00
mattn and GitHub
ed5af14305
Merge pull request #130 from fiatjaf/go-tty-v2
...
go-tty: bump to v2.
2026-05-29 15:30:27 +00:00
Yasuhiro Matsumoto
e5f4b07c3d
go-tty: bump to v2.
2026-05-30 00:29:51 +09:00