opencode-next-prompt 0.0.1 → 0.0.3
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 +5 -3
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Predicts your next message after the assistant replies and shows it at the promp
|
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
|
-
Add to `~/.config/opencode/
|
|
7
|
+
Add to `~/.config/opencode/tui.json`:
|
|
8
8
|
|
|
9
9
|
```json
|
|
10
10
|
{
|
|
@@ -14,6 +14,8 @@ Add to `~/.config/opencode/opencode.jsonc` (or the project-level `opencode.json`
|
|
|
14
14
|
|
|
15
15
|
Restart opencode. The package and its dependencies are installed automatically.
|
|
16
16
|
|
|
17
|
+
> TUI plugins are declared in `tui.json`; the `plugin` array in `opencode.jsonc` is for server plugins (e.g. opencode-polkit).
|
|
18
|
+
|
|
17
19
|
## Usage
|
|
18
20
|
|
|
19
21
|
- After each reply, a suggested next message appears at the input in gray
|
|
@@ -34,8 +36,8 @@ Restart opencode. The package and its dependencies are installed automatically.
|
|
|
34
36
|
|
|
35
37
|
| Key | Default | Description |
|
|
36
38
|
|---|---|---|
|
|
37
|
-
| `acceptKey` | `
|
|
38
|
-
| `position` | `
|
|
39
|
+
| `acceptKey` | `down` | Key to accept the suggestion (only effective while the input is empty) |
|
|
40
|
+
| `position` | `right` | Where the suggestion shows: `left` inside the input; `right` below-right of the input |
|
|
39
41
|
| `timeoutMs` | `20000` | Per-prediction timeout; the suggestion is dropped on timeout |
|
|
40
42
|
|
|
41
43
|
## How it works
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-next-prompt",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Predicts your next message after the assistant replies in OpenCode
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Predicts your next message after the assistant replies in OpenCode \u2014 accept it with the right arrow",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./tui": {
|
|
@@ -34,7 +34,12 @@
|
|
|
34
34
|
"bun-types": "^1.2.0",
|
|
35
35
|
"typescript": "^5.5.0"
|
|
36
36
|
},
|
|
37
|
-
"keywords": [
|
|
37
|
+
"keywords": [
|
|
38
|
+
"opencode-plugin",
|
|
39
|
+
"tui",
|
|
40
|
+
"suggestion",
|
|
41
|
+
"prediction"
|
|
42
|
+
],
|
|
38
43
|
"license": "MIT",
|
|
39
44
|
"repository": {
|
|
40
45
|
"type": "git",
|