Skip to content

refactor: 库代码迁移到 micro_agent/ 命名空间#43

Merged
PolarSnowLeopard merged 1 commit intomasterfrom
refactor/namespace-micro-agent
Apr 10, 2026
Merged

refactor: 库代码迁移到 micro_agent/ 命名空间#43
PolarSnowLeopard merged 1 commit intomasterfrom
refactor/namespace-micro-agent

Conversation

@PolarSnowLeopard
Copy link
Copy Markdown
Collaborator

Summary

将框架核心代码从顶层 core/tool/task/base.py 迁移到 micro_agent/ 命名空间下,为 PyPI 发布做准备。

变更:

  • core/micro_agent/core/
  • tool/micro_agent/tool/
  • task/base.pymicro_agent/task/base.py(库代码)
  • task/ 其余文件 → tasks/(ioeb 应用层,不进 pip 包)
  • 所有 import 更新为 micro_agent.* 前缀
  • 添加 micro_agent/__init__.py 便捷导入入口
  • pyproject.toml 发包范围改为 micro_agent*

验证:

  • pip install -e . 成功
  • 46 个测试全部通过
  • API 26 个路由正常加载
  • Docker 入口 uvicorn api.app:app 不变

Test Plan

  • pip install -e . 安装成功
  • from micro_agent import Agent, LLM, TaskConfig 导入正常
  • python -m pytest tests/ 46 passed
  • FastAPI app 26 routes 全部加载
  • 生产环境 Docker 构建验证

Made with Cursor

- core/ → micro_agent/core/
- tool/ → micro_agent/tool/
- task/base.py → micro_agent/task/base.py(库)
- task/ 其余 ioeb 专属代码 → tasks/(应用层)
- 所有 import 路径更新为 micro_agent.* 前缀
- 添加 micro_agent/__init__.py 便捷导入
- pyproject.toml 发包范围调整为 micro_agent*
- 46 个测试全部通过,API 26 个路由正常加载

Made-with: Cursor
@PolarSnowLeopard PolarSnowLeopard merged commit 71bb1cb into master Apr 10, 2026
3 checks passed
@PolarSnowLeopard PolarSnowLeopard deleted the refactor/namespace-micro-agent branch April 10, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant