@bybrawe/opencode-loop 0.5.25 → 0.5.26

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +59 -8
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.26
4
+
5
+ - Added an explicit npm-based OpenCode installation path: `npm install -g @bybrawe/opencode-loop@latest` followed by `opencode-loop`.
6
+ - Clarified that project-local `npm install @bybrawe/opencode-loop` alone does not perform the OpenCode installer step.
7
+ - Documented update and uninstall flows for both `npx` and global npm installation methods.
8
+ - Added matching npm installation instructions for the recommended dedicated `@bybrawe/opencode-goal` plugin.
9
+
10
+ ## 0.5.25
11
+
12
+ - Added safe `--uninstall` support to the Loop installer while preserving unrelated OpenCode configuration and project Loop state.
13
+ - Reworked README installation/removal guidance and moved install/update instructions to the top.
14
+ - Documented coexistence with OpenCode Goals and recommends the dedicated Goals plugin for stronger persistent Goal contracts and host-verified completion.
15
+ - Warned against driving the same session/work simultaneously with Loop's experimental `/loop-goal` and the dedicated `/goal` continuation system.
16
+
3
17
  ## 0.5.24
4
18
 
5
19
  - Cross-check stale OpenCode `busy`/`retry` status against the chronological session tail and only recover early when the latest assistant message has a real `time.completed`; an explicitly unfinished assistant tail is never force-finalized.
package/README.md CHANGED
@@ -4,16 +4,38 @@
4
4
 
5
5
  OpenCode Loop adds `/loop`, scheduled prompt/command/shell jobs, compact scheduling, safe long-running continuation helpers, and the `opencode-loopd` background daemon.
6
6
 
7
- > **Current release: `0.5.25`.** Loop also contains an older experimental `/loop-goal` mode, but for strong persistent Goal contracts and host-verified completion, use the separate **OpenCode Goals** plugin described below.
7
+ > **Current release: `0.5.26`.** Loop also contains an older experimental `/loop-goal` mode, but for strong persistent Goal contracts and host-verified completion, use the separate **OpenCode Goals** plugin described below.
8
8
 
9
9
  ## Install or update
10
10
 
11
- Recommended installation from any shell on Windows, macOS, or Linux:
11
+ Choose either installation method below.
12
+
13
+ ### Option 1 — one-command install with `npx` (recommended)
12
14
 
13
15
  ```bash
14
16
  npx -y @bybrawe/opencode-loop@latest
15
17
  ```
16
18
 
19
+ Run the same command again whenever you want to update.
20
+
21
+ ### Option 2 — install with npm
22
+
23
+ Install OpenCode Loop globally so its installer and daemon commands are available:
24
+
25
+ ```bash
26
+ npm install -g @bybrawe/opencode-loop@latest
27
+ opencode-loop
28
+ ```
29
+
30
+ To update later:
31
+
32
+ ```bash
33
+ npm install -g @bybrawe/opencode-loop@latest
34
+ opencode-loop
35
+ ```
36
+
37
+ `npm install @bybrawe/opencode-loop` by itself only adds the Node package to the current project. For a normal OpenCode installation, use the global npm method above or the recommended `npx` installer.
38
+
17
39
  The installer:
18
40
 
19
41
  - installs/updates the OpenCode Loop plugin;
@@ -29,18 +51,23 @@ Then **fully restart OpenCode** and verify:
29
51
  /loop-doctor
30
52
  ```
31
53
 
32
- Run the same command again whenever you want to update:
54
+ ### Uninstall
55
+
56
+ If you use the `npx` installer:
33
57
 
34
58
  ```bash
35
- npx -y @bybrawe/opencode-loop@latest
59
+ npx -y @bybrawe/opencode-loop@latest --uninstall
36
60
  ```
37
61
 
38
- ### Uninstall
62
+ If you installed OpenCode Loop globally with npm:
39
63
 
40
64
  ```bash
41
- npx -y @bybrawe/opencode-loop@latest --uninstall
65
+ opencode-loop --uninstall
66
+ npm uninstall -g @bybrawe/opencode-loop
42
67
  ```
43
68
 
69
+ Run `opencode-loop --uninstall` before removing the global npm package so it can clean its OpenCode registrations and managed command files.
70
+
44
71
  Uninstall removes known OpenCode Loop package registrations, local plugin files, `/loop-*` command markdown files, and the Loop local command agent while preserving unrelated OpenCode configuration.
45
72
 
46
73
  Project Loop state is intentionally preserved under:
@@ -113,12 +140,21 @@ Loop is idle-safe: if a job becomes due while the session is busy, active tools
113
140
 
114
141
  OpenCode Loop still includes the older **experimental** `/loop-goal` workflow. It is useful for compatibility and lightweight outcome-driven automation, but it is not the strongest Goal implementation in this project family.
115
142
 
116
- For durable Goal Contracts, host-owned evidence, semantic verification, native Todo coordination, revision isolation, false-completion protection, restart recovery, Goal audit, budgets, and ordered Goals, install **OpenCode Goals**:
143
+ For durable Goal Contracts, host-owned evidence, semantic verification, native Todo coordination, revision isolation, false-completion protection, restart recovery, Goal audit, budgets, and ordered Goals, install **OpenCode Goals**.
144
+
145
+ Recommended one-command installer:
117
146
 
118
147
  ```bash
119
148
  npx -y @bybrawe/opencode-goal@latest
120
149
  ```
121
150
 
151
+ Or install its CLI globally with npm and run the installer:
152
+
153
+ ```bash
154
+ npm install -g @bybrawe/opencode-goal@latest
155
+ opencode-goal
156
+ ```
157
+
122
158
  Then use:
123
159
 
124
160
  ```text
@@ -141,13 +177,21 @@ Do **not** run Loop’s `/loop-goal` and OpenCode Goals `/goal` against the same
141
177
 
142
178
  Likewise, avoid leaving a prompt-producing `/loop ...` job continuously injecting agent turns into a session while an OpenCode Goal is actively continuing. Use separate sessions or pause/remove that prompt loop until the Goal is done. Scheduled shell/command jobs should also be chosen carefully so they do not race files or verification.
143
179
 
144
- Install both when needed:
180
+ Install both when needed with `npx`:
145
181
 
146
182
  ```bash
147
183
  npx -y @bybrawe/opencode-loop@latest
148
184
  npx -y @bybrawe/opencode-goal@latest
149
185
  ```
150
186
 
187
+ Or install both globally with npm, then run both installers:
188
+
189
+ ```bash
190
+ npm install -g @bybrawe/opencode-loop@latest @bybrawe/opencode-goal@latest
191
+ opencode-loop
192
+ opencode-goal
193
+ ```
194
+
151
195
  ## Core commands
152
196
 
153
197
  | Command | Purpose |
@@ -331,6 +375,13 @@ For new work where completion integrity matters, prefer the dedicated **OpenCode
331
375
  npx -y @bybrawe/opencode-goal@latest
332
376
  ```
333
377
 
378
+ or:
379
+
380
+ ```bash
381
+ npm install -g @bybrawe/opencode-goal@latest
382
+ opencode-goal
383
+ ```
384
+
334
385
  ## State and checkpoints
335
386
 
336
387
  Loop runtime state:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bybrawe/opencode-loop",
3
- "version": "0.5.25",
3
+ "version": "0.5.26",
4
4
  "description": "Claude Code/Codex style /loop and experimental goal mode for OpenCode: heartbeat scheduler, idle-safe loops, scheduled commands, compact scheduling, verification, checkpoints, and persistent coding goals.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",