Files
HKUDS-CLI-Anything/drawio/agent-harness
Xilonng Zhang b4b3f8c3fb Add Draw.io CLI harness for agent-native diagram creation
Implements a full CLI harness that converts Draw.io (diagrams.net) into an
agent-callable API, following the CLI-Anything 7-phase pipeline pattern.

Features:
- XML-native manipulation of .drawio files (no GUI required)
- 15 shape presets (rectangle, ellipse, diamond, cylinder, cloud, etc.)
- 4 edge styles (straight, orthogonal, curved, entity-relation)
- Style property system (fill/stroke/font color, opacity, shadow, dashed, etc.)
- Multi-page diagram support
- Undo/redo with snapshot-based history (50 levels)
- Session persistence and auto-save in --project mode
- Interactive REPL mode with prompt-toolkit
- JSON output mode for AI agent consumption
- Export pipeline: XML direct + PNG/SVG/PDF via draw.io desktop CLI
- 138 tests passing (116 unit + 22 e2e), 3 skipped (require draw.io desktop)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 23:09:24 +08:00
..