Commit Graph
45 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 29982cfb63 perf: visibility-gate explore data intervals and fix lint crash
- Modifies `js/services/exploreDataService.js` to prevent starting background intervals if the document is hidden at initialization.
- Updates `scripts/check-hex.js` to increase max buffer size and exclude `js/webtorrent.min.js` to prevent `ENOBUFS` crashes.
- Adds `perf/hits-2026-02-17.json` inventory.
- Adds `daily-perf-report-2026-02-17.md` report.
- Adds `docs/agents/task-logs/daily/2026-02-17_06-45-57_perf-agent_completed.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-17 06:48:22 +00:00
google-labs-jules[bot]andPR0M3TH3AN 16de3802ab [security] replace innerHTML usages in js/ui/subscriptionHistoryController.js
- Migrated 6 out of 7 innerHTML assignments to safe DOM APIs (createElement, textContent, replaceChildren).
- Reduced innerHTML baseline for the file from 7 to 1.
- Updated scripts/check-innerhtml.mjs baseline.
- Verified with lint, unit tests, and frontend verification.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 18:51:44 +00:00
google-labs-jules[bot]andPR0M3TH3AN cfe74b6ff2 docs: document moderationService.js and add overview
- Added JSDoc to ModerationService class and methods.
- Added architectural overview in docs/moderationService-overview.md.
- Created task log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 18:03:17 +00:00
google-labs-jules[bot]andPR0M3TH3AN cfd134443a chore(deps): deps-security-agent execution 2026-02-16
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 12:54:06 +00:00
thePR0M3TH3AN e378c75586 Merge pull request #2549 from PR0M3TH3AN/agents/daily/const-refactor-409004041836644120
[constants] Refactor 5000ms literals to SHORT_TIMEOUT_MS
2026-02-16 06:17:49 -05:00
thePR0M3TH3AN 8f24dd91c2 Merge pull request #2548 from PR0M3TH3AN/agents/daily/content-audit-agent-8847531088272676405
daily: content-audit-agent
2026-02-16 06:17:25 -05:00
google-labs-jules[bot]andPR0M3TH3AN 8762220cac [constants] refactor 5000 to SHORT_TIMEOUT_MS
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 07:07:16 +00:00
google-labs-jules[bot]andPR0M3TH3AN dd223cfbda daily: content-audit-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 06:18:33 +00:00
google-labs-jules[bot]andPR0M3TH3AN 066355e47e [constants] extract STANDARD_TIMEOUT_MS (10000) -> js/constants.js
Refactors duplicated `10000` ms numeric literals to use the canonical `STANDARD_TIMEOUT_MS` constant.

Affects:
- `js/testHarness.js`
- `js/nostr/relayBatchFetcher.js`
- `js/nostr/client.js`

Verification:
- `npm run lint` passed.
- `npm run test:unit` passed.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 04:55:18 +00:00
google-labs-jules[bot]andPR0M3TH3AN 95ca3750b3 chore(scheduler): run daily audit-agent
- Executed audit scripts: check-file-size, check-innerhtml, lint
- Generated JSON reports and summary.md in artifacts/audit/2026-02-16/
- Updated scheduler log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 00:42:07 +00:00
thePR0M3TH3AN 2269cb5b9c Merge branch 'unstable' into agents/daily/test-audit-5199509929231920454 2026-02-15 17:42:10 -05:00
google-labs-jules[bot]andPR0M3TH3AN 82dc581145 docs: add daily test audit report and artifacts
- Run unit tests with coverage (c8)
- Generate test audit report (test-audit-report-2026-02-15.md)
- Add static analysis of suspicious tests
- Add flakiness check script and results (timed out)
- Create daily completion log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 22:24:28 +00:00
google-labs-jules[bot]andPR0M3TH3AN 50ded6b4dc feat(test-audit): run daily test audit and fix zero-assertion test
- Run daily test audit using `test-audit-agent`.
- Generate `test-audit-report-2026-02-15.md` with coverage and static analysis findings.
- Fix zero-assertion test in `tests/minimal-channel-profile.test.mjs`.
- Add audit scripts `scripts/agent/audit-coverage-map.js` and `scripts/agent/audit-static-analysis.sh`.
- Log execution details in `test_logs/TEST_LOG_2026-02-15_20-00-00.md`.
- Create completion log in `docs/agents/task-logs/daily/`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 20:18:30 +00:00
google-labs-jules[bot]andPR0M3TH3AN b45b155219 docs(agents): sync scheduler rosters — 2026-02-15
Verified daily (21) and weekly (16) rosters against prompt files.
No changes required as rosters were already in sync.
Created persistent state files for run context.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 18:00:33 +00:00
google-labs-jules[bot]andPR0M3TH3AN 7637631730 perf: visibility gating for LoginModalController
- Implements visibility gating in `LoginModalController.js` to pause polling intervals when the tab is hidden.
- Created `perf/daily-perf-report-2026-02-15.md` with performance findings.
- Verified upload documentation alignment.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 15:52:32 +00:00
google-labs-jules[bot]andPR0M3TH3AN 50390f9411 perf: implement visibility gating in ExploreDataService
- Pause `watchHistory` and `tagIdf` intervals when tab is hidden.
- Add `daily-perf-report-2026-02-15.md`.
- Add `perf/hits-2026-02-15.json`.
- Docs audit verified (no changes needed).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 04:01:39 +00:00
google-labs-jules[bot]andPR0M3TH3AN 5b1e933f14 feat(agents): execute daily nip-research-agent
- Fetch missing NIP specs (09, 21, 25, 42, 47, 57, 71, 78, 96, 98)
- Update NIP_INVENTORY.md
- Generate nip-report-2026-02-15.md
- Create completion log

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-15 01:11:29 +00:00
google-labs-jules[bot]andPR0M3TH3AN f676fb2ff5 [security] replace innerHTML in RevertModal.js
Migrated `js/ui/components/RevertModal.js` to safe DOM APIs (`createElement`, `textContent`, `DOMParser`).
Extracted rendering logic to `js/ui/components/revertModalRenderers.js`.
Updated baseline in `scripts/check-innerhtml.mjs` (0 remaining usages).
Updated tests to mock DOMParser.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 18:58:02 +00:00
google-labs-jules[bot]andPR0M3TH3AN 5338942ea3 docs: document profileModalController.js and add architecture overview (docs-code-investigator)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 17:41:32 +00:00
google-labs-jules[bot]andPR0M3TH3AN 7c9bd33400 chore(deps): daily security audit report
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 13:41:34 +00:00
thePR0M3TH3AN a5c4b97085 Merge pull request #2506 from PR0M3TH3AN/agents/daily/content-audit-agent-2026-02-14-14895370041401969894
Daily Agent: content-audit-agent (2026-02-14)
2026-02-14 07:55:45 -05:00
thePR0M3TH3AN a7d5448f83 Merge pull request #2505 from PR0M3TH3AN/agents/daily/decompose-agent-1771068993-9839708061087795531
[decompose] extract helpers from js/ui/components/VideoModal.js
2026-02-14 07:55:18 -05:00
thePR0M3TH3AN e2dcdea845 Merge pull request #2504 from PR0M3TH3AN/agents/daily/bitvid-decompose-agent-9213452736603758411
Decompose ProfileModalController into Admin and Moderation controllers
2026-02-14 07:54:54 -05:00
thePR0M3TH3AN e12f492f81 Merge pull request #2503 from PR0M3TH3AN/agents/daily/content-audit-agent-598971105056804313
docs: content-audit-agent execution
2026-02-14 07:52:44 -05:00
google-labs-jules[bot]andPR0M3TH3AN 9b5703d39c Daily Agent: content-audit-agent (2026-02-14)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 12:42:24 +00:00
google-labs-jules[bot]andPR0M3TH3AN 54be0efcac [decompose] extract helpers from js/ui/components/VideoModal.js
Decomposed js/ui/components/VideoModal.js by extracting "Similar Video" and "Pointer Key" logic into a new helper module js/ui/components/VideoModalSimilarHelpers.js.

- Reduced VideoModal.js line count from 6334 to 6045.
- Added comprehensive unit tests for extracted helpers.
- Updated check-file-size.mjs baseline.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 11:46:47 +00:00
google-labs-jules[bot]andPR0M3TH3AN f35d27d471 fix: repair profileModalController decomposition by adding delegate methods
- Added delegate methods for `refreshAdminPaneState`, `refreshModerationSettingsUi`, `updateModerationTrustStats`, `runAdminMutation`, `sendAdminListNotification`, `describeAdminError`, `describeNotificationError`, `notifyAdminError` to `ProfileModalController.js`.
- Added aliases for properties like `moderatorSection` in `ProfileModalController.js` to satisfy tests.
- Removed duplicated method implementations from `ProfileModalController.js`.
- Verified with unit tests (`tests/profile-modal-controller.test.mjs`) and linting.
- Reduced `ProfileModalController.js` size by ~2000 lines.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 10:59:14 +00:00
google-labs-jules[bot]andPR0M3TH3AN 2c78f5247b docs: content-audit-agent completion\n\n- Audited /content against codebase\n- Created inventory and verification artifacts\n- Validated documentation accuracy
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 09:39:38 +00:00
google-labs-jules[bot]andPR0M3TH3AN 7579b168e2 Daily agent: deps-security-agent execution
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 08:38:14 +00:00
google-labs-jules[bot]andPR0M3TH3AN e5949af2e8 docs: Audit and update upload documentation
Executed content-audit-agent. Audited content/docs/guides/upload-content.md against code. Added technical details about multipart uploads and troubleshooting steps.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 06:41:00 +00:00
google-labs-jules[bot]andPR0M3TH3AN 4f4faeefdd Daily Agent: const-refactor-agent (NIP-07 & NIP-46 Timeouts)
- Refactored duplicate `5000` ms timeouts in `js/nostr/nip07Permissions.js`, `js/nostr/managers/SignerManager.js`, and `js/nostr/nip46Client.js`.
- Introduced `NIP07_EXTENSION_WAIT_TIMEOUT_MS` and `NIP46_PING_TIMEOUT_MS`.
- Created execution artifacts and scheduler completion log.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-14 05:43:25 +00:00
google-labs-jules[bot]andPR0M3TH3AN bb39226ca5 perf-agent: visibility gate VideoEventBuffer
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 20:44:59 +00:00
google-labs-jules[bot]andPR0M3TH3AN 7a37c67256 chore(agents): run nip-research-agent daily task
- Added verification tests for NIP-04/44 encryption worker logic (tests/nostr-specs/nip04-nip44.test.mjs).
- Added verification tests for Kind 30078 video note schema (tests/nostr-specs/kind30078.test.mjs).
- Fetched canonical specs for P0 NIPs into artifacts/nips/.
- Updated NIP_INVENTORY.md with verified statuses.
- Generated nip-report-2026-02-13.md.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 19:45:33 +00:00
google-labs-jules[bot]andPR0M3TH3AN 4f206ccb12 chore(agents): run load-test-agent daily task — implemented harness and report
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 19:11:14 +00:00
google-labs-jules[bot]andPR0M3TH3AN 9d85e647b6 chore(agents): run fuzz-agent weekly task — fuzz nostr schemas
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 18:05:17 +00:00
thePR0M3TH3AN 2eca209f02 Merge pull request #2455 from PR0M3TH3AN/ai/innerhtml-fix/subscriptions-12650247027422970359
[security] replace innerHTML usages in js/subscriptions.js — convert to safe DOM APIs
2026-02-13 12:19:55 -05:00
google-labs-jules[bot]andPR0M3TH3AN fffca30fb6 chore(agents): run innerhtml-migration-agent daily task — migrate js/channelProfile.js
- Replaced 10 instances of `innerHTML` with safe DOM APIs (`createElement`, `replaceChildren`, `textContent`).
- Extracted Zap Panel creation to `createZapPanelContent` helper.
- Extracted Subscribe Button creation logic.
- Updated `scripts/check-innerhtml.mjs` baseline (count reduced by 10).
- Verified via lint, unit tests, and Playwright verification.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 16:58:20 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8536f2f858 [security] replace innerHTML usages in js/subscriptions.js — convert to safe DOM APIs
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 16:51:33 +00:00
thePR0M3TH3AN d634bb6bef Merge pull request #2449 from PR0M3TH3AN/chore/weekly/frontend-console-debug-agent-8297778615366828086
chore(agents): run frontend-console-debug-agent weekly task
2026-02-13 11:17:21 -05:00
google-labs-jules[bot]andPR0M3TH3AN d2c6f0a32e chore(ai): document js/ui/components/VideoModal.js
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 15:48:06 +00:00
google-labs-jules[bot]andPR0M3TH3AN 87f7ae7616 chore(agents): run frontend-console-debug-agent weekly task
- Updated scripts/agent/debug_frontend.py to be more robust (timestamps, exit codes).
- Verified no frontend console errors on startup.
- Created task logs (started/completed).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 13:13:27 +00:00
thePR0M3TH3AN ad61d0cb0a Merge pull request #2438 from PR0M3TH3AN/chore/docs-alignment-daily-8450414943487656823
docs: align CLAUDE.md and nostr-event-schemas.md with codebase
2026-02-13 00:43:46 -05:00
google-labs-jules[bot]andPR0M3TH3AN 3b0556414c docs: align CLAUDE.md and nostr-event-schemas.md with codebase
- Update `CLAUDE.md` to include `FEATURE_TRUSTED_HIDE_CONTROLS` and `FEATURE_IMPROVED_COMMENT_FETCHING`.
- Update `docs/nostr-event-schemas.md` to include detailed schemas for NIP-17 and Gift Wrap kinds (1059, 13, 14, 15, 20001, 20002, 10050).
- Add task logs for docs-alignment-agent execution.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 05:35:46 +00:00
google-labs-jules[bot]andPR0M3TH3AN 9c65a78249 chore(agents): run event-schema-agent weekly task
- Implement `scripts/agent/validate-events.mjs` harness.
- Fix `buildWatchHistoryEvent` to default `monthIdentifier` if missing.
- Verified all builders produce valid events.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 05:14:10 +00:00
google-labs-jules[bot]andPR0M3TH3AN 77ec8e18c3 chore(agents): migrate persistent state files to timestamped directories
- Move `CONTEXT.md`, `TODO.md`, `DECISIONS.md`, `TEST_LOG.md` to `context/`, `todo/`, `decisions/`, `test_logs/` directories with timestamps.
- Update `AGENTS.md` and `CLAUDE.md` to define the new workflow: agents must read the latest timestamped file and create a new one when updating.
- Update `daily-scheduler.md` and `weekly-scheduler.md` to initialize tasks using the new file structure.
- Update all daily agent prompts to reference the new directory structure.
- This change prevents merge conflicts on persistent state files by treating them as an append-only log of snapshots.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 03:14:50 +00:00