@opencode-cloud/core 6.1.0 → 6.2.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/Cargo.toml +1 -1
- package/README.md +22 -0
- package/package.json +1 -1
- package/src/docker/Dockerfile +1 -1
package/Cargo.toml
CHANGED
package/README.md
CHANGED
|
@@ -156,6 +156,28 @@ occ update opencode
|
|
|
156
156
|
occ update opencode --branch dev
|
|
157
157
|
occ update opencode --commit <sha>
|
|
158
158
|
|
|
159
|
+
### Webapp-triggered update (command file)
|
|
160
|
+
|
|
161
|
+
When running in foreground mode (for example via `occ install`, which uses `occ start --no-daemon`),
|
|
162
|
+
the host listens for a command file on a bind mount. The webapp can write a simple JSON payload
|
|
163
|
+
to request an update.
|
|
164
|
+
|
|
165
|
+
Default paths (with default bind mounts enabled):
|
|
166
|
+
- Host: `~/.local/state/opencode/opencode-cloud/commands/update-command.json`
|
|
167
|
+
- Container: `/home/opencode/.local/state/opencode/opencode-cloud/commands/update-command.json`
|
|
168
|
+
|
|
169
|
+
Example payload:
|
|
170
|
+
```json
|
|
171
|
+
{
|
|
172
|
+
"command": "update_opencode",
|
|
173
|
+
"request_id": "webapp-1234",
|
|
174
|
+
"branch": "dev"
|
|
175
|
+
}
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
The host writes the result to:
|
|
179
|
+
`~/.local/state/opencode/opencode-cloud/commands/update-command.result.json`
|
|
180
|
+
|
|
159
181
|
# Install as a system service (starts on login/boot)
|
|
160
182
|
occ install
|
|
161
183
|
|
package/package.json
CHANGED
package/src/docker/Dockerfile
CHANGED
|
@@ -516,7 +516,7 @@ RUN echo 'export PATH="/home/opencode/.local/bin:$PATH"' >> /home/opencode/.zshr
|
|
|
516
516
|
# Clone the fork and build opencode from source (as non-root user)
|
|
517
517
|
# Pin to specific commit for reproducibility
|
|
518
518
|
# Build opencode from source (BuildKit cache mounts disabled for now)
|
|
519
|
-
RUN OPENCODE_COMMIT="
|
|
519
|
+
RUN OPENCODE_COMMIT="ed7d5c6d7fcaf0a4ab94894f8825a08a55eebb67" \
|
|
520
520
|
&& rm -rf /tmp/opencode-repo \
|
|
521
521
|
&& git clone --depth 1 https://github.com/pRizz/opencode.git /tmp/opencode-repo \
|
|
522
522
|
&& cd /tmp/opencode-repo \
|