Skip to content

feat(cli): 增加 --version 输出包版本 #2

Closed

Description

@CodeAlex52

CLI 目前有 run / resume / status / graph / report / providers / cancel,但没有 --version。装错版本时排查困难(尤其是 pipx / venv 混用场景),而 bug 报告和 CI 日志里版本号是基本要求。

计划:

  • typer callback(is_eager=True)实现 agentcorp --version
  • 版本从 importlib.metadata 读;源码目录直接运行时回退到 pyproject 的版本
  • 加一条 CliRunner 回归测试(tests/test_cli_version.py)

本周提 PR。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions