Commit graph

1 commit

Author SHA1 Message Date
Roo Code
0115755f60 Fixes #4956: Add proper Jupyter notebook support for apply_diff and write_to_file tools
- Created jupyter-notebook-handler.ts with utilities for parsing and handling .ipynb files
- Modified applyDiffTool.ts to extract cell content for editing and reconstruct notebook JSON
- Modified multiApplyDiffTool.ts to handle Jupyter notebooks in batch operations
- Modified writeToFileTool.ts to detect and properly handle notebook content vs raw JSON
- Added comprehensive test suite for all notebook operations
- Prevents notebook corruption by maintaining proper JSON structure
- Supports both extracted content editing and direct JSON editing workflows
2025-06-20 23:28:09 +00:00