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/CHANGELOG.md +12 -0
- package/bin/blun.js +0 -0
- package/bin/core-bootstrap.js +0 -0
- package/bin/king.js +0 -0
- package/bin/launcher-mode.js +0 -0
- package/bin/launcher-runtime.js +0 -0
- package/bin/managed-node.js +0 -0
- package/bin/native-command-runner.js +0 -0
- package/bin/native-module-repair.js +0 -0
- package/bin/node-runtime.js +0 -0
- package/bin/node-version.js +0 -0
- package/bin/plugin-bootstrap.js +0 -0
- package/bin/private-paths.js +0 -0
- package/bin/standard-tools-bootstrap.js +0 -0
- package/bin/update-copy.js +0 -0
- package/bin/update-lease.js +0 -0
- package/bin/update-notice.js +0 -0
- package/blun.mjs +977 -662
- package/package.json +1 -1
- package/telegram-plugin/dist/bridge.mjs +4 -1
- package/telegram-plugin/dist/mcp-server.mjs +6 -3
- package/worker-host.mjs +959 -659
package/package.json
CHANGED
|
@@ -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"
|
|
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"
|
|
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() ===
|
|
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;
|