@codebakers/cli 1.0.3 → 1.0.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/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import { join } from "path";
|
|
|
20
20
|
|
|
21
21
|
// src/utils/api.ts
|
|
22
22
|
import nodeFetch from "node-fetch";
|
|
23
|
-
var fetchFn =
|
|
23
|
+
var fetchFn = nodeFetch;
|
|
24
24
|
var ApiError = class extends Error {
|
|
25
25
|
constructor(message, statusCode, code) {
|
|
26
26
|
super(message);
|
|
@@ -521,8 +521,13 @@ program.command("status").description("Check CodeBakers configuration status").a
|
|
|
521
521
|
console.log(chalk2.red("\u2717 No API key configured"));
|
|
522
522
|
console.log(chalk2.dim(" Run: codebakers setup"));
|
|
523
523
|
}
|
|
524
|
+
const apiUrl = getApiUrl();
|
|
524
525
|
console.log(chalk2.dim(`
|
|
525
|
-
|
|
526
|
+
API URL: ${apiUrl}`));
|
|
527
|
+
if (apiUrl !== "https://codebakers.ai") {
|
|
528
|
+
console.log(chalk2.yellow("\u26A0 Warning: API URL is not the default. Run `codebakers logout` to reset."));
|
|
529
|
+
}
|
|
530
|
+
console.log(chalk2.dim(`Config path: ${getConfigPath()}
|
|
526
531
|
`));
|
|
527
532
|
});
|
|
528
533
|
program.command("logout").description("Remove stored API key").action(async () => {
|