halbot 1995.1.43 → 1995.1.45
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 +3 -3
- package/web/turn.html +17 -4
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.
|
|
4
|
+
"version": "1995.1.45",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://github.com/Leask/halbot",
|
|
7
7
|
"type": "module",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"mime": "^4.1.0",
|
|
43
43
|
"mysql2": "^3.16.3",
|
|
44
44
|
"office-text-extractor": "^4.0.0",
|
|
45
|
-
"openai": "^6.
|
|
45
|
+
"openai": "^6.18.0",
|
|
46
46
|
"pg": "^8.18.0",
|
|
47
47
|
"pgvector": "^0.2.1",
|
|
48
48
|
"telegraf": "^4.16.3",
|
|
49
49
|
"tellegram": "^1.1.18",
|
|
50
50
|
"tesseract.js": "^7.0.0",
|
|
51
|
-
"webjam": "^1995.3.
|
|
51
|
+
"webjam": "^1995.3.6",
|
|
52
52
|
"youtube-transcript": "^1.2.1"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/web/turn.html
CHANGED
|
@@ -231,6 +231,17 @@
|
|
|
231
231
|
color: #333;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
/* Think & Tools Block Auto-Wrap */
|
|
235
|
+
.markdown-body pre.think-block,
|
|
236
|
+
.markdown-body pre.think-block code,
|
|
237
|
+
.markdown-body pre.tools-block,
|
|
238
|
+
.markdown-body pre.tools-block code {
|
|
239
|
+
white-space: pre-wrap !important;
|
|
240
|
+
word-wrap: break-word !important;
|
|
241
|
+
overflow-wrap: break-word !important;
|
|
242
|
+
word-break: break-word !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
234
245
|
/* Markdown Styles */
|
|
235
246
|
/* Markdown Overrides */
|
|
236
247
|
.markdown-body {
|
|
@@ -499,8 +510,8 @@
|
|
|
499
510
|
|
|
500
511
|
// Highlight Code
|
|
501
512
|
contentDiv.querySelectorAll('pre code').forEach((block) => {
|
|
502
|
-
// Trim think block content
|
|
503
|
-
if (block.classList.contains('language-think')) {
|
|
513
|
+
// Trim think/tools block content
|
|
514
|
+
if (block.classList.contains('language-think') || block.classList.contains('language-tools')) {
|
|
504
515
|
block.textContent = block.textContent.trim();
|
|
505
516
|
}
|
|
506
517
|
|
|
@@ -517,9 +528,11 @@
|
|
|
517
528
|
block.parentElement.setAttribute('data-language', lang);
|
|
518
529
|
}
|
|
519
530
|
|
|
520
|
-
if (block.classList.contains('language-think')) {
|
|
531
|
+
if (block.classList.contains('language-think') || block.classList.contains('language-tools')) {
|
|
521
532
|
const pre = block.parentElement;
|
|
522
|
-
pre.classList.add('
|
|
533
|
+
if (block.classList.contains('language-tools')) { pre.classList.add('tools-block'); }
|
|
534
|
+
else { pre.classList.add('think-block'); }
|
|
535
|
+
|
|
523
536
|
pre.style.whiteSpace = 'pre-wrap';
|
|
524
537
|
pre.style.wordBreak = 'break-word';
|
|
525
538
|
block.style.whiteSpace = 'pre-wrap';
|