opencode-with-claude 1.9.5 → 1.10.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/README.md +37 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,15 +30,24 @@ The plugin hooks into OpenCode's plugin system. When OpenCode launches, it start
|
|
|
30
30
|
|
|
31
31
|
**1. Install the plugin**
|
|
32
32
|
|
|
33
|
+
With npm:
|
|
34
|
+
|
|
33
35
|
```bash
|
|
34
36
|
npm install -g opencode-with-claude
|
|
35
37
|
```
|
|
36
38
|
|
|
39
|
+
Or with [Homebrew](https://brew.sh) (macOS/Linux), which keeps the plugin
|
|
40
|
+
updated through `brew upgrade` instead of `npm update -g`:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
brew install ianjwhite99/tap/opencode-with-claude
|
|
44
|
+
```
|
|
45
|
+
|
|
37
46
|
**2. Authenticate with Claude (one-time)**
|
|
38
47
|
|
|
39
48
|
```bash
|
|
40
|
-
npm install -g @anthropic-ai/claude-code
|
|
41
|
-
claude auth login
|
|
49
|
+
npm install -g @anthropic-ai/claude-code # or: brew install --cask claude-code
|
|
50
|
+
claude auth login
|
|
42
51
|
```
|
|
43
52
|
|
|
44
53
|
**3. Add to your `opencode.json`**
|
|
@@ -60,12 +69,33 @@ Global (`~/.config/opencode/opencode.json`) or project-level:
|
|
|
60
69
|
}
|
|
61
70
|
```
|
|
62
71
|
|
|
63
|
-
|
|
72
|
+
If you installed with Homebrew, point the `plugin` entry at the installed
|
|
73
|
+
file instead of the package name (the path is stable across upgrades, and
|
|
74
|
+
`brew info opencode-with-claude` prints it):
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
"plugin": ["file:///opt/homebrew/opt/opencode-with-claude/libexec/lib/node_modules/opencode-with-claude/dist/index.js"]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
On Linux or Intel macOS replace `/opt/homebrew` with your Homebrew prefix
|
|
81
|
+
(`brew --prefix`, usually `/home/linuxbrew/.linuxbrew` or `/usr/local`).
|
|
82
|
+
|
|
83
|
+
**4. Run OpenCode**
|
|
64
84
|
|
|
65
85
|
```bash
|
|
66
86
|
opencode
|
|
67
87
|
```
|
|
68
88
|
|
|
89
|
+
## Updating
|
|
90
|
+
|
|
91
|
+
- **Homebrew:** `brew upgrade opencode-with-claude`. The release workflow
|
|
92
|
+
bumps [`Formula/opencode-with-claude.rb`](Formula/opencode-with-claude.rb)
|
|
93
|
+
and mirrors it to the [`ianjwhite99/homebrew-tap`](https://github.com/ianjwhite99/homebrew-tap)
|
|
94
|
+
tap, so `brew update && brew upgrade` tracks new releases.
|
|
95
|
+
- **npm:** `npm update -g opencode-with-claude`. Note that OpenCode caches
|
|
96
|
+
plugins it installs by package name; if a new version is not picked up,
|
|
97
|
+
clear `~/.cache/opencode/node_modules/opencode-with-claude` and restart.
|
|
98
|
+
|
|
69
99
|
## Profiles and SDK features
|
|
70
100
|
|
|
71
101
|
The plugin now reads the same Meridian configuration files the `meridian` CLI
|
|
@@ -203,6 +233,10 @@ opencode-with-claude/
|
|
|
203
233
|
├── test/
|
|
204
234
|
│ ├── run.sh # Test runner
|
|
205
235
|
│ └── opencode.json # Test config
|
|
236
|
+
├── Formula/
|
|
237
|
+
│ └── opencode-with-claude.rb # Homebrew formula (mirrored to ianjwhite99/homebrew-tap)
|
|
238
|
+
├── scripts/
|
|
239
|
+
│ └── update-homebrew-formula.sh # Bumps the formula after an npm release
|
|
206
240
|
├── package.json
|
|
207
241
|
└── tsconfig.json
|
|
208
242
|
```
|
package/package.json
CHANGED