@locusai/cli 0.9.3 → 0.9.4
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.
- package/bin/locus.js +2 -13
- package/package.json +2 -2
package/bin/locus.js
CHANGED
|
@@ -44351,24 +44351,13 @@ async function upgradeCommand() {
|
|
|
44351
44351
|
// src/commands/version.ts
|
|
44352
44352
|
init_index_node();
|
|
44353
44353
|
import { execSync as execSync4 } from "node:child_process";
|
|
44354
|
-
import { existsSync as existsSync17, readFileSync as readFileSync12 } from "node:fs";
|
|
44355
|
-
import { join as join16 } from "node:path";
|
|
44356
44354
|
function getTelegramVersion() {
|
|
44357
|
-
const monorepoPath = join16(process.cwd(), "packages/telegram/package.json");
|
|
44358
|
-
if (existsSync17(monorepoPath)) {
|
|
44359
|
-
try {
|
|
44360
|
-
const pkg = JSON.parse(readFileSync12(monorepoPath, "utf-8"));
|
|
44361
|
-
if (pkg.name === "@locusai/telegram") {
|
|
44362
|
-
return pkg.version || null;
|
|
44363
|
-
}
|
|
44364
|
-
} catch {}
|
|
44365
|
-
}
|
|
44366
44355
|
try {
|
|
44367
|
-
const
|
|
44356
|
+
const output = execSync4("npm list -g @locusai/telegram --depth=0 --json", {
|
|
44368
44357
|
encoding: "utf-8",
|
|
44369
44358
|
stdio: ["pipe", "pipe", "pipe"]
|
|
44370
44359
|
});
|
|
44371
|
-
const parsed = JSON.parse(
|
|
44360
|
+
const parsed = JSON.parse(output);
|
|
44372
44361
|
return parsed.dependencies?.["@locusai/telegram"]?.version || null;
|
|
44373
44362
|
} catch {}
|
|
44374
44363
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
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.9.
|
|
35
|
+
"@locusai/sdk": "^0.9.4"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {}
|
|
38
38
|
}
|