halbot 1995.1.55 → 1995.1.57

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,7 +1,7 @@
1
1
  {
2
2
  "name": "halbot",
3
3
  "description": "Just another AI powered Telegram bot, which is simple design, easy to use, extendable and fun.",
4
- "version": "1995.1.55",
4
+ "version": "1995.1.57",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/halbot",
7
7
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  "@ffmpeg-installer/ffmpeg": "^1.1.0",
33
33
  "@ffprobe-installer/ffprobe": "^2.1.2",
34
34
  "@google-cloud/discoveryengine": "^2.5.2",
35
- "@google/genai": "^1.42.0",
35
+ "@google/genai": "^1.43.0",
36
36
  "@mozilla/readability": "^0.6.0",
37
37
  "@resvg/resvg-js": "^2.6.2",
38
38
  "fluent-ffmpeg": "^2.1.3",
@@ -41,17 +41,17 @@
41
41
  "jsdom": "^28.1.0",
42
42
  "lorem-ipsum": "^2.0.8",
43
43
  "mime": "^4.1.0",
44
- "mysql2": "^3.17.3",
44
+ "mysql2": "^3.18.1",
45
45
  "office-text-extractor": "^4.0.0",
46
- "openai": "^6.22.0",
46
+ "openai": "^6.25.0",
47
47
  "parse-numeric-range": "^1.3.0",
48
- "pg": "^8.18.0",
48
+ "pg": "^8.19.0",
49
49
  "pgvector": "^0.2.1",
50
50
  "satori": "^0.19.2",
51
51
  "telegraf": "^4.16.3",
52
52
  "tellegram": "^1.1.18",
53
53
  "tesseract.js": "^7.0.0",
54
- "webjam": "^1995.3.7",
54
+ "webjam": "^1995.3.9",
55
55
  "youtube-transcript": "^1.2.1"
56
56
  }
57
57
  }
package/web/ogimage.mjs CHANGED
@@ -54,7 +54,7 @@ const process = async (ctx, next) => {
54
54
  const chatId = result.chat_id || 'Unknown';
55
55
 
56
56
  // Allow CSS to handle text clamping, but give a safe upper limit to prevent memory overloads
57
- let previewText = userText.replace(/<[^>]+>/g, '').trim();
57
+ let previewText = userText.replace(/<[^>]+>/g, '').replace(/\s+/g, ' ').trim();
58
58
  if (previewText.length > 500) {
59
59
  previewText = previewText.substring(0, 500) + '...';
60
60
  }
package/web/turn.mjs CHANGED
@@ -108,7 +108,7 @@ const process = async (ctx, next) => {
108
108
  }
109
109
  });
110
110
  let previewText = messages.length ? messages[0].text : 'A conversation with HAL9000';
111
- previewText = previewText.replace(/<[^>]+>/g, '').substring(0, 160).trim() + '...';
111
+ previewText = previewText.replace(/<[^>]+>/g, '').replace(/\s+/g, ' ').substring(0, 160).trim() + '...';
112
112
 
113
113
  const ogImageUrl = `https://${ctx.host}/og-image/${ctx.params.token}`;
114
114