dsh-tg-bridge 1.55.0 → 1.55.1

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/chat/media.mjs CHANGED
@@ -294,7 +294,12 @@ export async function readVoiceIntoText(msg, chatId, threadId, lang) {
294
294
  return { text: '', fatal };
295
295
  }
296
296
  log(`voice -> text len=${heard.length}${error ? ` (warn: ${error})` : ''}`);
297
- const preview = heard.length > 1200 ? `${heard.slice(0, 1200)}…` : heard;
297
+ // The echo is what the person reads back, and a cut here looked like the
298
+ // recogniser stopping mid-word: a minute of dense dictation is 2000-2400
299
+ // characters, and the old 1200 cap chopped it in half. Telegram allows 4096
300
+ // per message, so the cap sits just under that; only a note longer than the
301
+ // platform's own voice limit can still reach the ellipsis.
302
+ const preview = heard.length > 3600 ? `${heard.slice(0, 3600)}…` : heard;
298
303
  if (statusId || config.voice?.echo !== false) await editOrSend(`🎤 ${preview}`, `🎤 ${preview}`);
299
304
  return { text: heard, fatal: false };
300
305
  }
package/docs/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # CHANGELOG — DSH Telegram bridge
2
2
 
3
+ ## 1.55.1
4
+
5
+ - **A voice note is echoed whole.** The transcript always reached the model in
6
+ full, but the chat echo stopped at 1200 characters. A minute of dense dictation
7
+ runs to 2000–2400 characters, so the visible transcript was cut in the middle of
8
+ a word — which reads as the recogniser giving up rather than the bridge showing
9
+ less than it heard. The echo now allows 3600, just under Telegram's 4096 limit,
10
+ so only a note longer than the platform's own voice limit can reach the ellipsis.
11
+ - **Nothing else moved.** The prompt still carries the full transcript and the
12
+ engine is untouched; the number shown to the person is the only change.
13
+
3
14
  ## 1.55.0
4
15
 
5
16
  - **The parallel ceiling goes to twelve.** `/jobs` was closed at eight by two
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tg-bridge",
3
- "version": "1.55.0",
3
+ "version": "1.55.1",
4
4
  "description": "Drive DeepSeek Harness from Telegram: one project, model and session per forum topic",
5
5
  "type": "module",
6
6
  "main": "plugin-bridge.mjs",