docrev 0.9.6 → 0.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dev_notes/bug_repro_comment_parser.md +71 -0
  3. package/dist/lib/anchor-match.d.ts +41 -0
  4. package/dist/lib/anchor-match.d.ts.map +1 -0
  5. package/dist/lib/anchor-match.js +192 -0
  6. package/dist/lib/anchor-match.js.map +1 -0
  7. package/dist/lib/annotations.d.ts.map +1 -1
  8. package/dist/lib/annotations.js +8 -5
  9. package/dist/lib/annotations.js.map +1 -1
  10. package/dist/lib/commands/index.d.ts +2 -1
  11. package/dist/lib/commands/index.d.ts.map +1 -1
  12. package/dist/lib/commands/index.js +3 -1
  13. package/dist/lib/commands/index.js.map +1 -1
  14. package/dist/lib/commands/section-boundaries.d.ts +22 -0
  15. package/dist/lib/commands/section-boundaries.d.ts.map +1 -0
  16. package/dist/lib/commands/section-boundaries.js +53 -0
  17. package/dist/lib/commands/section-boundaries.js.map +1 -0
  18. package/dist/lib/commands/sync.d.ts.map +1 -1
  19. package/dist/lib/commands/sync.js +135 -0
  20. package/dist/lib/commands/sync.js.map +1 -1
  21. package/dist/lib/commands/verify-anchors.d.ts +17 -0
  22. package/dist/lib/commands/verify-anchors.d.ts.map +1 -0
  23. package/dist/lib/commands/verify-anchors.js +215 -0
  24. package/dist/lib/commands/verify-anchors.js.map +1 -0
  25. package/dist/lib/import.d.ts +14 -8
  26. package/dist/lib/import.d.ts.map +1 -1
  27. package/dist/lib/import.js +16 -144
  28. package/dist/lib/import.js.map +1 -1
  29. package/dist/lib/word-extraction.d.ts +23 -0
  30. package/dist/lib/word-extraction.d.ts.map +1 -1
  31. package/dist/lib/word-extraction.js +79 -0
  32. package/dist/lib/word-extraction.js.map +1 -1
  33. package/lib/anchor-match.ts +238 -0
  34. package/lib/annotations.ts +9 -5
  35. package/lib/commands/index.ts +3 -0
  36. package/lib/commands/section-boundaries.ts +72 -0
  37. package/lib/commands/sync.ts +165 -0
  38. package/lib/commands/verify-anchors.ts +261 -0
  39. package/lib/import.ts +29 -165
  40. package/lib/word-extraction.ts +93 -0
  41. package/package.json +1 -1
  42. package/skill/REFERENCE.md +29 -2
  43. package/skill/SKILL.md +12 -2
package/skill/SKILL.md CHANGED
@@ -44,10 +44,18 @@ Send to reviewers. They add comments and track changes in Word.
44
44
  ### 3. Import feedback
45
45
 
46
46
  ```bash
47
- rev sync reviewed.docx # Updates markdown with annotations
48
- rev sync # Auto-detect most recent .docx
47
+ rev sync reviewed.docx # Updates markdown with annotations
48
+ rev sync # Auto-detect most recent .docx
49
+ rev sync reviewed.docx --comments-only # Insert comments only; never modify prose
50
+ rev verify-anchors reviewed.docx # Report which anchors still match current prose
49
51
  ```
50
52
 
53
+ Use `--comments-only` when the markdown has been revised between sending the
54
+ docx out and receiving it back. Without the flag, track changes from a stale
55
+ draft would clobber newer edits. With it, only comments are imported, placed
56
+ at fuzzy-matched anchors against the current prose. Run `rev verify-anchors`
57
+ first to see which comments will land cleanly and which need manual placement.
58
+
51
59
  ### 4. View and address comments
52
60
 
53
61
  ```bash
@@ -111,6 +119,8 @@ rev response # Generate point-by-point response letter
111
119
  | Create LaTeX project | `rev new my-project --template latex` |
112
120
  | Import Word doc | `rev import manuscript.docx` |
113
121
  | Sync Word feedback | `rev sync reviewed.docx` |
122
+ | Sync comments only (prose unchanged) | `rev sync reviewed.docx --comments-only` |
123
+ | Verify anchors against current prose | `rev verify-anchors reviewed.docx` |
114
124
  | Sync PDF comments | `rev sync annotated.pdf` |
115
125
  | Extract PDF comments | `rev pdf-comments annotated.pdf` |
116
126
  | Extract with highlighted text | `rev pdf-comments file.pdf --with-text` |