You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This writes the singular V1-compatible field to the global `opencode.json(c)`. You can configure the same entry manually:
22
22
23
23
```json
24
24
{
25
-
"plugin": ["opencode-planner@0.5.3"]
25
+
"plugin": ["opencode-planner@0.6.0"]
26
26
}
27
27
```
28
28
29
29
OpenCode V1 reads `plugin`, resolves `./server`, and calls its legacy `server()` adapter. OpenCode V2 migrates the same entry into its plugin list, resolves `./server`, and calls the native `setup()` method. The package root remains a fallback for older V1 resolution behavior. Do not add the plural `plugins` field to a shared V1/V2 configuration: OpenCode V1 rejects that unknown field instead of ignoring it.
30
30
31
31
### OpenCode V2 only
32
32
33
-
If you no longer use OpenCode V1, use only the plural V2 field:
33
+
If you no longer use OpenCode V1, install the pinned release with OpenCode V2's plugin installer:
34
+
35
+
```bash
36
+
opencode2 plugin add opencode-planner@0.6.0
37
+
```
38
+
39
+
This writes the plural V2 field to the global `opencode.json(c)`. You can configure the same entry manually:
34
40
35
41
```json
36
42
{
37
-
"plugins": ["opencode-planner@0.5.3"]
43
+
"plugins": ["opencode-planner@0.6.0"]
38
44
}
39
45
```
40
46
41
47
### Upgrading
42
48
43
49
Change the pinned version whenever a new release is published. Do not use `@latest` as an update strategy: OpenCode resolves it when the plugin is first installed, but an already-installed `@latest` entry does not automatically advance to newer releases.
44
50
45
-
For a shared V1/V2 installation, rerun the installer with the new version and `--force`. For V2-only configuration, change the version in `plugins`. Restart OpenCode after installing or upgrading so the plugin is reloaded.
51
+
For a shared V1/V2 installation, rerun the V1 installer with the new version and `--force`. For a V2-only installation, remove the previous pinned spec and add the new one:
0 commit comments