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 +1 -1
- package/package.json +1 -1
- package/src/plugin.ts +6 -2
package/README.md
CHANGED
package/package.json
CHANGED
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"
|
|
257
|
+
platform === "darwin"
|
|
258
|
+
? "open"
|
|
259
|
+
: platform === "win32"
|
|
260
|
+
? "rundll32"
|
|
261
|
+
: "xdg-open";
|
|
258
262
|
const args =
|
|
259
|
-
platform === "win32" ? ["
|
|
263
|
+
platform === "win32" ? ["url.dll,FileProtocolHandler", url] : [url];
|
|
260
264
|
const child = spawn(command, args, {
|
|
261
265
|
stdio: "ignore",
|
|
262
266
|
detached: true,
|