gemini-coder 0.1.1 → 0.1.2

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/dist/cli.js CHANGED
@@ -10,7 +10,7 @@ const sessionManager = new SessionManager();
10
10
  program
11
11
  .name('gemini')
12
12
  .description('Gemini Coder Pro CLI - Advanced AI Coding Agent')
13
- .version('0.1.1');
13
+ .version('0.1.2');
14
14
  program
15
15
  .command('chat', { isDefault: true })
16
16
  .description('Start an interactive chat session')
@@ -18,7 +18,7 @@ program
18
18
  .option('-c, --continue', 'Continue the most recent session')
19
19
  .option('-m, --model <name>', 'Specify the model to use', 'gemini-3.1-pro-preview')
20
20
  .action(async (options) => {
21
- printBootScreen('Gemini Coder Pro', 'v0.1.1');
21
+ printBootScreen('Gemini Coder Pro', 'v0.1.2');
22
22
  let session;
23
23
  if (options.continue) {
24
24
  session = await sessionManager.getLatestSession();
@@ -265,7 +265,15 @@ export class Orchestrator {
265
265
  }
266
266
  catch (err) {
267
267
  spinner.fail(chalk.red('API Error'));
268
- console.error(chalk.red(`\n[API Error]: ${err.message || err}`));
268
+ const message = String(err?.message || err);
269
+ const isOauthDnsIssue = message.includes('oauth2.googleapis.com') ||
270
+ message.includes('ENOTFOUND') ||
271
+ message.includes('EAI_AGAIN') ||
272
+ message.includes('ECONNRESET');
273
+ console.error(chalk.red(`\n[API Error]: ${message}`));
274
+ if (isOauthDnsIssue) {
275
+ console.error(chalk.yellow('\n[Hint]: The CLI could not reach oauth2.googleapis.com to exchange the service-account token. Check network access, DNS, firewall, or proxy settings on this machine, then retry.'));
276
+ }
269
277
  return;
270
278
  }
271
279
  let responseParts = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemini-coder",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {