Commit Graph
570 Commits
Author SHA1 Message Date
InfinityPacer feff545b16 refactor: isolate agent task execution data boundary (#6433) 2026-08-24 12:14:46 +08:00
jxxghp 473c0588cc fix: retain agent streaming flush owners 2026-08-24 10:39:11 +08:00
jxxghp 7c9d53c6f6 refactor: unify llm provider runtime access 2026-08-24 07:15:02 +08:00
jxxghp cb3c5f008f refactor: unify service configuration boundary 2026-08-24 05:12:21 +08:00
jxxghp ae38e61880 refactor: unify agent data port access 2026-08-24 04:56:11 +08:00
jxxghp 8555d0da3e refactor: use explicit system config getter 2026-08-24 04:04:35 +08:00
jxxghp 371383f0a8 refactor: unify host threadpool boundary 2026-08-24 03:28:10 +08:00
jxxghp 939e4c1cdc refactor: own agent activity tasks 2026-08-24 00:32:16 +08:00
jxxghp 820582ab12 refactor: close plugin shutdown mutation races 2026-08-23 21:55:22 +08:00
InfinityPacer f64030a074 fix(imports): use concrete modules for internal symbols (#6427) 2026-08-23 21:28:37 +08:00
jxxghp 7f09927c47 refactor: own shutdown lifecycle boundaries 2026-08-23 20:20:26 +08:00
InfinityPacer 146f8649f6 fix(runtime): 隔离线程任务上下文 (#6420)
* fix(runtime): isolate thread task contexts

* test: use canonical message schema import
2026-08-23 20:10:23 +08:00
jxxghp af5a330d0f fix(agent): await stdio mcp reader shutdown 2026-08-23 15:21:32 +08:00
InfinityPacer d11c2fb301 fix(agent): isolate web and storage blocking I/O 2026-08-23 13:06:30 +08:00
jxxghp 43c173a0e7 Merge pull request #6410 from InfinityPacer/codex/replay/g3a 2026-08-23 12:51:24 +08:00
InfinityPacer e8cfe272c4 fix(async): offload file metadata checks 2026-08-23 12:06:52 +08:00
InfinityPacer f560c19d65 fix(agent): keep chat reads on native async path 2026-08-23 11:43:07 +08:00
InfinityPacer 21ce70fbfc refactor(agent): route chat persistence through database worker 2026-08-23 11:43:07 +08:00
jxxghp e15c4668bd fix: preserve runtime settings and user config compatibility 2026-08-23 03:40:47 +08:00
jxxghp c5f0bd4fb7 refactor: route agent task settings through runtime 2026-08-23 02:57:19 +08:00
jxxghp 05d4ca79e7 refactor: route agent tool settings through runtime 2026-08-23 02:51:25 +08:00
jxxghp 41ee5aacdc refactor: route agent llm settings through runtime 2026-08-23 02:49:00 +08:00
jxxghp 1ede083fb2 refactor: route agent support settings through runtime 2026-08-23 02:46:26 +08:00
jxxghp e17e83bca3 refactor: route agent settings tools through runtime 2026-08-23 02:38:39 +08:00
jxxghp 47d2846990 refactor: inject agent runtime settings 2026-08-23 01:28:08 +08:00
jxxghp 8849b8da11 fix: recreate terminal manager after shutdown 2026-08-22 19:42:01 +08:00
jxxghp 63184a49c5 fix(ci): use canonical imports in changed files 2026-08-22 13:35:57 +08:00
jxxghp 3fc593f5f6 feat: wire agent runtime metrics 2026-08-22 13:26:22 +08:00
jxxghp 7bc5e01afd refactor: expand async and type safety gates 2026-08-22 13:21:52 +08:00
InfinityPacer ed3c0541c7 fix(agent): 收敛超时与取消后的副作用生命周期 (#6388) 2026-08-22 12:11:15 +08:00
jxxghp 508bf0bc38 fix(ci): restore lint and architecture gates 2026-08-22 10:23:18 +08:00
jxxghp 9273d68aa7 feat(telegram): support rich Agent messages 2026-08-22 10:11:18 +08:00
InfinityPacer 1c07333909 fix: 收敛 Agent 会话队列与 worker 关闭 (#6386) 2026-08-22 10:09:01 +08:00
InfinityPacer 813ea77bc4 fix(agent): use async subscription data access (#6385) 2026-08-22 09:56:02 +08:00
jxxghp 7b9499fc5b feat(plugin): add virtual plugin instances 2026-08-22 09:40:38 +08:00
jxxghp 97d2dcd7fb fix(ci): align architecture and pylint gates 2026-08-22 08:50:25 +08:00
jxxghp c5de1c7b1b refactor: make subscription lifecycle events durable 2026-08-22 07:43:41 +08:00
jxxghp ff0ce8d1c1 refactor: add configuration dependency ratchet 2026-08-21 21:20:56 +08:00
InfinityPacer b9bbc8913c fix: 完善插件恢复与运行态收敛 (#6376) 2026-08-21 18:09:29 +08:00
InfinityPacer 23f5d59c74 feat: 使用 uv 锁定主程序依赖并强化插件恢复边界 (#6364) 2026-08-20 12:17:19 +08:00
jxxghp f069bf05c7 fix(agent): 调大摘要输入裁剪上限,减少无法压缩报错
LangChain 默认按 4000 token 裁剪待摘要消息,单条超长工具结果或
用户输入会被整体丢弃,直接触发'无法压缩'报错;在 MoviePilot 子类
中覆盖默认上限为 16000,并保持显式传参的兼容性。
2026-08-19 14:02:19 +08:00
jxxghp c2a27f7c71 refactor: 收口订阅与插件应用边界 2026-08-18 13:54:17 +08:00
jxxghp 8472bcff43 refactor: 收口 V3 分层架构与插件兼容边界 2026-08-18 13:22:02 +08:00
jxxghp cca99bd421 ci: fetch models.dev catalog during packaging 2026-08-18 13:18:36 +08:00
jxxghp 5128ae9e1e refactor: 推进后端分层架构治理 2026-08-18 00:29:14 +08:00
jxxghp d7e610e656 feat(agent): 新增 apply_patch 多文件补丁编辑工具
参考 Codex apply_patch 设计,支持单次调用对多个文本文件执行新增、
更新和删除:补丁以 *** Begin Patch / *** End Patch 包裹,Update 段
用 @@ 分隔 hunk,上下文行须与当前内容精确一致;先整体校验全部文件
操作,通过后才逐个原子写盘,并以校验期 sha256 防止并发修改。

- 工具描述与系统提示词明确 apply_patch / edit_file / write_file 分工:
  跨多文件或增删文件用 apply_patch,单文件单处替换用 edit_file
- 注册进工具工厂与 ALWAYS_INCLUDE 列表,加入策略 inventory 与
  MCP 隐藏列表,流式回调归类为 file_write
- 同步 create-moviepilot-plugin / publish-moviepilot-plugin /
  create-moviepilot-skill 技能的 allowed-tools 与版本
- 新增 tests/test_agent_apply_patch.py 覆盖解析、多文件应用、
  整体拒绝、权限边界与版本冲突场景
2026-08-17 08:01:59 +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
LinFei83 e5f0c53069 MCP get_search_results 增加 include_labels 按需返回种子标签 (#6335)
让 Agent 在筛选命中标签时能按需查看 labels,默认不返回以免拉长上下文。

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 6a02e7de21)
2026-08-16 17:38:19 +08:00