Skip to content

fix(cli): identify CLI HTTP requests with a User-Agent - #1537

Open
Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
microsoft:mainfrom
1aifanatic:fix/911-cli-user-agent
Open

Naveen Chatlapalli (1aifanatic) wants to merge 1 commit into
microsoft:mainfrom
1aifanatic:fix/911-cli-user-agent

Conversation

@1aifanatic

Copy link
Copy Markdown

Fixes #911.

CLI requests now send User-Agent: scope-cli/<version> so API analytics can distinguish the CLI from Portal and other clients. The header covers the central API client, direct codebase requests, run/report log streams, and the GitHub release check. The bundled CLI uses its package version; source-mode development uses 0.1.0-dev.

Validation: pnpm build:cli; 43 focused unit tests; 15 isolated bundle integration tests; git diff --check.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI should have its own user agent

1 participant