@locusai/locus-telegram 0.21.15 → 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.
- package/bin/locus-telegram.js +26 -0
- package/package.json +2 -2
package/bin/locus-telegram.js
CHANGED
|
@@ -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();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/locus-telegram",
|
|
3
|
-
"version": "0.21.
|
|
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.
|
|
29
|
+
"@locusai/sdk": "^0.21.16",
|
|
30
30
|
"grammy": "^1.35.0",
|
|
31
31
|
"pm2": "^6.0.5"
|
|
32
32
|
},
|