Skip to content

feat(cli): set default User-Agent for engine usage attribution (DAK-7617) - #140

Merged
ferhimedamine merged 1 commit into
mainfrom
feat/dak-7617-user-agent
Jul 29, 2026
Merged

feat(cli): set default User-Agent for engine usage attribution (DAK-7617)#140
ferhimedamine merged 1 commit into
mainfrom
feat/dak-7617-user-agent

Conversation

@ferhimedamine

Copy link
Copy Markdown
Contributor

Summary

Sets a default User-Agent: dakera-cli/<crate-version> header on the authenticated reqwest client built by authed_client() in src/commands/mod.rs.

This lets the Dakera engine's server-side install telemetry (DAK-7617) attribute CLI usage without any client-side telemetry — the engine is the chokepoint and reads the User-Agent of incoming requests. The version is sourced from CARGO_PKG_VERSION at compile time.

Change

  • Added .user_agent(format!("dakera-cli/{}", env!("CARGO_PKG_VERSION"))) to the Client::builder() chain before .build(). Minimal, single-line change; no behavior changed for existing auth header logic.

🤖 Generated with Claude Code

…617)

Add User-Agent: dakera-cli/<version> to the authed reqwest client so the
Dakera engine's server-side telemetry can attribute CLI usage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ferhimedamine
ferhimedamine merged commit 7608b96 into main Jul 29, 2026
12 checks passed
@ferhimedamine
ferhimedamine deleted the feat/dak-7617-user-agent branch July 29, 2026 09:44
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.

1 participant