Dashboard › sentry-api-schema › getsentry/cli detectAgent() returns str…
019de1e9-ce0c-7423-a68e-56eabc7ee584| Project | Hits | Last recalled |
|---|---|---|
| cli | 1 | 8d ago |
| opencode | 1 | 8d ago |
After the detect-agent refactor (post-PR #896), detectAgent() returns a plain string | undefined (the agent name), not the former AgentInfo object ({ name, version?, role? }). The normalizeAgent, AGENT_ALIASES, and AgentInfo type were removed. Process-tree detection (detectAgentFromProcessTree()) also returns string | undefined. Use detectAgent() synchronously for banner/UI gating; use detectAgentFromProcessTree() for async telemetry.