@locusai/cli 0.7.4 → 0.7.6

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 +13 -4
  2. package/package.json +2 -2
package/bin/locus.js CHANGED
@@ -40156,10 +40156,19 @@ function getVersion() {
40156
40156
  try {
40157
40157
  const __filename2 = fileURLToPath3(import.meta.url);
40158
40158
  const __dirname2 = dirname3(__filename2);
40159
- const packagePath = join8(__dirname2, "..", "..", "package.json");
40160
- if (existsSync7(packagePath)) {
40161
- const pkg = JSON.parse(readFileSync6(packagePath, "utf-8"));
40162
- return pkg.version || "0.0.0";
40159
+ const bundledPath = join8(__dirname2, "..", "package.json");
40160
+ const sourcePath = join8(__dirname2, "..", "..", "package.json");
40161
+ if (existsSync7(bundledPath)) {
40162
+ const pkg = JSON.parse(readFileSync6(bundledPath, "utf-8"));
40163
+ if (pkg.name === "@locusai/cli") {
40164
+ return pkg.version || "0.0.0";
40165
+ }
40166
+ }
40167
+ if (existsSync7(sourcePath)) {
40168
+ const pkg = JSON.parse(readFileSync6(sourcePath, "utf-8"));
40169
+ if (pkg.name === "@locusai/cli") {
40170
+ return pkg.version || "0.0.0";
40171
+ }
40163
40172
  }
40164
40173
  } catch {}
40165
40174
  return "0.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/cli",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "description": "CLI for Locus - AI-native project management platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -32,7 +32,7 @@
32
32
  "author": "",
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
- "@locusai/sdk": "^0.7.4"
35
+ "@locusai/sdk": "^0.7.6"
36
36
  },
37
37
  "devDependencies": {}
38
38
  }