@l4yercak3/cli 1.1.8 → 1.1.9
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
|
@@ -7,8 +7,8 @@ const crypto = require('crypto');
|
|
|
7
7
|
const fetch = require('node-fetch');
|
|
8
8
|
const configManager = require('../config/config-manager');
|
|
9
9
|
|
|
10
|
-
// API Base URL - All CLI API endpoints go through Convex HTTP
|
|
11
|
-
const API_BASE_URL = 'https://
|
|
10
|
+
// API Base URL - All CLI API endpoints go through Convex HTTP (Production)
|
|
11
|
+
const API_BASE_URL = 'https://agreeable-lion-828.convex.site';
|
|
12
12
|
|
|
13
13
|
// App URL - Only used for browser login page (Next.js serves the OAuth UI)
|
|
14
14
|
const APP_URL = 'https://app.l4yercak3.com';
|
package/src/commands/spread.js
CHANGED
|
@@ -412,7 +412,7 @@ async function handleSpread() {
|
|
|
412
412
|
}
|
|
413
413
|
|
|
414
414
|
// Step 6: Backend URL (fixed to Convex HTTP endpoint)
|
|
415
|
-
const backendUrl = 'https://
|
|
415
|
+
const backendUrl = 'https://agreeable-lion-828.convex.site';
|
|
416
416
|
|
|
417
417
|
// Step 7: Production domain (for OAuth redirect URIs)
|
|
418
418
|
let productionDomain = null;
|
|
@@ -33,7 +33,7 @@ class ConfigManager {
|
|
|
33
33
|
session: null,
|
|
34
34
|
organizations: [],
|
|
35
35
|
settings: {
|
|
36
|
-
backendUrl: process.env.L4YERCAK3_BACKEND_URL || 'https://
|
|
36
|
+
backendUrl: process.env.L4YERCAK3_BACKEND_URL || 'https://agreeable-lion-828.convex.site',
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
}
|
|
@@ -119,7 +119,7 @@ class ConfigManager {
|
|
|
119
119
|
*/
|
|
120
120
|
getBackendUrl() {
|
|
121
121
|
const config = this.getConfig();
|
|
122
|
-
return config.settings?.backendUrl || process.env.L4YERCAK3_BACKEND_URL || 'https://
|
|
122
|
+
return config.settings?.backendUrl || process.env.L4YERCAK3_BACKEND_URL || 'https://agreeable-lion-828.convex.site';
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
/**
|
|
@@ -15,7 +15,7 @@ configManager.getBackendUrl.mockReturnValue('https://backend.test.com');
|
|
|
15
15
|
const BackendClient = require('../src/api/backend-client');
|
|
16
16
|
|
|
17
17
|
// API Base URL for all CLI endpoints (Convex HTTP)
|
|
18
|
-
const API_BASE_URL = 'https://
|
|
18
|
+
const API_BASE_URL = 'https://agreeable-lion-828.convex.site';
|
|
19
19
|
// App URL only for browser login
|
|
20
20
|
const APP_URL = 'https://app.l4yercak3.com';
|
|
21
21
|
|
|
@@ -461,7 +461,7 @@ describe('BackendClient', () => {
|
|
|
461
461
|
|
|
462
462
|
// Should use Convex URL, not main backend
|
|
463
463
|
expect(fetch).toHaveBeenCalledWith(
|
|
464
|
-
'https://
|
|
464
|
+
'https://agreeable-lion-828.convex.site/api/v1/cli/applications/by-path?organizationId=org-123&hash=hash123',
|
|
465
465
|
expect.objectContaining({ method: 'GET' })
|
|
466
466
|
);
|
|
467
467
|
expect(result.found).toBe(true);
|
|
@@ -522,7 +522,7 @@ describe('BackendClient', () => {
|
|
|
522
522
|
|
|
523
523
|
// Should use Convex URL, not main backend
|
|
524
524
|
expect(fetch).toHaveBeenCalledWith(
|
|
525
|
-
'https://
|
|
525
|
+
'https://agreeable-lion-828.convex.site/api/v1/cli/applications',
|
|
526
526
|
expect.objectContaining({
|
|
527
527
|
method: 'POST',
|
|
528
528
|
body: JSON.stringify(registrationData),
|
|
@@ -552,7 +552,7 @@ describe('BackendClient', () => {
|
|
|
552
552
|
const result = await BackendClient.updateApplication('app-123', updates);
|
|
553
553
|
|
|
554
554
|
expect(fetch).toHaveBeenCalledWith(
|
|
555
|
-
'https://
|
|
555
|
+
'https://agreeable-lion-828.convex.site/api/v1/cli/applications/app-123',
|
|
556
556
|
expect.objectContaining({
|
|
557
557
|
method: 'PATCH',
|
|
558
558
|
body: JSON.stringify(updates),
|
|
@@ -577,7 +577,7 @@ describe('BackendClient', () => {
|
|
|
577
577
|
const result = await BackendClient.getApplication('app-123');
|
|
578
578
|
|
|
579
579
|
expect(fetch).toHaveBeenCalledWith(
|
|
580
|
-
'https://
|
|
580
|
+
'https://agreeable-lion-828.convex.site/api/v1/cli/applications/app-123',
|
|
581
581
|
expect.objectContaining({ method: 'GET' })
|
|
582
582
|
);
|
|
583
583
|
expect(result.id).toBe('app-123');
|
|
@@ -601,7 +601,7 @@ describe('BackendClient', () => {
|
|
|
601
601
|
const result = await BackendClient.listApplications('org-123');
|
|
602
602
|
|
|
603
603
|
expect(fetch).toHaveBeenCalledWith(
|
|
604
|
-
'https://
|
|
604
|
+
'https://agreeable-lion-828.convex.site/api/v1/cli/applications?organizationId=org-123',
|
|
605
605
|
expect.objectContaining({ method: 'GET' })
|
|
606
606
|
);
|
|
607
607
|
expect(result.applications).toHaveLength(2);
|
|
@@ -627,7 +627,7 @@ describe('BackendClient', () => {
|
|
|
627
627
|
const result = await BackendClient.syncApplication('app-123', syncData);
|
|
628
628
|
|
|
629
629
|
expect(fetch).toHaveBeenCalledWith(
|
|
630
|
-
'https://
|
|
630
|
+
'https://agreeable-lion-828.convex.site/api/v1/cli/applications/app-123/sync',
|
|
631
631
|
expect.objectContaining({
|
|
632
632
|
method: 'POST',
|
|
633
633
|
body: JSON.stringify(syncData),
|
|
@@ -36,7 +36,7 @@ describe('ConfigManager', () => {
|
|
|
36
36
|
session: null,
|
|
37
37
|
organizations: [],
|
|
38
38
|
settings: {
|
|
39
|
-
backendUrl: 'https://
|
|
39
|
+
backendUrl: 'https://agreeable-lion-828.convex.site',
|
|
40
40
|
},
|
|
41
41
|
});
|
|
42
42
|
});
|
|
@@ -204,7 +204,7 @@ describe('ConfigManager', () => {
|
|
|
204
204
|
|
|
205
205
|
const url = ConfigManager.getBackendUrl();
|
|
206
206
|
|
|
207
|
-
expect(url).toBe('https://
|
|
207
|
+
expect(url).toBe('https://agreeable-lion-828.convex.site');
|
|
208
208
|
});
|
|
209
209
|
|
|
210
210
|
it('returns configured URL from settings', () => {
|