mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
Extracted logic into scheduler-config.mjs, scheduler-logger.mjs, and scheduler-state.mjs to improve maintainability and reduce file size (1160 -> 827 lines). Corrected module imports and verified via linting and dry-run usage. Co-authored-by: PR0M3TH3AN <[email protected]>
809 B
809 B
Memory Update — decompose-agent — 2026-02-27
Key findings
scripts/check-file-size.mjsis effective for identifying decomposition candidates, but HTML and JSON files should be manually filtered out for logic-based refactors.scripts/agent/run-scheduler-cycle.mjsis the central orchestration script and is growing in complexity.
Patterns / reusable knowledge
- Extracting configuration and logging into separate modules (
scheduler-config.mjs,scheduler-logger.mjs) is a clean pattern for reducing CLI script size. - Using
node:fs/promisesandnode:pathconsistently helps with modern ESM decomposition.
Warnings / gotchas
scripts/check-file-size.mjsdoes not have an--updateflag to automatically rewrite baselines; this must be done manually or noted as a limitation.