overlord-cli 3.5.1 → 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');
@@ -8,6 +8,7 @@ import { runProtocolCommand } from './protocol.mjs';
8
8
  import { runDoctorCommand, runSetupCommand } from './setup.mjs';
9
9
  import { runTicketCommand } from './ticket.mjs';
10
10
  import { runTicketsCommand } from './tickets.mjs';
11
+ import { runVersionCommand } from './version.mjs';
11
12
 
12
13
  function printHelp(primaryCommand) {
13
14
  console.log(`Overlord CLI
@@ -27,6 +28,7 @@ Usage:
27
28
  ${primaryCommand} context Print ticket context (requires TICKET_ID)
28
29
  ${primaryCommand} setup <agent|all> Install Overlord agent connector
29
30
  ${primaryCommand} doctor Validate installed agent connectors
31
+ ${primaryCommand} version Show the installed CLI version
30
32
  ${primaryCommand} help Show this help message
31
33
 
32
34
  Agents:
@@ -108,6 +110,11 @@ export async function runCli({ primaryCommand }) {
108
110
  return;
109
111
  }
110
112
 
113
+ if (command === 'version') {
114
+ runVersionCommand();
115
+ return;
116
+ }
117
+
111
118
  // Launcher commands (`run` / `resume` kept as legacy aliases)
112
119
  if (
113
120
  command === 'connect' ||
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { createRequire } from 'node:module';
4
+
5
+ const require = createRequire(import.meta.url);
6
+ const { version } = require('../../package.json');
7
+
8
+ export function runVersionCommand() {
9
+ console.log(`Overlord CLI ${version}`);
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord-cli",
3
- "version": "3.5.1",
3
+ "version": "3.5.3",
4
4
  "description": "Overlord CLI — launch AI agents on tickets from anywhere",
5
5
  "type": "module",
6
6
  "bin": {