mirror of
https://github.com/glittercowboy/get-shit-done
synced 2026-04-25 17:25:23 +02:00
Rebased PR #639 onto refactored modular structure (lib/core.cjs, lib/phase.cjs, etc.) Changes ported from monolithic gsd-tools.cjs to new modules: - Add comparePhaseNum() helper to lib/core.cjs for universal phase sorting - Update normalizePhaseName() regex to handle letter-suffix phases (12A, 12B) - Update all phase-matching regexes across lib/*.cjs with [A-Z]? pattern - Replace parseFloat-based sorting with comparePhaseNum throughout - Add 15 new tests for comparePhaseNum, normalizePhaseName, and letter-suffix sorting Sort order: 12 → 12.1 → 12.2 → 12A → 12A.1 → 12A.2 → 12B → 13 Co-Authored-By: vinicius-tersi <MDQ6VXNlcjUyNDk2NDYw>