opencode2 2.0.17 → 2.0.18
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 +35 -7
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -8,15 +8,15 @@ OpenCode v2 CLI with prompt modes, code-review-graph auto-indexing, and the brow
|
|
|
8
8
|
npm install -g opencode2
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
Requires Node.js 18 or newer. The platform binary ships in `opencode2
|
|
12
|
-
automatically as an optional dependency.
|
|
11
|
+
Requires Node.js 18 or newer. The platform binary ships in a matching `opencode2-<platform>-<arch>`
|
|
12
|
+
package that is pulled in automatically as an optional dependency.
|
|
13
13
|
|
|
14
14
|
## Usage
|
|
15
15
|
|
|
16
16
|
```sh
|
|
17
17
|
opencode2 # interactive TUI
|
|
18
18
|
opencode2 --auto "prompt" # headless run with auto approvals
|
|
19
|
-
opencode2 --version #
|
|
19
|
+
opencode2 --version # prints the CLI version
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## What is added over stock OpenCode
|
|
@@ -27,13 +27,41 @@ opencode2 --version # opencode v2.0.16
|
|
|
27
27
|
with the code-review-graph MCP server exposing its 30 tools.
|
|
28
28
|
- **browser skill** — materialized into the skill cache with the `bsk` helper binary.
|
|
29
29
|
|
|
30
|
+
## Independent directories
|
|
31
|
+
|
|
32
|
+
opencode2 keeps its own config, data, cache, and state, so it never shares files with a stock
|
|
33
|
+
`opencode` install on the same machine:
|
|
34
|
+
|
|
35
|
+
| Purpose | Path |
|
|
36
|
+
| -------------------------------- | --------------------------------- |
|
|
37
|
+
| Config (`opencode.jsonc`, `cli.json`, `plugins/`) | `~/.config/opencode2` |
|
|
38
|
+
| Data (session database, logs) | `~/.local/share/opencode2` |
|
|
39
|
+
| Cache (packages, binaries) | `~/.cache/opencode2` |
|
|
40
|
+
| State (service registration, locks) | `~/.local/state/opencode2` |
|
|
41
|
+
|
|
42
|
+
The XDG base directories (`XDG_CONFIG_HOME`, `XDG_DATA_HOME`, `XDG_CACHE_HOME`, `XDG_STATE_HOME`)
|
|
43
|
+
still apply. Set `OPENCODE_APP_NAME` to replace the `opencode2` segment; `OPENCODE_APP_NAME=opencode`
|
|
44
|
+
shares the original install's directories again.
|
|
45
|
+
|
|
46
|
+
On first run, config files are copied from an existing `~/.config/opencode` so providers, models,
|
|
47
|
+
plugins, and CLI preferences carry over. The original install's `node_modules`/`package.json` and
|
|
48
|
+
`service*.json` credentials are left behind, along with its database and cache.
|
|
49
|
+
|
|
30
50
|
## Platform support
|
|
31
51
|
|
|
32
|
-
| Package
|
|
33
|
-
|
|
|
34
|
-
| `opencode2-linux-x64`
|
|
52
|
+
| Package | Platform |
|
|
53
|
+
| ------------------------------ | --------------------------- |
|
|
54
|
+
| `opencode2-linux-x64` | Linux x64 (glibc) |
|
|
55
|
+
| `opencode2-linux-x64-musl` | Linux x64 (musl, e.g. Alpine) |
|
|
56
|
+
| `opencode2-linux-arm64` | Linux arm64 (glibc) |
|
|
57
|
+
| `opencode2-linux-arm64-musl` | Linux arm64 (musl) |
|
|
58
|
+
| `opencode2-darwin-x64` | macOS x64 (Intel) |
|
|
59
|
+
| `opencode2-darwin-arm64` | macOS arm64 (Apple Silicon) |
|
|
60
|
+
| `opencode2-windows-x64` | Windows x64 |
|
|
61
|
+
| `opencode2-windows-arm64` | Windows arm64 |
|
|
35
62
|
|
|
36
|
-
|
|
63
|
+
npm installs only the package matching your OS and CPU; the launcher picks the right binary, using
|
|
64
|
+
the musl build first on musl systems.
|
|
37
65
|
|
|
38
66
|
## Repository
|
|
39
67
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode2",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.18",
|
|
4
4
|
"description": "OpenCode v2 CLI with prompt modes, code-review-graph auto-indexing, and the browser skill",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,6 +26,13 @@
|
|
|
26
26
|
"node": ">=18"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"opencode2-
|
|
29
|
+
"opencode2-darwin-arm64": "2.0.18",
|
|
30
|
+
"opencode2-darwin-x64": "2.0.18",
|
|
31
|
+
"opencode2-linux-arm64": "2.0.18",
|
|
32
|
+
"opencode2-linux-arm64-musl": "2.0.18",
|
|
33
|
+
"opencode2-linux-x64": "2.0.18",
|
|
34
|
+
"opencode2-linux-x64-musl": "2.0.18",
|
|
35
|
+
"opencode2-windows-arm64": "2.0.18",
|
|
36
|
+
"opencode2-windows-x64": "2.0.18"
|
|
30
37
|
}
|
|
31
38
|
}
|