aaronsb_obsidian-mcp-plugin/tests
Aaron Bockelie ebf1cc765f feat: Implement structured patch targeting for headings, blocks, and frontmatter
- Added support for targeting specific document structures in patch operations
- Heading targeting: Use 'Section::Subsection' syntax to target nested headings
- Block targeting: Target blocks by their ID (^blockId)
- Frontmatter targeting: Add, update, or append to frontmatter fields
- Maintains backward compatibility with oldText/newText replacement
- Added comprehensive unit tests for all patch modes

Example usage:
- Target heading: {targetType: 'heading', target: 'Section One', operation: 'append'}
- Target block: {targetType: 'block', target: 'myBlockId', operation: 'prepend'}
- Target frontmatter: {targetType: 'frontmatter', target: 'tags', operation: 'replace'}

Resolves the disconnect between API design and implementation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-06 22:47:02 -05:00
..
__mocks__ fix: Fix test failures by properly mocking TFile class 2025-07-05 10:37:24 -05:00
graph-search-traversal.test.ts fix: Fix test failures by properly mocking TFile class 2025-07-05 10:37:24 -05:00
mcp-server.test.ts feat: Add linting, testing, and development documentation 2025-06-27 11:18:36 -05:00
patch-operations.test.ts feat: Implement structured patch targeting for headings, blocks, and frontmatter 2025-07-06 22:47:02 -05:00
setup.ts feat: Add linting, testing, and development documentation 2025-06-27 11:18:36 -05:00