opencode-jev-model-router 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +14 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,17 +2,26 @@
2
2
 
3
3
  Automatic per-turn model picking for [OpenCode](https://opencode.ai), powered by [Jev](https://typesafe.ai). Built for **[OpenCode Go](https://opencode.ai/docs/go/)**: easy turns burn generous models; hard turns get Luna.
4
4
 
5
+ [npm](https://www.npmjs.com/package/opencode-jev-model-router) · [GitHub](https://github.com/aaronshaf/opencode-jev-model-router)
6
+
5
7
  ## Quick start
6
8
 
7
9
  **1. Install the plugin**
8
10
 
9
11
  ```bash
10
- git clone https://github.com/aaronshaf/opencode-jev-model-router.git
11
- cd opencode-jev-model-router
12
- npm install && npm run build
13
- opencode plugin "$(pwd)" -g
12
+ opencode plugin opencode-jev-model-router -g
13
+ ```
14
+
15
+ Or add it to `~/.config/opencode/opencode.json`:
16
+
17
+ ```json
18
+ {
19
+ "plugin": ["opencode-jev-model-router"]
20
+ }
14
21
  ```
15
22
 
23
+ Pin a version if you prefer: `"opencode-jev-model-router@0.1.0"`.
24
+
16
25
  **2. Add your Jev key** (OpenCode usually does not see shell `export`s)
17
26
 
18
27
  ```bash
@@ -20,11 +29,7 @@ printf '%s\n' "$JEV_KEY" > ~/.config/opencode/opencode-jev-router.key
20
29
  chmod 600 ~/.config/opencode/opencode-jev-router.key
21
30
  ```
22
31
 
23
- **3. Optional:** copy defaults you can edit later
24
-
25
- ```bash
26
- cp opencode-jev-router.example.json ~/.config/opencode/opencode-jev-router.json
27
- ```
32
+ **3. Optional:** copy [example config](https://github.com/aaronshaf/opencode-jev-model-router/blob/main/opencode-jev-router.example.json) to `~/.config/opencode/opencode-jev-router.json` (defaults work without this).
28
33
 
29
34
  **4. Restart OpenCode**, then check:
30
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-jev-model-router",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Jev-based automatic per-turn model routing for OpenCode",
5
5
  "type": "module",
6
6
  "license": "MIT",