feat(analytics-agent): session run 新增 --summary 输出推理过程 - #22
Merged
zhaxinmeng merged 2 commits intoJun 18, 2026
Merged
Conversation
- 默认不传 --formatted:直接输出 /open/safe_question_poll 的完整 JSON, 包含推理过程和最终答案 - 显式传 --formatted:输出格式化后的最终答案,不含推理过程 - --format 全局选项保留原有输出格式控制职责,两者不冲突 - 新增 analytics-agent-session-run.test.ts 覆盖两条路径 验证: - bun test packages/cz-cli/test/analytics-agent-session-run.test.ts - UAT: session run 默认输出完整 responses 数组(含推理过程) - UAT: session run --formatted 只输出最终答案文本 Co-Authored-By: cz-cli <noreply@clickzetta.com>
Collaborator
|
全局已有 --format,使用--formatted可能造成歧义。使用--summary或许会更好 |
- --summary 语义更直观,表示"只输出最终答案" - 同步更新测试文件 Co-Authored-By: cz-cli <noreply@clickzetta.com>
zhaxinmeng
approved these changes
Jun 18, 2026
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.
Issue for this PR
Closes #
Type of change
What does this PR do?
session run 命令新增 --summary flag。默认输出 /open/safe_question_poll 的完整返回(含推理过程),显式传 --summary 时只输出格式化最终答案。
How did you verify your code works?
Checklist