refactor(agent worker):split runtime package - #45
Merged
Heyflyingpig merged 1 commit intoAug 6, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
完成内容
worker.py拆分为 package,入口仍是python -m app.agent.worker。ProcessRuntime与SlotRuntime:initialize_llm、open_mcp_session和全局 LLM/graph 已移除。job_service.py、routes.py保持原位置,管理员、监控、Web 路由的依赖方向没有变化。python -m入口测试。验证结果
243 passed。git diff --check通过。agent_core.llm或global llm。core导入路径。额外运行管理员部署/迁移集成测试时有
262 passed, 2 failed。两个失败均涉及未修改区域:测试容器缺少git命令,以及部署测试仍断言旧 Dockerfile stage 文本;迁移链测试通过。本次未连接真实数据库、LLM 或 MCP 启动完整