codeant-cli 0.2.7 → 0.2.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeant-cli",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Code review CLI tool",
5
5
  "type": "module",
6
6
  "bin": {
@@ -7,7 +7,7 @@ export default function GetBaseUrl() {
7
7
 
8
8
  const envUrl = process.env.CODEANT_API_URL;
9
9
  const configUrl = getConfigValue('baseUrl');
10
- const defaultUrl = 'https://api.codeant.ai';
10
+ const defaultUrl = 'https://02tug1znoi.execute-api.ap-south-1.amazonaws.com/prod';
11
11
 
12
12
  const activeUrl = envUrl || configUrl || defaultUrl;
13
13
  const source = envUrl ? 'env' : configUrl ? 'config' : 'default';
@@ -21,7 +21,7 @@ export default function Login() {
21
21
  }
22
22
 
23
23
  const token = randomUUID();
24
- const baseUrl = getConfigValue('baseUrl') || 'https://api.codeant.ai';
24
+ const baseUrl = getConfigValue('baseUrl') || 'https://02tug1znoi.execute-api.ap-south-1.amazonaws.com/prod';
25
25
  const loginUrl = `https://app.codeant.ai?ideLoginToken=${token}`;
26
26
  const pollUrl = `${baseUrl}/extension/login/status?apiKey=${token}`;
27
27
 
@@ -1,7 +1,7 @@
1
1
  import { getConfigValue } from './config.js';
2
2
 
3
3
  const getBaseUrl = () => {
4
- return process.env.CODEANT_API_URL || getConfigValue('baseUrl') || 'https://api.codeant.ai';
4
+ return process.env.CODEANT_API_URL || getConfigValue('baseUrl') || 'https://02tug1znoi.execute-api.ap-south-1.amazonaws.com/prod';
5
5
  };
6
6
 
7
7
  const fetchApi = async (endpoint, method = 'GET', body = null) => {