@locusai/locus-telegram 0.21.14 → 0.21.16

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.
@@ -191,7 +191,7 @@ function loadTelegramConfig() {
191
191
  const botToken = pkg?.botToken;
192
192
  if (!botToken || typeof botToken !== "string") {
193
193
  throw new Error(`Telegram bot token not configured. Run:
194
- locus config packages.telegram.botToken "<your-token>"
194
+ locus config set packages.telegram.botToken "<your-token>"
195
195
 
196
196
  Get a token from @BotFather on Telegram.`);
197
197
  }
@@ -9846,6 +9846,32 @@ async function handleBot() {
9846
9846
  const bot = createBot2(config);
9847
9847
  logger2.info("Starting Telegram bot...");
9848
9848
  logger2.info(`Allowed chat IDs: ${config.allowedChatIds.join(", ")}`);
9849
+ await bot.api.setMyCommands([
9850
+ { command: "run", description: "Execute issues" },
9851
+ { command: "status", description: "Dashboard view" },
9852
+ { command: "issues", description: "List issues" },
9853
+ { command: "issue", description: "Show issue details" },
9854
+ { command: "sprint", description: "Sprint management" },
9855
+ { command: "plan", description: "AI planning" },
9856
+ { command: "review", description: "Code review" },
9857
+ { command: "iterate", description: "Re-execute with feedback" },
9858
+ { command: "discuss", description: "AI discussion" },
9859
+ { command: "exec", description: "REPL / one-shot prompt" },
9860
+ { command: "logs", description: "View logs" },
9861
+ { command: "config", description: "View config" },
9862
+ { command: "artifacts", description: "View artifacts" },
9863
+ { command: "gitstatus", description: "Git status" },
9864
+ { command: "stage", description: "Stage files" },
9865
+ { command: "commit", description: "Commit changes" },
9866
+ { command: "stash", description: "Stash operations" },
9867
+ { command: "branch", description: "List/create branches" },
9868
+ { command: "checkout", description: "Switch branch" },
9869
+ { command: "diff", description: "Show diff" },
9870
+ { command: "pr", description: "Create pull request" },
9871
+ { command: "service", description: "Manage bot process" },
9872
+ { command: "help", description: "Show help message" }
9873
+ ]);
9874
+ logger2.info("Telegram command menu synced.");
9849
9875
  const shutdown = () => {
9850
9876
  logger2.info("Shutting down bot...");
9851
9877
  bot.stop();
@@ -9881,8 +9907,8 @@ function printHelp() {
9881
9907
  packages.telegram.chatIds Comma-separated chat IDs or JSON array
9882
9908
 
9883
9909
  Setup:
9884
- locus config packages.telegram.botToken "123456:ABC-DEF..."
9885
- locus config packages.telegram.chatIds "12345678"
9910
+ locus config set packages.telegram.botToken "123456:ABC-DEF..."
9911
+ locus config set packages.telegram.chatIds "12345678"
9886
9912
 
9887
9913
  Examples:
9888
9914
  locus pkg telegram start # Start in background
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/locus-telegram",
3
- "version": "0.21.14",
3
+ "version": "0.21.16",
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.14",
29
+ "@locusai/sdk": "^0.21.16",
30
30
  "grammy": "^1.35.0",
31
31
  "pm2": "^6.0.5"
32
32
  },