docrev 0.9.5 → 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.
- package/CHANGELOG.md +20 -0
- package/dev_notes/bug_repro_comment_parser.md +71 -0
- package/dist/lib/anchor-match.d.ts +41 -0
- package/dist/lib/anchor-match.d.ts.map +1 -0
- package/dist/lib/anchor-match.js +192 -0
- package/dist/lib/anchor-match.js.map +1 -0
- package/dist/lib/annotations.d.ts.map +1 -1
- package/dist/lib/annotations.js +8 -5
- package/dist/lib/annotations.js.map +1 -1
- package/dist/lib/commands/file-ops.d.ts +11 -0
- package/dist/lib/commands/file-ops.d.ts.map +1 -0
- package/dist/lib/commands/file-ops.js +301 -0
- package/dist/lib/commands/file-ops.js.map +1 -0
- package/dist/lib/commands/index.d.ts +10 -1
- package/dist/lib/commands/index.d.ts.map +1 -1
- package/dist/lib/commands/index.js +19 -1
- package/dist/lib/commands/index.js.map +1 -1
- package/dist/lib/commands/merge-resolve.d.ts +12 -0
- package/dist/lib/commands/merge-resolve.d.ts.map +1 -0
- package/dist/lib/commands/merge-resolve.js +318 -0
- package/dist/lib/commands/merge-resolve.js.map +1 -0
- package/dist/lib/commands/preview.d.ts +11 -0
- package/dist/lib/commands/preview.d.ts.map +1 -0
- package/dist/lib/commands/preview.js +138 -0
- package/dist/lib/commands/preview.js.map +1 -0
- package/dist/lib/commands/project-info.d.ts +11 -0
- package/dist/lib/commands/project-info.d.ts.map +1 -0
- package/dist/lib/commands/project-info.js +187 -0
- package/dist/lib/commands/project-info.js.map +1 -0
- package/dist/lib/commands/quality.d.ts +11 -0
- package/dist/lib/commands/quality.d.ts.map +1 -0
- package/dist/lib/commands/quality.js +384 -0
- package/dist/lib/commands/quality.js.map +1 -0
- package/dist/lib/commands/section-boundaries.d.ts +22 -0
- package/dist/lib/commands/section-boundaries.d.ts.map +1 -0
- package/dist/lib/commands/section-boundaries.js +53 -0
- package/dist/lib/commands/section-boundaries.js.map +1 -0
- package/dist/lib/commands/sections.d.ts +3 -2
- package/dist/lib/commands/sections.d.ts.map +1 -1
- package/dist/lib/commands/sections.js +4 -736
- package/dist/lib/commands/sections.js.map +1 -1
- package/dist/lib/commands/sync.d.ts +11 -0
- package/dist/lib/commands/sync.d.ts.map +1 -0
- package/dist/lib/commands/sync.js +576 -0
- package/dist/lib/commands/sync.js.map +1 -0
- package/dist/lib/commands/text-ops.d.ts +11 -0
- package/dist/lib/commands/text-ops.d.ts.map +1 -0
- package/dist/lib/commands/text-ops.js +357 -0
- package/dist/lib/commands/text-ops.js.map +1 -0
- package/dist/lib/commands/utilities.d.ts +2 -4
- package/dist/lib/commands/utilities.d.ts.map +1 -1
- package/dist/lib/commands/utilities.js +3 -1572
- package/dist/lib/commands/utilities.js.map +1 -1
- package/dist/lib/commands/verify-anchors.d.ts +17 -0
- package/dist/lib/commands/verify-anchors.d.ts.map +1 -0
- package/dist/lib/commands/verify-anchors.js +215 -0
- package/dist/lib/commands/verify-anchors.js.map +1 -0
- package/dist/lib/commands/word-tools.d.ts +11 -0
- package/dist/lib/commands/word-tools.d.ts.map +1 -0
- package/dist/lib/commands/word-tools.js +272 -0
- package/dist/lib/commands/word-tools.js.map +1 -0
- package/dist/lib/diff-engine.d.ts +25 -0
- package/dist/lib/diff-engine.d.ts.map +1 -0
- package/dist/lib/diff-engine.js +354 -0
- package/dist/lib/diff-engine.js.map +1 -0
- package/dist/lib/import.d.ts +44 -118
- package/dist/lib/import.d.ts.map +1 -1
- package/dist/lib/import.js +25 -1173
- package/dist/lib/import.js.map +1 -1
- package/dist/lib/restore-references.d.ts +35 -0
- package/dist/lib/restore-references.d.ts.map +1 -0
- package/dist/lib/restore-references.js +188 -0
- package/dist/lib/restore-references.js.map +1 -0
- package/dist/lib/word-extraction.d.ts +100 -0
- package/dist/lib/word-extraction.d.ts.map +1 -0
- package/dist/lib/word-extraction.js +594 -0
- package/dist/lib/word-extraction.js.map +1 -0
- package/lib/anchor-match.ts +238 -0
- package/lib/annotations.ts +9 -5
- package/lib/commands/file-ops.ts +372 -0
- package/lib/commands/index.ts +27 -0
- package/lib/commands/merge-resolve.ts +378 -0
- package/lib/commands/preview.ts +178 -0
- package/lib/commands/project-info.ts +244 -0
- package/lib/commands/quality.ts +517 -0
- package/lib/commands/section-boundaries.ts +72 -0
- package/lib/commands/sections.ts +3 -870
- package/lib/commands/sync.ts +701 -0
- package/lib/commands/text-ops.ts +449 -0
- package/lib/commands/utilities.ts +62 -2043
- package/lib/commands/verify-anchors.ts +261 -0
- package/lib/commands/word-tools.ts +340 -0
- package/lib/diff-engine.ts +465 -0
- package/lib/import.ts +108 -1504
- package/lib/restore-references.ts +240 -0
- package/lib/word-extraction.ts +759 -0
- package/package.json +1 -1
- package/skill/REFERENCE.md +29 -2
- package/skill/SKILL.md +12 -2
package/package.json
CHANGED
package/skill/REFERENCE.md
CHANGED
|
@@ -21,11 +21,38 @@ rev import manuscript.docx --output ./project
|
|
|
21
21
|
### rev sync
|
|
22
22
|
Sync feedback from a reviewed Word document into existing markdown sections.
|
|
23
23
|
```bash
|
|
24
|
-
rev sync reviewed.docx
|
|
25
|
-
rev sync
|
|
24
|
+
rev sync reviewed.docx # Updates markdown with track changes/comments
|
|
25
|
+
rev sync # Auto-detect most recent .docx
|
|
26
26
|
rev sync reviewed.docx methods # Sync only methods section
|
|
27
|
+
rev sync reviewed.docx --comments-only # Insert comments only; never modify prose
|
|
27
28
|
```
|
|
28
29
|
|
|
30
|
+
`--comments-only` skips the Word→Markdown diff entirely. Use it when the
|
|
31
|
+
markdown has been revised between sending the docx out for review and
|
|
32
|
+
receiving it back: applying track changes from a stale draft would clobber
|
|
33
|
+
newer edits, but comments still need to land. Comments are placed at
|
|
34
|
+
fuzzy-matched anchors against the current prose. Pair with
|
|
35
|
+
`rev verify-anchors` to see which ones won't fit before you run sync.
|
|
36
|
+
|
|
37
|
+
### rev verify-anchors
|
|
38
|
+
Report drift between Word comment anchors and the current markdown.
|
|
39
|
+
```bash
|
|
40
|
+
rev verify-anchors reviewed.docx # Print per-comment match quality
|
|
41
|
+
rev verify-anchors reviewed.docx --json # Machine-readable report
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Each comment is classified by how well its anchor still matches the current
|
|
45
|
+
section prose:
|
|
46
|
+
|
|
47
|
+
- `clean` – exact or whitespace-normalized hit
|
|
48
|
+
- `drift` – anchor only matches via stripped-CriticMarkup or partial-prefix fallbacks
|
|
49
|
+
- `context-only` – anchor text is gone, only surrounding context survives
|
|
50
|
+
- `ambiguous` – multiple candidate positions; needs context to disambiguate
|
|
51
|
+
- `unmatched` – nothing maps; user must place the comment manually
|
|
52
|
+
|
|
53
|
+
Useful before `rev sync --comments-only` to plan which comments will land
|
|
54
|
+
automatically and which need manual placement.
|
|
55
|
+
|
|
29
56
|
### rev build
|
|
30
57
|
Build output documents from markdown sections.
|
|
31
58
|
```bash
|
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
|
|
48
|
-
rev sync
|
|
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` |
|