Conversation
New crate renders any Toolpath Document (Step, Path, Graph) as readable Markdown for LLM consumption. Dead ends are marked inline and summarized, steps are topologically sorted, and the output preserves enough anchoring info (step IDs, artifact paths, actor strings) for an LLM to reference back into the original document. - Two detail levels: Summary (diffstats) and Full (inline fenced diffs) - Optional YAML front matter with machine-readable metadata - Actor definitions rendered when present in path/graph metadata - CLI: `path render md [--input FILE] [--detail summary|full] [--front-matter]` - 31 unit tests + 3 doc tests in toolpath-md, 6 new tests in CLI
…n toolpath-md toolpath-github 0.2.0: capture diff_hunk, PR summary stats (state, merged, additions, deletions, changed_files, draft, number, author), author_association, CI html_url, review body as intent, and threaded review comment replies via in_reply_to_id. toolpath-md 0.2.0: render review/CI/conversation structural types with friendly names and indicators, add PR identity line and diffstat from GitHub metadata, add Review summary section, and factor all source-specific logic into source/ module (source/github.rs) behind a SourceContext interface so the generic renderer has zero provider coupling.
|
🔍 Preview deployed: https://e1112f7a.toolpath.pages.dev |
Add 12 snapshot tests covering `path render md` output for every example document (7 steps, 4 paths, 1 graph). Uses insta for snapshot management. Also applies rustfmt to toolpath-md and toolpath-github.
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
source/module — GitHub metadata extraction lives insource/github.rsbehind aSourceContextinterface, so the generic renderer has zero provider coupling.in_reply_to_id.path render md [--input FILE] [--detail summary|full] [--front-matter]Test plan
cargo test -p toolpath-md— 59 tests (52 existing + 7 new source module tests)cargo clippy -p toolpath-md -- -D warnings— cleancargo test -p toolpath-cli— 138 tests (126 unit + 12 integration)cargo test -p toolpath-github— existing tests passpath render md --input examples/pr-with-reviews.jsonproduces expected output