blun-king-cli 9.1.178 → 9.1.179

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.
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ const LOW_INFORMATION_TURN_RE = /^(?:k|ok(?:ay)?|ja|jo|jep|yes|yep|passt|danke|dankeschön|thanks|super|perfekt|gut|alles klar|verstanden|notiert|erledigt)[.!?]*$/iu;
4
+
5
+ function isLowInformationPersonalMemoryQuery(value) {
6
+ if (typeof value !== 'string') return false;
7
+ const normalized = value.trim().replaceAll(/\s+/gu, ' ');
8
+ if (normalized.length === 0 || normalized.length > 32) return false;
9
+ return LOW_INFORMATION_TURN_RE.test(normalized);
10
+ }
11
+
12
+ module.exports = { isLowInformationPersonalMemoryQuery };
package/blun.mjs CHANGED
@@ -231583,6 +231583,7 @@ var init_permission_mode = __esmMin((() => {
231583
231583
  }));
231584
231584
  //#endregion
231585
231585
  //#region ../../packages/agent-core/src/agent/injection/personal-memory-recall.ts
231586
+ var { isLowInformationPersonalMemoryQuery } = createRequire(import.meta.url)("./bin/personal-memory-performance-policy.cjs");
231586
231587
  /** Extracts only the current human message; transport metadata never reaches recall. */
231587
231588
  function personalMemoryRecallQuery(input) {
231588
231589
  const hasImagePart = input.some((part) => part.type === "image_url");
@@ -231614,6 +231615,7 @@ function personalMemoryRecallQuery(input) {
231614
231615
  }
231615
231616
  text = text.replace(TELEGRAM_ATTACHMENT_NOTICE_RE, "").trim();
231616
231617
  if (text.length === 0) return attachmentFallback ?? GENERIC_EMPTY_QUERY;
231618
+ if (attachmentFallback === void 0 && isLowInformationPersonalMemoryQuery(text)) return void 0;
231617
231619
  return text.slice(0, MAX_QUERY_CHARS).trim() || void 0;
231618
231620
  }
231619
231621
  function isTelegramGroupInput(input) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.178",
3
+ "version": "9.1.179",
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": {