blun-king-cli 9.1.332 → 9.1.334
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/bin/running-update.cjs
CHANGED
|
@@ -23,7 +23,7 @@ const RUNNING_UPDATE_MODE_MESSAGE = 'blun-running-update-mode';
|
|
|
23
23
|
const RUNTIME_READY_MESSAGE = 'blun-runtime-session-ready';
|
|
24
24
|
const RUNTIME_EXIT_INTENT_MESSAGE = 'blun-runtime-exit-intent';
|
|
25
25
|
const MAX_TARBALL_BYTES = 128 * 1024 * 1024;
|
|
26
|
-
const AUTO_UPDATE_SETTLE_MS =
|
|
26
|
+
const AUTO_UPDATE_SETTLE_MS = 0;
|
|
27
27
|
const DEFAULT_RETAINED_RELEASE_VERSIONS = 3;
|
|
28
28
|
|
|
29
29
|
function ownData(value, key) {
|
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const PRIVATE_CHAT_ID = /^[1-9]\d*$/u;
|
|
4
|
+
|
|
5
|
+
function normalize(text) {
|
|
6
|
+
return String(text ?? '')
|
|
7
|
+
.normalize('NFKC')
|
|
8
|
+
.toLocaleLowerCase('de-DE')
|
|
9
|
+
.replace(/[^\p{L}\p{N}\s]/gu, ' ')
|
|
10
|
+
.replace(/\s+/gu, ' ')
|
|
11
|
+
.trim();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function isPrivateInternalStatusReply(chatId, text) {
|
|
15
|
+
if (!PRIVATE_CHAT_ID.test(String(chatId ?? '').trim())) return false;
|
|
16
|
+
const value = normalize(text);
|
|
17
|
+
if (value.length === 0) return false;
|
|
18
|
+
|
|
19
|
+
const exposesRuntimeControl = /\b(?:cron|loop|checkpoint|sha|tool|werkzeug|hook|queue|lane|inbound|outbound|arbeitsstand|arbeitsauftrag|bau freigabe|freigabe dieser lane|turn|zug|status|private nachricht|telegram nachricht|reply|verlauf|basis|f\d+|m\d+|w\d+)\b/u.test(value);
|
|
20
|
+
const announcesNoUserValue = /\b(?:keine neue aktion|keine neue information|keine neue nachricht|kein neuer auftrag|kein neuer zweck|kein neuer inbound bedarf|kein offener handlungsbedarf|nichts zu melden|nichts weiteres|bleibt pausiert|warte auf (?:dein|sein|ihr|papas) (?:zeichen|go|freigabe|antwort)|ich warte|ich sende nichts|wiederholen wäre spam|keine weitere nachricht|bereits geantwortet|bereits gesendet|kein werkzeugaufruf nötig|stand unverändert|zug läuft seit)\b/u.test(value);
|
|
21
|
+
return exposesRuntimeControl && announcesNoUserValue;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
module.exports = {
|
|
25
|
+
isPrivateInternalStatusReply,
|
|
26
|
+
};
|
|
@@ -2,7 +2,7 @@ import { A as _enum, B as object, F as discriminatedUnion, G as union, H as prep
|
|
|
2
2
|
import process$1 from "node:process";
|
|
3
3
|
import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { extname, join } from "node:path";
|
|
5
|
-
import privateConversationPolicy from "
|
|
5
|
+
import privateConversationPolicy from "../bin/telegram-private-conversation-policy.cjs";
|
|
6
6
|
//#region ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.29.0_zod@4.3.6/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js
|
|
7
7
|
function isZ4Schema(s) {
|
|
8
8
|
return !!s._zod;
|