From 0787e93bf0888b7ee397c09ff44318d94f03d0bd Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 20 Jan 2026 14:24:51 +0000 Subject: [PATCH] docs(ai): update quickstart and contributing (agent) --- CONTRIBUTING.md | 2 +- README.md | 1 + docs/nostr-event-schemas.md | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bae3cba3..ef48651e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -66,7 +66,7 @@ To set up the project locally: npm run test:unit ``` -3. **Format & Lint**: +4. **Format & Lint**: ```bash npm run format npm run lint diff --git a/README.md b/README.md index 3d0cbec9..7d4d8846 100644 --- a/README.md +++ b/README.md @@ -146,6 +146,7 @@ Use the event builders in `js/nostrEventSchemas.js` to construct valid video not import { buildVideoPostEvent } from "./js/nostrEventSchemas.js"; const event = buildVideoPostEvent({ + // Provide your hex pubkey (not npub) pubkey: "your_pubkey_hex", created_at: Math.floor(Date.now() / 1000), dTagValue: "my-first-video", diff --git a/docs/nostr-event-schemas.md b/docs/nostr-event-schemas.md index 507bb1e1..5b58df44 100644 --- a/docs/nostr-event-schemas.md +++ b/docs/nostr-event-schemas.md @@ -147,6 +147,7 @@ import { updateWatchHistoryListWithDefaultClient } from "./nostrWatchHistoryFaca | Video post (`NOTE_TYPES.VIDEO_POST`) | `30078` | `['t','video']`, `['d', ]` plus optional schema append tags | JSON payload using Content Schema v3 (`version`, `title`, optional `url`, `magnet`, `thumbnail`, `description`, `mode`, `videoRootId`, `deleted`, `isPrivate`, `isNsfw`, `isForKids`, `enableComments`, `ws`, `xs`) | | NIP-94 mirror (`NOTE_TYPES.VIDEO_MIRROR`) | `1063` | Tags forwarded from `publishVideo` (URL, mime type, thumbnail, alt text, magnet) | Plain text alt description | | Repost (`NOTE_TYPES.REPOST`) | `6` | `['e', , ]` with optional address pointer `['a', , ]`, and `['p', ]` when the origin author is known; inherits schema append tags | JSON-serialized event being reposted | +| Video reaction (`NOTE_TYPES.VIDEO_REACTION`) | `7` | `['e', , ]` or `['a', , ]`, and `['p', ]` | Reaction content (e.g. `+`, `-`, or emoji) | | Video comment (`NOTE_TYPES.VIDEO_COMMENT`) | `1111` | NIP-22 root scope tags `['A'\|`E`\|`I`, , ?], `['K', ]`, and `['P', , ?]` plus parent metadata `['E'\|`I`, , ?, ], `['K', ]`, `['P', , ?]`; inherits schema append tags | Plain text body sanitized to valid UTF-8 | | DM attachment (`NOTE_TYPES.DM_ATTACHMENT`) | `15` | `['p', ]`, `['x', ]`, `['url', ]`, optional `['name', ]`, `['type', ]`, `['size', ]`, optional `['k', ]`; inherits schema append tags | Empty content; attachment metadata is represented as tags | | DM read receipt (`NOTE_TYPES.DM_READ_RECEIPT`) | `20001` | `['p', ]`, `['e', ]`, optional `['k', ]`; inherits schema append tags | Empty content; ephemeral receipt for message activity |