Skip to content

tree2md v0.9.0

Choose a tag to compare

@github-actions github-actions released this 24 Feb 15:43
· 22 commits to main since this release
cc60c71

tree2md v0.9.0

Breaking Changes

  • Removed HTML and Markdown renderers — Removed src/render/html.rs, src/render/markdown.rs, src/output/html_tree.rs, src/output/links.rs
  • Removed injection and stamp modules — src/injection/, src/stamp/
  • Removed CLI options: --output, --preset, --fold, --links, --github, --inject, --tag-start, --tag-end, --dry-run, --restrict-root, --stamp*, --no-stats, and related enums

Added

  • Agent-optimized output modes with auto-detection:
    • TTY: pretty output with emoji, LOC bars, stats, tree characters
    • Pipe: plain tree + line counts — ideal for pbcopy/LLM pipes
    • Pipe + -c: tree + code-fenced file contents for full AI context
  • --max-chars content truncation — limits total content characters when using -c, with proportional budget allocation across files
    • head mode (default): keeps first N chars at line boundaries
    • nest mode: progressively collapses deeply-indented blocks
  • src/render/pipe.rs — PipeRenderer with tree chars and optional contents
  • SIGPIPE handling on Unix to avoid panics when piping to head/less

Changed

  • Pivoted from multi-format document tool to agent-optimized codebase viewer

What's Changed

  • chore: add git-workflow skill by @zawakin in #13
  • chore: add git-workflow required section to CLAUDE.md by @zawakin in #14
  • refactor: pivot to agent-optimized codebase viewer by @zawakin in #15
  • feat: add --max-chars content truncation with head/nest modes by @zawakin in #16
  • chore: bump version to v0.9.0 by @zawakin in #17
  • fix: commit Cargo.lock and harden release process by @zawakin in #18

Full Changelog: v0.8.2...v0.9.0