opencode-sync-plugin 0.1.1 → 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.
Files changed (2) hide show
  1. package/README.md +16 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -49,7 +49,16 @@ No browser authentication required.
49
49
 
50
50
  ### 3. Add to OpenCode
51
51
 
52
- Add the plugin to your `opencode.json`:
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`:
53
62
 
54
63
  ```json
55
64
  {
@@ -58,7 +67,12 @@ Add the plugin to your `opencode.json`:
58
67
  }
59
68
  ```
60
69
 
61
- Or add globally at `~/.config/opencode/opencode.json`.
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.
62
76
 
63
77
  ## How it works
64
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-sync-plugin",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Sync your OpenCode sessions to the cloud",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",