opencode-with-claude 1.9.5 → 1.10.1
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 +34 -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,32 @@ 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 the formula in [`ianjwhite99/homebrew-tap`](https://github.com/ianjwhite99/homebrew-tap)
|
|
93
|
+
after every npm publish, so `brew update && brew upgrade` tracks new releases.
|
|
94
|
+
- **npm:** `npm update -g opencode-with-claude`. Note that OpenCode caches
|
|
95
|
+
plugins it installs by package name; if a new version is not picked up,
|
|
96
|
+
clear `~/.cache/opencode/node_modules/opencode-with-claude` and restart.
|
|
97
|
+
|
|
69
98
|
## Profiles and SDK features
|
|
70
99
|
|
|
71
100
|
The plugin now reads the same Meridian configuration files the `meridian` CLI
|
|
@@ -203,6 +232,8 @@ opencode-with-claude/
|
|
|
203
232
|
├── test/
|
|
204
233
|
│ ├── run.sh # Test runner
|
|
205
234
|
│ └── opencode.json # Test config
|
|
235
|
+
├── scripts/
|
|
236
|
+
│ └── update-homebrew-formula.sh # Bumps the Homebrew formula (in ianjwhite99/homebrew-tap) after an npm release
|
|
206
237
|
├── package.json
|
|
207
238
|
└── tsconfig.json
|
|
208
239
|
```
|
package/package.json
CHANGED