blun-king-cli 9.1.15 → 9.1.16

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.
Files changed (2) hide show
  1. package/blun.mjs +17 -4
  2. package/package.json +1 -1
package/blun.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // BLUN_BUILD_INPUT_SHA256:627be45f029d1b72cb47b404c8a1ddc8a95362573315cdccd84f3da2691cbd97
2
+ // BLUN_BUILD_INPUT_SHA256:39e4b4359446de9a47446e631b853adaafc78c8097e76296c6826ec91ee9902d
3
3
  import { fileURLToPath as __cjsShimFileURLToPath } from 'node:url';
4
4
  import { dirname as __cjsShimDirname } from 'node:path';
5
5
  const __filename = __cjsShimFileURLToPath(import.meta.url);
@@ -397833,7 +397833,6 @@ function slashBusyMessage(commandName, reason) {
397833
397833
  }
397834
397834
  //#endregion
397835
397835
  //#region src/tui/commands/plugin-commands.ts
397836
- const REMOVED_PLUGIN_COMMANDS = new Set(["telegram:access"]);
397837
397836
  function pluginCommandName(pluginId, name) {
397838
397837
  return `${pluginId}:${name}`;
397839
397838
  }
@@ -397842,7 +397841,6 @@ function buildPluginSlashCommands(defs) {
397842
397841
  const commands = [];
397843
397842
  for (const def of defs) {
397844
397843
  const commandName = pluginCommandName(def.pluginId, def.name);
397845
- if (REMOVED_PLUGIN_COMMANDS.has(commandName)) continue;
397846
397844
  commandMap.set(commandName, def.body);
397847
397845
  commands.push({
397848
397846
  name: commandName,
@@ -424714,10 +424712,25 @@ const INTERNAL_TAG_PREFIXES = [
424714
424712
  "<|dsml|",
424715
424713
  "</|dsml|"
424716
424714
  ];
424715
+ const RUNTIME_INSTRUCTION_OPEN = "Bevor du antwortest:";
424716
+ const RUNTIME_INSTRUCTION_CLOSE = "Die einzige Ausnahme: eine Zahl, die der Nutzer selbst in seiner Nachricht genannt hat - die darfst du uebernehmen und weiterverwenden.";
424717
424717
  /** Remove model-only envelopes before assistant text reaches a transcript renderer. */
424718
424718
  function sanitizeAssistantDisplayText(text, options = {}) {
424719
424719
  const transient = options.transient === true;
424720
- return stripIncompleteInternalSuffix(stripControlTokens(stripDsmlBlocks(stripSystemReminderBlocks(text, transient))), transient);
424720
+ return stripIncompleteInternalSuffix(stripControlTokens(stripDsmlBlocks(stripSystemReminderBlocks(stripEchoedRuntimeInstructions(text), transient))), transient);
424721
+ }
424722
+ function stripEchoedRuntimeInstructions(text) {
424723
+ let cursor = 0;
424724
+ let output = "";
424725
+ while (cursor < text.length) {
424726
+ const open = text.indexOf(RUNTIME_INSTRUCTION_OPEN, cursor);
424727
+ if (open < 0) break;
424728
+ output += text.slice(cursor, open);
424729
+ const close = text.indexOf(RUNTIME_INSTRUCTION_CLOSE, open + 20);
424730
+ if (close < 0) return output;
424731
+ cursor = close + 135;
424732
+ }
424733
+ return output + text.slice(cursor);
424721
424734
  }
424722
424735
  function stripSystemReminderBlocks(text, transient) {
424723
424736
  let cursor = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.15",
3
+ "version": "9.1.16",
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": {