@nxxxsooo/opencode-annotate 0.18.0 → 0.20.0
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 +17 -0
- package/README.md +35 -7
- package/agy/cli.mjs +243 -124
- package/agy/cli.test.mjs +51 -2
- package/agy/herdr.mjs +103 -0
- package/agy/herdr.test.mjs +54 -0
- package/agy/hooks.mjs +9 -2
- package/agy/inbox.mjs +22 -8
- package/agy/session.mjs +1 -2
- package/agy/skills/annotate/SKILL.md +9 -5
- package/agy/slash.mjs +90 -0
- package/agy/slash.test.mjs +62 -0
- package/agy/transcript.mjs +5 -2
- package/agy/transcript.test.mjs +1 -0
- package/browser/manifest.json +1 -1
- package/package.json +1 -1
- package/review.mjs +75 -11
- package/tui/README.md +58 -5
- 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/tui.ts +8 -0
package/tui/README.md
CHANGED
|
@@ -73,19 +73,69 @@ id = "doc"
|
|
|
73
73
|
title = "Annotate"
|
|
74
74
|
placement = "overlay"
|
|
75
75
|
command = ["/absolute/path/to/annotate-tui", "herdr", "pane"]
|
|
76
|
+
|
|
77
|
+
# Optional: AGY overlay. Use absolute paths from the same Annotate installation.
|
|
78
|
+
[[panes]]
|
|
79
|
+
id = "agy"
|
|
80
|
+
title = "Annotate AGY"
|
|
81
|
+
placement = "overlay"
|
|
82
|
+
command = ["/absolute/path/to/agy-annotate", "tui-pane"]
|
|
83
|
+
|
|
84
|
+
[[panes]]
|
|
85
|
+
id = "agy-popup"
|
|
86
|
+
title = "Annotate AGY"
|
|
87
|
+
placement = "popup"
|
|
88
|
+
width = "90%"
|
|
89
|
+
height = "90%"
|
|
90
|
+
command = ["/absolute/path/to/annotate-tui", "herdr", "hosted-pane"]
|
|
91
|
+
|
|
92
|
+
[[actions]]
|
|
93
|
+
id = "review"
|
|
94
|
+
title = "Annotate latest reply"
|
|
95
|
+
contexts = ["pane"]
|
|
96
|
+
command = ["/absolute/path/to/agy-annotate", "herdr-review", "--binary", "/absolute/path/to/annotate-tui"]
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
For a built macOS checkout, use its executable `agy/cli.mjs` and the
|
|
100
|
+
native `tui/bin/darwin-arm64/annotate-tui` (or `darwin-x64` on Intel).
|
|
101
|
+
|
|
102
|
+
Add this to Herdr's `config.toml` and reload the server configuration:
|
|
103
|
+
|
|
104
|
+
```toml
|
|
105
|
+
[[keys.command]]
|
|
106
|
+
key = "prefix+a"
|
|
107
|
+
type = "plugin_action"
|
|
108
|
+
command = "annotate.review"
|
|
109
|
+
description = "Annotate latest reply"
|
|
76
110
|
```
|
|
77
111
|
|
|
112
|
+
Press your prefix (default `Ctrl+B`) then `a` in the agent pane. The AGY action
|
|
113
|
+
opens a 90% × 90% modal using the pane manifest's `popup` placement. Herdr 0.9.5
|
|
114
|
+
does not accept `popup` as a `--placement` CLI override. Send rechecks the AGY
|
|
115
|
+
conversation before starting a turn in an idle/done pane or queuing to the AGY
|
|
116
|
+
hooks while Herdr reports it is working. A blocked, unknown, or changed
|
|
117
|
+
destination keeps the notes and shows the recovery path. With matching AGY
|
|
118
|
+
hooks, `/annotate` and `/annotate <local-document>` also open this popup before
|
|
119
|
+
the model runs. See the [AGY setup](../README.md#antigravity-agy-support) for
|
|
120
|
+
`SessionStart`, `PreInvocation`, and `Stop`. If the pane or conversation
|
|
121
|
+
cannot be verified, the skill handles the command instead.
|
|
122
|
+
|
|
78
123
|
`herdr pane` is the plugin entrypoint: it reads the file, reply or terminal source
|
|
79
124
|
passed by the launcher. Set `--placement overlay|split|tab|zoomed` on `herdr open`,
|
|
80
|
-
`herdr last` or `herdr terminal`; the default is `overlay`.
|
|
81
|
-
`
|
|
82
|
-
|
|
125
|
+
`herdr last` or `herdr terminal`; the default is `overlay`. If your Annotate
|
|
126
|
+
`tui.toml` uses `popup_width` or `popup_height`, remove those settings and
|
|
127
|
+
replace its `placement = "popup"` with a supported value. This does not
|
|
128
|
+
affect `placement = "popup"` in the Herdr plugin manifest above.
|
|
129
|
+
Agent delivery uses `herdr agent prompt`; a blocked send
|
|
83
130
|
leaves notes pending for a manual retry and attempts an OSC 52 clipboard copy.
|
|
84
131
|
OpenCode's `/annotate` clears the inherited `HERDR_*` variables before launching
|
|
85
132
|
the reviewer, so it does not use this route.
|
|
86
133
|
|
|
87
|
-
|
|
88
|
-
|
|
134
|
+
For AGY, the `agy-popup` pane runs `herdr hosted-pane` on a private Markdown
|
|
135
|
+
snapshot. The `agy` pane runs `agy-annotate tui-pane` for the skill fallback.
|
|
136
|
+
Keep the AGY pane focused while the overlay opens. Only **Send** submits
|
|
137
|
+
feedback; `q` and `Ctrl+C` close without sending.
|
|
138
|
+
|
|
89
139
|
|
|
90
140
|
## Local image-toolbar trial
|
|
91
141
|
|
|
@@ -113,6 +163,9 @@ multiplexer settings. Unknown transports still require your own verification. Di
|
|
|
113
163
|
removing all three `toolbar_image*` keys if your terminal cannot display it. Restart after
|
|
114
164
|
changing font/cell pixel size. A configured cell-size override takes precedence and skips
|
|
115
165
|
the ioctl; measure at the actual display's DPI, including through any PTY proxy.
|
|
166
|
+
Cell pixels determine the artwork canvas; the Kitty virtual placement declares its
|
|
167
|
+
column count and one-row height explicitly so the placeholder grid does not depend on
|
|
168
|
+
the terminal or PTY proxy reporting the same pixel dimensions.
|
|
116
169
|
|
|
117
170
|
Artwork is approximately square, centered at 85% of one cell row's height, with a bold,
|
|
118
171
|
action-colored key beside each
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/tui.ts
CHANGED
|
@@ -49,6 +49,14 @@ export default Plugin.define({
|
|
|
49
49
|
palette: true,
|
|
50
50
|
slash: { name: "annotate", arguments: true },
|
|
51
51
|
run: review.run,
|
|
52
|
+
}, {
|
|
53
|
+
id: "opencode-annotate.annotate-file",
|
|
54
|
+
title: "Annotate a file (TUI)",
|
|
55
|
+
description: "Choose a text or config file in this session's directory",
|
|
56
|
+
group: "Annotate",
|
|
57
|
+
palette: true,
|
|
58
|
+
slash: { name: "annotate-file", arguments: true },
|
|
59
|
+
run: review.file,
|
|
52
60
|
}, {
|
|
53
61
|
id: "opencode-annotate.annotate-pick",
|
|
54
62
|
title: "Annotate earlier text (TUI)",
|