overlord-cli 3.5.1 → 3.5.2
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/index.mjs +7 -0
- package/bin/_cli/version.mjs +10 -0
- package/package.json +1 -1
package/bin/_cli/index.mjs
CHANGED
|
@@ -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
|
+
}
|