Break the 5324-line monolith into focused modules: - core.cjs: shared utilities, constants, internal helpers - frontmatter.cjs: YAML frontmatter parsing/serialization/CRUD - state.cjs: STATE.md operations + progression engine - phase.cjs: phase CRUD, query, and lifecycle - roadmap.cjs: roadmap parsing and updates - verify.cjs: verification suite + consistency/health validation - config.cjs: config ensure/set/get - template.cjs: template selection and fill - milestone.cjs: milestone + requirements lifecycle - commands.cjs: standalone utility commands - init.cjs: compound init commands for workflow bootstrapping gsd-tools.cjs is now a thin CLI router (~550 lines including JSDoc) that imports from lib/ modules. All 81 tests pass. Also updates package.json test script to point to tests/. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.1 KiB
1.1 KiB