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
Copy file name to clipboardExpand all lines: README.md
+26-31Lines changed: 26 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,39 +15,36 @@ An OpenCode plugin that integrates OpenSpec, providing a dedicated agent for pla
15
15
16
16
## Installation
17
17
18
-
You don't need to build this plugin yourself. You can install it via npm or download the pre-built binary.
18
+
### Option 1: Install from NPM (Recommended)
19
19
20
-
### Option 1: Install via npm (Recommended)
20
+
Simply add the plugin package name to your `opencode.json` configuration file (usually located at `~/.config/opencode/opencode.json` or `.opencode/opencode.json`):
21
21
22
-
1. Install the plugin globally:
23
-
```bash
24
-
npm install -g opencode-plugin-openspec
25
-
```
22
+
```json
23
+
{
24
+
"plugin": [
25
+
"opencode-plugin-openspec"
26
+
]
27
+
}
28
+
```
26
29
27
-
2. Add it to your `opencode.json` (usually in `~/.config/opencode/opencode.json` or `.opencode/opencode.json`):
30
+
OpenCode will automatically download and install the plugin the next time it runs.
28
31
29
-
```json
30
-
{
31
-
"plugin": [
32
-
"opencode-plugin-openspec"
33
-
]
34
-
}
35
-
```
36
-
*(Note: If OpenCode doesn't support package names directly, you may need to provide the full path, e.g., `$(npm root -g)/opencode-plugin-openspec/dist/index.js`)*
37
-
38
-
### Option 2: Download from Releases
39
-
40
-
1. Go to the [Releases](https://github.com/yourusername/opencode-plugin-openspec/releases) page.
41
-
2. Download the latest `index.js`.
42
-
3. Place it anywhere on your disk.
43
-
4. Add the path to your `opencode.json`:
44
-
```json
45
-
{
46
-
"plugin": [
47
-
"/absolute/path/to/downloaded/index.js"
48
-
]
49
-
}
50
-
```
32
+
### Option 2: Manual / Local Installation
33
+
34
+
If you want to install from a local build or a specific file:
0 commit comments