Refactor NostrClient into specialized managers

- Extracted persistence logic to `PersistenceManager`
- Extracted connection/pool logic to `ConnectionManager`
- Extracted signer/auth logic to `SignerManager`
- Updated `NostrClient` to delegate to these managers
- Fixed `SignerManager` implementation gaps (NIP-46 connect/restore)
- Verified with `tests/nostr/client.test.mjs`

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-08 20:42:25 +00:00
1 parent 1fbee4219b
commit 8b1bd5507d
7 files changed
+2776 -4224

No files matched your search

+1 -1
View File
@@ -157,7 +157,7 @@ describe("NostrClient", () => {
assert.ok(sub);
// Wait for buffer flush (75ms debounce)
await new Promise(r => setTimeout(r, 150));
await new Promise(r => setTimeout(r, 300));
assert.ok(capturedVideo, "Video should be captured after flush");
assert.equal(capturedVideo.id, "v1");