refactor(help): colocate fold guidance and extract workflows

Merged
TH
2mo ago
+441-413

Summary

Keep fold command guidance beside its system-family declaration and reuse three small wording fragments across metadata/help. Extract related workflow help and their existing tests so cli-help.ts drops from 1,280 to 987 lines.

5 files, 854 gross lines. Existing overview files stay untouched. No new policy registry, compatibility path, or routing traits. Independent review approved the ownership and decomposition.

Validation

Tested commit 521e0f06e8c44172ad028cf3ba615d87030d41a1:

  • pnpm check:affected --run: passed, 171 files / 1,385 tests, including provider integration.
  • Exact before/after comparison of all 19 topic texts and order, root help, fold help, and fold metadata: identical.
  • CLI/client eager closures stay 295 / 261; MCP goes 292 → 293 for the new import-free workflow text module. No external runtime dependency.
  • Moved test blocks match their original assertions; repo-wide formatting and layering/fallow checks passed.

This changes help authorship only; device behavior is unchanged and does not require a live fold run. Remote CI is pending; publication does not claim merge readiness.