@hmawla/co-assistant 1.0.2 → 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/index.js CHANGED
@@ -821,7 +821,13 @@ var CopilotClientWrapper = class {
821
821
  }
822
822
  try {
823
823
  logger2.info("Starting Copilot client\u2026");
824
- this.client = new CopilotClient();
824
+ const opts = {};
825
+ const token = process.env.GITHUB_TOKEN;
826
+ if (token) {
827
+ opts.githubToken = token;
828
+ logger2.debug("Using GITHUB_TOKEN for SDK authentication");
829
+ }
830
+ this.client = new CopilotClient(opts);
825
831
  await this.client.start();
826
832
  this.isStarted = true;
827
833
  logger2.info("Copilot client started successfully");