blun-king-cli 9.1.638 → 9.1.640

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.638",
3
+ "version": "9.1.640",
4
4
  "description": "BLUN CLI - your own AI agent with a Telegram channel. Get it done. With BLUN.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -68029,7 +68029,10 @@ function scrubSecrets(text) {
68029
68029
  * log it to outbox.jsonl as kind "reply-fallback". Returns true on success.
68030
68030
  */
68031
68031
  async function sendReplyFallback(chatId, rawText) {
68032
- if (typeof rawText === "string" && rawText.trim() === "[[BLUN_TELEGRAM_SILENT]]") return true;
68032
+ if (typeof rawText === "string") {
68033
+ rawText = rawText.split("[[BLUN_TELEGRAM_SILENT]]").join("");
68034
+ if (rawText.trim().length === 0) return true;
68035
+ }
68033
68036
  const token = botToken();
68034
68037
  if (token === void 0) return false;
68035
68038
  if (isGroupChat(chatId) && isGroupNoiseReply(rawText)) {
@@ -73600,7 +73600,10 @@ async function runTool(api, token, name, args) {
73600
73600
  case "download_attachment": return runDownload(api, token, args["file_id"]);
73601
73601
  case "edit_message": {
73602
73602
  const chatId = resolveAllowedChatId(args["chat_id"]);
73603
- if (typeof args["text"] === "string" && args["text"].trim() === "[[BLUN_TELEGRAM_SILENT]]") return "unterdrückt";
73603
+ if (typeof args["text"] === "string") {
73604
+ args = { ...args, text: args["text"].split("[[BLUN_TELEGRAM_SILENT]]").join("") };
73605
+ if (args["text"].trim().length === 0) return "unterdrückt";
73606
+ }
73604
73607
  assertTelegramLanguageReleased(args["text"], args["release_token"]);
73605
73608
  const parseMode = args["format"] === "markdownv2" ? "MarkdownV2" : void 0;
73606
73609
  const edited = await api.editMessageText(chatId, Number(args["message_id"]), args["text"], parseMode !== void 0 ? { parse_mode: parseMode } : void 0);
@@ -73649,8 +73652,8 @@ function isRecentDuplicate(chatId, text) {
73649
73652
  }
73650
73653
  async function runReply(api, args) {
73651
73654
  const chatId = resolveAllowedChatId(args["chat_id"]);
73652
- const text = args["text"];
73653
- if (typeof text === "string" && text.trim() === "[[BLUN_TELEGRAM_SILENT]]") return "unterdrückt";
73655
+ const text = typeof args["text"] === "string" ? args["text"].split("[[BLUN_TELEGRAM_SILENT]]").join("") : args["text"];
73656
+ if (typeof text === "string" && text.trim().length === 0) return "unterdrückt";
73654
73657
  const replyTo = args["reply_to"] !== null && args["reply_to"] !== void 0 ? Number(args["reply_to"]) : void 0;
73655
73658
  const files = args["files"] ?? [];
73656
73659
  const parseMode = args["format"] === "markdownv2" ? "MarkdownV2" : void 0;