opencode-sync-plugin 0.3.0 → 0.3.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 +22 -0
- package/dist/cli.js +12 -9
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -4,6 +4,14 @@ Sync your OpenCode sessions to the cloud. Search, share, and access your coding
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/opencode-sync-plugin)
|
|
6
6
|
|
|
7
|
+
## OpenSync Ecosystem
|
|
8
|
+
|
|
9
|
+
| Package | Description | Links |
|
|
10
|
+
|---------|-------------|-------|
|
|
11
|
+
| **OpenSync** | Beautiful dashboards for OpenCode and Claude Code sessions synced to the cloud. Track coding sessions, analyze tool usage, and monitor token consumption across projects. | [Website](https://opensync.dev/) / [GitHub](https://github.com/waynesutton/opensync) |
|
|
12
|
+
| **opencode-sync-plugin** | Sync your OpenCode sessions to the OpenSync dashboard. | [GitHub](https://github.com/waynesutton/opencode-sync-plugin) / [npm](https://www.npmjs.com/package/opencode-sync-plugin) |
|
|
13
|
+
| **claude-code-sync** | Sync your Claude Code sessions to the OpenSync dashboard. | [GitHub](https://github.com/waynesutton/claude-code-sync) / [npm](https://www.npmjs.com/package/claude-code-sync) |
|
|
14
|
+
|
|
7
15
|
## Installation
|
|
8
16
|
|
|
9
17
|
### From npm
|
|
@@ -168,6 +176,8 @@ This plugin exports both a named and default export so OpenCode can load it from
|
|
|
168
176
|
|
|
169
177
|
## Troubleshooting
|
|
170
178
|
|
|
179
|
+
Having issues? [Open an issue on GitHub](https://github.com/waynesutton/opencode-sync-plugin/issues) and we'll help you out.
|
|
180
|
+
|
|
171
181
|
### OpenCode won't start or shows blank screen
|
|
172
182
|
|
|
173
183
|
If OpenCode hangs or shows a blank screen after adding the plugin, remove the plugin config:
|
|
@@ -222,6 +232,10 @@ opencode-sync status
|
|
|
222
232
|
|
|
223
233
|
Plugin logs are available in OpenCode's log output. Look for entries with `service: "opencode-sync"`.
|
|
224
234
|
|
|
235
|
+
### Still having issues?
|
|
236
|
+
|
|
237
|
+
If none of the above solutions work, [open an issue](https://github.com/waynesutton/opencode-sync-plugin/issues) with details about your setup and the error you're seeing.
|
|
238
|
+
|
|
225
239
|
## Development
|
|
226
240
|
|
|
227
241
|
```bash
|
|
@@ -235,6 +249,14 @@ npm run build
|
|
|
235
249
|
npm run dev
|
|
236
250
|
```
|
|
237
251
|
|
|
252
|
+
## Links
|
|
253
|
+
|
|
254
|
+
- [OpenSync Dashboard](https://opensync.dev/)
|
|
255
|
+
- [OpenSync GitHub](https://github.com/waynesutton/opensync)
|
|
256
|
+
- [opencode-sync-plugin npm](https://www.npmjs.com/package/opencode-sync-plugin)
|
|
257
|
+
- [claude-code-sync npm](https://www.npmjs.com/package/claude-code-sync)
|
|
258
|
+
- [Report Issues](https://github.com/waynesutton/opencode-sync-plugin/issues)
|
|
259
|
+
|
|
238
260
|
## License
|
|
239
261
|
|
|
240
262
|
MIT
|
package/dist/cli.js
CHANGED
|
@@ -77,7 +77,7 @@ async function login() {
|
|
|
77
77
|
process.exit(1);
|
|
78
78
|
}
|
|
79
79
|
const apiKey = await prompt(
|
|
80
|
-
"API
|
|
80
|
+
"Get your API key from your OpenSync.dev Settings page, starts with osk_. Enter it here: "
|
|
81
81
|
);
|
|
82
82
|
if (!apiKey) {
|
|
83
83
|
console.error("API Key is required");
|
|
@@ -141,17 +141,20 @@ function verify() {
|
|
|
141
141
|
);
|
|
142
142
|
console.log();
|
|
143
143
|
}
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
);
|
|
150
|
-
const projectConfigPath = join(process.cwd(), "opencode.json");
|
|
144
|
+
const configDir = join(homedir(), ".config", "opencode");
|
|
145
|
+
const globalJsonConfig = join(configDir, "opencode.json");
|
|
146
|
+
const globalJsoncConfig = join(configDir, "opencode.jsonc");
|
|
147
|
+
const projectJsonConfig = join(process.cwd(), "opencode.json");
|
|
148
|
+
const projectJsoncConfig = join(process.cwd(), "opencode.jsonc");
|
|
151
149
|
let configFound = false;
|
|
152
150
|
let configPath = "";
|
|
153
151
|
let pluginRegistered = false;
|
|
154
|
-
for (const path of [
|
|
152
|
+
for (const path of [
|
|
153
|
+
globalJsonConfig,
|
|
154
|
+
globalJsoncConfig,
|
|
155
|
+
projectJsonConfig,
|
|
156
|
+
projectJsoncConfig
|
|
157
|
+
]) {
|
|
155
158
|
if (existsSync(path)) {
|
|
156
159
|
configFound = true;
|
|
157
160
|
configPath = path;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-sync-plugin",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Sync your OpenCode sessions to the
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"description": "Sync your OpenCode sessions to the OpenSync dashboard",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -24,16 +24,24 @@
|
|
|
24
24
|
"keywords": [
|
|
25
25
|
"opencode",
|
|
26
26
|
"opencode-plugin",
|
|
27
|
+
"opensync",
|
|
27
28
|
"ai",
|
|
28
29
|
"sync",
|
|
29
30
|
"sessions",
|
|
30
|
-
"convex"
|
|
31
|
+
"convex",
|
|
32
|
+
"claude-code",
|
|
33
|
+
"ai-coding",
|
|
34
|
+
"session-tracking"
|
|
31
35
|
],
|
|
32
36
|
"author": "waynesutton",
|
|
33
37
|
"repository": {
|
|
34
38
|
"type": "git",
|
|
35
39
|
"url": "https://github.com/waynesutton/opencode-sync-plugin"
|
|
36
40
|
},
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/waynesutton/opencode-sync-plugin/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://opensync.dev/",
|
|
37
45
|
"license": "MIT",
|
|
38
46
|
"devDependencies": {
|
|
39
47
|
"@opencode-ai/plugin": "^1.1.25",
|