blun-king-cli 9.1.508 → 9.1.509

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,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.1.509 - 2026-08-30
4
+
5
+ - Requires every authorized bot-to-bot Telegram work message to mention its intended King explicitly.
6
+ - Keeps unmentioned bot messages visible without buffering, queueing, delivering, or replaying them into that King's model context.
7
+ - Prevents a priority bot message addressed to one King from becoming work for another King, with focused runtime and full-package regressions.
8
+
3
9
  ## 9.1.508 - 2026-08-30
4
10
 
5
11
  - Keeps pending TodoList markers visible on reduced-color terminals and rejects a newly tracked multi-step list unless it has exactly one active item.
package/LIESMICH.txt CHANGED
@@ -9,7 +9,7 @@ Installation
9
9
  ------------
10
10
  Die geprüfte Version exakt global installieren:
11
11
 
12
- npm install -g blun-king-cli@9.1.508
12
+ npm install -g blun-king-cli@9.1.509
13
13
 
14
14
  Start
15
15
  -----
package/README.md CHANGED
@@ -9,7 +9,7 @@ Voraussetzung ist Node.js 24.15 oder neuer. Die geprüfte Version wird exakt
9
9
  installiert:
10
10
 
11
11
  ```powershell
12
- npm install -g blun-king-cli@9.1.508
12
+ npm install -g blun-king-cli@9.1.509
13
13
  ```
14
14
 
15
15
  ## Reproduzierbares Staging und Packen
package/blun.mjs CHANGED
@@ -419689,7 +419689,12 @@ function telegramRemoteCommand(text) {
419689
419689
  */
419690
419690
  function injectChannelEnvelope(host, envelope, preamble) {
419691
419691
  const origin = channelOrigin(envelope);
419692
+ const targetedElsewhere = ["true", "1"].includes(envelope.meta["targeted_elsewhere"]?.trim().toLowerCase() ?? "");
419692
419693
  const contextOnly = !channelMessageAddressed(envelope) && !telegramBotPriorityMessage(envelope);
419694
+ if (targetedElsewhere) {
419695
+ host.displayContext?.(envelope.text, origin);
419696
+ return "ignored";
419697
+ }
419693
419698
  const reportSource = {
419694
419699
  source: "telegram",
419695
419700
  chatId: envelope.meta.chat_id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.508",
3
+ "version": "9.1.509",
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": {
@@ -210,10 +210,12 @@ function gate(ctx, botUsername) {
210
210
  if (groupAllowFrom.length > 0 && !groupAllowFrom.includes(senderId)) return { action: "drop" };
211
211
  const mentionBypass = from.isBot !== true && (policy.alwaysAllowFrom ?? []).includes(senderId);
212
212
  const addressed = !matchesAny(ctx.text, access.ignorePatterns) && (mentionBypass || isMentioned(ctx, botUsername, access.mentionPatterns));
213
+ const targetedElsewhere = from.isBot === true && !addressed;
213
214
  return {
214
215
  action: "deliver",
215
216
  access,
216
217
  addressed,
218
+ targetedElsewhere,
217
219
  ...from.isBot === true ? { priority: "bot" } : {}
218
220
  };
219
221
  }
@@ -4684,6 +4686,7 @@ async function handleInbound(event) {
4684
4686
  }
4685
4687
  const msgId = ctx.messageId;
4686
4688
  const addressed = result.action === "deliver" ? result.addressed ?? true : true;
4689
+ const targetedElsewhere = result.action === "deliver" ? result.targetedElsewhere ?? false : false;
4687
4690
  const priority = result.action === "deliver" ? result.priority : void 0;
4688
4691
  if (addressed) {
4689
4692
  bot.api.sendChatAction(chatId, "typing").catch(() => {});
@@ -4701,6 +4704,7 @@ async function handleInbound(event) {
4701
4704
  ...ctx.chatType !== void 0 ? { chat_type: ctx.chatType } : {},
4702
4705
  ...ctx.chatTitle !== void 0 ? { chat_title: ctx.chatTitle } : {},
4703
4706
  addressed: String(addressed),
4707
+ targeted_elsewhere: String(targetedElsewhere),
4704
4708
  ...priority === void 0 ? {} : { priority },
4705
4709
  user: ctx.from?.username ?? String(ctx.from?.id),
4706
4710
  is_bot: String(ctx.from?.is_bot === true),