linkgravity 1.1.0 → 1.2.0

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.
Files changed (2) hide show
  1. package/bin/cli.js +6 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -152,7 +152,10 @@ function verifyStartup() {
152
152
  cp.stderr.on('data', checkLog);
153
153
  }
154
154
 
155
- if (cmd === 'start') {
155
+ if (cmd === 'version' || cmd === '-v' || cmd === '--version') {
156
+ const pkg = require('../package.json');
157
+ console.log(`linkgravity v${pkg.version}`);
158
+ } else if (cmd === 'start') {
156
159
  info('Starting LinkGravity daemon...');
157
160
  runPm2(['start', botPath, '--interpreter', pythonExe, '--name', 'lgy']);
158
161
  verifyStartup();
@@ -283,6 +286,7 @@ if (cmd === 'start') {
283
286
  'Usage: lgy <command> [options]',
284
287
  '',
285
288
  'Commands:',
289
+ ' version Print the installed version (-v, --version)',
286
290
  ' start Start bot in the background (PM2 daemon)',
287
291
  ' stop Stop the background bot',
288
292
  ' restart Restart the background bot',
@@ -314,6 +318,7 @@ if (cmd === 'start') {
314
318
  value: 'update',
315
319
  hint: 'Check npm for a newer version and install it',
316
320
  },
321
+ { label: 'Version', value: 'version', hint: 'Print the installed version' },
317
322
  {
318
323
  label: 'Enable Auto-start',
319
324
  value: 'enable',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkgravity",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Discord bot bridge for the Antigravity (agy) CLI, with voice interaction support",
5
5
  "scripts": {
6
6
  "postinstall": "node npm-scripts/postinstall.js",