opencode-sync-plugin 0.1.0 → 0.1.2
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 +20 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Sync your OpenCode sessions to the cloud. Search, share, and access your coding history from anywhere.
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/opencode-sync-plugin)
|
|
6
|
+
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
### From npm
|
|
8
10
|
|
|
11
|
+
Published on npm: [opencode-sync-plugin](https://www.npmjs.com/package/opencode-sync-plugin)
|
|
12
|
+
|
|
9
13
|
```bash
|
|
10
14
|
npm install -g opencode-sync-plugin
|
|
11
15
|
```
|
|
@@ -45,7 +49,16 @@ No browser authentication required.
|
|
|
45
49
|
|
|
46
50
|
### 3. Add to OpenCode
|
|
47
51
|
|
|
48
|
-
|
|
52
|
+
**Quick setup (global config, works for all projects):**
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
mkdir -p ~/.config/opencode && echo '{
|
|
56
|
+
"$schema": "https://opencode.ai/config.json",
|
|
57
|
+
"plugin": ["opencode-sync-plugin"]
|
|
58
|
+
}' > ~/.config/opencode/opencode.json
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Or manually add** to your `opencode.json`:
|
|
49
62
|
|
|
50
63
|
```json
|
|
51
64
|
{
|
|
@@ -54,7 +67,12 @@ Add the plugin to your `opencode.json`:
|
|
|
54
67
|
}
|
|
55
68
|
```
|
|
56
69
|
|
|
57
|
-
|
|
70
|
+
**Config locations:**
|
|
71
|
+
|
|
72
|
+
- Global: `~/.config/opencode/opencode.json` (applies to all projects)
|
|
73
|
+
- Per-project: `./opencode.json` in your project root
|
|
74
|
+
|
|
75
|
+
> **Note:** If you already have an `opencode.json` with other settings, edit the file manually and add `"plugin": ["opencode-sync-plugin"]` to preserve your existing configuration. OpenCode merges configs, so you can keep your theme, model, and other settings.
|
|
58
76
|
|
|
59
77
|
## How it works
|
|
60
78
|
|