opencode-with-claude 1.9.1 → 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.
Files changed (2) hide show
  1. package/README.md +37 -3
  2. package/package.json +2 -2
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
- **3. Run OpenCode**
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
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "opencode-with-claude",
3
3
  "description": "OpenCode plugin to use your Claude Max subscription via Meridian proxy",
4
- "version": "1.9.1",
4
+ "version": "1.10.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "dependencies": {
9
- "@rynfar/meridian": "1.62.6",
9
+ "@rynfar/meridian": "1.68.0",
10
10
  "@rynfar/meridian-plugin-opencode-scrub": "0.2.0"
11
11
  },
12
12
  "devDependencies": {