Decompose the 16.6k-line src/task/FlowMcpCli.mjs monolith into modules with a clean CLI/core boundary, keeping a thin delegation facade (F12=A). Phase 4 PRDs:
- PRD-016 dead-code sweep (~2.4k dead lines, F19=B init schemaFolders-only)
- PRD-017 lib extraction (ModuleRegistry, CliOutput/FsUtils, ConfigStore/SchemaSource)
- PRD-018 core ports (ToolNaming, schema-loading on Pipeline, IdResolver/CatalogIndex)
- PRD-019 command modules + grading bridge
- PRD-020 bridges closed, hooks removed, dispatch tests
Tests stay green per PRD. No push until the bundled gate.
Decompose the 16.6k-line
src/task/FlowMcpCli.mjsmonolith into modules with a clean CLI/core boundary, keeping a thin delegation facade (F12=A). Phase 4 PRDs:Tests stay green per PRD. No push until the bundled gate.