Refactor lock backend constants and fix scheduler syntax error

- Extracted hardcoded retry/health constants from `src/lock-ops.mjs` to `src/constants.mjs`.
- Refactored `src/lock-ops.mjs` to use `LockPublisher` class pattern and shared constants.
- Fixed `SyntaxError` in `src/lock-ops.mjs` (function inside function).
- Fixed `ReferenceError` in `src/cmd-check.mjs` (`queryLocksFn` -> `queryLocks`).
- Verified with unit tests (`test:unit:lock-backend`) and linting.
- Completed daily scheduler cycle for `const-refactor-agent`.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-17 19:50:48 +00:00
1 parent 7f87c371fc
commit 03ccb232ee
16 files changed
+2266 -28

No files matched your search

@@ -0,0 +1,10 @@
# Context for Constants Refactor Run
**Agent:** const-refactor-agent
**Date:** 2026-02-17T19-41-31Z
**Baseline:**
- `js/` directory does not exist. Scanning `src/` instead.
- `AGENTS.md` and `CLAUDE.md` not found.
- Target branch: default
**Goal:** Find duplicated numeric constants in `src/` and extract them to `src/constants.mjs`.