@nxxxsooo/opencode-annotate 0.5.0 → 0.7.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 +61 -0
- package/README.md +100 -24
- package/bridge/native-host.mjs +1 -1
- package/browser/capture.js +23 -3
- package/browser/manifest.json +2 -2
- package/browser/panel.css +123 -3
- package/browser/panel.html +50 -17
- package/browser/panel.mjs +469 -109
- package/browser/protocol.mjs +5 -1
- package/browser/worker.mjs +156 -25
- package/package.json +3 -2
- package/review.mjs +120 -37
- package/theme.mjs +115 -0
- package/tui.ts +27 -3
package/tui.ts
CHANGED
|
@@ -13,8 +13,8 @@ export default Plugin.define({
|
|
|
13
13
|
mode: "global",
|
|
14
14
|
commands: [{
|
|
15
15
|
id: "opencode-annotate.annotate",
|
|
16
|
-
title: "Annotate reply
|
|
17
|
-
description: "
|
|
16
|
+
title: "Annotate reply or document",
|
|
17
|
+
description: "The latest completed reply, or a Markdown/text file path",
|
|
18
18
|
group: "Annotate",
|
|
19
19
|
palette: true,
|
|
20
20
|
slash: { name: "annotate", arguments: true },
|
|
@@ -22,13 +22,37 @@ export default Plugin.define({
|
|
|
22
22
|
}, {
|
|
23
23
|
id: "opencode-annotate.annotate-last",
|
|
24
24
|
title: "Annotate last reply (TUI)",
|
|
25
|
-
description: "Annotate the latest completed reply;
|
|
25
|
+
description: "Annotate the latest completed reply; q sends (fork), or q then confirm",
|
|
26
26
|
group: "Annotate",
|
|
27
27
|
palette: true,
|
|
28
28
|
// Keep slash submission with a trailing space local to the command.
|
|
29
29
|
// Any supplied argument is deliberately ignored: this always means latest.
|
|
30
30
|
slash: { name: "annotate-last", arguments: true },
|
|
31
31
|
run: () => review.run(),
|
|
32
|
+
}, {
|
|
33
|
+
id: "opencode-annotate.annotate-pick",
|
|
34
|
+
title: "Annotate earlier text (TUI)",
|
|
35
|
+
description: "Choose a recent reply or progress update to annotate",
|
|
36
|
+
group: "Annotate",
|
|
37
|
+
palette: true,
|
|
38
|
+
slash: { name: "annotate-pick", arguments: true },
|
|
39
|
+
run: () => review.pick(),
|
|
40
|
+
}, {
|
|
41
|
+
id: "opencode-annotate.annotate-selection",
|
|
42
|
+
title: "Annotate selected text (TUI)",
|
|
43
|
+
description: "Open the message containing your last selection in this session",
|
|
44
|
+
group: "Annotate",
|
|
45
|
+
palette: true,
|
|
46
|
+
slash: { name: "annotate-selection", arguments: true },
|
|
47
|
+
run: () => review.selection(),
|
|
48
|
+
}, {
|
|
49
|
+
id: "opencode-annotate.annotate-web",
|
|
50
|
+
title: "Annotate webpage (browser)",
|
|
51
|
+
description: "Pair Chrome with this session, open a URL or HTML file, or off",
|
|
52
|
+
group: "Annotate",
|
|
53
|
+
palette: true,
|
|
54
|
+
slash: { name: "annotate-web", arguments: true },
|
|
55
|
+
run: review.web,
|
|
32
56
|
}],
|
|
33
57
|
}))
|
|
34
58
|
return null
|