lytos-cli 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -2
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -3,6 +3,7 @@
3
3
  // src/cli.ts
4
4
  import { Command as Command3 } from "commander";
5
5
  import { execSync } from "child_process";
6
+ import { createRequire } from "module";
6
7
 
7
8
  // src/commands/init.ts
8
9
  import { Command } from "commander";
@@ -1253,10 +1254,12 @@ async function checkForUpdates(currentVersion) {
1253
1254
  }
1254
1255
 
1255
1256
  // src/cli.ts
1257
+ var require2 = createRequire(import.meta.url);
1258
+ var { version: VERSION } = require2("../package.json");
1256
1259
  var program = new Command3();
1257
1260
  program.name("lyt").description(
1258
1261
  "CLI tool for Lytos \u2014 a human-first method for working with AI agents"
1259
- ).version("0.2.1");
1262
+ ).version(VERSION);
1260
1263
  program.addCommand(initCommand);
1261
1264
  program.addCommand(boardCommand);
1262
1265
  program.command("lint").description("Validate .lytos/ structure and content (coming soon)").action(() => {
@@ -1285,6 +1288,5 @@ program.command("update").description("Update lytos-cli to the latest version").
1285
1288
  process.exit(1);
1286
1289
  }
1287
1290
  });
1288
- var VERSION = "0.2.1";
1289
1291
  program.parse();
1290
1292
  checkForUpdates(VERSION);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lytos-cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "CLI tool for Lytos — a human-first method for working with AI agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -39,7 +39,7 @@
39
39
  "type": "git",
40
40
  "url": "git+https://github.com/getlytos/lytos-cli.git"
41
41
  },
42
- "homepage": "https://github.com/getlytos/lytos-method",
42
+ "homepage": "https://lytos.org",
43
43
  "bugs": {
44
44
  "url": "https://github.com/getlytos/lytos-cli/issues"
45
45
  },