Commit Graph

  • 160afb540c git: percent-decode relay and identifier segments in nostr:// master fiatjaf 2026-07-23 09:25:01 -03:00
  • 5a82298d95 event: exit with error when all the publishes fail. fiatjaf 2026-07-22 12:12:27 -03:00
  • a3890c4976 bunker: don't conflict with stored if only default --sec exists, not explicit. v0.20.2 fiatjaf 2026-07-22 08:31:15 -03:00
  • 1403c7d2cd fetch: use more outbox relays. fiatjaf 2026-07-21 20:42:52 -03:00
  • 6855722ba5 make the relay connection timeout configurable. fiatjaf 2026-07-21 20:41:45 -03:00
  • aac995714b timeout relay connections at 2s. fiatjaf 2026-07-21 18:51:41 -03:00
  • a9df9c6a21 groups: nip29 parenting. fiatjaf 2026-07-20 17:05:36 -03:00
  • 57be7627d4 git: allow pushing without updating the repository announcement. fiatjaf 2026-07-17 22:51:21 -03:00
  • 5b7f3eb4db git: 'patch pull' similar to 'pr pull'. fiatjaf 2026-07-16 17:08:02 -03:00
  • 6d4f4c03ec git: eliminate maintainer and web setup. fiatjaf 2026-07-16 15:36:59 -03:00
  • eb9afd0b54 pr: merge. fiatjaf 2026-07-16 15:32:42 -03:00
  • 9c35de2b02 nak git pr fiatjaf 2026-07-16 15:23:30 -03:00
  • b65683886b nak key public prints our key if given by --sec. fiatjaf 2026-07-15 16:30:58 -03:00
  • e36d546548 nip: eliminate wrong prints. v0.20.1 fiatjaf 2026-07-08 16:44:50 -03:00
  • b6fa2e4f64 Merge pull request #185 from mattn/fix/dekey-corrupted-error-message mattnandGitHub 2026-07-15 09:27:42 +00:00
  • df2aaefb6d gift, dekey: the key-mismatch error was wrapping a nil err with %w, producing a mangled message. Yasuhiro Matsumoto 2026-07-15 09:41:48 +09:00
  • 3e50a8cba7 Merge pull request #184 from mattn/fix/admin-body-leak mattnandGitHub 2026-07-15 09:27:10 +00:00
  • c525a25e51 admin: close the response body on error paths too, and don't use the response body as a format string. Yasuhiro Matsumoto 2026-07-15 08:35:58 +09:00
  • 1cb730f34d Merge pull request #183 from mattn/fix/podcast-format-strings mattnandGitHub 2026-07-15 09:26:33 +00:00
  • 1d6c352e92 podcast: pass the title into the format string, it was printing '%!s(MISSING)'. Yasuhiro Matsumoto 2026-07-15 08:33:49 +09:00
  • d3347ec2b0 Merge pull request #182 from mattn/fix/mcp-missing-separator mattnandGitHub 2026-07-15 09:26:00 +00:00
  • f288a59b3f mcp: separate the pubkey and content lines in read_events_from_relay output, they were fused together. Yasuhiro Matsumoto 2026-07-15 08:37:44 +09:00
  • 549903dff2 Merge pull request #181 from mattn/fix/podcast-author-no-role mattnandGitHub 2026-07-15 09:21:08 +00:00
  • 2298e37cdf podcast: don't drop authors whose p tag has no role element. Yasuhiro Matsumoto 2026-07-15 04:05:14 +09:00
  • f10555037e Merge pull request #180 from mattn/fix/git-download-stdout mattnandGitHub 2026-07-15 09:12:05 +00:00
  • e493fcdb03 git: don't fall through to writing a literal '-' file after download already printed the object to stdout. Yasuhiro Matsumoto 2026-07-15 09:06:58 +09:00
  • 03432424d2 Merge pull request #179 from mattn/fix/git-download-symref mattnandGitHub 2026-07-15 09:01:06 +00:00
  • ade6935c91 git: fix dead symref resolution branch in download, it was testing the always-empty ch instead of the symref lookup. Yasuhiro Matsumoto 2026-07-15 08:40:31 +09:00
  • a73979c570 Merge pull request #178 from mattn/fix/relay-exit-code mattnandGitHub 2026-07-15 08:52:06 +00:00
  • 5874bbe588 relay: exit with an error code when fetching the information document fails, like the other line-processing commands. Yasuhiro Matsumoto 2026-07-15 08:36:36 +09:00
  • 59bcd97617 Merge pull request #177 from mattn/fix/mcp-search-profile-limit mattnandGitHub 2026-07-15 08:44:04 +00:00
  • b420b81fd5 mcp: default search_profile limit to 10, with the flag omitted it was 0 and the loop stopped after the first result. Yasuhiro Matsumoto 2026-07-15 08:37:22 +09:00
  • 461e9c612e Merge pull request #176 from mattn/fix/lmdb-hints-unused mattnandGitHub 2026-07-15 08:34:15 +00:00
  • 49713588bd lmdb: actually assign the lmdb hints db to sys.Hints, it was created and discarded so hints never persisted. Yasuhiro Matsumoto 2026-07-15 08:39:29 +09:00
  • 80ce8059ea Merge pull request #175 from mattn/fix/git-init-interactive-discard mattnandGitHub 2026-07-15 08:13:28 +00:00
  • 631c57b4bf git: init --interactive was discarding the identifier and owner entered at the prompt when nip34.json already existed. Yasuhiro Matsumoto 2026-07-15 09:10:48 +09:00
  • 0d3574c9fe Merge pull request #174 from mattn/fix/filter-merge-kind mattnandGitHub 2026-07-15 07:26:13 +00:00
  • e3aba47046 filter: merge kind from the base event too, otherwise kind filters match against 0. Yasuhiro Matsumoto 2026-07-15 03:18:02 +09:00
  • b46e9c7dd5 Merge pull request #173 from mattn/fix/kind-overflow mattnandGitHub 2026-07-15 06:50:43 +00:00
  • 6bd793bea5 helpers: reject kind numbers above 65535 instead of silently truncating them to uint16. Yasuhiro Matsumoto 2026-07-15 08:35:16 +09:00
  • f96b9d458e Merge pull request #172 from mattn/fix/parse-event-id-note1 mattnandGitHub 2026-07-15 06:24:52 +00:00
  • d8e951e881 helpers: fix parseEventID rejecting note1 codes, nip19.Decode returns an EventPointer for those. Yasuhiro Matsumoto 2026-07-15 03:13:44 +09:00
  • 51f79e1d3c Merge pull request #171 from mattn/fix/blossom-download-stdout mattnandGitHub 2026-07-15 06:10:50 +00:00
  • 49f2839fb1 blossom: write downloaded blob bytes raw to stdout, Fprintln was printing them as a decimal byte array. Yasuhiro Matsumoto 2026-07-15 04:04:34 +09:00
  • 4911811e75 Merge pull request #170 from mattn/fix/key-validate-npub-panic mattnandGitHub 2026-07-15 06:02:36 +00:00
  • f1de27c88c key: fix panic in validate with npub input, nip19.Decode returns a nostr.PubKey not a bare [32]byte. Yasuhiro Matsumoto 2026-07-15 09:25:23 +09:00
  • 514fed0b79 Merge pull request #169 from mattn/fix/podcast-note1-panic mattnandGitHub 2026-07-15 06:00:05 +00:00
  • c1ebb829b9 podcast: fix panic on note1 targets, nip19.Decode returns an EventPointer for those. Yasuhiro Matsumoto 2026-07-15 08:34:31 +09:00
  • d4d808e9b5 Merge pull request #168 from mattn/fix/count-nil-relay mattnandGitHub 2026-07-15 05:46:49 +00:00
  • c9f7632571 count: don't ignore EnsureRelay errors, relay can be nil and Count would panic. Yasuhiro Matsumoto 2026-07-15 03:48:21 +09:00
  • 9101a3a543 Merge pull request #167 from mattn/fix/grasp-host-panic mattnandGitHub 2026-07-15 05:28:42 +00:00
  • d419b35b66 git: don't panic in graspServerHost when the server URL is empty or unparseable. Yasuhiro Matsumoto 2026-07-15 09:10:01 +09:00
  • fd8fdad26a Merge pull request #166 from mattn/fix/git-status-nil-state mattnandGitHub 2026-07-15 05:14:50 +00:00
  • 232ef8d02e git: fix nil dereference in status when the repository state isn't published, and don't panic slicing short/empty commit hashes. Yasuhiro Matsumoto 2026-07-15 09:08:55 +09:00
  • 09539a317f Merge pull request #165 from mattn/fix/git-pull-nil-state mattnandGitHub 2026-07-15 04:52:55 +00:00
  • bcc4f42cd7 git: fix nil dereference in pull when the repository has no published state event. Yasuhiro Matsumoto 2026-07-15 09:07:55 +09:00
  • 23bc1d3aa3 Merge pull request #164 from mattn/fix/key-decrypt-stdin mattnandGitHub 2026-07-15 04:29:43 +00:00
  • 469c99fb51 key: decrypt with the password as argument never read the ncryptsec from stdin, it was decrypting an empty string. Yasuhiro Matsumoto 2026-07-15 09:20:19 +09:00
  • f2638ab2de Merge pull request #163 from mattn/fix/verify-validate-args-sentinel mattnandGitHub 2026-07-15 04:19:08 +00:00
  • dd0b25816a verify, validate: fix the blank-stdin sentinel check, getJsonsOrBlank yields '{}' not '', so the argument forms never worked. Yasuhiro Matsumoto 2026-07-15 04:03:43 +09:00
  • 4fa512edf3 Merge pull request #162 from mattn/fix/event-outbox-relay-leak mattnandGitHub 2026-07-15 04:08:23 +00:00
  • 0055037943 event: don't let --outbox relays accumulated for one stdin event leak into the next ones. Yasuhiro Matsumoto 2026-07-15 03:46:08 +09:00
  • ab32de2fb3 Merge pull request #161 from mattn/fix/req-outbox-defs-race mattnandGitHub 2026-07-15 03:57:39 +00:00
  • 6a011ae7d9 req: hold the mutex for the whole defs read-modify-write in the outbox fan-out, reads and the Authors append were racing. Yasuhiro Matsumoto 2026-07-15 03:47:02 +09:00
  • 7c28e75c4b Merge pull request #160 from mattn/fix/connect-relays-race mattnandGitHub 2026-07-15 02:49:24 +00:00
  • 4e0b7ecc08 helpers: guard the shared relays slice and render lines with a mutex in connectToAllRelays, parallel connections were racing and could drop relays. Yasuhiro Matsumoto 2026-07-15 03:49:01 +09:00
  • 586a8920e2 Merge pull request #159 from mattn/fix/sync-neg-err-blocked mattnandGitHub 2026-07-15 02:28:23 +00:00
  • e1e8b11001 sync: wake up Receive when the relay answers NEG-ERR, it was blocked on the messages channel forever since the error was only checked before blocking. Yasuhiro Matsumoto 2026-07-15 09:18:02 +09:00
  • 61b20c6e7a Merge pull request #158 from mattn/fix/sync-deltas-close-on-error mattnandGitHub 2026-07-15 02:17:27 +00:00
  • 72e6e735f3 sync: close the Deltas channel on error returns too, otherwise the publisher goroutine hangs forever and the command never exits. Yasuhiro Matsumoto 2026-07-15 09:17:24 +09:00
  • 11abe3afca Merge pull request #157 from mattn/fix/fetch-note1-panic mattnandGitHub 2026-07-15 02:06:33 +00:00
  • 58cfd06eab fetch: fix panic on note1 codes, nip19.Decode returns an EventPointer for those. Yasuhiro Matsumoto 2026-07-15 03:12:56 +09:00
  • c16a456811 Merge pull request #156 from mattn/fix/blossom-check-hash-truncation mattnandGitHub 2026-07-15 01:55:31 +00:00
  • 5c754b1b4f blossom: fix check truncating hashes to 32 chars, a sha256 is 64 hex chars. Yasuhiro Matsumoto 2026-07-15 02:54:37 +09:00
  • 0ad2fa3e65 Merge pull request #155 from mattn/fix/curl-key-flags mattnandGitHub 2026-07-15 01:44:02 +00:00
  • 3fa1e2267e curl: fix completely broken command, it lost its key flags when they moved to the root command (which realCurl bypasses) and Run was eating the first flag as the program name. Yasuhiro Matsumoto 2026-07-15 09:16:15 +09:00
  • 97b544fb6e Merge pull request #154 from mattn/fix/bunker-concurrency mattnandGitHub 2026-07-15 01:33:15 +00:00
  • 44db7af6c0 bunker: fix concurrency bugs, config.Clients/newSecret/cancelPreviousBunkerInfoPrint were accessed from multiple goroutines without a mutex, and nostrconnect subscriptions forwarded events into the pool-owned channel which panics once the pool closes it. Yasuhiro Matsumoto 2026-07-15 09:46:46 +09:00
  • 34281a9c8e Merge pull request #153 from mattn/fix/nip22-parent-of-external-comment mattnandGitHub 2026-07-15 01:25:47 +00:00
  • 4f798759dd publish: reference the parent comment with an e tag when commenting under an external-content (I) thread, instead of pointing at the root i again. Yasuhiro Matsumoto 2026-07-15 02:17:47 +09:00
  • 198cbc6d4a Merge pull request #152 from mattn/fix/event-stale-tags mattnandGitHub 2026-07-15 01:16:38 +00:00
  • 5d45849595 event: reset tags with [:0] instead of clear(), which keeps the length and leaves phantom empty tags on subsequent stdin events. Yasuhiro Matsumoto 2026-07-15 03:45:11 +09:00
  • 8eb6b7303c Merge pull request #151 from mattn/fix/nip22-empty-relay-hint mattnandGitHub 2026-07-15 01:13:51 +00:00
  • 002763669b publish: don't put pubkey in the relay-hint position of NIP-22 E/e tags when there is no relay hint. Yasuhiro Matsumoto 2026-07-15 02:17:03 +09:00
  • ecb7514716 Merge pull request #150 from mattn/fix/wallet-nutzap-setup mattnandGitHub 2026-07-15 01:11:13 +00:00
  • b188d7f803 wallet: fix nutzap setup, --mint was read under the wrong name and never used, the mandatory pubkey tag was never set on the kind:10019, and --force didn't actually replace the private key. Yasuhiro Matsumoto 2026-07-15 09:19:36 +09:00
  • d79fd1ba59 Merge pull request #149 from mattn/fix/dekey-mismatched-key-kept mattnandGitHub 2026-07-15 01:08:34 +00:00
  • e62bf97acc dekey: don't keep a decrypted key that doesn't match the announced pubkey, it could end up being redistributed to other devices. Yasuhiro Matsumoto 2026-07-15 09:42:31 +09:00
  • c709647823 Merge pull request #148 from mattn/fix/key-combine-crash mattnandGitHub 2026-07-15 01:04:15 +00:00
  • 8563178bfd key: combine crashed with unbounded recursion when no valid pubkeys were given, and silently dropped unparseable keys from the result. Yasuhiro Matsumoto 2026-07-15 09:40:55 +09:00
  • d374fe9bd3 publish: allow kind:1111 comment, force when --comment is used instead of --reply. fiatjaf 2026-07-02 13:32:41 -03:00
  • 4ea0edc52b two blossom tweaks. fiatjaf 2026-07-02 00:47:24 -03:00
  • 6087c71072 publish: proper root/reply tags. fiatjaf 2026-07-02 00:18:30 -03:00
  • 0bcb90e37e publish: also read from arguments, not only stdin. fiatjaf 2026-07-01 23:56:04 -03:00
  • 98b7a1ae6a admin: color flag is an int now. fiatjaf 2026-06-25 19:00:44 -03:00
  • 46a809d284 admin: new nip86 "role" commands. fiatjaf 2026-06-25 17:54:52 -03:00
  • cbfc16f354 add --jq-raw flag to print jq string results unquoted, like jq -r Yasuhiro Matsumotoandfiatjaf 2026-06-23 08:37:26 +09:00
  • 62fa610a06 add --jq examples to README. v0.20.0 fiatjaf 2026-06-21 08:38:15 -03:00
  • 5afdce2672 profile: flags to print only specific things. fiatjaf 2026-06-21 08:26:08 -03:00
  • 4fd7400272 date function helpers in --jq fiatjaf 2026-06-20 21:29:30 -03:00