@hmawla/co-assistant 1.0.3 → 1.0.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/dist/cli/index.js CHANGED
@@ -446,7 +446,13 @@ var init_client = __esm({
446
446
  }
447
447
  try {
448
448
  logger2.info("Starting Copilot client\u2026");
449
- this.client = new CopilotClient();
449
+ const opts = {};
450
+ const token = process.env.GITHUB_TOKEN;
451
+ if (token) {
452
+ opts.githubToken = token;
453
+ logger2.debug("Using GITHUB_TOKEN for SDK authentication");
454
+ }
455
+ this.client = new CopilotClient(opts);
450
456
  await this.client.start();
451
457
  this.isStarted = true;
452
458
  logger2.info("Copilot client started successfully");