agentgui 1.0.834 → 1.0.835
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/lib/oauth-gemini.js +0 -3
- package/package.json +1 -1
package/lib/oauth-gemini.js
CHANGED
|
@@ -15,10 +15,8 @@ const GEMINI_SCOPES = [
|
|
|
15
15
|
const GEMINI_DIR = path.join(os.homedir(), '.gemini');
|
|
16
16
|
const GEMINI_OAUTH_FILE = path.join(GEMINI_DIR, 'oauth_creds.json');
|
|
17
17
|
const GEMINI_ACCOUNTS_FILE = path.join(GEMINI_DIR, 'google_accounts.json');
|
|
18
|
-
|
|
19
18
|
let geminiOAuthState = { status: 'idle', error: null, email: null };
|
|
20
19
|
let geminiOAuthPending = null;
|
|
21
|
-
|
|
22
20
|
function extractOAuthFromFile(oauth2Path) {
|
|
23
21
|
try {
|
|
24
22
|
const src = fs.readFileSync(oauth2Path, 'utf8');
|
|
@@ -197,6 +195,5 @@ export function getGeminiOAuthStatus() {
|
|
|
197
195
|
} catch (_) {}
|
|
198
196
|
return null;
|
|
199
197
|
}
|
|
200
|
-
|
|
201
198
|
export function getGeminiOAuthState() { return geminiOAuthState; }
|
|
202
199
|
export function getGeminiOAuthPending() { return geminiOAuthPending; }
|