Commit Graph
3259 Commits
Author SHA1 Message Date
thePR0M3TH3AN 9ea9fe2f08 Add DM attachment upload and preview flow 2026-01-19 12:51:34 -05:00
thePR0M3TH3AN fdf0c185be Merge pull request #1395 from PR0M3TH3AN/codex/add-zap-composer-ui-and-lnurl-integration
Add DM Zap composer + LNURL resolution and zap request/receipt support (kinds 9734/9735)
2026-01-19 11:58:35 -05:00
thePR0M3TH3AN d082df8e41 Add DM zap composer and zap request support 2026-01-19 11:29:55 -05:00
thePR0M3TH3AN 26486ca57a Merge pull request #1392 from PR0M3TH3AN/codex/update-privacy-mode-and-profile-controls
Show DM privacy mode and add DM relay hint controls (kind:10050)
2026-01-19 10:57:42 -05:00
thePR0M3TH3AN 924ed9b482 Add DM privacy indicators and relay hint publishing 2026-01-19 10:56:54 -05:00
thePR0M3TH3AN 76566651a3 Merge pull request #1388 from PR0M3TH3AN/ai/reproducers-repost-comments-20250222-15793865835676794725
Add reproducer for repost comment visibility bug
2026-01-19 10:35:09 -05:00
thePR0M3TH3AN 6ab445011c Merge pull request #1390 from PR0M3TH3AN/ai/doc-nostr-client-20231026-4334329458905976061
chore(ai): document js/nostr/client.js
2026-01-19 10:34:12 -05:00
thePR0M3TH3AN e1d58a2530 Merge pull request #1391 from PR0M3TH3AN/codex/prioritize-kind-10050-relays-in-dms
Prioritize NIP-17 relay hints for DM send/subscribe
2026-01-19 10:31:29 -05:00
thePR0M3TH3AN 51b550adaa Improve DM relay selection fallback handling 2026-01-19 10:31:13 -05:00
google-labs-jules[bot] 38f1594243 chore(ai): doc js/nostr/client.js (agent)
- Added JSDoc comments to `NostrClient` class and methods.
- Added JSDoc comments to `EventsCacheStore`.
- Created `docs/nostr-client-overview.md` with high-level documentation.
- Fixed a race condition in `tests/nostr-delete-flow.test.mjs`.
2026-01-19 15:18:36 +00:00
thePR0M3TH3AN 202b6d8852 Merge pull request #1389 from PR0M3TH3AN/codex/add-nip-17-support-in-composer
Add NIP-17 DM delivery option with gift-wrap sending flow
2026-01-19 10:05:40 -05:00
thePR0M3TH3AN 4566c96330 Add NIP-17 DM delivery option 2026-01-19 10:05:00 -05:00
google-labs-jules[bot] c3f19f4bf5 add reproducer for repost comment visibility bug
This commit adds a minimal reproducer script that demonstrates a bug where comments on an original video are hidden when viewing that video via a Repost (Kind 6).

The issue stems from `normalizeCommentTarget` using the Repost's metadata (Kind 6, Reposter Pubkey) instead of the Original Video's metadata to generate the comment filter descriptor. This causes valid comments (which tag the Original Video) to be filtered out by `isVideoCommentEvent`.

Added:
- `examples/reproducers/2-repost-comment-visibility-bug/reproduce_issue.js`
- `examples/reproducers/2-repost-comment-visibility-bug/README.md`
2026-01-19 15:00:15 +00:00
thePR0M3TH3AN 7930a0fce8 Merge pull request #1387 from PR0M3TH3AN/codex/add-unwrap-logic-for-giftwraps
Unwrap kind:1059 gift-wrap DMs and normalize inner rumor timestamps
2026-01-19 09:48:21 -05:00
thePR0M3TH3AN ef8307c560 Normalize giftwrap DM timestamps 2026-01-19 09:47:57 -05:00
thePR0M3TH3AN 1b4b4cf94a Merge pull request #1386 from PR0M3TH3AN/codex/extend-crypto-worker-for-nip-44-support
NIP‑44 verify‑before‑decrypt in DM worker (surface signature failures, persist encryption_scheme)
2026-01-19 09:41:10 -05:00
thePR0M3TH3AN 4cc51d7a79 Add NIP-44 verification to DM decrypt worker 2026-01-19 09:40:51 -05:00
thePR0M3TH3AN 2b79021184 Merge pull request #1385 from PR0M3TH3AN/codex/add-tests-for-normalization-and-integration
Add DM normalization, DB persistence, and integration tests for direct messages
2026-01-19 09:32:35 -05:00
thePR0M3TH3AN 8f04692165 Add DM normalization and integration tests 2026-01-19 09:32:14 -05:00
thePR0M3TH3AN 47b312b2a8 Merge pull request #1383 from PR0M3TH3AN/ai/lint-20250222-8105466209014839431
chore(ai): apply formatting/lint autofixes
2026-01-19 09:25:53 -05:00
thePR0M3TH3AN 3376185276 Merge pull request #1376 from PR0M3TH3AN/ai/tests-core-modules-20250226-2648005617024541031
Add unit tests for core modules (cache, sessionActor, r2Service)
2026-01-19 09:24:16 -05:00
thePR0M3TH3AN 5471789826 Merge pull request #1375 from PR0M3TH3AN/ai/deps-scan-13927014258585276675
chore(ai): dependency scan results
2026-01-19 09:23:53 -05:00
thePR0M3TH3AN d5b4909be0 Merge pull request #1384 from PR0M3TH3AN/codex/extend-profile-modal-logic-for-actions
Profile modal: add DM recipient context, relay hints & actions
2026-01-19 09:22:53 -05:00
thePR0M3TH3AN eb52fbdf11 Add DM recipient handling in profile modal 2026-01-19 09:22:35 -05:00
thePR0M3TH3AN dc4d501a6b Merge pull request #1374 from PR0M3TH3AN/ai/interop-tests-20260119-1042596527916415444
Add interop-test.mjs for Nostr protocol verification
2026-01-19 09:21:42 -05:00
thePR0M3TH3AN e96a8ff5c6 Merge pull request #1373 from PR0M3TH3AN/telemetry-and-aggregation-5517299699870716397
Add privacy-preserving telemetry and error aggregation script
2026-01-19 09:21:17 -05:00
thePR0M3TH3AN e9ce138e71 Merge pull request #1372 from PR0M3TH3AN/ai/schema-validate-20250222-1045837655123295994
chore(ai): event schema validation tool + fixes
2026-01-19 09:20:48 -05:00
google-labs-jules[bot] 9adeb0e6e5 chore(ai): apply formatting/lint autofixes
Run `npm run format` and `npm run lint`.
Fix stylelint configuration to correctly parse variables with units in their names.
Migrate raw CSS measurements to tokens in `css/tokens.css` and update usages in `css/tailwind.source.css` and HTML templates.
Improve `scripts/check-design-tokens.mjs` to handle variable names with unit-like suffixes.

Files changed:
- css/tailwind.source.css (formatted and fixed lint)
- css/tokens.css (added tokens)
- stylelint.config.cjs (fixed regex)
- scripts/check-design-tokens.mjs (improved detection logic)
- components/profile-modal.html (fixed arbitrary values)
- index.html (fixed arbitrary values)
2026-01-19 14:12:29 +00:00
thePR0M3TH3AN cd72b72ea1 Merge pull request #1382 from PR0M3TH3AN/codex/add-notification-manager-for-conversations
Add DM notification manager to track opened/downloaded timestamps and unseen counts
2026-01-19 08:59:58 -05:00
thePR0M3TH3AN ab286d2bb3 Add DM notification manager for seen state 2026-01-19 08:59:41 -05:00
thePR0M3TH3AN 4b8f58f54c Merge pull request #1381 from PR0M3TH3AN/codex/subscribe-to-kind-4-events-for-messages
Add DM decrypt worker, normalize & persist DM records, and track downloaded_until
2026-01-19 08:50:18 -05:00
thePR0M3TH3AN b05e898391 Add worker DM decrypt and persistence 2026-01-19 08:49:58 -05:00
thePR0M3TH3AN 761081883d Merge pull request #1380 from PR0M3TH3AN/codex/implement-dm-compose-flow-for-unsigned-events
Implement worker-based NIP-04 DM sending with signing adapter and persistence
2026-01-19 08:40:01 -05:00
thePR0M3TH3AN 56f2c1807c Implement worker-based NIP-04 DM sending 2026-01-19 08:39:43 -05:00
thePR0M3TH3AN d87c5dbbcc Merge pull request #1379 from PR0M3TH3AN/codex/create-signingadapter-contract
Add SigningAdapter (NIP‑07 / dev / test) and wire DM composer to use it
2026-01-19 08:24:24 -05:00
thePR0M3TH3AN ce396a1971 Add signing adapters and DM composer hook 2026-01-19 08:22:46 -05:00
thePR0M3TH3AN b59578e888 Merge pull request #1378 from PR0M3TH3AN/codex/add-dm-specific-nostr-service
Add DM-specific Nostr relay service
2026-01-19 08:12:23 -05:00
thePR0M3TH3AN 2e07ddb35f Add DM-specific nostr relay service 2026-01-19 08:12:03 -05:00
thePR0M3TH3AN 69b7232019 Merge pull request #1377 from PR0M3TH3AN/codex/add-indexeddb-layer-with-migration-strategy
Add IndexedDB helpers for direct message storage
2026-01-19 08:06:08 -05:00
thePR0M3TH3AN f4672a0445 Add IndexedDB storage for DM data 2026-01-19 08:05:34 -05:00
google-labs-jules[bot] 41da0a8361 test(ai): add unit tests for cache, sessionActor, and r2Service (agent)
- Added `tests/state/cache.test.mjs` to test profile persistence and URL health caching.
- Added `tests/nostr/sessionActor.test.mjs` to test session key encryption/decryption and storage.
- Added `tests/services/r2Service.test.mjs` to test R2 settings management and bucket configuration.
- Exposed `__testExports` in `js/nostr/sessionActor.js` to allow testing of private helper functions.
- Used `tests/test-helpers/setup-localstorage.mjs` to mock browser environments in all new tests.
2026-01-19 11:31:46 +00:00
google-labs-jules[bot] 11f7540c34 chore(ai): dependency scan and report
- Performed security and dependency scan.
- Created `artifacts/npm-audit.json` (0 vulnerabilities).
- Created `artifacts/npm-outdated.json`.
- Created `artifacts/proposed_issues.md` detailing required major upgrades.
- No safe minor/patch upgrades were found (dependencies are locked or up-to-date within range).
- `nostr-tools` is up-to-date (2.19.4).
2026-01-19 09:32:01 +00:00
google-labs-jules[bot] 9d97d8dcf8 feat(agent): add interop-test.mjs for Nostr protocol verification
- Implements `scripts/agent/interop-test.mjs` using Playwright to run integration tests in a browser context.
- Tests include:
  - Publishing `VIDEO_POST` (Kind 30078) events using schema builders.
  - Verifying event roundtrip (fetch by ID).
  - Publishing `VIEW_EVENT` (Watch History).
  - Sending and decrypting Encrypted DMs (NIP-04/NIP-44) using ephemeral keys.
- Uses local `simple-relay.mjs` (port 8008) and Python HTTP server (port 8001) to ensure environment isolation.
- Generates artifacts in `artifacts/` folder including logs and reports.
2026-01-19 07:30:44 +00:00
google-labs-jules[bot] 980075981a feat: add privacy-preserving telemetry and error aggregation script
- Added `scripts/agent/telemetry.mjs` to aggregate errors from log files (test_output.log, etc.).
- Implemented robust PII sanitization (IPv4, emails, hex keys, Bech32 keys, and file paths).
- Script generates a JSON artifact (`artifacts/error-aggregates.json`) and a Markdown report (`ai/reports/telemetry-YYYYMMDD.md`).
- Aggregation groups errors by sanitized message/stack trace fingerprint.
2026-01-19 06:20:13 +00:00
google-labs-jules[bot] 4d2bb8bf3d chore(ai): event schema validation tool + fixes
- Added `scripts/agent/validate-events.mjs` to validate event builders against schemas.
- Fixed `NOTE_TYPES.REPOST` schema content format (json instead of empty).
- Added `NOTE_TYPES.MUTE_LIST` and `buildMuteListEvent`.
- Added `buildProfileMetadataEvent` to standardise Kind 0 creation.
- Updated `js/ui/profileModalController.js` to use `buildProfileMetadataEvent`.
- Updated `js/userBlocks.js` to use `buildMuteListEvent` for publishing mute list snapshots.
- Updated `docs/nostr-event-schemas.md` with new schemas and builders.
2026-01-19 05:47:37 +00:00
thePR0M3TH3AN 474071e84a Merge pull request #1371 from PR0M3TH3AN/codex/add-notificationcenter-component-with-filters
Add DM NotificationCenter with filters, grouping, and NotificationItem
2026-01-18 23:53:59 -05:00
thePR0M3TH3AN f9c351e157 Add notification center filters and grouping 2026-01-18 23:51:52 -05:00
thePR0M3TH3AN 97043ce2c0 Merge pull request #1370 from PR0M3TH3AN/codex/add-ui-elements-to-profile-modal
Add DM controls to profile modal
2026-01-18 23:45:14 -05:00
thePR0M3TH3AN c70e17b9d0 Add DM controls to profile modal 2026-01-18 23:44:54 -05:00
thePR0M3TH3AN 96f727ac54 Merge pull request #1369 from PR0M3TH3AN/codex/implement-composer-with-ui-features
DM composer: add attach/privacy UI, keyboard + ARIA, message status & new-messages banner
2026-01-18 23:39:01 -05:00