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,15 @@
---
cadence: daily
agent: const-refactor-agent
status: completed
reason: 'Scheduler cycle completed successfully'
created_at: 2026-02-17T19-48-02Z
timestamp: 2026-02-17T19-48-02Z
platform: linux
---
# Scheduler completed
- reason: Scheduler cycle completed successfully
- platform: linux
- details: Extracted lock backend constants to src/constants.mjs, refactored lock-ops.mjs, fixed cmd-check.mjs bug.