opencode-auto-review-completed-todos 1.0.5 → 1.0.6
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 +15 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,9 +22,16 @@ This works with **any** todo source: the AI creating/checking todos via the todo
|
|
|
22
22
|
|
|
23
23
|
## Install
|
|
24
24
|
|
|
25
|
+
### Option 1 — npm (recommended)
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
npm install -g opencode-auto-review-completed-todos
|
|
29
|
+
cp $(npm root -g)/opencode-auto-review-completed-todos/opencode-auto-review-completed-todos.js ~/.config/opencode/plugins/
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Option 2 — manual
|
|
33
|
+
|
|
25
34
|
```bash
|
|
26
|
-
cp opencode-auto-review-completed-todos.ts ~/.config/opencode/plugins/
|
|
27
|
-
# or the compiled version:
|
|
28
35
|
cp opencode-auto-review-completed-todos.js ~/.config/opencode/plugins/
|
|
29
36
|
```
|
|
30
37
|
|
|
@@ -100,31 +107,34 @@ Uses `client.session.prompt()` with `synthetic: false` — the same approach as
|
|
|
100
107
|
|
|
101
108
|
## Status
|
|
102
109
|
|
|
103
|
-
**STABLE** — Ready for production use.
|
|
110
|
+
**STABLE** — Published to [npm](https://www.npmjs.com/package/opencode-auto-review-completed-todos) (v1.0.5). Ready for production use.
|
|
104
111
|
|
|
105
112
|
Plugin:
|
|
106
113
|
- Detects `todo.updated` events from OpenCode's internal todowrite tool
|
|
107
114
|
- Sends visible chat message when all todos are completed
|
|
108
115
|
- AI responds with a session review summary
|
|
116
|
+
- Explicitly instructs AI to create todos for any issues found (not just note them)
|
|
109
117
|
- Debounces to avoid premature triggering
|
|
110
118
|
- Fires only once per session
|
|
111
119
|
- Configurable `maxSessions` cap prevents memory leak
|
|
112
120
|
- Retry with exponential backoff on prompt failure
|
|
113
121
|
- Structured logging for observability
|
|
122
|
+
- Cleans up on `session.deleted`, `session.error`, `session.compacted`
|
|
114
123
|
|
|
115
124
|
## Files
|
|
116
125
|
|
|
117
126
|
| Path | Description |
|
|
118
127
|
|------|-------------|
|
|
119
128
|
| `~/.config/opencode/plugins/opencode-auto-review-completed-todos.js` | Main plugin (loaded by OpenCode) |
|
|
120
|
-
| `~/.
|
|
129
|
+
| `~/.npm-global/lib/node_modules/opencode-auto-review-completed-todos/` | npm package (global install) |
|
|
121
130
|
| `~/Dev/opencode-auto-review-completed-todos/` | Git-tracked source |
|
|
122
131
|
|
|
123
132
|
## Troubleshooting
|
|
124
133
|
|
|
125
134
|
**Plugin not loading:**
|
|
126
135
|
- Verify `opencode.json` has `"opencode-auto-review-completed-todos"` in the `plugin` array
|
|
127
|
-
- Ensure
|
|
136
|
+
- Ensure `~/.config/opencode/plugins/opencode-auto-review-completed-todos.js` exists
|
|
137
|
+
- Only the `.js` file should be in the plugins directory — do not copy the `.ts` file (it will cause the plugin to load twice)
|
|
128
138
|
|
|
129
139
|
**Message not appearing:**
|
|
130
140
|
- Todos must be created via OpenCode's todowrite tool (not raw text like `- [ ]`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-auto-review-completed-todos",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Auto-detect when all session todos are completed and trigger a review. Yin to opencode-todo-reminder's yang.",
|
|
5
5
|
"website": "https://dracon.uk",
|
|
6
6
|
"type": "module",
|