overlord-cli 3.5.2 → 3.5.3

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/bin/_cli/auth.mjs CHANGED
@@ -7,7 +7,7 @@ import http from 'node:http';
7
7
 
8
8
  import { buildAuthHeaders, clearCredentials, loadCredentials, loadRuntime, saveCredentials } from './credentials.mjs';
9
9
 
10
- const DEFAULT_OVERLORD_URL = process.env.OVERLORD_URL ?? 'http://localhost:3000';
10
+ const DEFAULT_OVERLORD_URL = process.env.OVERLORD_URL ?? 'https://ovld.ai';
11
11
  const DEFAULT_CLI_REDIRECT_URI = 'http://127.0.0.1:45619/callback';
12
12
  const DEFAULT_DEVICE_POLL_INTERVAL_SECONDS = 5;
13
13
 
@@ -412,9 +412,13 @@ export async function authLoginViaOAuthLoopback(platformUrl, localSecret) {
412
412
  // Public auth commands
413
413
  // ---------------------------------------------------------------------------
414
414
 
415
+ export function resolveLoginPlatformUrl(runtime = loadRuntime()) {
416
+ return process.env.OVERLORD_URL ?? runtime?.platform_url ?? DEFAULT_OVERLORD_URL;
417
+ }
418
+
415
419
  export async function authLogin() {
416
420
  const runtime = loadRuntime();
417
- const platformUrl = process.env.OVERLORD_URL ?? runtime?.platform_url ?? DEFAULT_OVERLORD_URL;
421
+ const platformUrl = resolveLoginPlatformUrl(runtime);
418
422
  const localSecret = runtime?.local_secret ?? process.env.OVERLORD_LOCAL_SECRET ?? '';
419
423
 
420
424
  console.log('Starting Overlord CLI authorization...\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord-cli",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "description": "Overlord CLI — launch AI agents on tickets from anywhere",
5
5
  "type": "module",
6
6
  "bin": {