让 CLI 返回准确表达执行状态、结果范围与配置生效情况 - #135
Merged
Merged
Conversation
升级后 status 的 ok 与健康检查退出码一致,HTTP 成功另用 httpOk 表达;未知健康返回 null。传输和协议失败省略无法证明的 retryable 标记,使用 kind/outcome 表达未知结果,避免重复副作用。设备返回依据真实生命周期解释取消、过期和幂等重放,普通工具 JSON 仍保持原义。
空页仍可能有后续 cursor,配置保存也不等于已应用;文本返回直接交代这两类边界并保留原始 JSON 数据。CLI 升至 0.32.0:健康检查和传输失败的机器输出含义有变化,按 0.x minor 交付以便消费者显式升级。verify、全仓 build、最终 tarball 干净安装与 bin 烟测已通过。
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.
CLI 先前会把 HTTP 成功、异步受理与执行完成混在一起,部分空页还会隐藏后续 cursor。本次让返回直接说明实际状态与结果范围,减少使用者根据字段或短句猜测。
升级行为变化(CLI 0.32.0,0.x minor):
tb status --json的ok改为与健康检查退出码一致;新增httpOk表示 HTTP 成功,缺少有效健康字段时healthy为null。retryable: true,改为kind与outcome: "unknown";服务端 HTTP 错误的 retryable 保留。--json保留原服务端结果。普通工具 JSON 和显式 delivery 的既有 wrapper 保持不变。验证:
pnpm verify、pnpm turbo run build全绿;CLI 443 项测试通过。重建入口确认版本为 0.32.0;使用仓库统一 pack verifier 验证最终 tarball、仓库外干净安装及tb --version/tb --help。CLI llmdoc 契约同步,公开 Agent Skill 现有恢复规则与本轮一致。未调用真实生产网关、上游或 S3。仅 CLI 的发布内容变化。合入 main 后逐个推送
cli-v0.32.0tag,并核对 npm 精确版本与发布产物。