opencode-gemini-auth 1.3.3 → 1.3.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/README.md CHANGED
@@ -20,7 +20,7 @@ Add the plugin to your Opencode configuration file
20
20
  ```json
21
21
  {
22
22
  "$schema": "https://opencode.ai/config.json",
23
- "plugin": ["opencode-gemini-auth"]
23
+ "plugin": ["opencode-gemini-auth@latest"]
24
24
  }
25
25
  ```
26
26
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "opencode-gemini-auth",
3
3
  "module": "index.ts",
4
- "version": "1.3.3",
4
+ "version": "1.3.4",
5
5
  "author": "jenslys",
6
6
  "repository": "https://github.com/jenslys/opencode-gemini-auth",
7
7
  "files": [
package/src/plugin.ts CHANGED
@@ -254,9 +254,13 @@ function openBrowserUrl(url: string): void {
254
254
  // Best-effort: don't block auth flow if spawning fails.
255
255
  const platform = process.platform;
256
256
  const command =
257
- platform === "darwin" ? "open" : platform === "win32" ? "cmd" : "xdg-open";
257
+ platform === "darwin"
258
+ ? "open"
259
+ : platform === "win32"
260
+ ? "rundll32"
261
+ : "xdg-open";
258
262
  const args =
259
- platform === "win32" ? ["/c", "start", "", url] : [url];
263
+ platform === "win32" ? ["url.dll,FileProtocolHandler", url] : [url];
260
264
  const child = spawn(command, args, {
261
265
  stdio: "ignore",
262
266
  detached: true,