Commit Graph
649 Commits
Author SHA1 Message Date
SXP-SimonandCopilot bb04114cdb [v4.10.2] - Telegram 头像处理修复,支持多地区渲染环境与自定义镜像
Co-authored-by: Copilot <copilot@github.com>
2026-04-25 12:35:18 +08:00
SXP-Simon 948bfb1b5b refactor(render): 解决国内可能存在的资源访问问题,新增大陆资源和海外资源可选项,允许用户根据服务器位置选择不同的资源策略,并且允许自定义资源镜像站
- Updated language attributes in HTML templates to dynamically set based on `t2i_font_source`.
- Replaced hardcoded Google Fonts links with dynamic links using `t2i_google_fonts_mirror` and `t2i_gstatic_mirror`.
- Adjusted font-family declarations to conditionally include 'Noto Sans SC' and 'Noto Sans TC' based on the `t2i_font_source`.
- Ensured consistent formatting and style across various templates including image, quote, topic, and user title items.
- Added missing newlines at the end of several files for consistency.
2026-04-25 12:22:36 +08:00
leko 54f517d3b0 fix(theme): 修復 HatsuneMiku 與 hack 主題在 HTML 模式的跑版,優化窄裝置版面並補強繁中字體 (#177)
* refactor: update HTML templates for Hatsune Miku reporting

- Changed language attribute from zh-CN to zh-Hant for better localization.
- Updated font links to include Traditional Chinese fonts (Noto Sans TC).
- Enhanced CSS styles for responsiveness and improved layout across various components.
- Added new classes for better structure and maintainability in quote, topic, and user title items.
- Adjusted styles for mobile view to ensure better usability and aesthetics.

* fix: update HTML templates for improved responsiveness and accessibility

* Refactor styles: Move CSS from image_template.html to shared_styles.html for better maintainability and organization

* fix: update font links and styles in HTML templates for consistency
2026-04-25 11:25:15 +08:00
leko 2618491246 fix: telegram avatar handling (#176)
* feat: add avatar caching support and improve error handling in Telegram adapter

* feat(avatar): implement avatar negative cache management and improve logging levels
2026-04-25 11:08:46 +08:00
SXP-Simon e48716dbf8 [v4.10.1] - 优化 T2I 渲染与自定义配置 2026-04-23 08:53:51 +08:00
SXP-Simon fc843fac03 feat: 优化 T2I 渲染与自定义配置
1. 支持配置两轮 T2I 渲染策略,允许用户自定义图片格式(PNG/JPEG)、质量、分辨率及超时时间。
2. 实现 T2I 返回 HTML 错误页的自动识别与摘要提取(如 502 Bad Gateway),提升故障排查效率。

- 参考 #174 关于 T2I 动态超时与配置的建议
- 参考 #171 关于处理 T2I 返回 HTML 错误信息的建议
- 解决了 [Feature Request] 支持配置 PNG/JPEG 渲染优先级,避免大报告场景下因本地大图保护而回退为文件发送 #164
2026-04-23 08:43:51 +08:00
SXP-Simon e1c5b854c7 [v4.9.19] - 支持 LLBot 群相册接口并优化 OneBot 适配器
Fixes #173
2026-04-22 15:17:28 +08:00
SXP-Simon b119ea741e feat(album): 支持 LLBot 群相册接口并优化 OneBot 适配器 2026-04-22 15:15:59 +08:00
SXP-Simon d36bf4941a [v4.9.18] - ⚙️ base64 传输统一开关修复,正确处理 Onebot Adapter 的图片、文件资源传输情况 2026-04-15 23:19:51 +08:00
SXP-Simon c17371051a fix(onebot): base64 统一开关,提取 OneBot 适配器中的通用传输与查找逻辑
- 提取 `_execute_transmission_strategy` 以统一处理 Base64/路径尝试/重试的传输流水线。
- 提取 `_find_item_in_list` 辅助函数,简化群文件夹和相册的名称匹配逻辑。
- 重构 `send_image`、`send_file`、`upload_group_file_to_folder` 和 `upload_group_album` 以减少代码冗余。
- 提升 OneBot 平台适配器的代码可维护性与逻辑一致性。
2026-04-15 22:56:24 +08:00
SXP-Simon cc162b62dd [v4.9.17] - 人格画像体验升级,SBTI 和 ACGTI 风格 2026-04-13 22:37:24 +08:00
SXP-Simon 3d6e3d45a1 fix(_get_manifest_profile_item_by_mbti): 正确的 fallback 处理 2026-04-13 22:13:36 +08:00
SXP-Simon ed85876b36 feat(mbti): 替换 mbti 简单实现 sbti acgti 功能 2026-04-13 21:43:25 +08:00
SXP-Simon 06ea0e7812 docs(MBTI): 为多样化 MBTI 增加开发说明文档 (#167) 2026-04-13 16:51:34 +08:00
ShiitinandSXP-Simon d47a9411b2 fix: 修复了当html_only_url打开时,URL拼接错误问题 (#169)
Fixes #169

* fix:修复了当html_only_url打开时,手动触发部分URL拼接错误问题

* fix:修复了当html_only_url打开时,自动触发部分URL拼接错误问题

* fix: ruff

---------

Co-authored-by: SXP-Simon <sxp20061207@163.com>
2026-04-13 15:37:18 +08:00
SXP-Simon 45c9ca9bea [v4.9.16] - 增加了html_only_url选项,使在选择输出格式为html时可以单独发送BaseURL (#166 @shiitin) 2026-04-12 22:08:49 +08:00
Shiitin 911b8b2fb2 feat(html): 增加了html_only_url选项,使在选择输出格式为html时可以单独发送BaseURL (#166 @shiitin)
* 更改了AstrBot中面板的的设置项,增加了html_only_url选项

* 增加了html_only_url

* 增加了单独发送URL

在html_only_url设置被打开且配置了Base URL后,将会单独发送URL

* 加入测试日志,尝试解决存在问题

* 加入测试日志,尝试解决存在问题

* 删除了定时触发部分的测试日志

* 修改了手动触发部分的发送HTML的判断

* 修改了main.py的单行长度过长问题

* 修复了dispatcher.py的缩进问题
2026-04-12 22:03:45 +08:00
SXP-Simon 937f4e1782 [v4.9.15] - fix: 发送假超时不应该导致上传群相册群文件失败,删除 PDF 模块和相关的功能 2026-04-07 22:30:20 +08:00
SXP-Simon 93b2b847ef fix(output_format): 改为 options 形式处理,提升用户体验 2026-04-07 22:27:34 +08:00
SXP-Simon ae38febca2 fix(pdf): 删除 PDF 模块和相关的功能 2026-04-07 22:17:09 +08:00
SXP-Simon 98d485dbe6 Merge branch 'main' of https://github.com/SXP-Simon/astrbot_plugin_qq_group_daily_analysis 2026-04-07 21:41:24 +08:00
SXP-Simon 3343fcce22 fix(ReportDispatcher): 发送假超时不应该导致上传群相册群文件失败
[Bug] 聊天记录转发,群文件上传
Fixes #160
2026-04-07 21:40:52 +08:00
SXP-Simon 34437e7ebe fix(ReportDispatcher): 发送假超时不应该导致上传群相册群文件失败 2026-04-07 21:25:10 +08:00
SXP-Simon b1c85d8994 [v4.9.14] - feat(persona): 分析器人格增强和使用体验优化,可视化选择人格配置 2026-04-04 21:26:31 +08:00
SXP-Simon 0fa01883a1 revert: revert 'force desktop viewport for exported html reports (#147)' in commit befcc2ad 2026-04-04 21:18:37 +08:00
SXP-Simon 60cf29b0d5 feat(analyzer): 增强人格设定注入策略 2026-04-04 20:58:36 +08:00
SXP-Simon a8a22233d4 fix(ChatQualityAnalyzer): 手动 apply_persona_reinforcement 2026-04-04 20:44:36 +08:00
SXP-Simon a75776f085 feat(analyzer): 增强人格设定注入策略,采用首尾双重注入提升角色保持能力,避免聊天记录上下文过长导致的 LLM 对于人格提示词的注意力下降 2026-04-04 20:18:11 +08:00
SXP-Simon 92a365475c feat(persona): 人格设定功能增强,支持插件指定和会话继承的人格分析 2026-04-04 19:40:30 +08:00
SXP-Simon 5375659769 fix(conf): 增强服务稳定性 2026-04-04 19:40:30 +08:00
SXP-Simon 3a9170449c fix(ATRI): GitHub Repo Link 2026-04-04 19:40:30 +08:00
SXP-Simon f3aad2441f fix(黑白名单): 修复插件在独立会话模式下无法识别群号白名单的问题 2026-04-04 19:40:30 +08:00
SXP-Simon 0c1d9cff72 fix typo 2026-04-03 15:00:40 +08:00
SXP-Simon 3f3e60cbd0 feat(ATRI): 添加作者名称 Liangyu-G 2026-04-03 14:40:58 +08:00
SXP-Simon 45988cf419 [v4.9.13] - feat(ATRI): ATRI 模板 (@Liangyu-G) 2026-04-03 14:32:02 +08:00
凉雨 a5c3aa2af1 ATRI风格模板 (#154)
* Add files via upload

* Create test

* Add files via upload

* Delete src/infrastructure/reporting/templates/ATRI/test

* Add files via upload
2026-04-03 13:51:10 +08:00
SXP-Simon 5dd7cf1aa1 [v4.9.12] - 移除无效的重试器 2026-04-02 17:52:36 +08:00
SXP-Simon 59e9f06d0d fix: 移除发送重试模块 2026-04-02 17:45:56 +08:00
lekoandSXP-Simon 47eeff3f61 fix(template-utils): str.format -> string.Template (#149)
* feat: upgrade prompt templates from str.format to string.Template for improved compatibility

* fix(get_astrbot_data_path): fallback 到 get_astrbot_data_path 方法

* feat: upgrade prompt templates from str.format to string.Template for improved compatibility

* fix: strict mode

* fix: 补齐文件名格式的自动迁移

* fix(ChatQualityAnalyzer): 删除无效的 prompt 提示语句

* ruff

---------

Co-authored-by: SXP-Simon <sxp20061207@163.com>
2026-04-02 16:40:34 +08:00
SXP-Simon 5e2da8c852 fix(get_astrbot_data_path): fallback 到 get_astrbot_data_path 方法 2026-04-02 15:25:07 +08:00
SXP-Simon e503e7ad63 [v4.9.11] - feat(HTML): HTML 报告与自建外链吗,将群分析变成可以点击跳转的精美网页链接 2026-04-01 22:19:00 +08:00
clown145 befcc2ad49 fix: force desktop viewport for exported html reports (#147) 2026-04-01 21:45:58 +08:00
SXP-Simon 692df4b0c9 chore: docs 2026-04-01 21:23:02 +08:00
SXP-Simon 05836f64f2 fix: 定时任务超时问题优化
Fixes #141

定时分析任务间隔启动,放宽超时配置限制
2026-04-01 21:14:00 +08:00
lekoandSXP-Simon 8ba5f69788 feat: 檔案名稱模板支援 ULID 和資料夾路徑 (#146 @lekoOwO)
* feat: Enhance HTML report generation and dispatching with captions

* chore: apply ruff fixes

* fix(ReportGenerator): update HTML caption for report generation

* fix(ReportGenerator): encode filename in HTML report caption URL

* fix(ReportGenerator): refactor golden quotes handling for clarity and consistency

* feat(ReportGenerator): enhance filename formatting with ulid support and path sanitization

* fix(ReportGenerator): enhance path validation and filename uniqueness in report generation

* fix: pylance type error and ruff

* fix: 路径默认使用 ulid 变量

---------

Co-authored-by: SXP-Simon <sxp20061207@163.com>
2026-04-01 20:38:57 +08:00
SXP-Simon 1fa1ebe5ca [v4.9.10] - fix: 解决 TG 未贴表情的 bug,HTML 输出模式,优化渲染 2026-03-31 21:17:31 +08:00
clown145andSXP-Simon 98df26b88e fix(ReportGenerator): mark t2i mention capsules as safe html (#144)
* fix: mark t2i mention capsules as safe html

* fix: 优化PDF和HTML输出目录的获取逻辑

* fix(ReportGenerator): 确保返回正确的 Markup 类型

---------

Co-authored-by: SXP-Simon <sxp20061207@163.com>
2026-03-31 20:44:25 +08:00
3662ac3d75 feat(html): Add HTML output format support (#143 @lekoOwO)
* feat: add HTML output format support

- Add HTML settings section to _conf_schema.json with base URL and output directory configuration
- Add HTML configuration methods to ConfigManager (get_html_output_dir, get_html_base_url, get_html_filename_format)
- Create html_template.html files for all themes (fallback to image_template.html)
- Implement generate_html_report method in ReportGenerator to save HTML and JSON files
- Update main.py to handle HTML output format and send both file and URL if base_url is configured
- Update set_output_format command to include HTML as a valid format option

Co-authored-by: lekoOwO <20151124+lekoOwO@users.noreply.github.com>

* feat: enhance JSON serialization in HTML report generation

* fix: 优化输出目录获取逻辑

---------

Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com>
Co-authored-by: lekoOwO <20151124+lekoOwO@users.noreply.github.com>
Co-authored-by: SXP-Simon <sxp20061207@163.com>
2026-03-31 20:06:57 +08:00
clown145 697213826c fix: align reaction mapping across platforms (#139)
解决 TG 无法贴表情的 bug
2026-03-31 00:04:13 +08:00
SXP-Simon b041a7ca9e [v4.9.9] - feat(feishu): 尝试接入飞书并且回退黑白名单逻辑,保持旧版本逻辑,插件统一管理 2026-03-29 01:08:00 +08:00