Skip to content

为重操作增加统一耗时统计并发布 0.0.2 #1

Closed

Description

@fanbuz

当前目标

为 codex-threads 的重操作命令增加统一的执行耗时统计,并将版本提升到 0.0.2。

当前范围

纳入耗时统计的命令:

  • sync
  • messages search
  • threads search
  • threads read
  • messages read
  • events read

不纳入耗时统计的命令:

  • status
  • --help
  • --version

输出约定

  • 人类可读输出在结果末尾追加 耗时: ...
  • 耗时按时长动态显示为 ms 或 s
  • --json 输出仅增加稳定字段 duration_ms
  • --json 不增加展示型字段,例如 duration_display

工作包

  • 在命令分发层统一计时,避免各子命令重复实现
  • 更新人类可读输出与 JSON 输出结构
  • 将 CLI 版本号更新为 0.0.2
  • 更新 README / help / 测试,确保版本与输出口径一致

验收口径

  • 重操作命令的人类可读输出都能看到耗时
  • 重操作命令的 JSON 输出都包含 duration_ms
  • status / --help / --version 不出现耗时字段
  • 全量测试通过
  • 对外文档和版本号同步到 0.0.2

Activity

  1. self-assigned this
    on Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions