Skip to content

feat: identify the SDK in request headers - #19

Merged
robingenz merged 1 commit into
mainfrom
feat/client-headers
Nov 18, 2026
Merged

robingenz merged 1 commit into
mainfrom
feat/client-headers

Conversation

@robingenz

Copy link
Copy Markdown
Member

Summary

Every request now names the SDK:

Header Value
User-Agent capawesome-cloud-node/<version>
X-Capawesome-Client cloud-node/<version>

The version lives in src/version.ts. release-please updates it together with package.json through extra-files, the way the Python SDK keeps _version.py. A test checks that both say the same.

A caller that wants its own User-Agent passes its own fetch. No new option.

Verification

  • test/http-client.test.ts: 15 passed
  • tsc --noEmit, ESLint and Prettier pass

🤖 Generated with Claude Code

Every request now sends `User-Agent: capawesome-cloud-node/<version>`
and `X-Capawesome-Client: cloud-node/<version>`. The version lives in
`src/version.ts`, which release-please updates with `package.json`.
A caller that wants its own `User-Agent` passes its own `fetch`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@robingenz
robingenz marked this pull request as ready for review November 17, 2026 15:54
@robingenz
robingenz merged commit c7715d3 into main Nov 18, 2026
3 checks passed
@robingenz
robingenz deleted the feat/client-headers branch November 18, 2026 05: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