opencode-studio-server 1.0.2 → 1.0.4

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/index.js CHANGED
@@ -32,7 +32,11 @@ app.use((req, res, next) => {
32
32
  const ALLOWED_ORIGINS = [
33
33
  'http://localhost:3000',
34
34
  'http://127.0.0.1:3000',
35
+ 'https://opencode-studio.vercel.app',
36
+ 'https://opencode.micr.dev',
37
+ 'https://opencode-studio.micr.dev',
35
38
  /\.vercel\.app$/,
39
+ /\.micr\.dev$/,
36
40
  ];
37
41
 
38
42
  app.use(cors({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-studio-server",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Backend server for OpenCode Studio - manages opencode configurations",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -26,7 +26,7 @@ WshShell.Run """${nodePath}""" & " ""${scriptPath}"" " & args, 0, False
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`,