fix(report): populate agent_version in report endpoint - #140
Merged
Conversation
The report API was sending an empty string for agent_version. Add agent-version.ts module that detects installed versions for claude, cursor, codebuddy (CLI + IDE), and workbuddy via CLI output or macOS plist parsing. Results are cached per session. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
agent_version字段之前始终为空字符串,现在会正确填充实际版本号src/agent-version.ts模块,支持检测 claude / cursor / codebuddy (CLI + IDE) / workbuddy 的版本--version命令检测,macOS Electron 应用通过 Info.plist 解析检测结果示例:
Test plan
agent-version.test.ts覆盖所有 agent 检测、缓存机制、未知 agent 降级status-report.test.ts全部通过(10 tests)npx tsc --noEmit类型检查通过🤖 Generated with Claude Code