Commit Graph
4513 Commits
Author SHA1 Message Date
thePR0M3TH3AN f19efaed16 Merge pull request #1972 from PR0M3TH3AN/codex/refactor-logging-in-torrentstatuscontroller
Throttle torrent status updates and logging
2026-01-30 09:31:08 -05:00
thePR0M3TH3AN d1853743da Throttle torrent status updates and logging 2026-01-30 09:30:55 -05:00
thePR0M3TH3AN f1000b1f88 Merge pull request #1969 from PR0M3TH3AN/ai/lint-20260130-8786554545374498697
chore(ai): apply formatting/lint autofixes
2026-01-30 09:28:11 -05:00
thePR0M3TH3AN b1d6dc37f6 Merge branch 'unstable' into ai/lint-20260130-8786554545374498697 2026-01-30 09:28:01 -05:00
thePR0M3TH3AN a3deeed44e Merge pull request #1967 from PR0M3TH3AN/ai/tests-improve-coverage-20250220-10675377090391221934
test(ai): improve unit test coverage and stability (agent)
2026-01-30 09:27:19 -05:00
thePR0M3TH3AN 9392e08cbd Merge branch 'unstable' into ai/tests-improve-coverage-20250220-10675377090391221934 2026-01-30 09:27:07 -05:00
thePR0M3TH3AN 99562e4f00 Merge pull request #1966 from PR0M3TH3AN/ai/onboarding-20260130-10223342974187330616
docs(ai): improve onboarding steps
2026-01-30 09:26:38 -05:00
thePR0M3TH3AN 73add3a387 Merge branch 'unstable' into ai/onboarding-20260130-10223342974187330616 2026-01-30 09:26:29 -05:00
thePR0M3TH3AN 059e229499 Merge pull request #1965 from PR0M3TH3AN/ai/deps-scan-913034820998740720
chore(ai): dependency scan and upgrade analysis
2026-01-30 09:20:32 -05:00
thePR0M3TH3AN a8c2608a01 Merge branch 'unstable' into ai/deps-scan-913034820998740720 2026-01-30 09:20:22 -05:00
thePR0M3TH3AN beceec7e8d Merge pull request #1964 from PR0M3TH3AN/ai/interop-tests-20250228-12917398042927663384
Add Nostr Protocol Interop Test Script
2026-01-30 09:20:00 -05:00
thePR0M3TH3AN b71346c06a Merge branch 'unstable' into ai/interop-tests-20250228-12917398042927663384 2026-01-30 09:19:49 -05:00
thePR0M3TH3AN 7fd203f1cb Merge pull request #1963 from PR0M3TH3AN/telemetry-aggregation-fix-6349074633801704985
Refactor telemetry aggregator regex for stricter error detection
2026-01-30 09:19:15 -05:00
thePR0M3TH3AN 667b48c301 Merge branch 'unstable' into telemetry-aggregation-fix-6349074633801704985 2026-01-30 09:19:03 -05:00
thePR0M3TH3AN 7b0d8c1f4f Merge pull request #1961 from PR0M3TH3AN/ai/refactor-videomodal-controller-18342133587526974097
refactor(ai): extract VideoModalController from js/app.js (agent)
2026-01-30 09:18:32 -05:00
thePR0M3TH3AN 80a0bc8bb2 Merge branch 'unstable' into ai/refactor-videomodal-controller-18342133587526974097 2026-01-30 09:18:22 -05:00
thePR0M3TH3AN 55b338ee5a Merge pull request #1962 from PR0M3TH3AN/ai/schema-validate-20250130-4578214465880061430
Event Schema Validation Tool & NIP-71 Instrumentation
2026-01-30 09:17:42 -05:00
thePR0M3TH3AN 646de9014b Merge pull request #1960 from PR0M3TH3AN/ai/ci-health-20250221-16879002849481713
chore(ai): CI health fixes (flaky tests)
2026-01-30 09:16:57 -05:00
thePR0M3TH3AN 36e724a9de Merge pull request #1956 from PR0M3TH3AN/refactor-automated-pr-review-12750616021674214922
feat: enhance automated PR review script with batch processing
2026-01-30 09:15:04 -05:00
thePR0M3TH3AN db9a6b8e69 Merge pull request #1955 from PR0M3TH3AN/ai/smoke-tests-20250129-1837019461609586530
chore(ai): add smoke test script (agent)
2026-01-30 09:14:46 -05:00
google-labs-jules[bot]andPR0M3TH3AN d68003cc96 fix(ci): resolve unit test failures and ensure build dependencies
- Mock `readRelays` in `tests/app-batch-fetch-profiles.test.mjs` to correctly reflect `profileMetadataService` prioritization logic, ensuring relay query count assertions match actual execution.
- Add missing `load` mock to `hashtagPreferences` in `tests/profile-modal-controller.test.mjs` to prevent `TypeError` during `handleAddHashtagPreference` test.
- Update `netlify.toml` to set `NODE_ENV = "development"` during build, ensuring `devDependencies` (required for `npm run build:css`) are installed.
- Verified all unit tests pass locally.
- Verified build configuration syntax.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 14:14:14 +00:00
thePR0M3TH3AN 50a14edb17 Merge pull request #1970 from PR0M3TH3AN/codex/update-dev-mode-flag-defaults-and-documentation
Harden dev-mode defaults with runtime overrides
2026-01-30 09:14:07 -05:00
thePR0M3TH3AN 31b5fc5c16 Harden dev mode defaults 2026-01-30 09:13:54 -05:00
google-labs-jules[bot]andPR0M3TH3AN d48cca1a66 fix(ci): resolve unit test failures in batch fetch and profile modal
- Mock `readRelays` in `tests/app-batch-fetch-profiles.test.mjs` to correctly reflect `profileMetadataService` prioritization logic, ensuring relay query count assertions match actual execution (2 queries instead of 4).
- Add missing `load` mock to `hashtagPreferences` in `tests/profile-modal-controller.test.mjs` to prevent `TypeError` during `handleAddHashtagPreference` test.
- Verified all unit tests pass with `npm run test:unit`.
- Reverted risky dependency moves in `package.json` to maintain project structure.
- Build process verified locally; addressing test failures is the primary fix for the reported CI errors.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 14:09:20 +00:00
google-labs-jules[bot]andPR0M3TH3AN 79ad3c4709 fix(test): resolve unit test failures in batch fetch and profile modal
- Mock `readRelays` in `tests/app-batch-fetch-profiles.test.mjs` to correctly reflect `profileMetadataService` prioritization logic, ensuring relay query count assertions match actual execution (2 queries instead of 4).
- Add missing `load` mock to `hashtagPreferences` in `tests/profile-modal-controller.test.mjs` to prevent `TypeError` during `handleAddHashtagPreference` test.
- Verified all unit tests pass with `npm run test:unit`.
- Verified `npm run build` succeeds locally.
- Verified `_headers` and `_redirects` are present and valid in `dist/`.

This commit addresses the CI failures reported by the user, including the `agent-review` failure and likely resolving the associated 'Deploy failed' checks.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 13:46:17 +00:00
google-labs-jules[bot]andPR0M3TH3AN 1e0a94509e chore(ai): apply formatting/lint autofixes
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 13:28:56 +00:00
google-labs-jules[bot]andPR0M3TH3AN 044d5629be fix(ci): improve build script logging for deployment debugging
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 12:04:24 +00:00
google-labs-jules[bot]andPR0M3TH3AN 113b0a2b72 fix(ci): harden build script and update test mocks
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 11:59:18 +00:00
google-labs-jules[bot]andPR0M3TH3AN 0ac0b6960d fix(ci): update test mocks for ProfileModalController
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 11:53:04 +00:00
google-labs-jules[bot]andPR0M3TH3AN ce2c30574c test(ai): improve unit test coverage and stability (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 11:39:38 +00:00
google-labs-jules[bot]andPR0M3TH3AN 7ddbec32b8 chore: update cross-env and package-lock.json to fix CI build
- Updated `cross-env` to latest version.
- Updated `package-lock.json` to resolve build warnings and potential CI cache issues.
- Includes previous test fixes and onboarding report.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 10:16:07 +00:00
google-labs-jules[bot]andPR0M3TH3AN e3ee2927ab docs(ai): improve onboarding steps
Fixed failing unit tests identified during onboarding audit:
- Mocked readRelays in tests/app-batch-fetch-profiles.test.mjs to prevent network leakage
- Mocked hashtagPreferencesService.load in tests/profile-modal-controller.test.mjs to fix TypeError
- Added ONBOARDING_REPORT.md with audit details

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 10:09:11 +00:00
google-labs-jules[bot]andPR0M3TH3AN 42abc9abb1 docs(ai): improve onboarding steps
Fixed failing unit tests identified during onboarding audit:
- Mocked readRelays in tests/app-batch-fetch-profiles.test.mjs
- Mocked hashtagPreferencesService.load in tests/profile-modal-controller.test.mjs
- Updated browserslist db
- Added ONBOARDING_REPORT.md

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 10:04:36 +00:00
google-labs-jules[bot]andPR0M3TH3AN 4eec1e0ca3 fix(tests): mock missing dependencies in unit tests
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 09:24:39 +00:00
google-labs-jules[bot]andPR0M3TH3AN f456a6d605 fix(test): mock hashtagPreferencesService.load in profile modal test
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 09:19:46 +00:00
google-labs-jules[bot]andPR0M3TH3AN f87c3bcffe fix(test): mock readRelays in batch-fetch-profiles test
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 09:13:37 +00:00
google-labs-jules[bot]andPR0M3TH3AN 605867de2d chore(ai): dependency scan and upgrade analysis
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 09:09:58 +00:00
google-labs-jules[bot]andPR0M3TH3AN 6d5170d3fc fix: flaky unit test in profile batch fetcher
Updated `tests/app-batch-fetch-profiles.test.mjs` to correctly mock `readRelays` in addition to `relays` and `writeRelays`. `profileMetadataService.js` prioritizes `readRelays`, causing the test to make unexpected network calls when falling back to default values. This fix ensures the test isolation holds and assertions pass consistently.

Also fixed a failing mock in `tests/profile-modal-controller.test.mjs` by adding a missing `load()` method to the `hashtagPreferences` service stub.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 07:55:06 +00:00
google-labs-jules[bot]andPR0M3TH3AN 51c5845ae1 fix: resolve missing mock method in profile modal tests
Added the missing `load()` method to the `hashtagPreferences` mock in `tests/profile-modal-controller.test.mjs`. This resolves the `TypeError` encountered during the `handleAddHashtagPreference` test case, ensuring the test suite passes consistently in CI.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 07:48:19 +00:00
google-labs-jules[bot]andPR0M3TH3AN 7a3476f926 fix: flaky unit test in profile batch fetcher
Updated `tests/app-batch-fetch-profiles.test.mjs` to correctly mock `readRelays` in addition to `relays` and `writeRelays`. `profileMetadataService.js` prioritizes `readRelays`, causing the test to make unexpected network calls when falling back to default values. This fix ensures the test isolation holds and assertions pass consistently.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 07:37:47 +00:00
google-labs-jules[bot]andPR0M3TH3AN 7ac4d4eee7 feat: add Nostr interop test script
This script validates protocol interoperability by publishing Video Post and View events, and sending Encrypted DMs using ephemeral keys against public relays. It ensures the NostrClient facade and event builders function correctly in a Node.js environment.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 07:34:26 +00:00
google-labs-jules[bot]andPR0M3TH3AN 3302b5700a Use direct tailwindcss executable in build:css
- Replace `npx tailwindcss` with `tailwindcss` in `package.json` scripts.
- Improves build reliability by avoiding npx lookup issues in CI environments.
- Verified build success locally.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 06:49:24 +00:00
google-labs-jules[bot]andPR0M3TH3AN 7d325e49db Fix profile-modal-controller test mock
- Update `tests/profile-modal-controller.test.mjs` to include a mock for `hashtagPreferences.load`.
- Fixes `TypeError: this.hashtagPreferencesService.load is not a function` in unit tests.
- Ensures all tests pass locally.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 06:45:47 +00:00
google-labs-jules[bot]andPR0M3TH3AN a6bf25f9fc Fix app-batch-fetch-profiles test mocking
- Update `tests/app-batch-fetch-profiles.test.mjs` to correctly mock `nostrClient.readRelays`.
- Ensure deterministic relay query counts in unit tests.
- Fixes CI failure where `actual: 4` vs `expected: 2` due to unmocked read relays.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 06:39:23 +00:00
google-labs-jules[bot]andPR0M3TH3AN 782ecf3cea Refactor telemetry aggregator regex for stricter error detection
- Update `scripts/agent/telemetry-aggregator.mjs` to use a stricter regex for parsing generic logs.
- Require brackets (e.g., `[ERROR]`, `[WARN]`) or trailing colons/word boundaries (e.g., `Error:`, `FAIL`) to match errors.
- Prevent false positives from status messages like "0 errors" or "0 failures".
- Support `[WARN]` as Medium severity.
- Ensure PII sanitization and `ENABLE_TELEMETRY` guardrails are preserved.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 06:33:52 +00:00
google-labs-jules[bot]andPR0M3TH3AN 52dc6f3588 fix(test): mock load method for hashtag preferences service
- Adds `load: async () => {}` to the `hashtagPreferences` mock in `tests/profile-modal-controller.test.mjs`.
- Fixes `TypeError: this.hashtagPreferencesService.load is not a function` during `handleAddHashtagPreference` test execution.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 05:45:51 +00:00
google-labs-jules[bot]andPR0M3TH3AN e1ca5d993d fix(test): mock readRelays in batch fetch test
- Sets `nostrClient.readRelays` in `tests/app-batch-fetch-profiles.test.mjs` to match the test relays.
- Fixes `AssertionError: expected a query per relay. 4 !== 2` caused by falling back to default read relays.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 05:39:26 +00:00
google-labs-jules[bot]andPR0M3TH3AN 39c4e2249d chore(ai): event schema validation tool + fixes
- Created `scripts/agent/validate-events.mjs` to verify all event builders produce valid events against the schema.
- Instrumented `js/nostr/nip71.js` to validate NIP-71 events during construction (other builders in `js/nostrEventSchemas.js` were already instrumented).
- Validated all 25 event types using the new tool.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 05:34:50 +00:00
google-labs-jules[bot]andPR0M3TH3AN 1394c42487 refactor(ai): extract VideoModalController from js/app.js (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 03:45:11 +00:00
google-labs-jules[bot]andPR0M3TH3AN 3dfba92e04 refactor(ai): extract VideoModalController from js/app.js (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 03:40:36 +00:00