opencode2 2.1.0 → 2.1.2

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 (2) hide show
  1. package/README.md +20 -0
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -27,6 +27,26 @@ opencode2 --version # prints the CLI version
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
52
  | Package | Platform |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode2",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
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,13 +26,13 @@
26
26
  "node": ">=18"
27
27
  },
28
28
  "optionalDependencies": {
29
- "opencode2-darwin-arm64": "2.1.0",
30
- "opencode2-darwin-x64": "2.1.0",
31
- "opencode2-linux-arm64": "2.1.0",
32
- "opencode2-linux-arm64-musl": "2.1.0",
33
- "opencode2-linux-x64": "2.1.0",
34
- "opencode2-linux-x64-musl": "2.1.0",
35
- "opencode2-windows-arm64": "2.1.0",
36
- "opencode2-windows-x64": "2.1.0"
29
+ "opencode2-darwin-arm64": "2.1.2",
30
+ "opencode2-darwin-x64": "2.1.2",
31
+ "opencode2-linux-arm64": "2.1.2",
32
+ "opencode2-linux-arm64-musl": "2.1.2",
33
+ "opencode2-linux-x64": "2.1.2",
34
+ "opencode2-linux-x64-musl": "2.1.2",
35
+ "opencode2-windows-arm64": "2.1.2",
36
+ "opencode2-windows-x64": "2.1.2"
37
37
  }
38
38
  }