Decompose src/lib.mjs

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-14 14:16:01 +00:00
1 parent 695adb6dc9
commit fdfbb39da6
12 files changed
+316 -233

No files matched your search

@@ -0,0 +1,15 @@
# Context for Decomposition of src/lib.mjs
## File Selection
- **File**: `src/lib.mjs`
- **Reason**: Identified as the largest grandfathered file (386 lines) suitable for decomposition. `landing/index.html` and `dashboard/index.html` were larger but are not JS source files.
- **Node Version**: v22.22.0
- **Extraction Plan**:
- Extract `cmdCheck` to `src/cmd-check.mjs`
- Extract `cmdLock` to `src/cmd-lock.mjs`
- Extract `cmdList` to `src/cmd-list.mjs`
- Extract `ExitError` to `src/errors.mjs`
- Extract utilities to `src/utils.mjs`
## Goal
Reduce `src/lib.mjs` size by > 200 lines while preserving behavior.