Commit Graph
6138 Commits
Author SHA1 Message Date
thePR0M3TH3AN c7cbe086bc Merge pull request #2728 from PR0M3TH3AN/test/static-modal-accessibility-13129271747123339314
🧪 Add tests for staticModalAccessibility.js
2026-02-26 13:02:39 -05:00
thePR0M3TH3AN 3bfa2d8a83 Merge pull request #2733 from PR0M3TH3AN/perf-nostr-service-incremental-updates-3861441146552926280
⚡ Optimize video subscription updates using incremental processing
2026-02-26 13:02:32 -05:00
thePR0M3TH3AN f536c71917 Merge pull request #2721 from PR0M3TH3AN/test/comment-avatar-16584237555601496118
Add unit tests for commentAvatar.js
2026-02-26 13:02:25 -05:00
thePR0M3TH3AN c28d1e2c2b Merge pull request #2734 from PR0M3TH3AN/refactor/revert-modal-rendering-15253432646628070109
Refactor RevertModal rendering logic
2026-02-26 13:00:38 -05:00
thePR0M3TH3AN c60eada1a6 Merge pull request #2735 from PR0M3TH3AN/refactor-videomodal-comments-13431359782891705470
🧹 Refactor VideoModal to extract CommentsController logic
2026-02-26 13:00:27 -05:00
thePR0M3TH3AN 6692fe1a30 Merge pull request #2732 from PR0M3TH3AN/fix/dm-decryptor-race-order-8056308351647388512
⚡ Use ordered race for parallel DM decryption to respect preference
2026-02-26 13:00:18 -05:00
google-labs-jules[bot]andPR0M3TH3AN feb7ad765a Refactor VideoModal to delegate comments to CommentsController
Move comment-related logic and state from VideoModal.js to CommentsController.js.
Split CommentsController into CommentsController (orchestration), CommentsListRenderer (DOM management), and CommentNodeFactory (element creation) to maintain modularity and adhere to file size limits.
Update VideoModal to initialize and destroy CommentsController correctly.
Fix minor lint issues.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-26 17:53:34 +00:00
google-labs-jules[bot]andPR0M3TH3AN 2703382ab4 Refactor RevertModal rendering logic into separate module
Extracted excessive DOM rendering logic from `RevertModal.js` into `revertModalRenderers.js`.
This improves code readability and maintainability by separating the view construction from the modal logic.
Added unit tests for the new renderers using a lightweight DOM mock.
Replaced local d-tag extraction with shared utility `getDTagValueFromTags`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-26 17:50:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN 6e42d2c97c perf: Optimize nostrService video subscription updates
Optimizes the `subscribeVideos` callback in `js/services/nostrService.js` to handle video updates incrementally, avoiding O(N*M) complexity during high-volume updates (e.g., initial load).

Changes:
- Modified `js/nostr/videoEventBuffer.js` to include deleted videos in the flushed batch, allowing consumers to handle deletions incrementally.
- Updated `js/services/nostrService.js` to process `updatedVideos` incrementally:
  - Separates updates into active and deleted.
  - Updates `this.videosMap` directly (removing deleted, adding/updating active).
  - Filters and caches only the active updates (O(M)).
  - Emits `videos:updated` with the full sorted list (derived from the updated map) to maintain API contract with consumers.
  - Persists the full sorted list to localStorage.

This reduces the per-batch overhead significantly by avoiding O(N) filtering and map reconstruction for every batch of updates.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-26 17:48:37 +00:00
google-labs-jules[bot]andPR0M3TH3AN 56ffdb693d Refactor decryptLegacyDm to use ordered parallel race for decryptors.
Replaces Promise.any with raceOrdered utility to respect decryptor preference order while maintaining parallel execution.
Adds regression test for order preference.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-26 17:45:31 +00:00
google-labs-jules[bot]andPR0M3TH3AN 7ec726aad1 Add tests for staticModalAccessibility.js
- Create `tests/static-modal-accessibility.test.mjs` to test `prepareStaticModal`, `openStaticModal`, and `closeStaticModal`.
- Tests cover element resolution, DOM state updates (classes, attributes), and edge cases (missing elements, null targets).
- Use `jsdom` to mock the browser environment.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-26 17:42:07 +00:00
google-labs-jules[bot]andPR0M3TH3AN b1b797a12b Add unit tests for commentAvatar.js utility functions
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-26 17:36:00 +00:00
thePR0M3TH3AN 9913e484ab chore: add torch update backup snapshots 2026-02-26 08:43:59 -05:00
thePR0M3TH3AN 865dbe841c torch: skip self-copy during update in self-host installs 2026-02-26 08:43:29 -05:00
thePR0M3TH3AN dcff2e7646 chore(torch): track update backup snapshot 2026-02-25 21:12:41 -05:00
thePR0M3TH3AN 25b590647b chore(torch): update package and sanitize colon timestamps 2026-02-25 21:12:08 -05:00
thePR0M3TH3AN 5e01d04e1d update 2026-02-25 15:21:24 -05:00
thePR0M3TH3AN 3ca420a9df Merge pull request #2712 from PR0M3TH3AN/agents/daily/protocol-research-agent-2026-02-25-5019456252140959148
Daily Agent: Protocol Research & Inventory
2026-02-25 13:36:24 -05:00
google-labs-jules[bot]andPR0M3TH3AN c75ed4d431 feat(protocol): Create initial protocol inventory and report
- Create `PROTOCOL_INVENTORY.md` to track non-NIP dependencies (BitTorrent, HLS, LNURL, HTTP Auth).
- Generate `reports/protocol/protocol-report-2026-02-25.md` with findings and recommendations.
- Fix linting false positives by excluding `torch/` and `dev/` directories from design system checks.
- Add `protocol-research-agent` task log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-25 18:25:04 +00:00
thePR0M3TH3AN 51f37ece22 docs: add TORCH memory integration guidance 2026-02-25 13:12:07 -05:00
thePR0M3TH3AN 0f89cc1524 chore(torch): migrate to new TORCH system and remove legacy agent stack 2026-02-25 12:58:46 -05:00
thePR0M3TH3AN 8fd371b36c Merge pull request #2711 from PR0M3TH3AN/agents/daily/audit-agent-run-1785131454333457700
audit-agent: Daily audit run
2026-02-25 12:38:37 -05:00
google-labs-jules[bot]andPR0M3TH3AN be5ad33918 audit-agent: Daily audit run
- Ran audit scripts: check-file-size, check-innerhtml, lint
- Generated artifacts/audit/2026-02-25/
- Created docs/agents/task-logs/daily/2026-02-25_..._audit-agent_completed.md

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-25 17:07:41 +00:00
thePR0M3TH3AN c0edc196ef Merge pull request #2710 from PR0M3TH3AN/agents/daily/ci-health-agent-2026-02-25-7092880812493571695
fix(test): add wait for logout state in login-flows e2e
2026-02-25 11:33:00 -05:00
google-labs-jules[bot]andPR0M3TH3AN b8cf1315e1 fix(test): add wait for logout state in login-flows e2e
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-25 16:11:48 +00:00
thePR0M3TH3AN 8102fb97ee Merge pull request #2695 from PR0M3TH3AN/agents/weekly/smoke-agent-harness-11898996381844705269
test(smoke): add smoke-test.mjs harness
2026-02-25 10:36:23 -05:00
thePR0M3TH3AN 9e33fe74ba Merge branch 'unstable' into agents/weekly/smoke-agent-harness-11898996381844705269 2026-02-25 10:36:07 -05:00
thePR0M3TH3AN 7ec86487f5 Merge pull request #2693 from PR0M3TH3AN/agents/daily/scheduler-update-agent-2026-02-23-1075521348879577769
docs(agents): scheduler-update-agent sync (no changes)
2026-02-25 10:35:31 -05:00
thePR0M3TH3AN 4ab759c0bd Merge branch 'unstable' into agents/daily/scheduler-update-agent-2026-02-23-1075521348879577769 2026-02-25 10:35:24 -05:00
thePR0M3TH3AN 2901c0e5c4 Merge pull request #2690 from PR0M3TH3AN/agents/daily/test-audit-agent-2026-02-23-4813203485121112615
Daily Test Audit Agent Execution
2026-02-25 10:34:58 -05:00
thePR0M3TH3AN 887c802436 Merge branch 'unstable' into agents/daily/test-audit-agent-2026-02-23-4813203485121112615 2026-02-25 10:34:50 -05:00
thePR0M3TH3AN cd1e14ca67 Merge pull request #2685 from PR0M3TH3AN/agents/daily/style-agent-2019821918795786941
chore(daily): execute style-agent
2026-02-25 10:34:25 -05:00
thePR0M3TH3AN faf71804f3 Merge pull request #2684 from PR0M3TH3AN/agents/daily/scheduler-update-agent-2026-02-23_15-01-13-11531375802940964250
docs(agents): sync scheduler rosters — 2026-02-23
2026-02-25 10:34:09 -05:00
thePR0M3TH3AN a169a05a29 Merge pull request #2680 from PR0M3TH3AN/agents/daily/scheduler-update-2026-02-23-6263634357757049561
docs(agents): sync scheduler rosters
2026-02-25 10:30:49 -05:00
thePR0M3TH3AN 149ace149a Merge pull request #2678 from PR0M3TH3AN/agents/daily/scheduler-update-agent-2026-02-22-9351640604648205171
docs(agents): sync scheduler rosters — 2026-02-22
2026-02-25 10:30:24 -05:00
thePR0M3TH3AN 824e9edd65 Merge branch 'unstable' into agents/daily/scheduler-update-agent-2026-02-22-9351640604648205171 2026-02-25 10:30:15 -05:00
thePR0M3TH3AN b26355dd95 Merge pull request #2709 from PR0M3TH3AN/agents/daily/audit-agent-2026-02-25-17655067361694083380
Daily Agent: audit-agent (2026-02-25)
2026-02-25 10:29:51 -05:00
thePR0M3TH3AN 80bd498624 Merge pull request #2708 from PR0M3TH3AN/agents/weekly/weekly-synthesis-agent-20260225-15317277716215461345
Weekly Agent: weekly-synthesis-agent execution
2026-02-25 10:29:23 -05:00
google-labs-jules[bot]andPR0M3TH3AN 4e78b3878d Daily Agent: audit-agent
Completed audit run for 2026-02-25.

- Ran file size check (43 grandfathered files, 0 new violations).
- Ran innerHTML check (37 assignments).
- Ran lint (0 failures).
- Generated summary report.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-25 14:56:48 +00:00
google-labs-jules[bot]andPR0M3TH3AN be836f9f94 Weekly Agent: weekly-synthesis-agent execution
Executed the weekly-synthesis-agent as per the scheduler flow.
Generated `ai/reports/weekly-20260225.md` summarizing the week's activity.
Created scheduler log `docs/agents/task-logs/weekly/2026-02-25_13-34-49_weekly-synthesis-agent_completed.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-25 13:37:50 +00:00
thePR0M3TH3AN 10148d043f Merge pull request #2707 from PR0M3TH3AN/agents/weekly/test-coverage-agent-5998265445794573406
Add unit tests for js/nostr/utils.js (test-coverage-agent)
2026-02-24 21:59:55 -05:00
thePR0M3TH3AN 7a9b0af9f0 Merge pull request #2706 from PR0M3TH3AN/agents/daily/todo-triage-cleanup-2026-02-25-11728725008496168886
chore(ai): daily todo triage execution 2026-02-25
2026-02-24 21:58:37 -05:00
thePR0M3TH3AN 02adfaadaf Merge pull request #2705 from PR0M3TH3AN/agents/daily/todo-triage-agent-2026-02-25-8443140897808462427
chore(agent): run daily todo-triage-agent
2026-02-24 21:57:42 -05:00
thePR0M3TH3AN c58edaf42a Merge pull request #2704 from PR0M3TH3AN/agents/daily/todo-triage-20260224-2093674295234726251
chore(scheduler): Execute todo-triage-agent (2026-02-24)
2026-02-24 21:56:16 -05:00
thePR0M3TH3AN e722842156 Merge pull request #2703 from PR0M3TH3AN/agents/daily/ci-health-agent-2026-02-24-8113304937672784941
chore(ai): CI health fixes (flaky tests)
2026-02-24 21:55:24 -05:00
google-labs-jules[bot]andPR0M3TH3AN 6058b632ba test(ai): add unit tests for js/nostr/utils.js (test-coverage-agent)
Added focused unit tests for `getActiveKey` in `js/nostr/utils.js` to improve test coverage.
This module was identified as having 0% coverage.
The new tests cover all branches:
- ROOT key generation
- pubkey:d key generation
- LEGACY key fallback
- Handling of missing/empty tags

Artifacts:
- tests/nostr/utils.test.mjs
- docs/agents/task-logs/weekly/2026-02-25_test-coverage-agent_completed.md

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-25 01:32:06 +00:00
google-labs-jules[bot]andPR0M3TH3AN 80f76ee1ae chore(ai): remove stale TODO issue and log daily triage
Deleted issues/todo-hashtag-preferences-unit-test.md after verifying the referenced TODO and commented-out code in tests/hashtag-preferences.test.mjs are no longer present.
Generated artifacts/todos.txt inventory.
Created completion log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-25 00:58:24 +00:00
google-labs-jules[bot]andPR0M3TH3AN b4a7678537 chore(agent): run daily todo-triage-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-25 00:04:23 +00:00
google-labs-jules[bot]andPR0M3TH3AN a0ae5decc1 chore(scheduler): Execute todo-triage-agent (2026-02-24)
Executed todo-triage-agent as part of daily roster.
- Generated inventory in artifacts/todos.txt
- Found 0 actionable items (cleaned artifacts of vendor/docs matches).
- Created completion log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-24 21:42:43 +00:00
google-labs-jules[bot]andPR0M3TH3AN 881e31a661 chore(ai): CI health fixes (flaky tests)
Fixed flaky test in tests/hashtag-preferences.test.mjs caused by mock timing issue where load() triggered concurrent fetches, breaking the assumption of sequential calls. Updated assertions to robustly handle multi-kind fetching.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-24 20:51:19 +00:00