mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
- Created `scripts/agent/validate-events.mjs` to validate event builders against schemas. - Refactored `buildVideoPostEvent` in `js/nostrEventSchemas.js` to automatically generate the required `s` (storage pointer) tag if missing, using `infoHash`, `url`, or `videoRootId`. - Verified that `js/utils/storagePointer.js` exists and is imported correctly. - Updated `docs/nostr-event-schemas.md` to reflect the auto-generation behavior. - Verified fixes with `scripts/agent/validate-events.mjs` and existing unit tests. Co-authored-by: PR0M3TH3AN <[email protected]>