polydev-ai 1.9.4 → 1.9.5

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/cliManager.js CHANGED
@@ -208,6 +208,15 @@ class CLIManager {
208
208
  if (process.env.POLYDEV_CLI_DEBUG) {
209
209
  console.log(`[CLI Debug] File-based auth check for ${provider.id}:`, authenticated);
210
210
  }
211
+ } else if (provider.id === 'gemini_cli') {
212
+ // Gemini CLI has no 'auth-status' subcommand — 'gemini auth-status' hangs/times out.
213
+ // Use file-based auth directly (checks ~/.gemini/oauth_creds.json for tokens)
214
+ authenticated = await this.checkAuthenticationByFiles(provider.id);
215
+
216
+ if (process.env.POLYDEV_CLI_DEBUG) {
217
+ console.log(`[CLI Debug] File-based auth check for ${provider.id}:`, authenticated);
218
+ }
219
+ // Note: quota exhaustion is detected at prompt time, not during detection
211
220
  } else {
212
221
  // For other providers, try command-based auth check first
213
222
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydev-ai",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "engines": {
5
5
  "node": ">=20.x <=22.x"
6
6
  },