@locusai/cli 0.17.0 → 0.17.1

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/locus.js +17 -2
  2. package/package.json +1 -1
package/bin/locus.js CHANGED
@@ -1018,7 +1018,7 @@ ${drawBox(lines, { title: `Locus ${direction}` })}
1018
1018
  process.stderr.write(`
1019
1019
  `);
1020
1020
  }
1021
- var PACKAGE_NAME = "@locusai/tui";
1021
+ var PACKAGE_NAME = "@locusai/cli";
1022
1022
  var init_upgrade = __esm(() => {
1023
1023
  init_logger();
1024
1024
  init_progress();
@@ -8465,7 +8465,22 @@ init_logger();
8465
8465
  init_rate_limiter();
8466
8466
  init_terminal();
8467
8467
  import { join as join17 } from "node:path";
8468
- var VERSION = "3.0.0";
8468
+ import { existsSync as existsSync16, readFileSync as readFileSync13 } from "node:fs";
8469
+ import { fileURLToPath } from "node:url";
8470
+ function getCliVersion() {
8471
+ const fallbackVersion = "0.0.0";
8472
+ const packageJsonPath = join17(fileURLToPath(new URL(".", import.meta.url)), "..", "package.json");
8473
+ if (!existsSync16(packageJsonPath)) {
8474
+ return fallbackVersion;
8475
+ }
8476
+ try {
8477
+ const parsed = JSON.parse(readFileSync13(packageJsonPath, "utf-8"));
8478
+ return parsed.version ?? fallbackVersion;
8479
+ } catch {
8480
+ return fallbackVersion;
8481
+ }
8482
+ }
8483
+ var VERSION = getCliVersion();
8469
8484
  function parseArgs(argv) {
8470
8485
  const rawArgs = argv.slice(2);
8471
8486
  const flags = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/cli",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "description": "GitHub-native AI engineering assistant",
5
5
  "type": "module",
6
6
  "bin": {