@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/README.md +22 -1
- package/dist/cli/index.js +116 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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");
|