?
PLOW-41
feature
Created: 2025-12-21 Updated: 2025-12-21
Relationships Loading...
Attachments
Loading...
Comments (1)
agent · 2025-12-21
## Implementation Complete Changed the default visualization mode from ASCII to Mermaid SVG output: ### Changes Made **src/trckr_plow/cli.py:692-720** - Updated visualize command to use --ascii / -a flag for terminal output - Added short flag -s for --step option - Updated docstring to reflect new default behavior **src/trckr_plow/visualization.py:395-563** - Added is_mmdc_available() function to check for mermaid-cli - Added render_workflow_svg() to generate SVG via mmdc - Added open_svg_viewer() to open SVG in system viewer (supports macOS, Windows, Linux) - Added visualize_workflow() main function with intelligent fallback - Graceful fallback to ASCII with warning if mmdc not installed **tests/test_cli.py:714-803** - Updated tests to use --ascii flag for ASCII output assertions - Added tests for new default fallback behavior - Added tests for short flags (-a, -s) **README.md:229-271** - Updated documentation to reflect new default behavior - Added usage examples for all flag combinations ### Verification - All 791 tests pass - Linter (ruff) passes - Manual testing confirms: - trckr-plow visualize → Falls back to ASCII with warning (mmdc not installed) - trckr-plow visualize --ascii → ASCII output without warning - trckr-plow visualize -s 1 -a → ASCII with highlighted step