feat(plan): add plain-language markdown reports - #155
Merged
Conversation
…types Review of eqrm#155 found three content paths where the Markdown report dropped or garbled information it claims to show: - a group *update* rendered a heading and nothing else, because the change table was suppressed for every group while the overview only renders for creates. The table is now suppressed only when an overview was actually rendered. - a created group-member-field on an existing group was filtered out of the creates and never picked up by the create-only overview, so it appeared nowhere but the technical appendix. `memberFieldsFor` now only absorbs fields of a group that is itself being created. - a `groupTypeId` pending ref (the bootstrap case) rendered as `Gruppentyp: unbekannt (#[object Object])`. It now resolves to the pending group type's name. Claude-Session: https://claude.ai/code/session_01RDZeavzUpPyvQp3EYdEDbR
2000game
added a commit
to bwl21/ct-cli
that referenced
this pull request
Aug 26, 2026
Resolves the overlap with the Markdown plan report (eqrm#155), which landed on main while this branch was open: - src/commands/plan.ts now drives every projection (text/JSON/Markdown, --output-base, --locale) off the single `runPlan` application operation instead of re-planning inline. - The plan operation carries `buildWarnings` so the Markdown report can include the registry/portability warnings the builder writes to stderr — a report file is not a terminal, so it has to be handed them explicitly. - Handbuch source lists follow `adopt-group.ts` into src/application/operations, and both pages are re-signed. Claude-Session: https://claude.ai/code/session_01RDZeavzUpPyvQp3EYdEDbR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ct plan --format markdownas a plain-language projection of the canonical plan result--formatvalues so text, JSON, and Markdown can be produced by one plan computation--output-base <path>with deterministic.txt,.json, and.mdsidecar names--jsonbackward compatible and reject conflicting output selections clearlyArchitecture
Terminal, JSON, and Markdown output all consume the same structured plan. The Markdown renderer does not invoke the CLI as a subprocess, parse terminal text, contact ChurchTools, or recalculate actions.
Closes #144.
Verification