blun-king-cli 9.1.332 → 9.1.333

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.332",
3
+ "version": "9.1.333",
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": {
@@ -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 "../../bin/telegram-private-conversation-policy.cjs";
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;