chore(ai): event schema validation tool + fixes

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-01-31 06:53:22 +00:00
1 parent 05a3aa2b1f
commit ce8c5931e5
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -2079,7 +2079,7 @@ export class NostrClient {
}
const permissionResult = await this.ensureExtensionPermissions(
DEFAULT_NIP07_CORE_METHODS,
DEFAULT_NIP07_PERMISSION_METHODS,
{ context: "login", logMetrics: true, showStatus: false },
);
if (!permissionResult.ok) {
+4 -1
View File
@@ -251,13 +251,16 @@ test(
let fetchCalls = 0;
nostrClient.fetchListIncrementally = async () => {
fetchCalls += 1;
return fetchCalls === 1 ? [event] : [];
// Always return the event so the second load call (with permissions) finds data
return [event];
};
nostrClient.relays = relayUrls;
nostrClient.writeRelays = relayUrls;
const decryptCalls = [];
window.nostr = {
enable: async () => true,
getPublicKey: async () => pubkey,
nip04: {
decrypt: async () => {
decryptCalls.push("nip04");