@locusai/locus-telegram 0.23.2 → 0.23.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.
@@ -10250,8 +10250,8 @@ var init_cancel = __esm(() => {
10250
10250
  });
10251
10251
 
10252
10252
  // src/ui/keyboards.ts
10253
- function planKeyboard(planId) {
10254
- return new import_grammy2.InlineKeyboard().text("✅ Approve Plan", `${CB.APPROVE_PLAN}${planId}`).text("❌ Reject Plan", CB.REJECT_PLAN);
10253
+ function planKeyboard(planId, sprintName) {
10254
+ return new import_grammy2.InlineKeyboard().text("✅ Approve Plan", `${CB.APPROVE_PLAN}${planId}:${sprintName}`).text("❌ Reject Plan", CB.REJECT_PLAN);
10255
10255
  }
10256
10256
  function sprintActiveKeyboard(sprintName) {
10257
10257
  return new import_grammy2.InlineKeyboard().text("\uD83D\uDE80 Activate Sprint", `${CB.SPRINT_ACTIVE}${sprintName}`);
@@ -10816,8 +10816,9 @@ function getPostCommandKeyboard(command, args, exitCode, output = "") {
10816
10816
  }
10817
10817
  if (args[0] !== "list" && args[0] !== "show") {
10818
10818
  const planId = extractPlanId(output);
10819
- if (planId)
10820
- return planKeyboard(planId);
10819
+ const sprint = extractSprintName(output);
10820
+ if (planId && sprint)
10821
+ return planKeyboard(planId, sprint);
10821
10822
  }
10822
10823
  return null;
10823
10824
  }
@@ -11004,11 +11005,12 @@ function createBot(config) {
11004
11005
  return bot;
11005
11006
  }
11006
11007
  function registerCallbackHandlers(bot) {
11007
- bot.callbackQuery(/^plan:approve:(.+)$/, async (ctx) => {
11008
+ bot.callbackQuery(/^plan:approve:([^:]+):(.+)$/, async (ctx) => {
11008
11009
  const planId = ctx.match[1];
11010
+ const sprintName = ctx.match[2];
11009
11011
  await ctx.answerCallbackQuery({ text: "Approving plan..." });
11010
11012
  await ctx.editMessageReplyMarkup({ reply_markup: undefined });
11011
- await handleLocusCommand(ctx, "plan", ["approve", planId]);
11013
+ await handleLocusCommand(ctx, "plan", ["approve", planId, sprintName]);
11012
11014
  });
11013
11015
  bot.callbackQuery(CB.REJECT_PLAN, async (ctx) => {
11014
11016
  await ctx.answerCallbackQuery({ text: "Plan rejected." });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/locus-telegram",
3
- "version": "0.23.2",
3
+ "version": "0.23.4",
4
4
  "description": "Remote-control Locus via Telegram with full CLI mapping, git operations, and PM2 management",
5
5
  "type": "module",
6
6
  "bin": {
@@ -27,9 +27,9 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@grammyjs/runner": "^2.0.3",
30
- "@locusai/locus-gateway": "^0.23.2",
31
- "@locusai/locus-pm2": "^0.23.2",
32
- "@locusai/sdk": "^0.23.2",
30
+ "@locusai/locus-gateway": "^0.23.4",
31
+ "@locusai/locus-pm2": "^0.23.4",
32
+ "@locusai/sdk": "^0.23.4",
33
33
  "grammy": "^1.35.0"
34
34
  },
35
35
  "devDependencies": {