@nxxxsooo/opencode-annotate 0.13.0 → 0.13.1
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 +13 -0
- package/README.md +97 -58
- package/browser/manifest.json +1 -1
- package/package.json +11 -4
- package/tui/bin/darwin-arm64/annotate-tui +0 -0
- package/tui/bin/darwin-x64/annotate-tui +0 -0
- package/tui/bin/linux-arm64/annotate-tui +0 -0
- package/tui/bin/linux-x64/annotate-tui +0 -0
- package/tui/bin/win32-x64/annotate-tui.exe +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.13.1 — README and search discoverability
|
|
4
|
+
|
|
5
|
+
- Bring the install command and a three-step first review near the top of the README,
|
|
6
|
+
followed by examples for replies, documents, webpages and conversation references.
|
|
7
|
+
- Show the bundled terminal reviewer and the Chrome panel as captured, including the
|
|
8
|
+
synthetic fixture pages used for the recordings.
|
|
9
|
+
- Improve the npm description and keywords and the GitHub About text so searches for
|
|
10
|
+
annotation, feedback and conversation references reach the package. Metadata changes
|
|
11
|
+
take effect only with a new publication; search results remain controlled by npm,
|
|
12
|
+
GitHub and external search engines.
|
|
13
|
+
- Runtime behavior is unchanged: commands, options, wire protocol and session delivery
|
|
14
|
+
remain as in 0.13.0. Native executables are rebuilt with the new version number.
|
|
15
|
+
|
|
3
16
|
## 0.13.0 — auto-sizing reference comments
|
|
4
17
|
|
|
5
18
|
- Add an optional whole-reference comment to `/ref`, kept separate from quoted history.
|
package/README.md
CHANGED
|
@@ -1,24 +1,107 @@
|
|
|
1
|
-
# OpenCode Annotate
|
|
1
|
+
# OpenCode Annotate — review AI replies, documents, and webpages
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@nxxxsooo/opencode-annotate)
|
|
4
4
|
[](https://github.com/nxxxsooo/opencode-annotate/actions/workflows/ci.yml)
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
|
|
7
|
-
**Annotate replies
|
|
7
|
+
**Annotate AI replies and Markdown documents in your terminal, or review webpages in your browser.** Select a passage or element, add feedback, and send it to the originating OpenCode conversation.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
find and read it through the bundled session-reference tools.
|
|
9
|
+
This **unofficial OpenCode plugin** includes the native [terminal reviewer](tui/README.md): **no separate reviewer install is required**. The optional [browser companion](#browser-review-optional) adds Chrome delivery and Safari's copy-only review. Published on npm as `@nxxxsooo/opencode-annotate`.
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
Requires **OpenCode 2.2.0+**. The npm package includes **Annotate TUI**, built from [`tui/`](tui/README.md) for macOS arm64/x64, Linux arm64/x64 and Windows x64. See its [platform requirements](tui/README.md#source-and-build). The OpenCode terminal handoff has been tested on macOS; Windows handoff has not yet been verified.
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
opencode plugin add @nxxxsooo/opencode-annotate@latest
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
<img src="https://raw.githubusercontent.com/nxxxsooo/opencode-annotate/main/docs/assets/terminal-review.gif" alt="Bundled terminal reviewer selecting a passage in a Markdown plan and saving an inline comment" width="720">
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
The real bundled reviewer, using a synthetic Markdown plan. [Capture details](https://github.com/nxxxsooo/opencode-annotate/blob/main/docs/assets/README.md).
|
|
24
|
+
|
|
25
|
+
OpenCode loads the server tools and TUI commands from one entry in your global **`opencode.json`** or **`opencode.jsonc`**. Run `/reload` if the command list has not refreshed.
|
|
26
|
+
|
|
27
|
+
Manual configuration, preserving other entries:
|
|
28
|
+
|
|
29
|
+
```json
|
|
30
|
+
{
|
|
31
|
+
"$schema": "https://opencode.ai/config.json",
|
|
32
|
+
"plugins": ["@nxxxsooo/opencode-annotate@latest"]
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`@latest` selects the current npm release when installing or updating; publishing a release does not itself replace an installed copy. Keep your existing plugin `options`.
|
|
37
|
+
|
|
38
|
+
## First review in 3 steps
|
|
39
|
+
|
|
40
|
+
1. **Open the reviewer** — run `/annotate` in any session to review the last completed assistant reply.
|
|
41
|
+
2. **Select and comment** — drag to select text (or press `v` and move), then press `c` to comment. Press Enter to save the note.
|
|
42
|
+
3. **Send** — press `q` to send your annotations back to the session. The feedback is submitted as a prompt to the originating conversation, resuming it for the assistant to act on.
|
|
43
|
+
|
|
44
|
+
Empty and cancelled reviews submit nothing. Opening a review makes no model call.
|
|
45
|
+
|
|
46
|
+
**`Ctrl+S`** saves the current comment and sends in one step. The header's **Send N back (q)** button does the same as `q`. **`Ctrl+C`** returns without sending, and OpenCode asks whether to send. `E` and `S` send as well, following any `[keys]` rebinding.
|
|
47
|
+
|
|
48
|
+
## Workflows
|
|
49
|
+
|
|
50
|
+
### Annotate AI responses
|
|
51
|
+
|
|
52
|
+
`/annotate` opens the last completed reply. `/annotate-pick` chooses from recent replies and progress updates. `/annotate-selection` opens the message containing your last transcript selection. Reasoning, tool-call commentary, and in-progress messages are excluded.
|
|
53
|
+
|
|
54
|
+
`/annotate-last` always reviews the latest completed reply; any supplied argument is ignored. For a selection that spans messages, `/annotate-selection` reviews just the selected text.
|
|
55
|
+
|
|
56
|
+
### Review Markdown and text documents
|
|
57
|
+
|
|
58
|
+
```text
|
|
59
|
+
/annotate docs/plan.md # Review a Markdown document
|
|
60
|
+
/annotate "docs/release plan.md" # Path with spaces
|
|
61
|
+
/annotate ~/Documents/notes.txt # Plain text
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Local UTF-8 `.md`, `.mdx`, `.markdown` and `.txt` files up to 2 MiB. Relative paths resolve against the captured session's working directory, not the directory from which the terminal client happened to start. Absolute and `~/` paths work too. The file must exist on the machine running the terminal client.
|
|
65
|
+
|
|
66
|
+
The reviewer reads a fixed snapshot and does not edit the original file. Feedback includes the original path and snapshot hash, with instructions to re-read the current file before applying suggestions. Document review works even before the session has an assistant reply.
|
|
67
|
+
|
|
68
|
+
### Browser webpage feedback
|
|
69
|
+
|
|
70
|
+
Run `/annotate-web` to pair the current session with the Chrome extension, then open the extension panel on any webpage. Select text or pick an element, write notes, and send them back to the paired session.
|
|
15
71
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
72
|
+
```text
|
|
73
|
+
/annotate-web # Pair this session
|
|
74
|
+
/annotate-web page.html # Review a local HTML file
|
|
75
|
+
/annotate-web https://example.com # Review a webpage
|
|
76
|
+
/annotate-web off # Revoke this session's browser pairing
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
<p align="center">
|
|
80
|
+
<img src="https://raw.githubusercontent.com/nxxxsooo/opencode-annotate/main/docs/assets/browser-review.png" alt="Chrome extension panel with a saved webpage comment and an explicit Send 1 note button" width="440">
|
|
81
|
+
<br>
|
|
82
|
+
<em>Real extension panel with synthetic page feedback; captured in an isolated headless tab.</em>
|
|
83
|
+
</p>
|
|
84
|
+
|
|
85
|
+
Browser setup is separate from the plugin install. Safari supports local notes and copying only; see [Browser review](#browser-review-optional) below.
|
|
86
|
+
|
|
87
|
+
### Reference previous conversations
|
|
88
|
+
|
|
89
|
+
Run `/ref` to search and attach a past conversation as context. The source is attached to the session where you invoked `/ref`, queued with `resume: false` so an idle assistant stays idle until your next prompt.
|
|
90
|
+
|
|
91
|
+
```text
|
|
92
|
+
/ref # Choose a conversation from this project
|
|
93
|
+
/ref authentication # Search titles in this project
|
|
94
|
+
/ref --all authentication # Search titles across projects
|
|
95
|
+
/ref ses_… # Attach a specific conversation
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Two Code Mode tools are registered for agent use: `annotate.session_search` and `annotate.session_read`.
|
|
99
|
+
|
|
100
|
+
## Command reference
|
|
19
101
|
|
|
20
102
|
```text
|
|
21
103
|
/annotate Review the last completed assistant reply
|
|
104
|
+
/annotate-last Review the latest reply, ignoring arguments
|
|
22
105
|
/annotate docs/plan.md Review a Markdown document
|
|
23
106
|
/annotate "docs/release plan.md" Review a path containing spaces
|
|
24
107
|
/annotate ~/Documents/notes.txt Review a plain-text document
|
|
@@ -34,51 +117,13 @@ Published on npm as `@nxxxsooo/opencode-annotate`. It replaces `opencode-plannot
|
|
|
34
117
|
/ref ses_… Attach a specific conversation
|
|
35
118
|
```
|
|
36
119
|
|
|
37
|
-
`/annotate
|
|
38
|
-
|
|
39
|
-
Progress updates written during a long tool run are not replies, so `/annotate` skips them.
|
|
40
|
-
Reach them with `/annotate-pick`, or drag over text in the transcript and run
|
|
41
|
-
`/annotate-selection`: the plugin opens the reply or progress update containing that text,
|
|
42
|
-
or just the selected text when it spans messages. Numbered `/annotate N` is retired.
|
|
43
|
-
|
|
44
|
-
## Install
|
|
120
|
+
Numbered `/annotate N` is retired.
|
|
45
121
|
|
|
46
|
-
|
|
47
|
-
[`tui/`](tui/README.md) for macOS arm64/x64, Linux arm64/x64 and Windows x64.
|
|
48
|
-
See its [platform requirements](tui/README.md#source-and-build). The OpenCode terminal
|
|
49
|
-
handoff has been tested on macOS; Windows handoff has not yet been verified.
|
|
122
|
+
## Upgrading from the TUI-only package
|
|
50
123
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
```sh
|
|
54
|
-
opencode plugin add @nxxxsooo/opencode-annotate@latest
|
|
55
|
-
```
|
|
124
|
+
`opencode-annotate` replaces `opencode-plannotator-tui` (0.4.2 and earlier). To switch, run `opencode plugin remove opencode-plannotator-tui@latest` and then install this package as shown above.
|
|
56
125
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
```sh
|
|
60
|
-
opencode plugin update @nxxxsooo/opencode-annotate@latest
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
`@latest` selects the current npm release when installing or updating; publishing a
|
|
64
|
-
release does not itself replace an installed copy. Keep your existing plugin `options`.
|
|
65
|
-
|
|
66
|
-
OpenCode loads the server tools and TUI commands from one entry in your global
|
|
67
|
-
**`opencode.json`** or **`opencode.jsonc`**. Run `/reload` if the command list has not refreshed.
|
|
68
|
-
|
|
69
|
-
Manual configuration, preserving other entries:
|
|
70
|
-
|
|
71
|
-
```json
|
|
72
|
-
{
|
|
73
|
-
"$schema": "https://opencode.ai/config.json",
|
|
74
|
-
"plugins": ["@nxxxsooo/opencode-annotate@latest"]
|
|
75
|
-
}
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
**Upgrading from the TUI-only package:** move its entry from `cli.json` to
|
|
79
|
-
`opencode.json(c)`, retaining the whole entry and any `options`. Keep one entry so
|
|
80
|
-
the TUI is loaded once. A remaining CLI-only installation provides `/ref` and annotation
|
|
81
|
-
commands, but cannot register the agent tools.
|
|
126
|
+
Move its entry from `cli.json` to `opencode.json(c)`, retaining the whole entry and any `options`. Keep one entry so the TUI is loaded once. A remaining CLI-only installation provides `/ref` and annotation commands, but cannot register the agent tools.
|
|
82
127
|
|
|
83
128
|
## Reference another conversation
|
|
84
129
|
|
|
@@ -312,12 +357,6 @@ The manifest version alone cannot identify edits to an unpacked extension.
|
|
|
312
357
|
the selection for annotating.
|
|
313
358
|
4. Press **`q`** to send your notes and return to OpenCode.
|
|
314
359
|
|
|
315
|
-
**`Ctrl+S`** does the same mid-comment, saving the comment first. The header's **Send N back (q)**
|
|
316
|
-
button does the same as `q`.
|
|
317
|
-
**`Ctrl+C`** returns without sending, and OpenCode asks whether to send. `E` and `S` send as well,
|
|
318
|
-
following any `[keys]` rebinding, and the clipboard copy and Review menu (resend, finish, archive) are hidden
|
|
319
|
-
because OpenCode owns delivery.
|
|
320
|
-
|
|
321
360
|
For real PNG toolbar artwork in a verified Kitty-graphics terminal, see the
|
|
322
361
|
[local image-toolbar configuration](tui/README.md#local-image-toolbar-trial).
|
|
323
362
|
Artwork is user-supplied and not included; unconfigured terminals keep Unicode icons.
|
package/browser/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": 3,
|
|
3
3
|
"name": "OpenCode Annotate",
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.1",
|
|
5
5
|
"description": "Annotate HTML-based page feedback, private drafts, and paired OpenCode delivery.",
|
|
6
6
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAp7TG2yzekNKpQvHBtj4jqkOxtoeDIBhNIjPi37Os/ksuhzPp1pHnrJPV4WV2ToatUaD5x5/SpLP8qZKLBD+wuraEE/TeclEZ8HvEs1yhlnx/S7piTG/s0eV5umuTEx2w66Hi0w3dhTC7ZZfJXCLyqs1feBtWzQx6ClgaHNYly4iJ03pV7RfguqpIaG9LV8Oa8ELA+7Ubr0BAujXrSlvqLF5oAKGoXXcpvTL5rgMRIH4Q/85tnvrk0pRVg+1z9IGNzSfjN82iveC/JAriyWABp8YuswtvKfI2Wb+KspaisBh39Y3BRqlyo8I2Cr+01uE6G5pWiJIWMLhe0glrMr5I2wIDAQAB",
|
|
7
7
|
"permissions": ["activeTab", "scripting", "storage", "sidePanel", "nativeMessaging", "clipboardWrite"],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxxxsooo/opencode-annotate",
|
|
3
|
-
"version": "0.13.
|
|
4
|
-
"description": "Unofficial OpenCode plugin:
|
|
3
|
+
"version": "0.13.1",
|
|
4
|
+
"description": "Unofficial OpenCode annotation plugin: review AI replies and Markdown with a bundled terminal reviewer; annotate webpages with the browser companion.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -99,10 +99,17 @@
|
|
|
99
99
|
"keywords": [
|
|
100
100
|
"opencode",
|
|
101
101
|
"opencode-plugin",
|
|
102
|
-
"
|
|
103
|
-
"tui",
|
|
102
|
+
"annotate",
|
|
104
103
|
"annotation",
|
|
104
|
+
"tui",
|
|
105
|
+
"terminal",
|
|
105
106
|
"markdown",
|
|
107
|
+
"browser-extension",
|
|
108
|
+
"chrome-extension",
|
|
109
|
+
"feedback",
|
|
110
|
+
"conversation-reference",
|
|
111
|
+
"antigravity",
|
|
112
|
+
"plannotator",
|
|
106
113
|
"review"
|
|
107
114
|
],
|
|
108
115
|
"publishConfig": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|