InfinityPacer
1d2984b95f
fix(runtime): enforce main event loop ownership ( #6424 )
2026-08-23 20:14:31 +08:00
jxxghp
1bb6e36e8c
refactor: complete runtime configuration migration
2026-08-22 19:07:07 +08:00
InfinityPacer
638ea6f01e
perf: 并行化后端单测并拆分覆盖率任务 ( #6369 )
2026-08-20 20:01:36 +08:00
jxxghp
54f093a099
Merge remote-tracking branch 'origin/v3' into v3
...
# Conflicts:
# app/api/endpoints/agent.py
# app/api/endpoints/anthropic.py
# app/api/endpoints/openai.py
# app/chain/__init__.py
# app/chain/message.py
# app/chain/site.py
# app/chain/subscribe.py
# app/chain/transfer.py
# app/modules/discord/__init__.py
# app/modules/qqbot/__init__.py
# app/modules/slack/__init__.py
# app/modules/telegram/__init__.py
# app/modules/wechat/__init__.py
# app/runtime/extensions/module_manager.py
# app/runtime/extensions/service_registry.py
# tests/test_agent_interaction.py
# tests/test_slash_command_interactions.py
# tests/test_web_agent_stream.py
2026-08-16 19:44:43 +08:00
jxxghp
240a4dffe6
refactor(schemas): 统一 message/notification 命名边界,旧名收敛至兼容映射表
...
- notification 域:渠道能力(MessageChannel→NotificationChannel、ChannelCapability* 迁入 notification.py)
- message 域:消息收发(Notification→Message、NotificationType→MessageType、CommingMessage→IncomingMessage、NotificationHistoryItem→MessageHistoryItem、NotificationClear*→MessageClear*)
- Agent 工具契约:send_notification_message→send_message、notification_callback→message_callback
- 源码不保留旧名物理别名,旧导入经 app/runtime/compat/manifest.py SYMBOL_ALIASES 惰性解析
- API 路径与持久化键冻结不变,前端零改动
- 新增兼容守护测试与 docs/rules/07 命名边界规范
2026-08-16 19:32:20 +08:00
InfinityPacer
5b367011c5
refactor(agent): 按需加载 Agent 运行时 ( #6336 )
2026-08-16 19:25:24 +08:00
jxxghp
7e851dbfa7
refactor(chain): 处理链功能域 mixin 化,清理未使用导入并根治兼容层循环导入
...
- ChainBase 拆分为 RecognitionMixin/MessageProcessingMixin/NotificationMixin
- TransferChain 拆分为 7 个功能 mixin(_mixins.py),SubscribeChain 音乐订阅域拆出 _music.py
- 斜杠命令交互四件套收敛为 InteractionChainMixin 委托,会话管理器移至 application 层,chain 层不再 re-export
- 模块基础类收敛到 app/modules/_base(notification/mediaserver 语义重命名)
- 清理 app/chain/__init__.py 24 个未使用导入,修正 49 处测试 patch 目标到实际命名空间
- 兼容层 legacy 符号不再并入 __all__,根治 schemas 初始化反向拉起 application.transfer 的循环导入
- 修复 bangumi 集数为字符串时 set_bangumi_info 抛 TypeError
- 新增重复代码等架构门禁测试;capability 清单校验排除下划线内部目录
2026-08-16 16:30:16 +08:00
jxxghp
369d7d6448
refactor: reorganize backend module boundaries
2026-08-14 19:53:33 +08:00
jxxghp
7b3444c366
refactor backend module architecture
2026-08-14 15:45:38 +08:00
jxxghp
318cfe68e9
Refactor agent tool inputs and background activity logging
2026-06-27 07:53:09 +08:00
jxxghp
495807ef4d
Simplify agent message handling and streaming cleanup
2026-06-21 12:34:11 +08:00
jxxghp
d483b805d8
Normalize Telegram HTML send_message responses
2026-06-21 11:39:53 +08:00
jxxghp
5c1b303908
Add Telegram parse_mode support for send_message
2026-06-21 10:57:26 +08:00
jxxghp
d4b6d3f332
refactor: remove persist_output_message functionality and related database save logic
2026-06-17 16:14:35 +08:00
InfinityPacer
781b1ce2aa
test: 修复单测 warnings 并精确忽略上游弃用告警 ( #5889 )
2026-06-03 18:34:45 +08:00
InfinityPacer
437baec620
test: 测试套件自隔离与全量离线化(collection 清零 + 杜绝真实网络) ( #5873 )
2026-06-02 12:23:08 +08:00
jxxghp
855681ff35
feat(agent): mark and propagate voice input metadata in agent messages; clarify terminal tool usage in prompts
...
- Add `has_audio_input` flag to agent message handling and propagate through processing pipeline
- Structure agent input payloads to include `input.mode` and `input.transcribed` for voice messages
- Update prompts and tool descriptions to clarify that `send_voice_message` and `ask_user_choice` are terminal tools and should not be followed by redundant text replies
- Enhance tests to cover voice input metadata propagation and prompt updates
2026-05-31 18:04:02 +08:00
jxxghp
cc3e062262
固定 Agent 工具消息类型
2026-05-28 13:34:53 +08:00
jxxghp
7b27b7fd16
feat: add extensible agent audio capabilities
2026-05-14 19:37:13 +08:00
jxxghp
6d5cda5d51
fix https://github.com/jxxghp/MoviePilot/issues/5663
2026-05-13 21:03:48 +08:00
jxxghp
f8d096f476
fix: 支持飞书语音消息识别
2026-05-13 12:45:32 +08:00
jxxghp
0989439d25
feat(feishu): enhance message handling with file and voice support, add reaction management
2026-05-13 00:07:36 +08:00
jxxghp
b228107a25
refactor: migrate LLM helper to agent module and add unified LLM API endpoints
...
- Move LLMHelper and related logic from app.helper.llm to app.agent.llm.helper
- Update all imports to reference new LLMHelper location
- Introduce app/agent/llm/__init__.py for internal LLM adapter exports
- Add llm.py API router with endpoints for model listing, provider auth, and test calls
- Remove legacy LLM endpoints from system.py
- Update requirements for langchain-anthropic and anthropic
- Refactor test_llm_helper_testcall.py for async LLMHelper usage and new import paths
2026-04-30 09:48:50 +08:00
jxxghp
af35101774
fix: default to text replies for voice input
2026-04-29 18:54:58 +08:00
jxxghp
b7749c44fd
重构语音能力配置与逻辑,统一音频输入输出开关并优化语音回复判断
2026-04-29 18:15:34 +08:00
jxxghp
13c3c082b8
Improve agent image capability routing
2026-04-15 08:55:32 +08:00
jxxghp
7a5e513f25
feat(agent): support file attachments and local file replies
2026-04-14 15:22:01 +08:00
jxxghp
e09f9ad009
feat(agent): add audio message extraction and download support for Slack, QQ, Discord, SynologyChat, and VoceChat
2026-04-13 08:36:57 +08:00
jxxghp
e5f97cd299
feat(agent): add voice message support with TTS/STT for Telegram and WeChat
...
- Integrate voice message handling: detect and extract audio references from Telegram and WeChat messages, route to agent with voice reply preference.
- Add voice provider abstraction and OpenAI-based TTS/STT implementation.
- Implement agent tool `send_voice_message` for generating and sending voice replies, with fallback to text if voice is unavailable.
- Extend agent prompt and context to support voice reply instructions.
- Update notification and message schemas to support audio fields.
- Add Telegram and WeChat voice sending logic, including audio file conversion and temporary media upload for WeChat.
- Add tests for voice helper and agent voice routing.
2026-04-12 12:30:02 +08:00
jxxghp
2f53fd3108
Expand image and edit support across messaging channels
2026-04-11 22:10:54 +08:00
jxxghp
bf2d2cbd03
Fix Telegram agent image download path
2026-04-11 21:11:03 +08:00
jxxghp
edf3946558
Fix forwarded image payload parsing for agent channels
2026-04-11 20:55:14 +08:00
jxxghp
6c5fae56d9
Add agent image support for Telegram and Slack
2026-04-11 20:40:02 +08:00