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 +6 -0
- package/LIESMICH.txt +1 -1
- package/README.md +1 -1
- package/blun.mjs +5 -0
- package/package.json +1 -1
- package/telegram-plugin/dist/bridge.mjs +4 -0
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
package/README.md
CHANGED
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
|
@@ -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),
|