@sudoji/cli 0.1.6 → 0.1.7

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/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ import "./chunk-RWRJASDG.js";
3
3
 
4
4
  // src/index.ts
5
5
  import { Command as Command7 } from "commander";
6
+ import { createRequire } from "module";
6
7
 
7
8
  // src/commands/login.ts
8
9
  import { Command } from "commander";
@@ -509,7 +510,9 @@ function keysCommand() {
509
510
  }
510
511
 
511
512
  // src/index.ts
512
- var program = new Command7().name("sudoji").description("Sudoji Agent \u2014 AI-powered IT operations for Linux servers").version("0.1.0", "--version", "print version and exit");
513
+ var require2 = createRequire(import.meta.url);
514
+ var { version } = require2("../package.json");
515
+ var program = new Command7().name("sudoji").description("Sudoji Agent \u2014 AI-powered IT operations for Linux servers").version(version, "--version", "print version and exit");
513
516
  program.addCommand(loginCommand());
514
517
  program.addCommand(logoutCommand());
515
518
  program.addCommand(doctorCommand());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sudoji/cli",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Sudoji installable IT agent CLI — diagnose, approve, fix on your Linux server.",
5
5
  "type": "module",
6
6
  "bin": {