@lay111/dsh-plugin-google 1.0.12 → 1.0.13

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/auth.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lay111/dsh-plugin-google",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Native DeepSeek Harness Plugin for Google Antigravity Pro & Gemini/Claude Flagship Models",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/auth.js CHANGED
@@ -188,8 +188,12 @@ export async function startGoogleOAuthLogin() {
188
188
  console.log(`🔑 Google Antigravity Pro OAuth Login`);
189
189
  console.log(`Opening browser: ${authUrl}\n======================================================\n`);
190
190
 
191
+ const isMac = process.platform === 'darwin';
192
+ const isWin = process.platform === 'win32';
193
+ const opener = isMac ? 'open' : isWin ? 'start' : 'xdg-open';
194
+
191
195
  try {
192
- spawn('xdg-open', [authUrl], { detached: true, stdio: 'ignore' }).unref();
196
+ spawn(opener, [authUrl], { detached: true, stdio: 'ignore' }).unref();
193
197
  } catch {}
194
198
 
195
199
  return new Promise((resolve, reject) => {