blun-king-cli 9.1.635 → 9.1.637

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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 9.1.637 – Telegram-Stillemarker im Sendepfad
2
+
3
+ - `reply` und `edit_message` sowie die direkten Konsolen- und Brückenfallbacks senden nichts, wenn der Text nach `trim()` ausschließlich `[[BLUN_TELEGRAM_SILENT]]` enthält; der Aufruf meldet `unterdrückt`.
4
+ - Die Chatfreigabe bleibt vorgeschaltet. Marker mit zusätzlichem Text und alle anderen Texte bleiben unverändert.
5
+
1
6
  # BLUN King Changelog
2
7
 
3
8
  ## 9.1.600
package/blun.mjs CHANGED
@@ -542715,6 +542715,7 @@ function isGroupSuppressed(text, _contextOnly) {
542715
542715
  return isGroupNoiseReply(text);
542716
542716
  }
542717
542717
  async function sendReplyFallback(chatId, text, contextOnly = false, requireDelivery = false, progress) {
542718
+ if (typeof text === "string" && text.trim() === "[[BLUN_TELEGRAM_SILENT]]") return true;
542718
542719
  if (isGroupChat(chatId) && isGroupSuppressed(text, contextOnly)) {
542719
542720
  try {
542720
542721
  appendFileSync(outboxPath(), `${JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.635",
3
+ "version": "9.1.637",
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,6 +68029,7 @@ 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
68033
  const token = botToken();
68033
68034
  if (token === void 0) return false;
68034
68035
  if (isGroupChat(chatId) && isGroupNoiseReply(rawText)) {
@@ -73600,6 +73600,7 @@ 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
73604
  assertTelegramLanguageReleased(args["text"], args["release_token"]);
73604
73605
  const parseMode = args["format"] === "markdownv2" ? "MarkdownV2" : void 0;
73605
73606
  const edited = await api.editMessageText(chatId, Number(args["message_id"]), args["text"], parseMode !== void 0 ? { parse_mode: parseMode } : void 0);
@@ -73649,6 +73650,7 @@ function isRecentDuplicate(chatId, text) {
73649
73650
  async function runReply(api, args) {
73650
73651
  const chatId = resolveAllowedChatId(args["chat_id"]);
73651
73652
  const text = args["text"];
73653
+ if (typeof text === "string" && text.trim() === "[[BLUN_TELEGRAM_SILENT]]") return "unterdrückt";
73652
73654
  const replyTo = args["reply_to"] !== null && args["reply_to"] !== void 0 ? Number(args["reply_to"]) : void 0;
73653
73655
  const files = args["files"] ?? [];
73654
73656
  const parseMode = args["format"] === "markdownv2" ? "MarkdownV2" : void 0;