Skip to content

feat(api): send the CLI version and CI identity on every API request - #277

Merged
finalerock44 merged 3 commits into
devfrom
feat/1622-upload-client-identity
Oct 26, 2026
Merged

finalerock44 merged 3 commits into
devfrom
feat/1622-upload-client-identity

Conversation

@finalerock44

@finalerock44 finalerock44 commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

x-dcd-cli-version, x-dcd-ci-provider and x-dcd-ci-wrapper-version were only sent on the compatibility call, for notices. resolveAuth now puts them on every auth context, so every gateway sends them. The API records them on each upload and binary, and on its HTTP log line, so it can tell which CLIs and CI wrappers still use an endpoint before it is retired.

fetchCompatibilityData loses its client-context argument, since the auth headers carry the same values. MCP calls now send them too.

Refs dcd#1622

What & why

Type of change

  • fix — bug fix
  • feat — new feature
  • perf — performance improvement
  • refactor — code change that's neither a fix nor a feature
  • docs — documentation only
  • chore / ci / build / test — tooling, no user-facing change
  • Breaking change (title has ! or PR notes a BREAKING CHANGE:)

Checklist

  • PR title follows the Conventional Commits format (see comment above)
  • pnpm lint passes
  • pnpm typecheck passes
  • pnpm build passes
  • I have not bumped the version or edited CHANGELOG.md (release-please handles this)
  • I have signed the CLA (the bot will prompt on first contribution)
  • Docs / README.md / STYLE_GUIDE.md updated if behaviour or output changed

How to test

x-dcd-cli-version, x-dcd-ci-provider and x-dcd-ci-wrapper-version were
only sent on the compatibility call, for notices. resolveAuth now puts them
on every auth context, so every gateway sends them. The API records them on
each upload and binary, and on its HTTP log line, so it can tell which CLIs
and CI wrappers still use an endpoint before it is retired.

fetchCompatibilityData loses its client-context argument, since the auth
headers carry the same values. MCP calls now send them too.

Refs dcd#1622
@finalerock44 finalerock44 self-assigned this Oct 26, 2026
Comment thread src/utils/auth.ts Resolved
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Comment thread test/unit/auth.test.ts Resolved
@claude

claude Bot commented Oct 26, 2026

Copy link
Copy Markdown

Correction to my inline comment: the CLAUDE.md link there points at the wrong lines. The rule against private-repo issue numbers is on CLAUDE.md L64.

Fix comment formatting in auth test file.
@finalerock44
finalerock44 merged commit 7d751d2 into dev Oct 26, 2026
9 checks passed
@finalerock44
finalerock44 deleted the feat/1622-upload-client-identity branch October 26, 2026 15:39
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