@locusai/cli 0.9.2 → 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 +6 -14
- package/package.json +2 -2
package/bin/locus.js
CHANGED
|
@@ -6376,7 +6376,10 @@ var init_config = __esm(() => {
|
|
|
6376
6376
|
".locus-worktrees/",
|
|
6377
6377
|
"",
|
|
6378
6378
|
"# Locus AI - Settings (contains API key, telegram config, etc.)",
|
|
6379
|
-
".locus/settings.json"
|
|
6379
|
+
".locus/settings.json",
|
|
6380
|
+
"",
|
|
6381
|
+
"# Locus AI - Configuration (contains project context, progress, etc.)",
|
|
6382
|
+
".locus/config.json"
|
|
6380
6383
|
];
|
|
6381
6384
|
});
|
|
6382
6385
|
|
|
@@ -44348,24 +44351,13 @@ async function upgradeCommand() {
|
|
|
44348
44351
|
// src/commands/version.ts
|
|
44349
44352
|
init_index_node();
|
|
44350
44353
|
import { execSync as execSync4 } from "node:child_process";
|
|
44351
|
-
import { existsSync as existsSync17, readFileSync as readFileSync12 } from "node:fs";
|
|
44352
|
-
import { join as join16 } from "node:path";
|
|
44353
44354
|
function getTelegramVersion() {
|
|
44354
|
-
const monorepoPath = join16(process.cwd(), "packages/telegram/package.json");
|
|
44355
|
-
if (existsSync17(monorepoPath)) {
|
|
44356
|
-
try {
|
|
44357
|
-
const pkg = JSON.parse(readFileSync12(monorepoPath, "utf-8"));
|
|
44358
|
-
if (pkg.name === "@locusai/telegram") {
|
|
44359
|
-
return pkg.version || null;
|
|
44360
|
-
}
|
|
44361
|
-
} catch {}
|
|
44362
|
-
}
|
|
44363
44355
|
try {
|
|
44364
|
-
const
|
|
44356
|
+
const output = execSync4("npm list -g @locusai/telegram --depth=0 --json", {
|
|
44365
44357
|
encoding: "utf-8",
|
|
44366
44358
|
stdio: ["pipe", "pipe", "pipe"]
|
|
44367
44359
|
});
|
|
44368
|
-
const parsed = JSON.parse(
|
|
44360
|
+
const parsed = JSON.parse(output);
|
|
44369
44361
|
return parsed.dependencies?.["@locusai/telegram"]?.version || null;
|
|
44370
44362
|
} catch {}
|
|
44371
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
|
}
|