@locusai/locus-telegram 0.21.12 → 0.21.13

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.
@@ -9353,10 +9353,18 @@ function getPostCommandKeyboard(command, args, exitCode) {
9353
9353
 
9354
9354
  // src/pm2.ts
9355
9355
  import { execSync as execSync2 } from "node:child_process";
9356
+ import { existsSync as existsSync2 } from "node:fs";
9356
9357
  import { dirname, join as join2 } from "node:path";
9357
9358
  import { fileURLToPath } from "node:url";
9358
9359
  var PROCESS_NAME = "locus-telegram";
9359
9360
  function getPm2Bin() {
9361
+ try {
9362
+ const currentFile = fileURLToPath(import.meta.url);
9363
+ const packageRoot = dirname(dirname(currentFile));
9364
+ const localPm2 = join2(packageRoot, "..", "..", ".bin", "pm2");
9365
+ if (existsSync2(localPm2))
9366
+ return localPm2;
9367
+ } catch {}
9360
9368
  try {
9361
9369
  const result = execSync2("which pm2", {
9362
9370
  encoding: "utf-8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/locus-telegram",
3
- "version": "0.21.12",
3
+ "version": "0.21.13",
4
4
  "description": "Remote-control Locus via Telegram with full CLI mapping, git operations, and PM2 management",
5
5
  "type": "module",
6
6
  "bin": {
@@ -26,7 +26,7 @@
26
26
  "format": "biome format --write ."
27
27
  },
28
28
  "dependencies": {
29
- "@locusai/sdk": "^0.21.12",
29
+ "@locusai/sdk": "^0.21.13",
30
30
  "grammy": "^1.35.0",
31
31
  "pm2": "^6.0.5"
32
32
  },