opencode-studio-server 1.0.1 → 1.0.3

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 ADDED
@@ -0,0 +1,38 @@
1
+ # OpenCode Studio Server
2
+
3
+ Backend server for [OpenCode Studio](https://github.com/Microck/opencode-studio).
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g opencode-studio-server
9
+ ```
10
+
11
+ ## Setup
12
+
13
+ After installing, register the protocol handler to allow the web UI to launch the backend:
14
+
15
+ ```bash
16
+ opencode-studio-server --register
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ Start the server manually:
22
+
23
+ ```bash
24
+ opencode-studio-server
25
+ ```
26
+
27
+ The server runs on port **3001** and provides an API for managing your local OpenCode configuration.
28
+
29
+ ## Features
30
+
31
+ - **Protocol Handler**: `opencodestudio://` support for one-click actions
32
+ - **Config Management**: Reads/writes `~/.config/opencode/opencode.json`
33
+ - **MCP Management**: Add/remove/toggle MCP servers
34
+ - **Auth**: Manage authentication profiles
35
+
36
+ ## License
37
+
38
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-studio-server",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Backend server for OpenCode Studio - manages opencode configurations",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -16,7 +16,7 @@ args = ""
16
16
  If WScript.Arguments.Count > 0 Then
17
17
  args = " """ & WScript.Arguments(0) & """"
18
18
  End If
19
- WshShell.Run """${nodePath.replace(/\\/g, '\\\\')}""" & " ""${scriptPath.replace(/\\/g, '\\\\')}"" " & args, 0, False
19
+ WshShell.Run """${nodePath}""" & " ""${scriptPath}"" " & args, 0, False
20
20
  `;
21
21
 
22
22
  try {
@@ -26,7 +26,7 @@ WshShell.Run """${nodePath.replace(/\\/g, '\\\\')}""" & " ""${scriptPath.replace
26
26
  }
27
27
 
28
28
  // Register protocol to use wscript with the VBS launcher
29
- const command = `wscript.exe "${vbsPath.replace(/\\/g, '\\\\')}" "%1"`;
29
+ const command = `wscript.exe "${vbsPath}" "%1"`;
30
30
 
31
31
  const regCommands = [
32
32
  `reg add "HKCU\\Software\\Classes\\${PROTOCOL}" /ve /d "URL:OpenCode Studio Protocol" /f`,