Skip to content

Commit bec05c8

Browse files
authored
feat: add excalidraw extension with live diagram preview (#75)
* test: include extension tests in test script * refactor(excalidraw): extract prompts to standalone markdown files * docs: update changelog
1 parent 678e35d commit bec05c8

9 files changed

Lines changed: 1868 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"type": "module",
1111
"scripts": {
1212
"lint": "eslint --fix pi-extensions/ tests/ && npx tsc --noEmit",
13-
"test": "npm run lint && node --experimental-strip-types --test tests/*.test.ts"
13+
"test": "npm run lint && node --experimental-strip-types --test tests/*.test.ts pi-extensions/**/*.test.ts"
1414
},
1515
"keywords": [
1616
"pi-package",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changelog
2+
3+
All notable changes are documented here.
4+
5+
6+
## test/extend-test-coverage
7+
8+
Extended test coverage to the Excalidraw extension by integrating extension tests into the main test script (#75). Refactored Excalidraw prompt content into standalone markdown files (`element-format.md`, `draw-instruction.md`) for better maintainability and modularity. Implemented a comprehensive Excalidraw diagram preview tool with `draw_diagram` and `save_diagram` capabilities, streaming element rendering with throttling, checkpoint management for diagram persistence, and clipboard export (PNG/SVG). The extension includes a webview-based live preview window powered by @excalidraw/excalidraw with support for macOS PNG clipboard operations and graceful error handling for partial JSON streaming.

0 commit comments

Comments
 (0)