mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 21:02:28 +00:00
This change resolves several issues exposed by CI failures: 1. **Refactor**: Integrated `RelayBatchFetcher` into `NostrClient` to handle incremental list fetching. 2. **Fix**: Exported `resolveSignerCapabilities` from `SignerManager` and imported it in `client.js` to fix reference error. 3. **Fix**: Re-implemented `registerPrivateKeySigner` in `NostrClient` using `createNsecAdapter` correctly (async/await). 4. **Fix**: Updated `SignerManager` to correctly call `requestEnablePermissions` (passing `window.nostr`) and verify response (`.ok`). 5. **Fix**: Updated `SignerManager` to populate individual permissions in cache to satisfy tests. 6. **Fix**: Added `extensionPermissionCache` getter to `NostrClient` for test compatibility. 7. **Test Fix**: Updated mocks in `tests/nostr-login-permissions.test.mjs` to match new architecture. Co-authored-by: PR0M3TH3AN <[email protected]>