Skip to content

Commit 16f8059

Browse files
committed
v3.4.1: Bark 支持 Markdown。提升所有分批估算精确度
1 parent 579044c commit 16f8059

File tree

5 files changed

+314
-106
lines changed

5 files changed

+314
-106
lines changed

README-EN.md

Lines changed: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[![GitHub Stars](https://img.shields.io/github/stars/sansan0/TrendRadar?style=flat-square&logo=github&color=yellow)](https://github.com/sansan0/TrendRadar/stargazers)
1515
[![GitHub Forks](https://img.shields.io/github/forks/sansan0/TrendRadar?style=flat-square&logo=github&color=blue)](https://github.com/sansan0/TrendRadar/network/members)
1616
[![License](https://img.shields.io/badge/license-GPL--3.0-blue.svg?style=flat-square)](LICENSE)
17-
[![Version](https://img.shields.io/badge/version-v3.4.0-blue.svg)](https://github.com/sansan0/TrendRadar)
17+
[![Version](https://img.shields.io/badge/version-v3.4.1-blue.svg)](https://github.com/sansan0/TrendRadar)
1818
[![MCP](https://img.shields.io/badge/MCP-v1.0.3-green.svg)](https://github.com/sansan0/TrendRadar)
1919

2020
[![WeWork](https://img.shields.io/badge/WeWork-Notification-00D4AA?style=flat-square)](https://work.weixin.qq.com/)
@@ -272,6 +272,40 @@ Transform from "algorithm recommendation captivity" to "actively getting the inf
272272
- **Major Version Upgrade**: Upgrading from v1.x to v2.y, recommend deleting existing fork and re-forking to save effort and avoid config conflicts
273273

274274

275+
### 2025/11/28 - v3.4.1
276+
277+
**🔧 Format Optimization**
278+
279+
1. **Bark Push Enhancement**
280+
- Bark now supports Markdown rendering
281+
- Enabled native Markdown format: bold, links, lists, code blocks, etc.
282+
- Removed plain text conversion to fully utilize Bark's native rendering capabilities
283+
284+
2. **Slack Format Precision**
285+
- Use dedicated mrkdwn format for batch content processing
286+
- Improved byte size estimation accuracy (avoid message overflow)
287+
- Optimized link format: `<url|text>` and bold syntax: `*text*`
288+
289+
3. **Performance Improvement**
290+
- Format conversion completed during batching process, avoiding secondary processing
291+
- Accurate message size estimation reduces send failure rate
292+
293+
**🔧 Upgrade Instructions**:
294+
- **GitHub Fork Users**: Update `main.py``config.yaml`
295+
296+
297+
### 2025/11/26 - mcp-v1.0.3
298+
299+
**MCP Module Update:**
300+
- Added date parsing tool resolve_date_range to resolve AI model date calculation inconsistencies
301+
- Support natural language date expression parsing (this week, last 7 days, last month, etc.)
302+
- Tool count increased from 13 to 14
303+
304+
305+
<details>
306+
<summary>👉 Click to expand: <strong>Historical Updates</strong></summary>
307+
308+
275309
### 2025/11/25 - v3.4.0
276310

277311
**🎉 Added Slack Push Support**
@@ -294,17 +328,6 @@ Transform from "algorithm recommendation captivity" to "actively getting the inf
294328
**🔧 Upgrade Instructions**:
295329
- **GitHub Fork Users**: Update `main.py`, `config/config.yaml`, `.github/workflows/crawler.yml`
296330

297-
### 2025/11/26 - mcp-v1.0.3
298-
299-
**MCP Module Update:**
300-
- Added date parsing tool resolve_date_range to resolve AI model date calculation inconsistencies
301-
- Support natural language date expression parsing (this week, last 7 days, last month, etc.)
302-
- Tool count increased from 13 to 14
303-
304-
305-
<details>
306-
<summary>👉 Click to expand: <strong>Historical Updates</strong></summary>
307-
308331

309332
### 2025/11/24 - v3.3.0
310333

@@ -1845,7 +1868,7 @@ current directory/
18451868
**Usage Method**:
18461869
- Modify `.env` file, uncomment and fill in needed configs
18471870
- Or add directly in NAS/Synology Docker management interface's "Environment Variables"
1848-
- Restart container to take effect: `docker-compose restart`
1871+
- Restart container to take effect: `docker-compose up -d`
18491872

18501873

18511874
3. **Start Service**:

README.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[![GitHub Stars](https://img.shields.io/github/stars/sansan0/TrendRadar?style=flat-square&logo=github&color=yellow)](https://github.com/sansan0/TrendRadar/stargazers)
1515
[![GitHub Forks](https://img.shields.io/github/forks/sansan0/TrendRadar?style=flat-square&logo=github&color=blue)](https://github.com/sansan0/TrendRadar/network/members)
1616
[![License](https://img.shields.io/badge/license-GPL--3.0-blue.svg?style=flat-square)](LICENSE)
17-
[![Version](https://img.shields.io/badge/version-v3.4.0-blue.svg)](https://github.com/sansan0/TrendRadar)
17+
[![Version](https://img.shields.io/badge/version-v3.4.1-blue.svg)](https://github.com/sansan0/TrendRadar)
1818
[![MCP](https://img.shields.io/badge/MCP-v1.0.3-green.svg)](https://github.com/sansan0/TrendRadar)
1919

2020
[![企业微信通知](https://img.shields.io/badge/企业微信-通知-00D4AA?style=flat-square)](https://work.weixin.qq.com/)
@@ -344,6 +344,32 @@ GitHub 一键 Fork 即可使用,无需编程基础。
344344
- 支持自然语言日期表达式解析(本周、最近7天、上月等)
345345
- 工具总数从 13 个增加到 14 个
346346

347+
### 2025/11/28 - v3.4.1
348+
349+
**🔧 格式优化**
350+
351+
1. **Bark 推送增强**
352+
- Bark 现支持 Markdown 渲染
353+
- 启用原生 Markdown 格式:粗体、链接、列表、代码块等
354+
- 移除纯文本转换,充分利用 Bark 原生渲染能力
355+
356+
2. **Slack 格式精准化**
357+
- 使用专用 mrkdwn 格式处理分批内容
358+
- 提升字节大小估算准确性(避免消息超限)
359+
- 优化链接格式:`<url|text>` 和加粗语法:`*text*`
360+
361+
3. **性能提升**
362+
- 格式转换在分批过程中完成,避免二次处理
363+
- 准确估算消息大小,减少发送失败率
364+
365+
**🔧 升级说明**
366+
- **GitHub Fork 用户**:更新 `main.py``config.yaml`
367+
368+
369+
<details>
370+
<summary>👉 点击展开:<strong>历史更新</strong></summary>
371+
372+
347373
### 2025/11/25 - v3.4.0
348374

349375
**🎉 新增 Slack 推送支持**
@@ -367,10 +393,6 @@ GitHub 一键 Fork 即可使用,无需编程基础。
367393
- **GitHub Fork 用户**:更新 `main.py``config/config.yaml``.github/workflows/crawler.yml`
368394

369395

370-
<details>
371-
<summary>👉 点击展开:<strong>历史更新</strong></summary>
372-
373-
374396
### 2025/11/24 - v3.3.0
375397

376398
**🎉 新增 Bark 推送支持**
@@ -1893,7 +1915,7 @@ docker run -d --name trend-radar \
18931915
**使用方法**
18941916
- 修改 `.env` 文件,取消注释并填写需要的配置
18951917
- 或在 NAS/群晖 Docker 管理界面的"环境变量"中直接添加
1896-
- 重启容器后生效:`docker-compose restart`
1918+
- 重启容器后生效:`docker-compose up -d`
18971919

18981920

18991921
3. **启动服务**:

config/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ notification:
3434
enable_notification: true # 是否启用通知功能,如果 false,则不发送手机通知
3535
message_batch_size: 4000 # 消息分批大小(字节)(这个配置别动)
3636
dingtalk_batch_size: 20000 # 钉钉消息分批大小(字节)(这个配置也别动)
37-
feishu_batch_size: 29000 # 飞书消息分批大小(字节)
38-
bark_batch_size: 3600 # Bark消息分批大小(字节)
37+
feishu_batch_size: 30000 # 飞书消息分批大小(字节)
38+
bark_batch_size: 4000 # Bark消息分批大小(字节)
3939
slack_batch_size: 4000 # Slack消息分批大小(字节)
4040
batch_send_interval: 3 # 批次发送间隔(秒)
4141
feishu_message_separator: "━━━━━━━━━━━━━━━━━━━" # feishu 消息分割线

0 commit comments

Comments
 (0)