md-annotator-opencode 0.5.5
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/README.md +46 -0
- package/annotator.html +2991 -0
- package/commands/annotate:md.md +34 -0
- package/dist/index.js +28654 -0
- package/package.json +36 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Annotate a markdown file in the browser
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Use the `annotate_markdown` tool to open the specified file for interactive review.
|
|
6
|
+
|
|
7
|
+
If a file path is provided as an argument, use that file.
|
|
8
|
+
Otherwise, ask the user which markdown file they want to annotate.
|
|
9
|
+
|
|
10
|
+
The user can:
|
|
11
|
+
- Select text and mark it for deletion
|
|
12
|
+
- Select text and add comments
|
|
13
|
+
- Insert text at specific locations
|
|
14
|
+
- Approve the file with no changes
|
|
15
|
+
|
|
16
|
+
After the user submits their decision:
|
|
17
|
+
- If approved: No action needed
|
|
18
|
+
- If feedback provided: Apply the requested changes to the file
|
|
19
|
+
|
|
20
|
+
## Re-review loop
|
|
21
|
+
|
|
22
|
+
Unless the user specified `--no-review`, after applying changes:
|
|
23
|
+
|
|
24
|
+
1. Create feedback notes describing what you changed:
|
|
25
|
+
- Use `feedbackNotes` parameter with `[{text, line?}]` entries
|
|
26
|
+
- Include `line` for location-specific notes (use line numbers from the **updated** file)
|
|
27
|
+
- Omit `line` for general notes
|
|
28
|
+
|
|
29
|
+
2. Re-open the annotator with notes:
|
|
30
|
+
```
|
|
31
|
+
annotate_markdown({ filePath: "...", feedbackNotes: [{text: "Changed X", line: 5}] })
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
3. If approved → done. If more feedback → apply and repeat.
|