Files
bitvid/context/CONTEXT_2026-02-16_06-40-11.md
T
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

507 B

Context: Constants Refactor Run

Date: 2026-02-16 Agent: bitvid-const-refactor-agent (via Daily Scheduler)

Goal

Identify and refactor duplicated numeric constants in js/ to improve maintainability and clarity.

Scope

  • Search for common numeric literals (e.g., 1000, 5000, 10000).
  • Select a clear candidate group.
  • Replace with a named constant in js/constants.js or js/nostr/relayConstants.js.

Constraints

  • Minimal changes.
  • Must pass npm run lint and npm run test:unit.