Skip to content

v0.2.0

Choose a tag to compare

@pablospe pablospe released this 02 Apr 12:02
· 120 commits to main since this release
a2dcbf3

Hash-Anchored Paragraph References & Batch Editing

Breaking Changes

  • paragraph parameter is now required on replace(), delete(), insert_after(), insert_before()

New Features

  • list_paragraphs() — Returns P{index}#{hash} references with content previews
  • HashMismatchError — Detects stale paragraphs, includes current hash for retry
  • batch_edit() — Atomic all-or-nothing validation, reverse-order application
  • EditOperation dataclass for batch operations
  • ParagraphRef and compute_paragraph_hash() utilities

Benchmarks (30-paragraph document)

Benchmark Result
Speed Negligible overhead (-1.8%)
Accuracy Plain: 9/10 wrong paragraph. Hash: 10/10 correct
Batch 1.8x speedup vs individual calls